<?php if ($this->_var['latest_sold'] || $this->_var['editing']): ?>
<div id="latest_sold" class="colbox">
  <h3>×īŠĀ³É½»</h3>
  <div class="colboxcontent">
    <ul>
      <?php $_from = $this->_var['latest_sold']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'lsgoods');$this->_foreach['latestsold'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['latestsold']['total'] > 0):
    foreach ($_from AS $this->_var['lsgoods']):
        $this->_foreach['latestsold']['iteration']++;
?>
      <?php if ($this->_foreach['latestsold']['iteration'] <= 3): ?>
      <li>
        <p><a href="<?php echo $this->url_rewrite(array('app'=>'goods','id'=>$this->_var['lsgoods']['goods_id'])); ?>"><?php echo htmlspecialchars($this->_var['lsgoods']['goods_name']); ?></a></p>
        <span class="price"><?php echo $this->_var['lsgoods']['goods_price']; ?></span></li>
        <?php endif; ?>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </ul>
  </div>
  <div class="colbtm"></div>
</div>
<?php endif; ?>