<?php if ($this->_var['recommended_store'] || $this->_var['editing']): ?>
<div id="recommended_store" class="colbox">
  <h3><em class="more"><a href="<?php echo $this->url_rewrite(array('app'=>'storelist')); ?>">所有店铺</a></em>推荐店铺</h3>
  <div class="colboxcontent">
    <?php $_from = $this->_var['recommended_store']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'store');$this->_foreach['store'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['store']['total'] > 0):
    foreach ($_from AS $this->_var['store']):
        $this->_foreach['store']['iteration']++;
?>
    <ul<?php if (($this->_foreach['store']['iteration'] == $this->_foreach['store']['total'])): ?> class="last"<?php endif; ?>>
      <li>
        <?php echo $this->fetch('themes/mall/resource/avatar.html'); ?>
        <div class="infolist">
          <p><a href="<?php echo $this->url_rewrite(array('app'=>'store','store_id'=>$this->_var['store']['store_id'])); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['store']['store_name']); ?></a></p>
          <p>店主: <?php echo htmlspecialchars($this->_var['store']['owner_name']); ?></p>
          <p>商品数: <?php echo $this->_var['store']['goods_count']; ?></p>
        </div>
      </li>
    </ul>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </div>
  <div class="colbtm"></div>
</div>
<?php endif; ?>