<div id="search_form" class="store">
  <form action="index.php" method="get">
    <select name="app">
      <option value="search">搜索商品</option>
      <option value="storelist" <?php if ($_GET['app'] == "storelist"): ?>selected="selected"<?php endif; ?>>搜索店铺</option>
    </select>
    <input name="keywords" type="text" id="keyword" class="sinput" value="<?php echo $_GET['keywords']; ?>" />
    <select name="cate_id" id="searchcategory">
      <option value="0">所有分类</option>
        <?php echo $this->html_options(array('options'=>$this->_var['category'],'selected'=>$_GET['cate_id'])); ?>
    </select>
    <input type="image" src="themes/mall/skin/default/images/btn_search.gif" />
  </form>
  <span id="addcart"><?php 
$k = array (
  'name' => 'nocache',
  '_template' => '<a href=\\"<?php echo $this->url_rewrite(array(\'app\'=>\'shopping\',\'act\'=>\'shopping_cart\')); ?>\\"><?php echo sprintf(\'购物车有 <em id="cart_goods_count">%d</em> 件商品\', $this->_var[\'cart_goods_count\']); ?></a>
  <input type=\\"hidden\\" value=\\"<?php echo $this->_var[\'cart_goods_count\']; ?>\\" id=\\"hidden_cart_goods_count\\" />
  <input type=\\"hidden\\" value=\\"<?php echo $this->_var[\'cart_goods_amount\']; ?>\\" id=\\"hidden_cart_goods_amount\\" />',
);
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash;
?></span>
</div>
