暫無描述
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.

index.htm 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. {include file="public/layout" /}
  2. <body class="eyou_body_xin">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. {include file="system/left" /}
  6. <div id="geduan_div" class="h10"></div>
  7. <div class="page" style="min-width:auto;margin-left:115px;padding-bottom: 15px;">
  8. {include file="notice/bar" /}
  9. <div class="flexigrid">
  10. <div class="mDiv">
  11. <div class="ftitle">
  12. {eq name="'Encodes@users_notice_add'|is_check_access" value="1"}
  13. <div class="fbutton">
  14. <a href="javascript:void(0);" data-href="{:url('Encodes/users_notice_add')}" onclick="openFullframe(this, '新增通知', '100%', '100%');">
  15. <div class="add" title="新增通知">
  16. <span><i class="layui-icon layui-icon-addition"></i>新增通知</span>
  17. </div>
  18. </a>
  19. </div>
  20. {/eq}
  21. </div>
  22. <form class="navbar-form form-inline" action="{:url('UsersNotice/index')}" method="get" onsubmit="layer_loading('正在处理');">
  23. {$searchform.hidden|default=''}
  24. <div class="sDiv">
  25. <div class="sDiv2">
  26. <input type="text" size="30" name="keywords" class="qsbox" placeholder="搜索相关数据...">
  27. <input type="submit" class="btn" value="搜索">
  28. <i class="iconfont e-sousuo"></i>
  29. </div>
  30. <div class="sDiv2" style="font-size: 12px;border: none;">
  31. <a href="JavaScript:void(0);" onclick="click_to_eyou_1575506523('https://www.eyoucms.com/doc/label/all/11112.html?1606469785','站内通知标签使用教程')" >
  32. 标签教程?
  33. </a>
  34. </div>
  35. </div>
  36. </form>
  37. </div>
  38. <div class="hDiv">
  39. <div class="hDivBox">
  40. <table cellspacing="0" cellpadding="0" style="width: 100%">
  41. <thead>
  42. <tr>
  43. <th class="sign w40" axis="col0">
  44. <div class="tc"><input type="checkbox" autocomplete="off" class="checkAll"></div>
  45. </th>
  46. <th abbr="article_show" axis="col5" class="w40">
  47. <div class="tc">ID</div>
  48. </th>
  49. <th abbr="article_title" axis="col3" >
  50. <div class="text-l10">通知标题</div>
  51. </th>
  52. <th abbr="ac_id" axis="col4" class="w160">
  53. <div class="text-l10">通知会员(ID)</div>
  54. </th>
  55. <th abbr="article_time" axis="col6" class="w160">
  56. <div class="tc">通知时间</div>
  57. </th>
  58. <th axis="col1" class="w120">
  59. <div class="tc">操作</div>
  60. </th>
  61. </tr>
  62. </thead>
  63. </table>
  64. </div>
  65. </div>
  66. <div class="bDiv" style="height: auto;">
  67. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  68. <table style="width: 100%">
  69. <tbody>
  70. {empty name="list"}
  71. <tr>
  72. <td class="no-data" align="center" axis="col0" colspan="50">
  73. <div class="no_row">
  74. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  75. </div>
  76. </td>
  77. </tr>
  78. {else/}
  79. {volist name="list" id="vo"}
  80. <tr>
  81. <td class="sign">
  82. <div class="w40 tc"><input type="checkbox" autocomplete="off" name="ids[]" value="{$vo.id}"></div>
  83. </td>
  84. <td class="sort">
  85. <div class="w40 tc">
  86. {$vo.id}
  87. </div>
  88. </td>
  89. <td style="width: 100%">
  90. <div class="text-l10">
  91. <a href="javascript:void(0);" data-href="{:url('UsersNotice/edit',array('id'=>$vo['id']))}" onclick="openFullframe(this, '编辑站内通知', '100%', '100%');">{$vo.title}</a>
  92. </div>
  93. </td>
  94. <td>
  95. <div class="w160 text-l10 wot_z">
  96. {$vo.usernames}
  97. </div>
  98. </td>
  99. <td class="">
  100. <div class="w160 tc">
  101. {$vo.add_time|MyDate='Y-m-d H:i:s',###}
  102. </div>
  103. </td>
  104. <td class="operation">
  105. <div class="w120 tc">
  106. <a href="javascript:void(0);" data-href="{:url('UsersNotice/edit',array('id'=>$vo['id']))}" class="btn blue" onclick="openFullframe(this, '编辑站内通知', '100%', '100%');">编辑</a>
  107. <i></i>
  108. <a class="btn red" href="javascript:void(0)" data-url="{:url('UsersNotice/del')}" data-id="{$vo.id}" onClick="delfun(this);">删除</a>
  109. </div>
  110. </td>
  111. </tr>
  112. {/volist}
  113. {/empty}
  114. </tbody>
  115. </table>
  116. </div>
  117. <div class="iDiv" style="display: none;"></div>
  118. </div>
  119. {notempty name="list"}
  120. <div class="tDiv">
  121. <div class="tDiv2">
  122. <div class="fbutton checkboxall">
  123. <input type="checkbox" autocomplete="off" class="checkAll">
  124. </div>
  125. <div class="fbutton">
  126. <a onclick="batch_del(this, 'ids');" data-url="{:url('UsersNotice/del')}" class="layui-btn layui-btn-primary">
  127. <span>批量删除</span>
  128. </a>
  129. </div>
  130. {include file="public/page" /}
  131. </div>
  132. <div style="clear:both"></div>
  133. </div>
  134. {/notempty}
  135. </div>
  136. </div>
  137. <script>
  138. $(function(){
  139. $('input[name*=ids]').click(function(){
  140. if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
  141. $('.checkAll').prop('checked','checked');
  142. } else {
  143. $('.checkAll').prop('checked', false);
  144. }
  145. });
  146. $('input[type=checkbox].checkAll').click(function(){
  147. $('input[type=checkbox]').prop('checked',this.checked);
  148. });
  149. });
  150. $(document).ready(function(){
  151. // 表格行点击选中切换
  152. $('#flexigrid > table>tbody >tr').click(function(){
  153. $(this).toggleClass('trSelected');
  154. });
  155. // 点击刷新数据
  156. $('.fa-refresh').click(function(){
  157. location.href = location.href;
  158. });
  159. });
  160. </script>
  161. {include file="public/footer" /}
  162. <script type="text/javascript">
  163. try{
  164. var mt20_1649209614 = sessionStorage.getItem("mt20_1649209614");
  165. if (mt20_1649209614 == 1){
  166. $("#geduan_div").removeClass("h10");
  167. } else {
  168. $("#geduan_div").addClass("h10");
  169. }
  170. }catch(e){}
  171. </script>