<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: 			*/
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004-2010 ARMIA INC                                    |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts VistaCart                     |
// +----------------------------------------------------------------------+
// | Authors: Jipson<jipson.thomas@armiasystems.com>             		  |
// +----------------------------------------------------------------------+
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $title_for_layout?></title>
<?php
if(isset($style)){
	echo $html->css($style); 
}else{
	echo $html->css("sony"); 
}
?> 
<link rel="icon" href="<?php echo $this->webroot . 'favicon.ico'; ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo $this->webroot . 'favicon.ico'; ?>" type="image/x-icon" />
<?php echo $scripts_for_layout ?> 
<?php if (isset($meta_description) && !empty($meta_description)) { ?>
    <meta name="description" content="<?php echo $meta_description; ?>" />
<?php } ?>
<?php if (isset($meta_keywords) && !empty($meta_keywords)) { ?>
    <meta name="keywords" content="<?php echo $meta_keywords; ?>" />
<?php } ?>
<script language="javascript" type="text/javascript">
function sub(){
	document.src.submit();
}
</script>

<?php
	echo $javascript->link('multilevelmenu.js');		
?>
</head>
<body>
<center>

	<div id="layout">
	
	
	
	  <div id="header">
		<!--header area start -->
				
				<div align="left" id="logo"><span class="logo"><a href="<?php echo $html->url('/index.php');?>"><?php echo $html->image('/img/SiteLogo_disp.gif', array('width' => 48, 'height' => 46, 'border' => 0));?><?php if(isset($cnfg["site_name"])){ echo $cnfg["site_name"]; }?></a></span></div>
				<div align="right">
				  
				 <div align="right">
                    <!--login area start -->
                    <div align="left"><br />
                      <br />
					   <?php if($session->check('Userlog') <> false && isset($sus["uname"]))
				{ ?>
				 <div id="username">You are logged in as <?php echo $sus["uname"]; ?> 
					  </div>
                    <?php } ?>
                    </div>
                    <!--login area end -->
</div></div><!--header area end -->
	<div class="clear"></div>
</div>
<div align="right" id="links_container"> 
      </div>
	  <div id="mainbody">
		  
		

		<div align="left" id="banner_container1">
		<!--banner area start -->
				
				<div align="left" id="banner1"></div>
				
				<div align="left" >
  		          <!--banner area end -->
                </div>
		</div>
		<div align="left" class="main_body">
		<!--mainbody area start -->
		
				<div align="left" id="body_left_area">
				<!--body left area start -->
								
				<div align="left" id="categories">
				
				<!--categories area start -->
				
						<div align="center" class="subheading">
						  <div align="left">Help Menu</div>
						</div>
						<div align="left" id="" class="sidebarmenu">											
						<ul  id="sidebarmenu1">
						<?php
						foreach($help_cat as $key => $val)
						{?>
						<li><a href="<?php echo $html->url('/Helps/adminhelp/'.$key);?>"><?php echo $val;?></a>
						<?php } ?>												
						</ul>
					</div>
				<!--categories area end -->
				</div>
				
				<!--body left area end -->
		  </div>
				<div class="bodyright" >
				<?php echo $content_for_layout ?> 
				</div>
		
		<div align="left" class="float_clear"><?php echo $html->image('/img/clear.gif', array('width' => 1, 'height' => 1));?></div>		
	  </div>
	    <div align="left" class="copyright_area">
		<!--copyright area start -->
		
				<div align="left" id="copyright_lft">
				
				</div>
				<div align="right" id="copyright_rgt">Powered by&nbsp;<a href="http://www.iScripts.com/vistacart" target="_blank">iScripts Vistacart</a>. A premium product from <a href="http://www.iScripts.com" target="_blank">iScripts.com</a> </div>
		
		        <!--copyright area start -->
			<div class="clear"></div>
		</div>
	  </div>
	</div>	
</center>
</body>
</html>