<?php if ($this->_var['similar_goods'] || $this->_var['editing']): ?>
<div id="goods_similar" class="colbox other_goods">
  <h3>ÏàËÆÉÌÆ·</h3>
  <div class="colboxcontent">
    <ul>
      <?php $_from = $this->_var['similar_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'sgoods');if (count($_from)):
    foreach ($_from AS $this->_var['sgoods']):
?>
      <li>
        <a href="<?php echo $this->url_rewrite(array('app'=>'goods','id'=>$this->_var['sgoods']['goods_id'])); ?>"><img src="<?php echo $this->image(array('file'=>$this->_var['sgoods']['default_image'],'width'=>'100','height'=>'100')); ?>" alt="<?php echo $this->_var['sgoods']['orig_name']; ?>" class="thumb" /></a>
        <p class="name"><a href="<?php echo $this->url_rewrite(array('app'=>'goods','id'=>$this->_var['sgoods']['goods_id'])); ?>"><?php echo htmlspecialchars($this->_var['sgoods']['goods_name']); ?></a></p>
        <p class="price"><?php echo price_format($this->_var['sgoods']['store_price']); ?></p>
      </li>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </ul>
  </div>
  <div class="colbtm"></div>
</div>
<?php endif; ?>
