3b9268a280466f7d6cdc2ef339085a87.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <?php /*a:3:{s:67:"/data/web/mall.valimart.net/app/admin/view/storesnstrace/index.html";i:1657785098;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.html";i:1657785098;s:66:"/data/web/mall.valimart.net/app/admin/view/public/admin_items.html";i:1657785098;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
  10. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
  11. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
  12. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
  13. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  14. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
  15. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
  16. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
  17. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
  18. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  19. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
  20. <script type="text/javascript">
  21. var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
  22. var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
  23. var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
  24. var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
  25. var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
  26. </script>
  27. </head>
  28. <body>
  29. <div id="append_parent"></div>
  30. <div id="ajaxwaitid"></div>
  31. <div class="page">
  32. <div class="fixed-bar">
  33. <div class="item-title">
  34. <div class="subject">
  35. <h3><?php echo htmlentities(lang('ds_storesnstrace')); ?></h3>
  36. <h5></h5>
  37. </div>
  38. <?php if($admin_item): ?>
  39. <ul class="tab-base ds-row">
  40. <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
  41. <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
  42. <?php endforeach; endif; else: echo "" ;endif; ?>
  43. </ul>
  44. <?php endif; ?>
  45. </div>
  46. </div>
  47. <form method="get" name="formSearch">
  48. <div class="ds-search-form">
  49. <dl>
  50. <dt><?php echo htmlentities(lang('ds_store_name')); ?></dt>
  51. <dd><input type="text" value="<?php echo htmlentities(app('request')->get('search_sname')); ?>" name="search_sname" id="search_sname" class="txt"></dd>
  52. </dl>
  53. <dl>
  54. <dt><?php echo htmlentities(lang('admin_snstrace_title')); ?></dt>
  55. <dd><input type="text" value="<?php echo htmlentities(app('request')->get('search_stitle')); ?>" name="search_stitle" id="search_stitle" class="txt"></dd>
  56. </dl>
  57. <dl>
  58. <dt><?php echo htmlentities(lang('admin_snstrace_content')); ?></dt>
  59. <dd><input type="text" value="<?php echo htmlentities(app('request')->get('search_scontent')); ?>" name="search_scontent" id="search_scontent" class="txt"></dd>
  60. </dl>
  61. <dl>
  62. <dt><?php echo htmlentities(lang('store_sns_trace_type')); ?></dt>
  63. <dd>
  64. <select name="search_type">
  65. <option value=''><?php echo htmlentities(lang('ds_please_choose')); ?>...</option>
  66. <option value="2" <?php echo app('request')->get('search_type')=='2'?'selected="selected"':''; ?>><?php echo htmlentities(lang('store_sns_normal')); ?></option>
  67. <option value="3" <?php echo app('request')->get('search_type')=='3'?'selected="selected"':''; ?>><?php echo htmlentities(lang('store_sns_new_selease')); ?></option>
  68. <option value="4" <?php echo app('request')->get('search_type')=='4'?'selected="selected"':''; ?>><?php echo htmlentities(lang('store_sns_coupon')); ?></option>
  69. <option value="5" <?php echo app('request')->get('search_type')=='5'?'selected="selected"':''; ?>><?php echo htmlentities(lang('store_sns_xianshi')); ?></option>
  70. <option value="6" <?php echo app('request')->get('search_type')=='6'?'selected="selected"':''; ?>><?php echo htmlentities(lang('store_sns_mansong')); ?></option>
  71. <option value="7" <?php echo app('request')->get('search_type')=='7'?'selected="selected"':''; ?>><?php echo htmlentities(lang('store_sns_bundling')); ?></option>
  72. <option value="8" <?php echo app('request')->get('search_type')=='8'?'selected="selected"':''; ?>><?php echo htmlentities(lang('store_sns_groupbuy')); ?></option>
  73. <option value="9" <?php echo app('request')->get('search_type')=='9'?'selected="selected"':''; ?>><?php echo htmlentities(lang('store_sns_recommend')); ?></option>
  74. <option value="10" <?php echo app('request')->get('search_type')=='10'?'selected="selected"':''; ?>><?php echo htmlentities(lang('store_sns_hotsell')); ?></option>
  75. </select>
  76. </dd>
  77. </dl>
  78. <dl>
  79. <dt><?php echo htmlentities(lang('admin_snstrace_addtime')); ?></dt>
  80. <dd>
  81. <input type="text" class="txt date" value="<?php echo htmlentities(app('request')->get('search_stime')); ?>" name="search_stime" id="search_stime" class="txt">
  82. ~
  83. <input type="text" class="txt date" value="<?php echo htmlentities(app('request')->get('search_etime')); ?>" name="search_etime" id="search_etime" class="txt">
  84. </dd>
  85. </dl>
  86. <div class="btn_group">
  87. <a href="javascript:document.formSearch.submit();" class="btn" title="<?php echo htmlentities(lang('ds_query')); ?>"><?php echo htmlentities(lang('ds_query')); ?></a>
  88. <a href="<?php echo url('Storesnstrace/index'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
  89. </div>
  90. </div>
  91. </form>
  92. <div class="explanation" id="explanation">
  93. <div class="title" id="checkZoom">
  94. <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
  95. <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
  96. </div>
  97. <ul>
  98. <li><?php echo htmlentities(lang('admin_snstrace_tracelisttip1')); ?></li>
  99. <li><?php echo htmlentities(lang('admin_snstrace_tracelisttip2')); ?></li>
  100. </ul>
  101. </div>
  102. <table class="ds-default-table">
  103. <tbody>
  104. <?php if(!(empty($storetrace_list) || (($storetrace_list instanceof \think\Collection || $storetrace_list instanceof \think\Paginator ) && $storetrace_list->isEmpty()))): if(is_array($storetrace_list) || $storetrace_list instanceof \think\Collection || $storetrace_list instanceof \think\Paginator): if( count($storetrace_list)==0 ) : echo "" ;else: foreach($storetrace_list as $key=>$v): ?>
  105. <tr class="hover edit">
  106. <td style="vertical-align:top;"><input type="checkbox" name="st_id[]" value="<?php echo htmlentities($v['stracelog_id']); ?>" class="checkitem"></td>
  107. <td class="fd-list">
  108. <!-- 动态列表start -->
  109. <li>
  110. <div class="fd-aside">
  111. <span class="thumb size60">
  112. <a href="<?php echo url('home/Storesnshome/index',['sid'=>$v['stracelog_storeid']]); ?>" target="_blank">
  113. <img onload="javascript:ResizeImage(this,60,60);" src="<?php echo get_store_logo($v['stracelog_storelogo']); ?>">
  114. </a>
  115. </span>
  116. </div>
  117. <dl class="fd-wrap">
  118. <dt>
  119. <h3><a href="<?php echo url('home/Storesnshome/index',['sid'=>$v['stracelog_storeid']]); ?>" target="_blank"><?php echo htmlentities($v['stracelog_storename']); ?></a><?php echo htmlentities(lang('ds_colon')); ?></h3>
  120. <h5><?php echo parsesmiles($v['stracelog_title']); ?></h5>
  121. </dt>
  122. <dd>
  123. <?php echo parsesmiles($v['stracelog_content']); ?>
  124. </dd>
  125. <dd>
  126. <span class="fc-time fl"><?php echo date('Y-m-d H:i',$v['stracelog_time']); ?></span>
  127. <span class="fr"><?php echo htmlentities(lang('admin_snstrace_forward')); ?>&nbsp;|&nbsp;
  128. <a href="<?php echo url('Storesnstrace/storecomment_list',['st_id'=>$v['stracelog_id']]); ?>"><?php echo htmlentities(lang('admin_snstrace_comment')); ?><?php echo $v['stracelog_comment']>0 ? ($v['stracelog_comment']) : ''; ?></a>
  129. </span>&nbsp;&nbsp;
  130. <?php echo htmlentities(lang('admin_snstrace_state')); ?><?php echo htmlentities(lang('ds_colon')); if($v['stracelog_state'] ==0): ?><font style='color:red;'><?php echo htmlentities(lang('admin_snstrace_statehide')); ?></font><?php else: ?><?php echo htmlentities(lang('admin_snstrace_stateshow')); ?><?php endif; ?></span>
  131. </dd>
  132. <div class="clear"></div>
  133. </dl>
  134. </li>
  135. <!-- 动态列表end -->
  136. </td>
  137. </tr>
  138. <?php endforeach; endif; else: echo "" ;endif; ?>
  139. <tfoot>
  140. <tr class="tfoot">
  141. <td class="w24"><input type="checkbox" class="checkall" id="checkallBottom"></td>
  142. <td colspan="16"><label for="checkallBottom"><?php echo htmlentities(lang('ds_select_all')); ?></label>
  143. &nbsp;&nbsp; <a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch();"><span><?php echo htmlentities(lang('ds_del')); ?></span></a>
  144. <a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_edit_batch('hide');"><span><?php echo htmlentities(lang('admin_snstrace_statehide')); ?></span></a>
  145. <a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_edit_batch('show');"><span><?php echo htmlentities(lang('admin_snstrace_stateshow')); ?></span></a>
  146. </td>
  147. </tr>
  148. </tfoot>
  149. <?php else: ?>
  150. <tr class="no_data">
  151. <td colspan="15"><?php echo htmlentities(lang('ds_no_record')); ?></td>
  152. </tr>
  153. <?php endif; ?>
  154. </tbody>
  155. </table>
  156. <?php echo $show_page; ?>
  157. </div>
  158. <script type="text/javascript">
  159. $(function(){
  160. $('#search_stime').datepicker({dateFormat: 'yy-mm-dd'});
  161. $('#search_etime').datepicker({dateFormat: 'yy-mm-dd'});
  162. });
  163. //批量修改
  164. function submit_edit_batch(type) {
  165. /* 获取选中的项 */
  166. var items = '';
  167. $('.checkitem:checked').each(function () {
  168. items += this.value + ',';
  169. });
  170. if (items != '') {
  171. items = items.substr(0, (items.length - 1));
  172. submit_edit(items,type);
  173. }else{
  174. layer.alert('<?php echo htmlentities(lang('admin_snstrace_pleasechoose_del')); ?>', {icon: 2})
  175. }
  176. }
  177. function submit_edit(ids_str,type){
  178. _uri = ADMINSITEURL+"/Storesnstrace/strace_edit.html?st_id=" + ids_str+"&type="+type;
  179. dsLayerConfirm(_uri,'<?php echo htmlentities(lang('ds_ensure_operation')); ?>');
  180. }
  181. function submit_delete(ids_str){
  182. _uri = ADMINSITEURL+"/Storesnstrace/strace_del.html?st_id=" + ids_str;
  183. dsLayerConfirm(_uri,'<?php echo htmlentities(lang('ds_ensure_del')); ?>');
  184. }
  185. </script>