test_user.html 3.2 KB

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