Location: PHPKode > scripts > EncapsGallery > encapsgallery/admin/html/base_item.html
<form enctype="multipart/form-data" action="" method="post" >
<input type="hidden" name="MAX_FILE_SIZE" value="8000000">
<table  border="0" class="block">  

<tr><td colspan="2" style="text-align: center ">
<?php if($html["id"]["prev"]!=""){
	?><a href="?action=show_custom&amp;id=<?php echo $html["id"]["prev"]?>&amp;cat=<?php echo $html['cat']['id']?>">&laquo;prev</a>
	<?php }else{
		?>&laquo;prev<?php }?>
|
<a href="?cat=<?php echo $html['cat']['id']?>&amp;offset=<?php echo $html['offset']?>">thumbs</a>
|
<?php if($html["id"]["next"]!=""){
	?><a href="?action=show_custom&amp;id=<?php echo $html["id"]["next"]?>&amp;cat=<?php echo $html['cat']['id']?>">next&raquo;</a>
	<?php }else{
		?>next&raquo;<?php }?>

</td></tr>

<tr><th colspan="2"><?php echo $html["item"]["title"]?></th></tr>

<tr>
<td>Thumbnail:</td>
<td>
<IMG src="../rwx_gallery/thumbs/<?php echo $html["item"]["filename_thumb"]?>" alt="thumb">
<br>
<input type="radio" name="thumb_static" id="thumb_static" checked value="Y" onClick="showhide_thumb()">static (load from another file)
<input type="file" name="filename_thumb" id="filename_thumb"  >
<br>
<input type="radio" name="thumb_static" value="N" id="thumb_auto" onClick="showhide_thumb()">auto
(<?php 
if( !function_exists('imagepng') && !function_exists('imagejpg') && !function_exists('imagegif'))
	echo "disabled: no GD library image formats available";
else 
	{
		echo "only for ";
		if(function_exists('imagejpeg'))echo ".jpg/.jpeg";
		if(function_exists('imagepng'))echo " .png";
		if(function_exists('imagegif'))echo " .gif";
 		echo " files";
	}
?>)
<script type="text/javascript">
function showhide_thumb()
{
	if(document.getElementById("thumb_static").checked)
		document.getElementById("filename_thumb").style.visibility = "visible";
	else
		document.getElementById("filename_thumb").style.visibility = "hidden";
}
showhide_thumb();
</script>
</td>
</tr>

<tr>
<td >File:</td>
<td >
<?php 
$ext = strtolower(strrchr($html["item"]["filename_normal"],'.'));
if($ext == ".swf"){?>

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
<?php echo ($html["item"]["size_w"])?"width=\"".$html["item"]["size_w"]."\"":""?> <?php echo ($html["item"]["size_h"])?"height=\"".$html["item"]["size_h"]."\"":""?> >
 <PARAM NAME=movie VALUE="../rwx_gallery/<?php echo ($html["item"]["filename_normal"])?>"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> 
 <EMBED src="../rwx_gallery/<?php echo ($html["item"]["filename_normal"])?>" quality=high bgcolor="#FFFFFF" <?php echo ($html["item"]["size_w"])?"width=\"".$html["item"]["size_w"]."\"":""?> <?php echo ($html["item"]["size_h"])?"height=\"".$html["item"]["size_h"]."\"":""?> TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
<?php }else if($ext == ".mov" || $ext == ".pano"){?>
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" <?php echo ($html["item"]["size_w"])?"width=\"".$html["item"]["size_w"]."\"":""?> <?php echo ($html["item"]["size_h"])?"height=\"".$html["item"]["size_h"]."\"":""?> codebase="http://www.apple.com/qtactivex/qtplugin.cab" id="qtvrObject">
<param name="autoplay" value="true">
<param name="controller" value="true">
<param name="pluginspage" value="http://www.apple.com/quicktime/download/indext.html">
<param name="target" value="myself">
<param name="type" value="video/quicktime">
<param name="src" value="../rwx_gallery/<?php echo $html["item"]["filename_normal"]?>">
<embed src="../rwx_gallery/<?php echo $html["item"]["filename_normal"]?>" <?php echo ($html["item"]["size_w"])?"width=\"".$html["item"]["size_w"]."\"":""?> <?php echo ($html["item"]["size_h"])?"height=\"".$html["item"]["size_h"]."\"":""?> autoplay="true" controller="true" border="0" pluginspage="http://www.apple.com/quicktime/download/indext.html" target="myself" type="video/quicktime"  name="qtvrObject" EnableJavaSript="true" ></embed>
</object>
<?php } else if($ext == ".jpg" || $ext == ".jpeg" || $ext == ".png" || $ext == ".gif"){?>
<IMG src="../rwx_gallery/<?php echo $html["item"]["filename_normal"]?>" <?php echo ($html["item"]["size_w"])?"width=\"".$html["item"]["size_w"]."\"":""?> <?php echo ($html["item"]["size_h"])?"height=\"".$html["item"]["size_h"]."\"":""?> alt="file">
<?php  } else { ?>
<a href="../rwx_gallery/<?php echo $html["item"]["filename_normal"]?>">../rwx_gallery/<?php echo $html["item"]["filename_normal"]?></a>
<?php  } ?>
<br>
<INPUT name="filename_normal" type="file" onClick="document.getElementById('thumb_auto').checked=true;showhide_thumb();">
</td></tr>

<tr>
	<td >Image width:</td>
	<td ><input type="text" size="3" name="size_w" value="<?php echo $html["item"]["size_w"]?>"> (0 - default width) </td>
</tr>

<tr>
	<td >Image height:</td>
	<td ><input type="text" size="3" name="size_h" value="<?php echo $html["item"]["size_h"]?>"> (0 - default height) </td>
</tr>

<tr>
	<td >Description:</td>
	<td ><textarea name="description" cols="75" rows="25" ><?php echo $html["item"]["description"]?></textarea></td>
</tr>

<tr><th colspan="2" ><INPUT type="submit" value="Submit"></th></tr>
</TABLE>
<INPUT type="hidden" name="action" value="gallery_update_custom">
<INPUT type="hidden" name="id" value="<?php echo $html["id"]["curr"]?>">
<INPUT type="hidden" name="cat" value="<?php echo $html["cat"]["id"]?>">
<INPUT type="hidden" name="page" value="foto">
</form>
Return current item: EncapsGallery