人人商城

goods.html 3.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {template '_header'}
  2. <div class="page-heading"> <h2>商品销售明细</h2> <span>查询商品销售量和销售额明细 总数: <span style='color:red'>{$total}</span></div>
  3. <form action="./index.php" method="get" class="form-horizontal">
  4. <input type="hidden" name="c" value="site" />
  5. <input type="hidden" name="a" value="entry" />
  6. <input type="hidden" name="m" value="ewei_shopv2" />
  7. <input type="hidden" name="do" value="web" />
  8. <input type="hidden" name="r" value="statistics.goods" />
  9. <div class="page-toolbar row m-b-sm m-t-sm">
  10. <div class="col-sm-5">
  11. <div class="btn-group btn-group-sm" style='float:left'>
  12. <button class="btn btn-default btn-sm" type="button" data-toggle='refresh'><i class='fa fa-refresh'></i></button>
  13. </div>
  14. {php echo tpl_daterange('datetime', array('sm'=>true,'placeholder'=>'下单时间'),true);}
  15. </div>
  16. <div class="col-sm-6 pull-right">
  17. <select name='orderby' class='form-control input-sm select-md' style="width:120px;" >
  18. <option value='' {if $_GPC['orderby']==''}selected{/if}>排序</option>
  19. <option value='0' {if $_GPC['orderby']=='0'}selected{/if}>按销售额</option>
  20. <option value='1' {if $_GPC['orderby']=='1'}selected{/if}>按销售量</option>
  21. </select>
  22. <div class="input-group">
  23. <input type="text" class="form-control input-sm" name="title" value="{$_GPC['title']}" placeholder="商品名称"/>
  24. <span class="input-group-btn">
  25. <button class="btn btn-sm btn-primary btn-sm" type="submit"> 搜索</button>
  26. {ifp 'statistics.goods.export'}
  27. <button type="submit" name="export" value="1" class="btn btn-success btn-sm">导出 Excel</button>
  28. {/if}
  29. </span>
  30. </div>
  31. </div>
  32. </div>
  33. </form>
  34. <table class="table table-hover">
  35. <thead class="navbar-inner">
  36. <tr>
  37. <th style="width:190px;">订单号</th>
  38. <th style="width:220px;">商品名称</th>
  39. <th>商品编号</th>
  40. <th>数量</th>
  41. <th>价格</th>
  42. <th>成交时间</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {loop $list $item}
  47. <tr>
  48. <td>{$item['ordersn']}</td>
  49. <td><img src="{php echo tomedia($item['thumb'])}" style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
  50. {$item['title']}
  51. {if !empty($item['optiontitle'])}
  52. <br>规格:{$item['optiontitle']}
  53. {/if}
  54. </td>
  55. <td>{$item['goodssn']}</td>
  56. <td>{$item['total']}</td>
  57. <td>{$item['price']}</td>
  58. <td>{php echo date('Y-m-d',$item['createtime'])}<br/>{php echo date('H:i:s',$item['createtime'])}</td>
  59. </tr>
  60. {/loop}
  61. </table>
  62. {$pager}
  63. {template '_footer'}