index.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_storesnstrace}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.ds_store_name}</dt>
  16. <dd><input type="text" value="{$Request.get.search_sname}" name="search_sname" id="search_sname" class="txt"></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.admin_snstrace_title}</dt>
  20. <dd><input type="text" value="{$Request.get.search_stitle}" name="search_stitle" id="search_stitle" class="txt"></dd>
  21. </dl>
  22. <dl>
  23. <dt>{$Think.lang.admin_snstrace_content}</dt>
  24. <dd><input type="text" value="{$Request.get.search_scontent}" name="search_scontent" id="search_scontent" class="txt"></dd>
  25. </dl>
  26. <dl>
  27. <dt>{$Think.lang.store_sns_trace_type}</dt>
  28. <dd>
  29. <select name="search_type">
  30. <option value=''>{$Think.lang.ds_please_choose}...</option>
  31. <option value="2" {$Request.get.search_type == '2'?'selected="selected"':''}>{$Think.lang.store_sns_normal}</option>
  32. <option value="3" {$Request.get.search_type == '3'?'selected="selected"':''}>{$Think.lang.store_sns_new_selease}</option>
  33. <option value="4" {$Request.get.search_type == '4'?'selected="selected"':''}>{$Think.lang.store_sns_coupon}</option>
  34. <option value="5" {$Request.get.search_type == '5'?'selected="selected"':''}>{$Think.lang.store_sns_xianshi}</option>
  35. <option value="6" {$Request.get.search_type == '6'?'selected="selected"':''}>{$Think.lang.store_sns_mansong}</option>
  36. <option value="7" {$Request.get.search_type == '7'?'selected="selected"':''}>{$Think.lang.store_sns_bundling}</option>
  37. <option value="8" {$Request.get.search_type == '8'?'selected="selected"':''}>{$Think.lang.store_sns_groupbuy}</option>
  38. <option value="9" {$Request.get.search_type == '9'?'selected="selected"':''}>{$Think.lang.store_sns_recommend}</option>
  39. <option value="10" {$Request.get.search_type == '10'?'selected="selected"':''}>{$Think.lang.store_sns_hotsell}</option>
  40. </select>
  41. </dd>
  42. </dl>
  43. <dl>
  44. <dt>{$Think.lang.admin_snstrace_addtime}</dt>
  45. <dd>
  46. <input type="text" class="txt date" value="{$Request.get.search_stime}" name="search_stime" id="search_stime" class="txt">
  47. ~
  48. <input type="text" class="txt date" value="{$Request.get.search_etime}" name="search_etime" id="search_etime" class="txt">
  49. </dd>
  50. </dl>
  51. <div class="btn_group">
  52. <a href="javascript:document.formSearch.submit();" class="btn" title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  53. <a href="{:url('Storesnstrace/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  54. </div>
  55. </div>
  56. </form>
  57. <div class="explanation" id="explanation">
  58. <div class="title" id="checkZoom">
  59. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  60. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  61. </div>
  62. <ul>
  63. <li>{$Think.lang.admin_snstrace_tracelisttip1}</li>
  64. <li>{$Think.lang.admin_snstrace_tracelisttip2}</li>
  65. </ul>
  66. </div>
  67. <table class="ds-default-table">
  68. <tbody>
  69. {notempty name="storetrace_list"}
  70. {foreach name="storetrace_list" item="v"}
  71. <tr class="hover edit">
  72. <td style="vertical-align:top;"><input type="checkbox" name="st_id[]" value="{$v.stracelog_id}" class="checkitem"></td>
  73. <td class="fd-list">
  74. <!-- 动态列表start -->
  75. <li>
  76. <div class="fd-aside">
  77. <span class="thumb size60">
  78. <a href="{:url('home/Storesnshome/index',['sid'=>$v.stracelog_storeid])}" target="_blank">
  79. <img onload="javascript:ResizeImage(this,60,60);" src="{:get_store_logo($v.stracelog_storelogo)}">
  80. </a>
  81. </span>
  82. </div>
  83. <dl class="fd-wrap">
  84. <dt>
  85. <h3><a href="{:url('home/Storesnshome/index',['sid'=>$v.stracelog_storeid])}" target="_blank">{$v.stracelog_storename}</a>{$Think.lang.ds_colon}</h3>
  86. <h5>{:parsesmiles($v.stracelog_title)}</h5>
  87. </dt>
  88. <dd>
  89. {:parsesmiles($v.stracelog_content)}
  90. </dd>
  91. <dd>
  92. <span class="fc-time fl">{:date('Y-m-d H:i',$v.stracelog_time)}</span>
  93. <span class="fr">{$Think.lang.admin_snstrace_forward}&nbsp;|&nbsp;
  94. <a href="{:url('Storesnstrace/storecomment_list',['st_id'=>$v.stracelog_id])}">{$Think.lang.admin_snstrace_comment}{$v.stracelog_comment >0 ? ($v.stracelog_comment):''}</a>
  95. </span>&nbsp;&nbsp;
  96. {$Think.lang.admin_snstrace_state}{$Think.lang.ds_colon}
  97. {if $v.stracelog_state ==0}<font style='color:red;'>{$Think.lang.admin_snstrace_statehide}</font>{else}{$Think.lang.admin_snstrace_stateshow}{/if}</span>
  98. </dd>
  99. <div class="clear"></div>
  100. </dl>
  101. </li>
  102. <!-- 动态列表end -->
  103. </td>
  104. </tr>
  105. {/foreach}
  106. <tfoot>
  107. <tr class="tfoot">
  108. <td class="w24"><input type="checkbox" class="checkall" id="checkallBottom"></td>
  109. <td colspan="16"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  110. &nbsp;&nbsp; <a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch();"><span>{$Think.lang.ds_del}</span></a>
  111. <a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_edit_batch('hide');"><span>{$Think.lang.admin_snstrace_statehide}</span></a>
  112. <a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_edit_batch('show');"><span>{$Think.lang.admin_snstrace_stateshow}</span></a>
  113. </td>
  114. </tr>
  115. </tfoot>
  116. {else /}
  117. <tr class="no_data">
  118. <td colspan="15">{$Think.lang.ds_no_record}</td>
  119. </tr>
  120. {/notempty}
  121. </tbody>
  122. </table>
  123. {$show_page|raw}
  124. </div>
  125. <script type="text/javascript">
  126. $(function(){
  127. $('#search_stime').datepicker({dateFormat: 'yy-mm-dd'});
  128. $('#search_etime').datepicker({dateFormat: 'yy-mm-dd'});
  129. });
  130. //批量修改
  131. function submit_edit_batch(type) {
  132. /* 获取选中的项 */
  133. var items = '';
  134. $('.checkitem:checked').each(function () {
  135. items += this.value + ',';
  136. });
  137. if (items != '') {
  138. items = items.substr(0, (items.length - 1));
  139. submit_edit(items,type);
  140. }else{
  141. layer.alert('{$Think.lang.admin_snstrace_pleasechoose_del}', {icon: 2})
  142. }
  143. }
  144. function submit_edit(ids_str,type){
  145. _uri = ADMINSITEURL+"/Storesnstrace/strace_edit.html?st_id=" + ids_str+"&type="+type;
  146. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_operation}');
  147. }
  148. function submit_delete(ids_str){
  149. _uri = ADMINSITEURL+"/Storesnstrace/strace_del.html?st_id=" + ids_str;
  150. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
  151. }
  152. </script>