<table class="widefat" cellspacing="0" style="width:700px">
  <thead>
    <tr>
      <th>商品图片</th>
      <th>商品标题</th>
      <th>商品价格</th>
      <th>推广佣金</th>
      <th>累计成交量</th>
      <th>操作</th>
    </tr>
  </thead>
  <tfoot>
  </tfoot>
  <tbody class="trtoggle">

    <?php
		foreach($query as $row){
	  ?>
    <tr>
      <td><a target="_blank" title="查看该商品" href="<?php echo $row['click_url'];?>"><img src="<?php echo $row['pic_url'];?>" width="100" height="80" /></a></td>
      <td><?php echo $row['title'];?></td>
      <td><?php echo format_curren($row['price']);?></td>
      <td><?php echo format_curren($row['commission']);?></td>
      <td><?php echo $row['commission_num'];?></td>
      <td><a style="text-decoration:underline" href="javascript:get_url('<?php echo $row['click_url'];?>')">我要推广</a></td>
    </tr>
    <?php
	  }
	  ?>
      <tr>
      <td height="30" colspan="6" align="center" style="text-align:center"><?php echo $paginate;?></td>
    </tr>
  </tbody>
</table>
