No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

active_index.htm 8.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. {include file="shop/left" /}
  6. <div class="page">
  7. {include file="sharp/bar" /}
  8. <div class="flexigrid">
  9. <!-- 操作说明 -->
  10. <div id="explanation" class="explanation">
  11. <div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
  12. <h4 title="提示相关设置操作时应注意的要点">提示</h4>
  13. <span title="收起提示" id="explanationZoom" style="display: block;"></span>
  14. </div>
  15. <ul>
  16. <li style="color: red;">注意:该功能仅限于【可视化微信小程序(商城版)】插件</li>
  17. </ul>
  18. </div>
  19. <div class="mDiv">
  20. <div class="ftitle">
  21. {eq name="$Think.const.CONTROLLER_NAME.'@active_add'|is_check_access" value="1"}
  22. <div class="fbutton" style="float: none;">
  23. <a href="javascript:void(0);" data-href="{:url('Sharp/active_add')}" onclick="openFullframe(this, '整点秒杀 - 新增活动', '100%', '100%');">
  24. <div class="add">
  25. <span><i class="layui-icon layui-icon-addition"></i>新增活动</span>
  26. </div>
  27. </a>
  28. </div>
  29. {/eq}
  30. </div>
  31. </div>
  32. <div class="hDiv">
  33. <div class="hDivBox">
  34. <table cellspacing="0" cellpadding="0" style="width: 100%">
  35. <thead>
  36. <tr>
  37. <th class="sign w40" axis="col0">
  38. <div class="tc"><input type="checkbox" autocomplete="off" class="checkAll"></div>
  39. </th>
  40. <th abbr="id" axis="col5" class="w60">
  41. <div class="tc">活动ID</div>
  42. </th>
  43. <th abbr="info" axis="col3">
  44. <div class="text-l10">活动日期</div>
  45. </th>
  46. <th abbr="ac_id" axis="col4" class="w100">
  47. <div class="tc">场次数量</div>
  48. </th>
  49. <th abbr="article_time" axis="col6" class="w50">
  50. <div class="tc">显示</div>
  51. </th>
  52. <th abbr="article_time" axis="col6" class="w100">
  53. <div class="tc">更新时间</div>
  54. </th>
  55. <th axis="col1" class="w120">
  56. <div class="tc">操作</div>
  57. </th>
  58. </tr>
  59. </thead>
  60. </table>
  61. </div>
  62. </div>
  63. <div class="bDiv" style="height: auto;">
  64. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  65. <table style="width: 100%">
  66. <tbody>
  67. {empty name="list"}
  68. <tr>
  69. <td class="no-data" align="center" axis="col0" colspan="50">
  70. <div class="no_row">
  71. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  72. </div>
  73. </td>
  74. </tr>
  75. {else/}
  76. {foreach name="list" item="vo" key="k" }
  77. <tr>
  78. <td class="sign">
  79. <div class="w40 tc"><input type="checkbox" autocomplete="off" name="ids[]" value="{$vo.active_id}"></div>
  80. </td>
  81. <td class="sort">
  82. <div class="w60 tc">
  83. {$vo.active_id}
  84. </div>
  85. </td>
  86. <td style="width: 100%">
  87. <div class="text-l10">
  88. {$vo.active_date|date='Y-m-d',###}
  89. </div>
  90. </td>
  91. <td class="">
  92. <div class="w100 tc">
  93. 共{$vo.count}场
  94. </div>
  95. </td>
  96. <td class="">
  97. <div class="w50 tc">
  98. {if condition="$vo['status'] eq 1"}
  99. <span class="yes" {eq name="'Sharp@add'|is_check_access" value="1"}onClick="changeTableVal('sharp_active','active_id','{$vo.active_id}','status',this);"{/eq}><i class="fa fa-check-circle"></i>是</span>
  100. {else /}
  101. <span class="no" {eq name="'Sharp@add'|is_check_access" value="1"}onClick="changeTableVal('sharp_active','active_id','{$vo.active_id}','status',this);"{/eq}><i class="fa fa-ban"></i>否</span>
  102. {/if}
  103. </div>
  104. </td>
  105. <td class="">
  106. <div class="w100 tc">
  107. {$vo.update_time|date='Y-m-d',###}
  108. </div>
  109. </td>
  110. <td class="operation">
  111. <div class="w120 tc">
  112. {eq name="'Sharp@active_time_index'|is_check_access" value="1"}
  113. <a href="{:url('Sharp/active_time_index',array('id'=>$vo['active_id']))}" class="btn blue">场次管理</a>
  114. {/eq}
  115. {eq name="'Sharp@active_del'|is_check_access" value="1"}
  116. <i></i>
  117. <a class="btn red" href="javascript:void(0)" data-url="{:url('Sharp/active_del')}" data-id="{$vo.active_id}" onClick="delfun(this);">删除</a>
  118. {/eq}
  119. </div>
  120. </td>
  121. </tr>
  122. {/foreach}
  123. {/empty}
  124. </tbody>
  125. </table>
  126. </div>
  127. <div class="iDiv" style="display: none;"></div>
  128. </div>
  129. <div class="tDiv">
  130. <div class="tDiv2">
  131. <div class="fbutton checkboxall">
  132. <input type="checkbox" autocomplete="off" class="checkAll">
  133. </div>
  134. {eq name="'Sharp@active_del'|is_check_access" value="1"}
  135. <div class="fbutton">
  136. <a onclick="batch_del(this, 'ids');" data-url="{:url('Sharp/active_del')}" class="layui-btn layui-btn-primary">
  137. <span>批量删除</span>
  138. </a>
  139. </div>
  140. {/eq}
  141. {include file="public/page" /}
  142. </div>
  143. <div style="clear:both"></div>
  144. </div>
  145. </div>
  146. </div>
  147. <script>
  148. try{
  149. if (typeof(eval('is_conceal_1649209614'))=="function" && is_conceal_1649209614()){
  150. $(".page").css("margin-left","");
  151. }else{
  152. $(".page").css("margin-left","100px");
  153. }
  154. }catch(e){}
  155. $(function(){
  156. $('input[name*=ids]').click(function(){
  157. if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
  158. $('.checkAll').prop('checked','checked');
  159. } else {
  160. $('.checkAll').prop('checked', false);
  161. }
  162. });
  163. $('input[type=checkbox].checkAll').click(function(){
  164. $('input[type=checkbox]').prop('checked',this.checked);
  165. });
  166. });
  167. $(document).ready(function(){
  168. // 表格行点击选中切换
  169. $('#flexigrid > table>tbody >tr').click(function(){
  170. $(this).toggleClass('trSelected');
  171. });
  172. });
  173. </script>
  174. {include file="public/footer" /}