Location: PHPKode > scripts > EncapsGallery > encapsgallery/admin/catalog_head.html
<?php 
$html["links"] = array();
$html["links"][] = array('title'=>'Catalog','items'=>array(
	array("title"=>"Categories","href"=>"catalog_categs.php"),
	array("title"=>"Items","href"=>"catalog_items.php"),
	array("title"=>"FTP Uploads","href"=>"catalog_tools.php")
	));
$html["links"][] = array('title'=>'Config',"href"=>"catalog_cfg.php");
if($config["shopcart_is_enabled"]=="1")
	$html["links"][] = array('title'=>'Shopcart',"href"=>"shopcart.php");
$html["links"][] = array("title"=>"Log out","href"=>'?action=logout','page'=>'auth');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Encaps Admin</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Expires" content="Mon, 26 Jul 1997 05:00:00 GMT" >
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Cache-Control" content="no-cache">
<link href="admin.css" type="text/css" rel="stylesheet">
</head>
<html>
<body bgcolor="#ADADAD">
<div align="center">
<table  border="0" cellpadding="0" cellspacing="0" style="vertical-align:top; height:100%; "> 	 
<tr> 	
	<td colspan="2" style="background:url(img/grad.gif) repeat-y; background-color:#FFFFFF; color:#FFFFFF; font-weight:bold; padding:10px;border:1px solid #10438F; text-align:left"><a href="index.php" style="color:white;text-decoration:none">Encaps Admin</a></td>
</tr>
<tr> 	
	<td valign="top" style="border-left:1px solid #10438F;border-right:1px solid #10438F;background:url(img/bg_tb.gif) repeat-x top; background-color:#FFFFFF; width:120px">
<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
<?php 
foreach ($html["links"] as $item) {
	$className = (!strstr($_SERVER["SCRIPT_NAME"], @$item['href']) )?"_wb": "_bw";
	?>
		<tr><td class="navi_td<?php echo $className?>">
			<?php if(!isset($item["items"])){?>
				<a href="<?php echo $item["href"]?>" class="navi_a<?php echo $className?>"><?php echo $item["title"]?></a>
			<?php } else { ?>
				<span class="navi_a_wb"><?php echo $item["title"]?></span>
			<?php } ?>
			</td></tr>
		<?php if(isset($item["items"])) foreach ($item["items"] as $subitem) {
		if(!strstr($_SERVER["SCRIPT_NAME"], @$subitem['href']) )$className = "_wb";else $className = "_bw";
		?>
			<tr><td class="navi_td<?php echo $className?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo $subitem["href"]?>" class="navi_a<?php echo $className?>"><?php echo $subitem["title"]?></a></td></tr>
		<?php } ?> 
<?php } ?> 
	</table>	
	</td> 
	<td  style="border: 1px #10438F solid; background-color:#FFFFFF; padding:10px; text-align:left; vertical-align:top; width:650px">
Return current item: EncapsGallery