index.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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 %></h2>
  6. </div>
  7. </div>
  8. <div class="content-wrap">
  9. <div class="c-header">
  10. <form class="form-inline" method="get" action="">
  11. <!--最近使用定额-->
  12. <div class="btn-group">
  13. <button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
  14. aria-haspopup="true" aria-expanded="false">
  15. 最近使用费用定额: <span class="caret"></span>
  16. </button>
  17. <ul class="dropdown-menu selector">
  18. <% for(let compilation of compilationList){ %>
  19. <li><a data-value="<%= compilation._id.toString()%>"><%= compilation.name %></a></li>
  20. <% } %>
  21. </ul>
  22. <input type="hidden" name="latestUsed" value="<%= filter.latestUsed%>" />
  23. </div>
  24. <!--已升级费用定额-->
  25. <div class="btn-group">
  26. <button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
  27. aria-haspopup="true" aria-expanded="false">
  28. 已升级费用定额: <span class="caret"></span>
  29. </button>
  30. <ul class="dropdown-menu selector">
  31. <% for(let compilation of compilationList){ %>
  32. <li><a data-value="<%= compilation._id.toString()%>"><%= compilation.name %></a></li>
  33. <% } %>
  34. </ul>
  35. <input type="hidden" name="upGrade" value="<%= filter.upGrade%>" />
  36. </div>
  37. <!--最新注册-->
  38. <div class="btn-group">
  39. <button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
  40. aria-haspopup="true" aria-expanded="false">
  41. 最新注册:<%= filter.regtimeMsg === undefined ? '所有' : filter.regtimeMsg %><span class="caret"></span>
  42. </button>
  43. <ul class="dropdown-menu selector">
  44. <li><a data-value="0">所有</a></li>
  45. <li><a data-value="1">最近24小时</a></li>
  46. <li><a data-value="2">最近3天</a></li>
  47. <li><a data-value="3">最近7天</a></li>
  48. <li><a data-value="4">最近30天</a></li>
  49. </ul>
  50. <input type="hidden" name="regtime" value="<%= filter.regtime%>" />
  51. </div>
  52. <!--最近登录-->
  53. <div class="btn-group">
  54. <button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
  55. aria-haspopup="true" aria-expanded="false">
  56. 最新注册:<%= filter.regtimeMsg === undefined ? '所有' : filter.regtimeMsg %><span class="caret"></span>
  57. </button>
  58. <ul class="dropdown-menu selector">
  59. <li><a data-value="0">所有</a></li>
  60. <li><a data-value="1">最近24小时</a></li>
  61. <li><a data-value="2">最近3天</a></li>
  62. <li><a data-value="3">最近7天</a></li>
  63. <li><a data-value="4">最近30天</a></li>
  64. </ul>
  65. <input type="hidden" name="loginTime" value="<%= filter.loginTime%>" />
  66. </div>
  67. <!--结果-->
  68. <div class="btn-group">
  69. &nbsp;共 <%= total %> 条结果
  70. </div>
  71. <!--搜索-->
  72. <div class="btn-group pull-right">
  73. <div class="input-group">
  74. <input type="text" name="keyword" class="form-control input-sm" value="<%= filter.keyword === undefined ? '' : filter.keyword %>" placeholder="手机/邮箱/姓名/公司">
  75. <span class="input-group-btn">
  76. <button class="btn btn-default btn-sm" type="submit">
  77. <i class="glyphicon glyphicon-search"></i>
  78. </button>
  79. </span>
  80. </div>
  81. </div>
  82. </form>
  83. </div>
  84. <div class="c-body">
  85. <table class="table">
  86. <thead>
  87. <tr>
  88. <th width="350">注册手机/邮箱</th>
  89. <th>姓名</th>
  90. <th>企业名称</th>
  91. <th>企业地区</th>
  92. <th>最近使用版本</th>
  93. <th width="180">最近登录</th>
  94. <th width="180">注册时间</th>
  95. <th>详细</th>
  96. <th>升级</th>
  97. </tr>
  98. </thead>
  99. <tbody>
  100. <% userList.forEach(function (user){ %>
  101. <tr>
  102. <td><%= user.mobile %> / <%= user.email %></td>
  103. <td><%= user.real_name %></td>
  104. <td><a tabindex="0" role="button" data-toggle="popover" data-trigger="focus" title="更多信息"
  105. data-content="企业类型:<%= model.companyType[user.company_type] %>,企业规模:<%= model.companyScale[user.company_scale] %>"><%= user.company %></a>
  106. </td>
  107. <td><%= model.province[user.province] %></td>
  108. <td>重庆01版</td>
  109. <td>登录时间</td>
  110. <td><%= moment(user.create_time).format('YYYY-MM-DD HH:mm:ss') %></td>
  111. <td><a>详细</a></td>
  112. <td>升级</td>
  113. </tr>
  114. <% }) %>
  115. </tbody>
  116. </table>
  117. <nav aria-label="Page navigation">
  118. <%include ../layout/page.html %>
  119. </nav>
  120. </div>
  121. </div>
  122. </div>
  123. <!-- 弹窗查看用户详情-->
  124. <div class="modal fade" id="view" tabindex="-1" role="dialog">
  125. <div class="modal-dialog" role="document">
  126. <div class="modal-content">
  127. <div class="modal-header">
  128. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  129. <h4 class="modal-title" >用户信息</h4>
  130. </div>
  131. <div class="modal-body">
  132. <table class="table table-bordered">
  133. <tbody>
  134. <tr><th>注册时间</th><td>2017-03-03 14:29:03</td><th>最近登录</th><td>2017-03-04 14:29:03</td></tr>
  135. <tr><th>手机</th><td>12345678909</td><th>邮箱</th><td></td></tr>
  136. <tr><th>姓名</th><td colspan="3">张三</td></tr>
  137. <tr><th>企业名称</th><td colspan="3">珠海纵横创新软件有限公司</td></tr>
  138. <tr><th>企业地区</th><td>珠海</td><th>企业类型</th><td>设计</td></tr>
  139. <tr><th>企业规模</th><td colspan="3">20-50</td></tr>
  140. </tbody>
  141. </table>
  142. </div>
  143. <div class="modal-footer">
  144. <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. <script type="text/javascript" src="/web/users/js/user.js"></script>