
<div id="bought_history" class="colbox">
  <a name="bought_history"></a>
  <h3>购买历史</h3>
  <div class="colboxcontent">
    <?php if ($this->_var['bought_history']): ?>
    <table width="100%" cellspacing="0">
      <tr>
        <th class="first">买家</th>
        <th>商品名称</th>
        <th>商品价格</th>
        <th>购买数量</th>
        <th>购买时间</th>
        <th class="last">状态</th>
      </tr>
      <?php $_from = $this->_var['bought_history']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'history');if (count($_from)):
    foreach ($_from AS $this->_var['history']):
?>
      <tr>
        <td class="first"><?php if ($this->_var['history']['is_anonymous']): ?>匿名<?php else: ?><?php if ($this->_var['history']['user_name']): ?><?php echo $this->_var['history']['user_name']; ?><?php else: ?>游客<?php endif; ?><?php endif; ?></td>
        <td><?php echo htmlspecialchars($this->_var['history']['goods_name']); ?></td>
        <td><?php echo $this->_var['history']['goods_price']; ?></td>
        <td><?php echo $this->_var['history']['goods_number']; ?></td>
        <td><?php echo local_date("Y-m-d",$this->_var['history']['add_time']); ?></td>
        <td class="last">成交</td>
      </tr>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </table>
    <?php else: ?>
    <p class="not_find">还没有人购买过这个商品</p>
    <?php endif; ?>
  </div>
  <?php if ($this->_var['bought_history']): ?>
  <?php else: ?>
  <div class="colbtm"></div>
  <?php endif; ?>
</div>