Index.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!-- header start -->
  2. <include file="Public/Header" />
  3. <!-- header end -->
  4. <!-- right content start -->
  5. <div class="content-right">
  6. <div class="content">
  7. <!-- form start -->
  8. <form class="am-form admin-list" action="{{:U('Admin/Admin/Index')}}" method="POST">
  9. <div class="am-g">
  10. <select class="am-radius c-p" name="role_id">
  11. <option value="">{{:L('common_select_can_choose')}}</option>
  12. <foreach name="role" item="v">
  13. <option value="{{$v.id}}" <if condition="isset($param['role_id']) and $param['role_id'] eq $v['id']">selected</if>>{{$v.name}}</option>
  14. </foreach>
  15. </select>
  16. <input type="text" class="am-radius" placeholder="{{:L('login_username_text')}}" name="username" <present name="param['username']"> value="{{$param.username}}"</present> />
  17. <button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius">{{:L('common_operation_query')}}</button>
  18. </div>
  19. </form>
  20. <!-- form end -->
  21. <!-- operation start -->
  22. <div class="am-g m-t-15">
  23. <a href="{{:U('Admin/Admin/SaveInfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> {{:L('common_operation_add')}}</a>
  24. </div>
  25. <!-- operation end -->
  26. <!-- list start -->
  27. <table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">
  28. <thead>
  29. <tr>
  30. <th>{{:L('common_admin_name')}}</th>
  31. <th>{{:L('common_view_gender_name')}}</th>
  32. <th>{{:L('login_total_name')}}</th>
  33. <th class="am-hide-sm-only">{{:L('login_last_time_name')}}</th>
  34. <th class="am-hide-sm-only">{{:L('common_create_time_name')}}</th>
  35. <th>{{:L('common_operation_name')}}</th>
  36. </tr>
  37. </thead>
  38. <tbody>
  39. <if condition="!empty($list)">
  40. <foreach name="list" item="v">
  41. <tr id="data-list-{{$v.id}}">
  42. <td>{{$v.username}}</td>
  43. <td>{{:L('common_gender_list')[$v['gender']]['name']}}</td>
  44. <td>{{$v.login_total}}</td>
  45. <td class="am-hide-sm-only">
  46. <if condition="$v['login_total'] eq 0">
  47. {{:L('common_not_login_name')}}
  48. <else />
  49. {{:date('Y-m-d H:i:s', $v['login_time'])}}
  50. </if>
  51. </td>
  52. <td class="am-hide-sm-only">{{:date('Y-m-d H:i:s', $v['add_time'])}}</td>
  53. <td>
  54. <if condition="$v['id'] eq 1">
  55. <span class="cr-ccc">{{:L('common_do_not_operate')}}</span>
  56. <else />
  57. <a href="{{:U('Admin/Admin/SaveInfo', array('id'=>$v['id']))}}">
  58. <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit" data-am-popover="{content: '{{:L('common_operation_edit')}}', trigger: 'hover focus'}"></button>
  59. </a>
  60. <if condition="$v['id'] neq $admin['id']">
  61. <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:U('Admin/Admin/Delete')}}" data-am-popover="{content: '{{:L('common_operation_delete')}}', trigger: 'hover focus'}" data-id="{{$v.id}}"></button>
  62. </if>
  63. </if>
  64. </td>
  65. </tr>
  66. </foreach>
  67. <else />
  68. <tr><td colspan="5" class="table-no">{{:L('common_not_data_tips')}}</td></tr>
  69. </if>
  70. </tbody>
  71. </table>
  72. <!-- list end -->
  73. <!-- page start -->
  74. <if condition="!empty($list)">
  75. {{$page_html}}
  76. </if>
  77. <!-- page end -->
  78. </div>
  79. </div>
  80. <!-- right content end -->
  81. <!-- footer start -->
  82. <include file="Public/Footer" />
  83. <!-- footer end -->