Няма описание
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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. <div class="page min-hg-c-10">
  6. {include file="admin/admin_bar" /}
  7. <div class="flexigrid">
  8. <div class="mDiv pt0">
  9. <div class="ftitle">
  10. {eq name="'AuthRole@add'|is_check_access" value="1"}
  11. <div class="fbutton">
  12. <a href="javascript:void(0);" data-href="{:url('AuthRole/add')}" onclick="openFullframe(this, '新增角色', '100%', '100%');">
  13. <div class="add">
  14. <span><i class="layui-icon layui-icon-addition"></i>新增角色</span>
  15. </div>
  16. </a>
  17. </div>
  18. {/eq}
  19. </div>
  20. <form class="navbar-form form-inline" action="{:url('AuthRole/index')}" method="get" onsubmit="layer_loading('正在处理');">
  21. {$searchform.hidden|default=''}
  22. <div class="sDiv">
  23. <div class="sDiv2">
  24. <input type="text" size="30" name="keywords" value="{$Request.param.keywords}" class="qsbox" placeholder="搜索相关数据...">
  25. <input type="submit" class="btn" value="搜索">
  26. <i class="iconfont e-sousuo"></i>
  27. </div>
  28. </div>
  29. </form>
  30. </div>
  31. <div class="hDiv">
  32. <div class="hDivBox">
  33. <table cellspacing="0" cellpadding="0" style="width: 100%">
  34. <thead>
  35. <tr>
  36. <th class="sign w40" axis="col0">
  37. <div class="tc"><input type="checkbox" class="checkAll"></div>
  38. </th>
  39. <th abbr="article_show" axis="col5" class="w40">
  40. <div class="tc">ID</div>
  41. </th>
  42. <th abbr="ac_id" axis="col4">
  43. <div class="text-l10">用户组</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">
  73. {empty name="$vo.built_in"}
  74. <input type="checkbox" name="ids[]" value="{$vo.id}">
  75. {else /}
  76. <input disabled type="checkbox" name="ids[]" value="{$vo.id}">
  77. {/empty}
  78. </div>
  79. </td>
  80. <td class="sort">
  81. <div class="w40 tc">
  82. {$vo.id}
  83. </div>
  84. </td>
  85. <td style="width: 100%">
  86. <div class="text-l10">
  87. {eq name="'AuthRole@edit'|is_check_access" value="1"}
  88. <a href="javascript:void(0);" data-href="{:url('AuthRole/edit',array('id'=>$vo['id']))}" onclick="openFullframe(this, '编辑角色', '100%', '100%');">{$vo.name}</a>
  89. {else /}
  90. {$vo.name}
  91. {/eq}
  92. </div>
  93. </td>
  94. <td class="">
  95. <div class="w100 tc">
  96. {$vo.update_time|date='Y-m-d',###}
  97. </div>
  98. </td>
  99. <td class="operation">
  100. <div class="w120 tc">
  101. {eq name="'AuthRole@edit'|is_check_access" value="1"}
  102. <a href="javascript:void(0);" data-href="{:url('AuthRole/edit',array('id'=>$vo['id']))}" class="btn blue" onclick="openFullframe(this, '编辑角色', '100%', '100%');">编辑</a>
  103. {/eq}
  104. {eq name="'AuthRole@del'|is_check_access" value="1"}
  105. {empty name="$vo.built_in"}
  106. <i></i>
  107. <a class="btn red" href="javascript:void(0)" data-url="{:url('AuthRole/del')}" data-id="{$vo.id}" onClick="delfun(this);">删除</a>
  108. {else /}
  109. <i></i>
  110. <a class="btn grey" href="javascript:void(0)" data-id="{$vo.id}">删除</a>
  111. {/empty}
  112. {/eq}
  113. </div>
  114. </td>
  115. </tr>
  116. {/foreach}
  117. {/empty}
  118. </tbody>
  119. </table>
  120. </div>
  121. <div class="iDiv" style="display: none;"></div>
  122. </div>
  123. <div class="tDiv">
  124. <div class="tDiv2">
  125. <div class="fbutton checkboxall">
  126. <input type="checkbox" class="checkAll">
  127. </div>
  128. {eq name="'AuthRole@del'|is_check_access" value="1"}
  129. <div class="fbutton">
  130. <a onclick="batch_del(this, 'ids');" data-url="{:url('AuthRole/del')}" class="layui-btn layui-btn-primary">
  131. <span>批量删除</span>
  132. </a>
  133. </div>
  134. {/eq}
  135. {include file="public/page" /}
  136. </div>
  137. <div style="clear:both"></div>
  138. </div>
  139. </div>
  140. </div>
  141. <script type="text/javascript">
  142. $(function(){
  143. $('input[name*=ids]').click(function(){
  144. if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
  145. $('.checkAll').prop('checked','checked');
  146. } else {
  147. $('.checkAll').prop('checked', false);
  148. }
  149. });
  150. $('input[type=checkbox].checkAll').click(function(){
  151. $('input[type=checkbox]:not(:disabled)').prop('checked',this.checked);
  152. });
  153. });
  154. $(document).ready(function(){
  155. // 表格行点击选中切换
  156. $('#flexigrid > table>tbody >tr').click(function(){
  157. $(this).toggleClass('trSelected');
  158. });
  159. // 点击刷新数据
  160. $('.fa-refresh').click(function(){
  161. location.href = location.href;
  162. });
  163. });
  164. </script>
  165. {include file="public/footer" /}