Absolut Engine PHP Cross Reference Web Portal Systems

Source: /admin/managerfile.php - 98 lines - 4454 bytes - Summary - Text - Print

   1  <?
   2  $description="";
   3  @include ("coreclass.php");
   4  $ae=new CEngine();
   5  $ae->RequestVariables();
   6  $ae->EngineInitialize();
   7  $ae->UserVerifySession();
   8  $ae->UserVerifyLevel(3);
   9  if ($ae->filesetID)
  10     {
  11     $ae->DBQuery("SELECT * FROM ".$ae->table[12]." WHERE ID='".$ae->filesetID."'");
  12     $ae->DBGetRow();
  13     $description=$ae->access["description"];
  14     if (!$ae->uploadnumber)
  15        {
  16        $ae->DBQuery("SELECT * FROM ".$ae->table[2]." WHERE filesetID='".$ae->filesetID."'");
  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=6">
  34  <fieldset><legend><? echo $ae->textbasic[78]; ?></legend>
  35  <label for="filesetID[]"><? echo $ae->textbasic[124]; ?></label>
  36  <?
  37  if ($ae->currentuserposition>2) @$ae->DBQuery("SELECT * FROM ".$ae->table[12]." WHERE authorID='".$ae->currentuserID."' ORDER BY description");
  38  else @$ae->DBQuery("SELECT * FROM ".$ae->table[12]." ORDER BY description");
  39  $size=$ae->rowsnumber;
  40  if ($size<1) $size=1;
  41  if ($size>15) $size=15;
  42  echo '<select name="filesetID[]" id="filesetID[]" 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="managerfile.php">
  59  <fieldset>
  60  <label for="uploadnumber"><? echo $ae->textbasic[148]; ?></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="filesetID" value="<? echo $ae->filesetID; ?>">
  66  </fieldset>
  67  </form>
  68  <form method="post" action="modify.php?<? if (!$ae->filesetID) echo "command=7"; else echo "command=13"; ?>" enctype="multipart/form-data">
  69  <fieldset><legend><? echo $ae->textbasic[124]; ?></legend>
  70  <label for="description"><? echo $ae->textbasic[80] ?></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[79],'</label>';
  76      echo '<input type="file" name="file[',$i,']" size="50" /><br class="clear" />';
  77      $ae->DBQuery("SELECT * FROM ".$ae->table[2]." WHERE filesetID='".$ae->filesetID."' ORDER BY ID LIMIT ".$i.",1");
  78      if ($ae->rowsnumber)
  79         {
  80         $ae->DBGetRow();
  81         echo '<label for="" class="description"></label>';
  82         echo ' <a href="',$ae->pathfiles,$ae->access["filename"],'">',$ae->access["filename"],'</a>';
  83         echo ' <input type="checkbox" name="delete[',$i,']" id="delete[',$i,']" value="',$ae->access["ID"],'" /><label for="delete[',$i,']" class="nofloat">',$ae->textbasic[110],'</label><br class="clear" />';
  84         }
  85      }
  86  ?>
  87  <br class="clear" />
  88  <label for="submit"></label>
  89  <input type="submit" name="submit" id="submit" value="<? echo $ae->textbasic[103]; ?>" class="button" />
  90  <input type="hidden" name="username" value="<? echo $ae->username; ?>" />
  91  <input type="hidden" name="session" value="<? echo $ae->session; ?>" />
  92  <input type="hidden" name="MAX_FILE_SIZE" value="<? echo $ae->sizemaxfiles; ?>" />
  93  <input type="hidden" name="filesetID" value="<? echo $ae->filesetID; ?>" />
  94  <input type="hidden" name="uploadnumber" value="<? echo $ae->uploadnumber; ?>" />
  95  </fieldset>
  96  </form>
  97  </div>
  98  <? @include ("footer.php"); ?>

title

Description

title

Description

title

Description

title

title

Body