Absolut Engine PHP Cross Reference Web Portal Systems

Source: /admin/managerimage.php - 110 lines - 5351 bytes - Summary - Text - Print

   1  <?
   2  $description=""; $filedescription="";
   3  @include ("coreclass.php");
   4  $ae=new CEngine();
   5  $ae->RequestVariables();
   6  $ae->EngineInitialize();
   7  $ae->UserVerifySession();
   8  $ae->UserVerifyLevel(3);
   9  if ($ae->imagesetID)
  10     {
  11     $ae->DBQuery("SELECT * FROM ".$ae->table[13]." WHERE ID='".$ae->imagesetID."'");
  12     $ae->DBGetRow();
  13     $description=$ae->access["description"];
  14     if (!$ae->uploadnumber)
  15        {
  16        $ae->DBQuery("SELECT * FROM ".$ae->table[1]." WHERE imagesetID='".$ae->imagesetID."'");
  17        $ae->uploadnumber=$ae->rowsnumber+1;
  18        }
  19     }
  20  @include ("header.php");
  21  @include ("menu.php");
  22  if (!$ae->uploadnumber) $ae->uploadnumber=5;
  23  for ($i=0;$i<$ae->uploadnumber;$i++)
  24      {
  25      $file[$i]="";
  26      }
  27  ?>
  28  <div id="content">
  29  <?
  30  $object=$ae->DisplayError(8);
  31  if ($object->description) $description=$object->description;
  32  ?>
  33  <form method="post" action="modify.php?command=10">
  34  <fieldset><legend><? echo $ae->textbasic[74]; ?></legend>
  35  <label for="imagesetID[]"><? echo $ae->textbasic[123]; ?></label>
  36  <?
  37  if ($ae->currentuserposition>2) @$ae->DBQuery("SELECT * FROM ".$ae->table[13]." WHERE authorID='".$ae->currentuserID."' ORDER BY description");
  38  else @$ae->DBQuery("SELECT * FROM ".$ae->table[13]." ORDER BY description");
  39  $size=$ae->rowsnumber;
  40  if ($size<1) $size=1;
  41  if ($size>15) $size=15;
  42  echo '<select name="imagesetID[]" id="imagesetID[]" size="',$size,'" multiple="multiple">';
  43  while ($ae->DBGetRow())
  44        {
  45        $optionvalue=$ae->access["ID"];
  46        $optiontext=$ae->access["description"];
  47        echo '<option value="',$optionvalue,'">',$optiontext,'</option>';
  48        }
  49  ?>
  50  </select><br class="clear" />
  51  <label for="submit"></label>
  52  <input type="submit" name="submit" value="<? echo $ae->textbasic[106]; ?>" class="button" />
  53  <input type="submit" name="submit" id="submit" value="<? echo $ae->textbasic[110]; ?>" onclick="return ConfirmAction('<? echo $ae->textbasic[53]; ?>')" class="button" />
  54  <input type="hidden" name="username" value="<? echo $ae->username; ?>" />
  55  <input type="hidden" name="session" value="<? echo $ae->session; ?>" />
  56  </fieldset>
  57  </form>
  58  <form method="post" action="managerimage.php">
  59  <fieldset><legend><? echo $ae->textbasic[149]; ?></legend>
  60  <label for="uploadnumber"><? echo $ae->textbasic[37]; ?></label>
  61  <input type="text" name="uploadnumber" id="uploadnumber" size="2" value="<? echo $ae->uploadnumber; ?>" />
  62  <input type="submit" name="submit" value="<? echo $ae->textbasic[116]; ?>" class="button" />
  63  <input type="hidden" name="username" value="<? echo $ae->username; ?>" />
  64  <input type="hidden" name="session" value="<? echo $ae->session; ?>" />
  65  <input type="hidden" name="imagesetID" value="<? echo $ae->imagesetID; ?>">
  66  </fieldset>
  67  </form>
  68  <form method="post" action="modify.php?<? if (!$ae->imagesetID) echo "command=11"; else echo "command=12"; ?>" enctype="multipart/form-data">
  69  <fieldset><legend><? echo $ae->textbasic[123]; ?></legend>
  70  <label for="description"><? echo $ae->textbasic[77]; ?></label>
  71  <input type="text" name="description" id="description" size="50" value="<? echo $description; ?>" /><br class="clear" />
  72  <?
  73  for ($i=0;$i<$ae->uploadnumber;$i++)
  74      {
  75      echo '<label for="file[',$i,']">#',$i+1,' ',$ae->textbasic[75],'</label>';
  76      echo '<input type="file" name="file[',$i,']" size="50"><br class="clear" />';
  77      echo '<label for="filedescription[',$i,']" class="additional">',$ae->textbasic[76],'</label>';
  78      if ($ae->imagesetID)
  79         {
  80         $ae->DBQuery("SELECT * FROM ".$ae->table[1]." WHERE imagesetID='".$ae->imagesetID."' ORDER BY ID LIMIT ".$i.",1");
  81         if ($ae->rowsnumber)
  82            {
  83            $ae->DBGetRow();
  84            $thumbnail=$ae->GetThumbnailName($ae->access["filename"]);
  85            echo '<input type="text" name="filedescription[',$i,']" id="filedescription[',$i,']" size="50" value="',$ae->access["description"],'" class="description" /><br class="clear" />';
  86            echo ' <a href="',$ae->pathimages,$ae->access["filename"],'"><img src="',$ae->pathimages,$thumbnail,'" class="preview" alt="',$ae->access["description"],'" /></a>';
  87            echo ' <input type="checkbox" name="delete[',$i,']" id="delete[',$i,']" value="',$ae->access["ID"],'" /><label for="delete[',$i,']" class="nofloat">',$ae->textbasic[110],' ',$ae->access["filename"],'</label><br class="clear" />';
  88            }
  89         else
  90            {
  91            echo '<input type="text" name="filedescription[',$i,']" id="filedescription[',$i,']" size="50" class="description" /><br class="clear" />';
  92            }
  93         }
  94      else
  95         {
  96         echo '<input type="text" name="filedescription[',$i,']" id="filedescription[',$i,']" size="50" class="description" /><br class="clear" />';
  97         }
  98      }
  99  ?>
 100  <label for="submit"></label>
 101  <input type="submit" name="submit" id="submit" value="<? echo $ae->textbasic[103]; ?>" class="button" />
 102  <input type="hidden" name="username" value="<? echo $ae->username; ?>" />
 103  <input type="hidden" name="session" value="<? echo $ae->session; ?>" />
 104  <input type="hidden" name="MAX_FILE_SIZE" value="<? echo $ae->sizemaxfiles; ?>" />
 105  <input type="hidden" name="imagesetID" value="<? echo $ae->imagesetID; ?>" />
 106  <input type="hidden" name="uploadnumber" value="<? echo $ae->uploadnumber; ?>" />
 107  </fieldset>
 108  </form>
 109  </div>
 110  <? @include ("footer.php"); ?>

title

Description

title

Description

title

Description

title

title

Body