<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=<?= @$this->aHeaderVar['catalog_charset'] ?>" />
		<title><?= $this->config->item('site_title'); ?></title>
		<base href="<?= base_url() ?>" />
		<link href="<?= $this->config->item('design_css_url') ?>admin.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="<?= base_url() ?>views/_js/_pngfix.js"></script>
		<script type="text/javascript" src="<?= base_url() ?>views/_js/_scripts.js"></script>
		<script type="text/javascript" src="<?= $this->config->item('design_js_url') ?>script.js"></script>
		<!-- <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> -->
	</head>
<body>
	<div id="main"><!-- [ Start ] Main Block -->
		<div id="header"><!-- [ start ] header block -->
			<div id="logoText">
				<?= $this->config->item('site_title'); ?>
			</div>
			<div id="admin">
				hi, <strong><?= $this->aSystemVar['current_user']['Name'] ?></strong>
				<?= anchor('/user/logout', 'sign out') ?>
			</div>
			<div id="topMenu">
				<? foreach( $this->config->item('admin', 'main_menu') as $aMenu ): ?>
					<? if($aMenu['url'] == $this->uri->segment(1) . '/' . $this->uri->segment(2)): ?>
						<?= anchor($aMenu['url'], $this->lang->line( $aMenu['lang_key'] ), ' class="current" ' ) ?>
					<? else: ?>
						<?= anchor($aMenu['url'], $this->lang->line( $aMenu['lang_key'] ) ) ?>
					<? endif; ?>
				<? endforeach; ?>
			</div>
			<div class="clearBoth"></div>			
		</div><!-- [ end ] header block -->
		<div class="underHeader">
			<div class="clearBoth"></div>
			<? if( !empty( $this->aTemplateVar['submenu'] ) ): ?>
			<div id="subMenu">
				<? foreach($this->aTemplateVar['submenu'] as $aSubM ): ?>
					<? if( $aSubM['url'] == $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/' . $this->uri->segment(3) ): ?>
						<?= anchor($aSubM['url'], $this->lang->line( $aSubM['lang_key'] ), ' class="current" ' ) ?>
					<? else: ?>
						<?= anchor($aSubM['url'], $this->lang->line( $aSubM['lang_key'] ) ) ?>
					<? endif; ?>
				<? endforeach; ?>
			</div>
			<? endif; ?>
		</div>
		<div id="content"><!-- [ start ] content block -->

