<!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" id="">
<head>
	<meta http-equiv=content-type content="text/html; charset=UTF-8">
	<title><?=G('title')?> - 佳蓝智能系列</title>
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<link rel="shortcut icon" href="favicon.ico" />
	<link rel="stylesheet" href="<?=theme('images/style.css')?>" type="text/css" media="screen" charset="utf-8" />
  <script type="text/javascript" src="js/validator.js"></script>
  <!--[if IE 6]>
  <script type="text/javascript" src="js/DD_belatedPNG.js"></script>
  <script type="text/javascript">DD_belatedPNG.fix('*'); </script> 
  <![endif]-->
  <script type="text/javascript" src="js/jquery.js"></script>
	</head>
<body>
<div id="header">
	<div id="top">
    <div id="logo"><a href="<?=G('homepage')?>"><img src="<?=theme('images/logo.png')?>" /></a></div>
    <div id="banner"></div>
    <div id="links"></div>
  </div>
  <div class="navL">
    <div class="navR">
      <div class="navC">
        <ul class="navList">
          <?$Menu=G('Menu');
          foreach($Menu as $K=>$V){
          $s=$K==$a ? ' class="current"':''?>
            <li<?=$s?>><a href="?a=<?=$K?>" target="<?=$V[1]?>"><?=$V[0]?></a></li>
            <?if($V!=end($Menu))echo'<li class="bar"></li>';?>
          <?}?>
        </ul>
        <ul class="logins">
        <?if(G('uid')){?>
          <li><a href="?a=account&b=logout">退出</a></li>
        <?}?>
        </ul>
        <div class="clear"></div>
      </div>
    </div>
  </div>
</div>
<?if($session_notice=session_get('notice',true)){?>
<div class="sysmsgw" id="sysmsg-success"><div class="sysmsg"><p><?=$session_notice?></p><span class="close">关闭</span></div></div> 
<?}?>
<?if($session_notice=session_get('error',true)){?>
<div class="sysmsgw" id="sysmsg-error"><div class="sysmsg"><p><?=$session_notice?></p><span class="close">关闭</span></div></div> 
<?}?>
<div id="pageMain" class="block">
  <div class="block-top"></div>
  <div class="block-content">
<?$menu=G('menu');
if($menu && is_array($menu) && count($menu)>1){?>
	<div class="dashboard" id="dashboard">
		<ul>
		<?foreach($menu as $k=>$v){if(!$k)continue;?>
		<li<?if($k==$b)echo' class="current"'?>><a href="?a=<?=G('a')?>&b=<?=$k?><?=$v[2] ? '&c='.$v[2] :''?>" target="<?=$v[1]?>"><?=$v[0]?></a><span></span></li>
		<li class="bar"></li>
		<?}?>
		</ul>
	</div>
<?}else{?>
	<div class="lineA"></div>
<?}?>