<div id="page_header">
  <h2 id="logo"><a href="./"><img src="data/common/mall_logo.gif" alt="" /></a></h2>
  <ul id="topnav">
    <?php 
$k = array (
  'name' => 'nocache',
  '_template' => '
    <li class=\\"memberinfo\\">
      <span>您好！<?php echo $this->_var[\'visitor\']; ?></span>
      <?php if ($_SESSION[\'user_id\']): ?>
      <a href=\\"index.php?app=member&amp;act=logout\\">[退出]</a>
      <?php else: ?>
      <a href=\\"index.php?app=member&amp;act=login\\">[会员登录]</a>
      <a href=\\"index.php?app=member&amp;act=register\\">[注册]</a>
      <?php endif; ?>
    </li>
    ',
);
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash;
?>
    <li class="topnav_member"><span><a href="<?php echo $this->url_rewrite(array('app'=>'member')); ?>">我的帐户</a></span></li>
    <?php 
$k = array (
  'name' => 'nocache',
  '_template' => '<?php if (! $_SESSION[\'user_id\'] || $_SESSION[\'admin_store\'] != 0): ?>
    <li class=\\"topnav_store\\"><span>
      <?php if ($_SESSION[\'user_id\'] > 0 && $_SESSION[\'admin_store\'] > 0): ?>
      <a href=\\"./?<?php echo $_SESSION[\'admin_store\']; ?>\\">我的店铺</a>
      <a href=\\"./admin.php\\" target=\\"_blank\\">管理店铺</a>
      <?php else: ?>
      <?php if ($this->_var[\'mall_storeapply\']): ?>
      <a href=\\"index.php?app=storeapply\\">我要开店</a>
      <?php endif; ?>
      <?php endif; ?>
    </span></li>
    <?php endif; ?>',
);
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash;
?>
    <li class="topnav_help"><span><a href="<?php echo $this->_var['help_center_url']; ?>">帮助中心</a></span></li>
    <?php 
$k = array (
  'name' => 'nocache',
  '_template' => '
    <?php if ($_SESSION[\'user_id\']): ?>
    <li class=\\"topnav_pm\\"><span><a href=\\"#\\" id=\\"pm_button\\" <?php if ($this->_var[\'check_new_pm\']): ?>class=\\"check_new_pm\\"<?php endif; ?>>站内短信</a></span></li>
    <?php endif; ?>
    ',
);
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash;
?>
    <?php $_from = $this->_var['top_nav']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'nav');if (count($_from)):
    foreach ($_from AS $this->_var['nav']):
?>
    <li><span><a href="<?php echo $this->_var['nav']['nav_url']; ?>"<?php if ($this->_var['nav']['open_new']): ?> target="_blank"<?php endif; ?>><?php echo $this->_var['nav']['nav_name']; ?></a></span></li>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </ul>
  <div id="navigation">
    <ul>
      <?php $_from = $this->_var['nav_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'nav');$this->_foreach['navlist'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['navlist']['total'] > 0):
    foreach ($_from AS $this->_var['nav']):
        $this->_foreach['navlist']['iteration']++;
?>
      <li class="<?php if ($this->_var['nav']['selected']): ?>selected<?php endif; ?><?php if (($this->_foreach['navlist']['iteration'] <= 1)): ?> first<?php endif; ?><?php if (($this->_foreach['navlist']['iteration'] == $this->_foreach['navlist']['total'])): ?> last<?php endif; ?>">
        <span>
          <a href="<?php echo $this->_var['nav']['href']; ?>"<?php if ($this->_var['nav']['open_new']): ?> target="_blank"<?php endif; ?>><?php echo $this->_var['nav']['text']; ?></a>
        </span>
      </li>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </ul>
  </div>
</div>
