log.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. </div>
  11. <div>
  12. <div class="cf">
  13. <div class="fl">
  14. <div class="fl">
  15. <a class="btn btn-success " href="{:U('User/logEdit')}">新 增</a>
  16. <button class="ajax-post btn btn-info " url="{:U('User/logStatus',array('type'=>'resume'))}" target-form="ids">启 用</button>
  17. <button class="ajax-post btn btn-warning ajax-post" url="{:U('User/logStatus',array('type'=>'forbid'))}" target-form="ids">禁 用</button>
  18. <button class="btn ajax-post confirm btn-danger " url="{:U('User/logStatus',array('type'=>'del'))}" target-form="ids">删 除</button>
  19. </div>
  20. </div>
  21. <div class="search-form fr cf">
  22. <div class="sleft">
  23. <form name="formSearch" id="formSearch" method="get" name="form1">
  24. <select style="width: 160px; float: left; margin-right: 10px;" name="status" class="form-control">
  25. <option value=""
  26. <empty name="Think.get.status">selected</empty>
  27. >全部状态</option>
  28. <option value="1"
  29. <eq name="Think.get.status" value="1">selected</eq>
  30. >冻结状态</option>
  31. <option value="2"
  32. <eq name="Think.get.status" value="2">selected</eq>
  33. >正常状态</option>
  34. </select>
  35. <select style=" width: 160px; float: left; margin-right: 10px;" name="field" class="form-control">
  36. <option value="username"
  37. <empty name="Think.get.field">selected</empty>
  38. >用户名</option>
  39. </select>
  40. <input type="text" name="name" class="search-input form-control " value="{$Think.get.name}" placeholder="请输入查询内容" style="">
  41. <a class="sch-btn" href="javascript:;" id="search"> <i class="btn-search"></i> </a>
  42. </form>
  43. <script>
  44. //搜索功能
  45. $(function () {
  46. $('#search').click(function () {
  47. $('#formSearch').submit();
  48. });
  49. });
  50. //回车搜索
  51. $(".search-input").keyup(function (e) {
  52. if (e.keyCode === 13) {
  53. $("#search").click();
  54. return false;
  55. }
  56. });
  57. </script>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="data-table table-striped">
  63. <table class="">
  64. <thead>
  65. <tr>
  66. <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
  67. <th class="">ID</th>
  68. <th class="">用户名</th>
  69. <th class="">类型</th>
  70. <th class="">内容</th>
  71. <th class="">操作ip</th>
  72. <th class="">操作时间</th>
  73. <th class="">状态</th>
  74. <th class="">操作</th>
  75. </tr>
  76. </thead>
  77. <tbody>
  78. <notempty name="list">
  79. <volist name="list" id="vo">
  80. <tr>
  81. <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}"/></td>
  82. <td>{$vo.id}</td>
  83. <td>{$vo['username']}</td>
  84. <td>{$vo.type}</td>
  85. <td>{$vo.remark}</td>
  86. <td>{$vo.addip}</td>
  87. <td>{$vo.addtime|addtime}</td>
  88. <td>
  89. <eq name="vo.status" value="1">可用
  90. <else/>
  91. 禁用
  92. </eq>
  93. </td>
  94. <td><a href="{:U('User/logEdit?id='.$vo['id'])}" class="btn btn-primary btn-xs">编辑</a>
  95. </td>
  96. </tr>
  97. </volist>
  98. <else/>
  99. <td colspan="12" class="text-center empty-info"><i class="glyphicon glyphicon-exclamation-sign"></i>暂无数据</td>
  100. </notempty>
  101. </tbody>
  102. </table>
  103. <div class="page">
  104. <div>{$page}</div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. <include file="Public:footer"/>
  110. <block name="script">
  111. <script type="text/javascript" charset="utf-8">
  112. //导航高亮
  113. highlight_subnav("{:U('User/log')}");
  114. </script>
  115. </block>