暫無描述
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_time_index.htm 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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" style="margin-left:100px;">
  7. {include file="sharp/bar" /}
  8. <div class="flexigrid">
  9. <div class="mDiv">
  10. <div class="ftitle">
  11. {eq name="$Think.const.CONTROLLER_NAME.'@active_time_add'|is_check_access" value="1"}
  12. <div class="fbutton" style="float: none;">
  13. <a href="javascript:void(0);" data-href="{:url('Sharp/active_time_add',['id'=>$Request.param.id])}" onclick="openFullframe(this, '整点秒杀 - 新增活动场次', '100%', '100%');">
  14. <div class="add">
  15. <span><i class="layui-icon layui-icon-addition"></i>新增场次</span>
  16. </div>
  17. </a>
  18. </div>
  19. {/eq}
  20. </div>
  21. </div>
  22. <div class="hDiv">
  23. <div class="hDivBox">
  24. <table cellspacing="0" cellpadding="0" style="width: 100%">
  25. <thead>
  26. <tr>
  27. <th class="sign w40" axis="col0">
  28. <div class="tc"><input type="checkbox" autocomplete="off" class="checkAll"></div>
  29. </th>
  30. <th abbr="id" axis="col5" class="w80">
  31. <div class="tc">场次ID</div>
  32. </th>
  33. <th abbr="info" axis="col3">
  34. <div class="text-l10">场次时间</div>
  35. </th>
  36. <th abbr="ac_id" axis="col4" class="w100">
  37. <div class="tc">活动日期</div>
  38. </th>
  39. <th abbr="ac_id" axis="col4" class="w100">
  40. <div class="tc">商品数量</div>
  41. </th>
  42. <th abbr="article_time" axis="col6" class="w50">
  43. <div class="tc">显示</div>
  44. </th>
  45. <th abbr="article_time" axis="col6" class="w100">
  46. <div class="tc">更新时间</div>
  47. </th>
  48. <th axis="col1" class="w120">
  49. <div class="tc">操作</div>
  50. </th>
  51. </tr>
  52. </thead>
  53. </table>
  54. </div>
  55. </div>
  56. <div class="bDiv" style="height: auto;">
  57. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  58. <table style="width: 100%">
  59. <tbody>
  60. {empty name="list"}
  61. <tr>
  62. <td class="no-data" align="center" axis="col0" colspan="50">
  63. <div class="no_row">
  64. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  65. </div>
  66. </td>
  67. </tr>
  68. {else/}
  69. {foreach name="list" item="vo" key="k" }
  70. <tr>
  71. <td class="sign">
  72. <div class="w40 tc"><input type="checkbox" autocomplete="off" name="ids[]" value="{$vo.active_time_id}"></div>
  73. </td>
  74. <td class="sort">
  75. <div class="w80 tc">
  76. {$vo.active_time_id}
  77. </div>
  78. </td>
  79. <td style="width: 100%">
  80. <div class="text-l10">
  81. {$vo.active_time}
  82. </div>
  83. </td>
  84. <td class="">
  85. <div class="w100 tc">
  86. {$vo.active_date|date='Y-m-d',###}
  87. </div>
  88. </td>
  89. <td class="">
  90. <div class="w100 tc">
  91. {$vo.count}
  92. </div>
  93. </td>
  94. <td class="">
  95. <div class="w50 tc">
  96. {if condition="$vo['status'] eq 1"}
  97. <span class="yes" {eq name="'Sharp@active_time_add'|is_check_access" value="1"}onClick="changeTableVal('sharp_active_time','active_time_id','{$vo.active_time_id}','status',this);"{/eq}><i class="fa fa-check-circle"></i>是</span>
  98. {else /}
  99. <span class="no" {eq name="'Sharp@active_time_add'|is_check_access" value="1"}onClick="changeTableVal('sharp_active_time','active_time_id','{$vo.active_time_id}','status',this);"{/eq}><i class="fa fa-ban"></i>否</span>
  100. {/if}
  101. </div>
  102. </td>
  103. <td class="">
  104. <div class="w100 tc">
  105. {$vo.update_time|date='Y-m-d',###}
  106. </div>
  107. </td>
  108. <td class="operation">
  109. <div class="w120 tc">
  110. {eq name="'Sharp@active_time_edit'|is_check_access" value="1"}
  111. <a href="javascript:void(0);" data-href="{:url('Sharp/active_time_edit',array('id'=>$vo['active_time_id']))}" onclick="openFullframe(this, '整点秒杀 - 编辑活动场次', '100%', '100%');" class="btn blue">编辑</a>
  112. {/eq}
  113. {eq name="'Sharp@active_time_del'|is_check_access" value="1"}
  114. <i></i>
  115. <a class="btn red" href="javascript:void(0)" data-url="{:url('Sharp/active_time_del')}" data-id="{$vo.active_time_id}" onClick="delfun(this);">删除</a>
  116. {/eq}
  117. </div>
  118. </td>
  119. </tr>
  120. {/foreach}
  121. {/empty}
  122. </tbody>
  123. </table>
  124. </div>
  125. <div class="iDiv" style="display: none;"></div>
  126. </div>
  127. <div class="tDiv">
  128. <div class="tDiv2">
  129. <div class="fbutton checkboxall">
  130. <input type="checkbox" autocomplete="off" class="checkAll">
  131. </div>
  132. {eq name="'Sharp@active_time_del'|is_check_access" value="1"}
  133. <div class="fbutton">
  134. <a onclick="batch_del(this, 'ids');" data-url="{:url('Sharp/active_time_del')}" class="layui-btn layui-btn-primary">
  135. <span>批量删除</span>
  136. </a>
  137. </div>
  138. {/eq}
  139. {include file="public/page" /}
  140. </div>
  141. <div style="clear:both"></div>
  142. </div>
  143. </div>
  144. </div>
  145. <script>
  146. $(function(){
  147. $('input[name*=ids]').click(function(){
  148. if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
  149. $('.checkAll').prop('checked','checked');
  150. } else {
  151. $('.checkAll').prop('checked', false);
  152. }
  153. });
  154. $('input[type=checkbox].checkAll').click(function(){
  155. $('input[type=checkbox]').prop('checked',this.checked);
  156. });
  157. });
  158. $(document).ready(function(){
  159. // 表格行点击选中切换
  160. $('#flexigrid > table>tbody >tr').click(function(){
  161. $(this).toggleClass('trSelected');
  162. });
  163. });
  164. </script>
  165. {include file="public/footer" /}