goodslist.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_main"}
  3. <div class="alert mt10" style="clear:both;">
  4. <ul class="mt5">
  5. <li>{$Think.lang.statistical_information1}</li>
  6. <li>{$Think.lang.goodslist_information2}</li>
  7. <li>{$Think.lang.goodslist_information3}</li>
  8. <li>{$Think.lang.goodslist_information4}</li>
  9. <li>{$Think.lang.goodslist_information5}</li>
  10. <li>{$Think.lang.goodslist_information6}</li>
  11. </ul>
  12. </div>
  13. <form method="get" target="_self" id="formSearch">
  14. <table class="search-form">
  15. <input type="hidden" id="orderby" name="orderby" value="{$orderby}"/>
  16. <tr>
  17. <td class="tr">
  18. <div class="fr">
  19. <input type="submit" class="submit" value="{$Think.lang.ds_common_search}" />
  20. </div>
  21. <div class="fr">&nbsp;&nbsp;{$Think.lang.commodity_name}
  22. <input type="text" class="text w150" name="search_gname" value="{$Request.param.search_gname}" />
  23. </div>
  24. <div class="fr">{$Think.lang.classification_goods}&nbsp;
  25. <span id="searchgc_td"></span>
  26. <input type="hidden" id="choose_gcid" name="choose_gcid" value="0"/>
  27. </div>
  28. </td>
  29. </tr>
  30. </table>
  31. </form>
  32. <table class="dssc-default-table">
  33. <thead>
  34. <tr class="sortbar-array">
  35. <th></th>
  36. <th>{$Think.lang.commodity_name}</th>
  37. <th>{$Think.lang.price}</th>
  38. <th class="align-center">
  39. <a title="{$Think.lang.click_proceed_sorting}" ds_type="orderitem" data-param='{"orderby":"ordergoodsnum"}' class="{if !$orderby || $orderby=='ordergoodsnum desc'}selected desc{/if}{if $orderby=='ordergoodsnum asc'}selected asc{/if}">{$Think.lang.nearly_orders_shop}<i></i>
  40. </a>
  41. </th>
  42. <th class="align-center">
  43. <a title="{$Think.lang.click_proceed_sorting}" ds_type="orderitem" data-param='{"orderby":"ordergamount"}' class="{if $orderby=='ordergamount desc'}selected desc{/if}{if $orderby=='ordergamount asc'}selected asc{/if}">{$Think.lang.nearly_orders_money}<i></i>
  44. </a>
  45. </th>
  46. <th class="w120">{$Think.lang.ds_handle}</th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. {notempty name="goodslist"}
  51. {foreach name="goodslist" item="v"}
  52. <tr class="bd-line">
  53. <td>
  54. <div class="pic-thumb">
  55. <a href="{:url('Goods/index',['goods_id'=>$v.goods_id])}" target="_blank">
  56. <img src="{:goods_thumb($v)}"/>
  57. </a>
  58. </div>
  59. </td>
  60. <td class="tl">
  61. <span class="over_hidden w400 h20">
  62. <a href="{:url('Goods/index',['goods_id'=>$v.goods_id])}" target="_blank">{$v.goods_name}</a>
  63. </span>
  64. </td>
  65. <td>{$v.goods_price}</td>
  66. <td>{$v.ordergoodsnum}</td>
  67. <td>{$Think.lang.currency}{$v.ordergamount}</td>
  68. <td>
  69. <a href="javascript:void(0);" ds_type='showdata' data-param='{"gid":"{$v.goods_id}"}'>{$Think.lang.movements_figure}</a>
  70. </td>
  71. </tr>
  72. {/foreach}
  73. {else /}
  74. <tr>
  75. <td colspan="20" class="norecord">
  76. <div class="warning-option">
  77. <i class="iconfont">&#xe64c;</i>
  78. <span>{$Think.lang.no_record}</span>
  79. </div>
  80. </td>
  81. </tr>
  82. {/notempty}
  83. </tbody>
  84. {notempty name="goodslist"}
  85. <tfoot>
  86. <tr>
  87. <td colspan="20"><div class="pagination">{$show_page|raw}</div></td>
  88. </tr>
  89. </tfoot>
  90. {/notempty}
  91. </table>
  92. <table class="dssc-default-table">
  93. <tbody>
  94. <tr>
  95. <div id="goodsinfo_div" class="close_float" style="text-align:center;"></div>
  96. </tr>
  97. </tbody>
  98. </table>
  99. <script src="{$Think.PLUGINS_SITE_ROOT}/mlselection.js"></script>
  100. <script type="text/javascript">
  101. $(function(){
  102. //商品分类
  103. init_gcselect({$gc_choose_json|raw},{$gc_json|raw});
  104. $('#query_start_date').datepicker({dateFormat: 'yy-mm-dd'});
  105. $('#query_end_date').datepicker({dateFormat: 'yy-mm-dd'});
  106. //加载商品详情
  107. {notempty name="goodslist"}
  108. getStatdata({$goodslist.0.goods_id});
  109. {/notempty}
  110. $("[ds_type='showdata']").click(function(){
  111. var data_str = $(this).attr('data-param');
  112. eval('data_str = '+data_str);
  113. getStatdata(data_str.gid);
  114. });
  115. //排序
  116. $("[ds_type='orderitem']").click(function(){
  117. var data_str = $(this).attr('data-param');
  118. eval( "data_str = "+data_str);
  119. if($(this).hasClass('desc')){
  120. $("#orderby").val(data_str.orderby + ' asc');
  121. } else {
  122. $("#orderby").val(data_str.orderby + ' desc');
  123. }
  124. $('#formSearch').submit();
  125. });
  126. });
  127. function getStatdata(gid){
  128. $('#goodsinfo_div').load(HOMESITEURL+'/Statisticsgoods/goodsinfo?gid='+gid);
  129. }
  130. </script>
  131. {/block}