Location: PHPKode > projects > Absolut Engine > absolut-engine-33870/admin/managerimage.php
<?
@include("coreclass.php");
$ae=new CEngine();
$ae->EngineInitialize();
$ae->RequestVariables();
$ae->UserVerifySession();
if ($ae->command=="edit")
   {
   $ae->DBQuery("SELECT * FROM ".$ae->table[1]." WHERE ID=".$ae->imagesetID);
   $ae->DBGetRow();
   $description=$ae->access["description"];
   for ($i=0;$i<=9;$i++)
       {
       $file[$i]=$ae->access["file".($i+1)];
       $thumbnail[$i]=$ae->GetThumbnail($file[$i]);
       $filedescription[$i]=$ae->access["filedescription".($i+1)];
       }
   }
@include("header.php");
?>
<div id="content">
<table cellspacing="0" class="form">
<tr>
<td>
<form method="post" action="modify.php?command=10" id="fid">
<p>
<strong><? echo $ae->textbasic[74] ?></strong><br />
<select name="imagesetID[]" size="10" multiple>
<?
if ($ae->currentuserposition>2) @$ae->DBQuery("SELECT * FROM ".$ae->table[1]." WHERE authorID='".$ae->currentuserID."' ORDER BY description");
else @$ae->DBQuery("SELECT * FROM ".$ae->table[1]." 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=11"; else echo "command=12"; ?>" enctype="multipart/form-data">
<p>
<strong><? echo $ae->textbasic[77] ?></strong><br />
<input type="text" name="description" size="50" maxlength="255" value="<? echo $description ?>">
<?
for ($i=0;$i<=9;$i++):
?>
<br />
<strong>
<?
echo '#',$i+1,' ',$ae->textbasic[75];
if ($file[$i])
{
echo ' <a href="',$ae->pathimages,$file[$i],'"><img src="',$ae->pathimages,$thumbnail[$i],'" alt="',$filedescription[$i],'"></a> ';
echo ' <input type="checkbox" name="delete[',$i,']" value="1"> ',$ae->textbasic[110],' ',$file[$i];
}
?></strong><br />
<? echo $ae->textbasic[76] ?>
<input type="text" name="filedescription[]" size="30" maxlength="255" value="<? echo $filedescription[$i] ?>" class="description">
<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->sizemaximages ?>">
<input type="hidden" name="imagesetID" value="<? echo $ae->imagesetID ?>">
<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