Location: PHPKode > scripts > Encaps Gallery > encaps-2.3.22s/catalog_item.html
<h1><?php echo $html['item']["title"]?></h1>
<table border=0>
 <tr> 
    <td>

<table width=100%>
<tr><td>
<a href="catalog_categs.php">Catalog</a><?php 
$categs_parents = $html["categs_parents"];
for($i=count($categs_parents)-1;$i>=0;$i--)
{
	$_category = $categs_parents[$i];
	?> &raquo; <a href="?categ_id=<?php echo $_category["id"]?>"><?php echo $_category["title"]?></a><?php	
}
?>
 &raquo; <?php echo $html['item']["title"]?>
</td>
<td align=right>
<?php 
		$back = "[&laquo;prev]";
		$forw = "[next&raquo;]";
		if($html["id"]["prev"]!=""){
			?><a href="?id=<?php echo $html["id"]["prev"]?>"><?php echo $back?></a>
			<?php  }?> 
		<?php if($html["id"]["next"]!=""){
			?><a href="?id=<?php echo $html["id"]["next"]?>"><?php echo $forw?></a>
			<?php }?>
</td></tr>
</table>

</td>
  </tr>
 <tr> 
    <td  align="left">
		
	<?php 
$ext = strtolower(strrchr($html["item"]["file"],'.'));
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"]["file_width"])?"width=\"".$html["item"]["file_width"]."\"":""?> <?php echo ($html["item"]["file_height"])?"height=\"".$html["item"]["file_height"]."\"":""?> >
 <PARAM NAME=movie VALUE="./rwx/<?php echo ($html["item"]["file"])?>"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> 
 <EMBED src="./rwx/<?php echo ($html["item"]["file"])?>" quality=high bgcolor="#FFFFFF" <?php echo ($html["item"]["file_width"])?"width=\"".$html["item"]["file_width"]."\"":""?> <?php echo ($html["item"]["file_height"])?"height=\"".$html["item"]["file_height"]."\"":""?> 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"]["file_width"])?"width=\"".$html["item"]["file_width"]."\"":""?> <?php echo ($html["item"]["file_height"])?"height=\"".$html["item"]["file_height"]."\"":""?> 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/<?php echo $html["cat"]["dst_dir"]."/".$html["item"]["file"]?>">
<embed src="./rwx/<?php echo $html["item"]["file"]?>" <?php echo ($html["item"]["file_width"])?"width=\"".$html["item"]["file_width"]."\"":""?> <?php echo ($html["item"]["file_height"])?"height=\"".$html["item"]["file_height"]."\"":""?> 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"){?>

<?php if($config["watermark_is_enabled"]){?>
<IMG src="core/watermark.php?id=<?php echo $html["item"]["id"]?>" 
<?php } else {?>
<IMG src="./rwx/<?php echo $html["item"]["file"]?>" 
<?php } ?>

<?php echo ($html["item"]["file_width"])?"width=\"".$html["item"]["file_width"]."\"":""?> <?php echo ($html["item"]["file_height"])?"height=\"".$html["item"]["file_height"]."\"":""?> alt="<?php echo $html['item']["title"]?>" >
	<?php  } else { ?>
	<a href="./rwx/<?php echo $html["item"]["file"]?>"><?php echo $html["item"]["file"]?></a>
	<?php  } ?>
<div class="description"><?php echo $html['item']["description"]?></div>
</td>
  </tr>
<tr><td>
<?php if($config["shopcart_is_enabled"]){?>
<div class="price"><strong>$<?php echo sprintf("%.2f",$html["item"]['price'])?></strong>
<a href="shopcart.php?action=add&amp;item_id=<?php echo $html["item"]['id']?>">[Add to Cart]</a></div>
<?php } ?>
</td></tr>  
</TABLE>
Return current item: Encaps Gallery