Location: PHPKode > projects > Absolut Engine > absolut-engine-33870/admin/managerfile.php
<?
@include("coreclass.php");
$ae=new CEngine();
$ae->EngineInitialize();
$ae->RequestVariables();
$ae->UserVerifySession();
if ($ae->command=="edit")
   {
   $ae->DBQuery("SELECT * FROM ".$ae->table[2]." WHERE ID=".$ae->filesetID);
   $ae->DBGetRow();
   $description=$ae->access["description"];
   for ($i=0;$i<=4;$i++)
       {
       $file[$i]=$ae->access["file".($i+1)];
       }
   }
@include("header.php");
?>
<div id="content">
<table cellspacing="0" class="form">
<tr>
<td>
<form method="post" action="modify.php?command=6" id="fid">
<p>
<strong><? echo $ae->textbasic[78] ?></strong><br />
<select name="filesetID[]" size="10" multiple>
<?
if ($ae->currentuserposition>2) @$ae->DBQuery("SELECT * FROM ".$ae->table[2]." WHERE authorID='".$ae->currentuserID."' ORDER BY description");
else @$ae->DBQuery("SELECT * FROM ".$ae->table[2]." ORDER BY description");
while ($ae->DBGetRow())
{
$optionvalue=$ae->access["ID"];
$optiontext=$ae->access["description"];
echo '<option value="',$optionvalue,'">',$optiontext,'</option>';
}
?>
</select>
</p>
<p>
<input type="hidden" name="username" value="<? echo $ae->username ?>" />
<input type="hidden" name="session" value="<? echo $ae->session ?>" />
<input type="hidden" name="action" value="">
<input type="button" value="<? echo $ae->textbasic[110] ?>" onClick="confirmed=confirm('<? echo $ae->textbasic[53]; ?>');if (confirmed) send_form(1,this.form);" class="button" />
<input type="button" value="<? echo $ae->textbasic[106] ?>" onClick="send_form(2,this.form);" class="button" />
</p>
</form>
</td>
<td>
<form method="post" action="modify.php?<? if (!$ae->command) echo "command=7"; else echo "command=13"; ?>" enctype="multipart/form-data">
<p>
<strong><? echo $ae->textbasic[80] ?></strong><br />
<input type="text" name="description" size="50" maxlength="255" value="<? echo $description ?>">
<?
for ($i=0;$i<=4;$i++):
?>
<br /><strong>
<?
echo '#',$i+1,' ',$ae->textbasic[79];
if ($file[$i])
{
echo ' <a href="',$ae->pathfiles,$file[$i],'">',$file[$i],'</a> ';
echo ' <input type="checkbox" name="delete[',$i,']" value="1"> ',$ae->textbasic[110];
}
?>
</strong><br />
<input type="file" name="file[]" size="50">
<?
endfor;
?>
</p>
<p>
<input type="hidden" name="username" value="<? echo $ae->username ?>" />
<input type="hidden" name="session" value="<? echo $ae->session ?>" />
<input type="hidden" name="MAX_FILE_SIZE" value="<? echo $ae->sizemaxfiles ?>">
<input type="hidden" name="filesetID" value="<? echo $ae->filesetID ?>">
<input type="submit" name="Submit" value="<? echo $ae->textbasic[103] ?>" class="button" />
</p>
</form>
</td>
</tr>
</table>
</div>
<? @include("footer.php"); ?>
Return current item: Absolut Engine