<div id="groupbuy_list" class="colbox sortlist">
  <h3><span>团购列表</span></h3>
  <div id="displaymode">
    <p class="quickchanger"><a href="<?php echo $this->_var['url_extra']; ?>&amp;page=<?php echo $this->_var['groupbuy_list']['info']['prev_page']; ?>"><img src="themes/mall/skin/default/images/btn_page_prev.gif" alt="prev" /></a> <?php echo $this->_var['groupbuy_list']['info']['curr_page']; ?>/<?php echo $this->_var['groupbuy_list']['info']['page_count']; ?> <a href="<?php echo $this->_var['url_extra']; ?>&amp;page=<?php echo $this->_var['groupbuy_list']['info']['next_page']; ?>"><img src="themes/mall/skin/default/images/btn_page_next_act.gif" alt="" /></a></p>
  </div>
  <div class="colboxcontent itemgrid">
    <?php $_from = $this->_var['groupbuy_list']['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'groupbuy');if (count($_from)):
    foreach ($_from AS $this->_var['groupbuy']):
?>
    <dl class="item">
      <dt class="pic"><a href="<?php echo $this->url_rewrite(array('app'=>'groupbuy','act'=>'detail','id'=>$this->_var['groupbuy']['act_id'])); ?>"><img src="<?php echo $this->image(array('file'=>$this->_var['groupbuy']['default_image'],'width'=>'120','height'=>'120')); ?>" alt="<?php echo htmlspecialchars($this->_var['groupbuy']['goods_name']); ?>" /></a></dt>
      <dd class="name"><a href="<?php echo $this->url_rewrite(array('app'=>'groupbuy','act'=>'detail','id'=>$this->_var['groupbuy']['act_id'])); ?>" 
title="<?php echo htmlspecialchars($this->_var['groupbuy']['goods_name']); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['groupbuy']['goods_name']); ?></a></dd>

        <dd class="price"><?php echo price_format($this->_var['groupbuy']['ext']['price']); ?></dd>
        <?php if ($this->_var['groupbuy']['status'] != 'end'): ?>
        <dd class="date">结束时间: <?php echo local_date("Y-m-d",$this->_var['groupbuy']['end_time']); ?></dd>
        <?php endif; ?>
        <dd class="status">状态: <?php if ($this->_var['groupbuy']['status'] == 'active'): ?>团购正在进行中<?php endif; ?><?php if ($this->_var['groupbuy']['status'] == 'end'): ?><span style="color:red">团购已经结束</span><?php endif; ?></dd>
    </dl>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </div>
  <div class="pagechanger">
      <?php echo $this->html_page_links(array('from'=>$this->_var['groupbuy_list']['info'],'url'=>$this->_var['url_format'])); ?>
  </div>
  <div class="colbtm"></div>
</div>