adminUser.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <include file="Public:header"/>
  2. <div id="main-content">
  3. <div id="top-alert" class="fixed alert alert-error" style="display: none;">
  4. <button class="close fixed" style="margin-top: 4px;">&times;</button>
  5. <div class="alert-content">警告内容</div>
  6. </div>
  7. <div id="main" class="main">
  8. <div class="main-title-h">
  9. <span class="h1-title">后台用户管理</span>
  10. <notempty name="name">
  11. <span class="h2-title">>><a href="{:U('User/adminUser')}">管理列表</a></span>
  12. </notempty>
  13. </div>
  14. <div class="cf">
  15. <div class="fl">
  16. <a class="btn btn-success navbar-btn btn-sm" href="{:U('User/adminUserEdit')}">新 增</a>
  17. <button class="btn ajax-post btn-info navbar-btn btn-sm"
  18. url="{:U('User/status',array('type'=>'resume','mobile'=>'Admin'))}" target-form="ids">启 用
  19. </button>
  20. <button class="btn ajax-post btn-warning navbar-btn btn-sm"
  21. url="{:U('User/status',array('type'=>'forbid','mobile'=>'Admin'))}" target-form="ids">禁 用
  22. </button>
  23. <button class="btn ajax-post confirm btn-danger navbar-btn btn-sm" confirm-msg="批量删除不可恢复,确定删除?"
  24. url="{:U('User/status',array('type'=>'del','mobile'=>'Admin'))}" target-form="ids">删 除
  25. </button>
  26. </div>
  27. <div class="search-form fr cf">
  28. <div class="sleft">
  29. <form name="formSearch" id="formSearch" method="get" name="form1">
  30. <select style="height: 32px; font-size: 14px; width: 100px; float: left; margin-right: 5px;"
  31. name="field">
  32. <option value="uid"
  33. <option value="username">用户名</option>
  34. </select> <input type="text" name="name" class="search-input" value="{$name}"
  35. placeholder="查找管理员" style="width: 150px">
  36. <a class="sch-btn" href="javascript:;" id="search">
  37. <i class="btn-search"></i>
  38. </a>
  39. </form>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="data-table table-striped">
  44. <table class="">
  45. <thead>
  46. <tr>
  47. <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
  48. <th class="">ID</th>
  49. <th class="">用户名</th>
  50. <th class="">真实姓名</th>
  51. <th class="">手机号</th>
  52. <th class="">邮箱</th>
  53. <th class="">状态</th>
  54. <th class="">操作</th>
  55. </tr>
  56. </thead>
  57. <tbody>
  58. <notempty name="list">
  59. <volist name="list" id="vo">
  60. <tr>
  61. <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}"/></td>
  62. <td>{$vo.id}</td>
  63. <td>{$vo.username}</td>
  64. <td>{$vo.nickname}</td>
  65. <td>{$vo.mobile}</td>
  66. <td>{$vo.email}</td>
  67. <td>
  68. <eq name="vo.status" value="0">禁用</eq>
  69. <eq name="vo.status" value="1">正常</eq>
  70. </td>
  71. <td>
  72. <a href="{:U('User/adminUserEdit?id='.$vo['id'])}" class="btn btn-info btn-xs">编辑</a>
  73. </td>
  74. </tr>
  75. </volist>
  76. <else/>
  77. <td colspan="12" class="text-center empty-info"><i class="glyphicon glyphicon-exclamation-sign"></i>暂无数据</td>
  78. </notempty>
  79. </tbody>
  80. </table>
  81. <div class="page">
  82. <div>{$page}</div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <script type="text/javascript">
  88. function del_adminuser() {
  89. var aaa = confirm("确定要清空数据吗?");
  90. alert(aaa);
  91. return false;
  92. }
  93. //搜索功能
  94. $(function () {
  95. $('#search').click(function () {
  96. $('#formSearch').submit();
  97. });
  98. });
  99. //回车搜索
  100. $(".search-input").keyup(function (e) {
  101. if (e.keyCode === 13) {
  102. $("#search").click();
  103. return false;
  104. }
  105. });
  106. </script>
  107. <script type="text/javascript">
  108. $(function () {
  109. //主导航高亮
  110. $('.user-box').addClass('current');
  111. //边导航高亮
  112. $('.user-index').addClass('current');
  113. });
  114. </script>
  115. <include file="Public:footer"/>