test_user.html 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!--<%include ../layout/second_menu.html %>-->
  2. <div class="panel-content">
  3. <div class="panel-title fluid">
  4. <div class="title-main">
  5. <h2>
  6. <% for (let menu of userMenu) { %>
  7. <% if (menu.title === secondMenu[action].title) { %>
  8. <%= menu.title %>
  9. <% } else { %>
  10. <a href="<%= menu.url %>" class="btn btn-primary btn-link" style="padding-left:0;margin-left: 0;margin-right: 12px"><%= menu.title %></a>
  11. <% } %>
  12. <% } %>
  13. <a href="#news-add" data-toggle="modal" data-target="#news-add" class="btn btn-primary btn-sm pull-right">添加用户</a>
  14. </h2>
  15. </div>
  16. </div>
  17. <div class="content-wrap">
  18. <div class="c-header">
  19. <form class="form-inline" method="get" action="">
  20. <!--搜索-->
  21. <div class="btn-group">
  22. <div class="input-group">
  23. <input type="text" name="keyword" class="form-control input-sm" value="<%= filter.keyword === undefined ? '' : filter.keyword %>" placeholder="手机/邮箱/姓名/公司">
  24. <span class="input-group-btn">
  25. <button class="btn btn-default btn-sm" type="submit">
  26. <i class="glyphicon glyphicon-search"></i>
  27. </button>
  28. </span>
  29. </div>
  30. </div>
  31. </form>
  32. <div class="btn-group">
  33. </div>
  34. </div>
  35. <div class="c-body">
  36. <table class="table">
  37. <thead>
  38. <tr>
  39. <th width="350">注册手机/邮箱</th>
  40. <th>姓名</th>
  41. <th>企业名称</th>
  42. <th>企业地区</th>
  43. <th>最近使用版本</th>
  44. <th width="180">最近登录</th>
  45. <th width="180">注册时间</th>
  46. <th>详细</th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. <% userList.forEach(function (user){ %>
  51. <tr>
  52. <td><%= user.mobile %> / <%= user.email %></td>
  53. <td><%= user.real_name %></td>
  54. <td><a tabindex="0" role="button" data-toggle="popover" data-trigger="focus" title="更多信息"
  55. data-content="企业类型:<%= model.companyType[user.company_type] %>,企业规模:<%= model.companyScale[user.company_scale] %>"><%= user.company %></a>
  56. </td>
  57. <td><%= model.province[user.province] %></td>
  58. <td><%= compilationMap[user.latest_used]?compilationMap[user.latest_used].name:""%></td>
  59. <td><%= user.latest_login?moment(user.latest_login).format('YYYY-MM-DD HH:mm:ss'):"" %></td>
  60. <td><%= moment(user.create_time).format('YYYY-MM-DD HH:mm:ss') %></td>
  61. <td><a role="button" data-toggle="modal" data-target="#view" onclick='getUserInfo("<%= user._id.toString()%>")'>详细</a></td>
  62. </tr>
  63. <% }) %>
  64. </tbody>
  65. </table>
  66. <nav aria-label="Page navigation">
  67. <%include ../layout/page.html %>
  68. </nav>
  69. </div>
  70. </div>
  71. </div>
  72. <script type="text/javascript">
  73. let compilationList = JSON.parse('<%- compilationString %>');
  74. let adminName = '<%- adminName %>';
  75. </script>
  76. <script type="text/javascript" src="/web/users/js/user.js"></script>