roomList.jsp 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <%@ page language="java" pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
  4. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
  5. <%@ taglib uri="http://java.sun.com/taglibs/samples-uitls" prefix="utils"%>
  6. <jsp:include page="top.jsp"></jsp:include>
  7. <script type="text/javascript">
  8. function getPage(pageIndex) {
  9. window.location.href = "/console/roomList?pageIndex=" + pageIndex + "&pageSize=25&roomName=" + $("#roomName").val();
  10. }
  11. </script>
  12. <div class="container" style="margin-top: 10px; margin-bottom: 10px; padding-left: 0px; padding-right: 0px;">
  13. <table style="margin-bottom: 10px;">
  14. <tr>
  15. <td>
  16. <form class="form-inline">
  17. <input id="pageIndex" name="pageIndex" type="hidden" value="0" /> <input id="pageSize" name="pageSize" type="hidden" value="25" /> <input id="roomName"
  18. name="roomName" type="text" class="form-control input-sm" placeholder="房间名字" value="${roomName}" />
  19. <button type="submit" class="btn btn-default btn-sm">搜索</button>
  20. <c:if test="${sessionScope.IS_ADMIN == 1}">
  21. <!-- <button type="button" class="btn btn-default btn-sm" onclick="deleteQueryResult();">清空用户</button> -->
  22. </c:if>
  23. </form>
  24. </td>
  25. </table>
  26. <div class="backgrid-container">
  27. <table class="backgrid" style="background-color: #fff;">
  28. <thead>
  29. <tr>
  30. <th width="30"></th>
  31. <th width="250">房间Id</th>
  32. <th width="250">房间名字</th>
  33. <th width="250">房间说明</th>
  34. <th width="200">创建者Id</th>
  35. <th width="200">创建者</th>
  36. <th width="100">创建时间</th>
  37. <th width="100">操作</th>
  38. <th width=""></th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. <c:forEach varStatus="i" var="o" items="${page.pageData}">
  43. <tr>
  44. <td><input type="checkbox" name="ckUserId" value="${o.id}" /></td>
  45. <td><a href='/console/roomDetail?room_jid_id=${o.jid}'>${o.jid}</a></td>
  46. <td class="string-cell">${o.name}</td>
  47. <td class="string-cell">${o.desc}</td>
  48. <td class="string-cell">${o.userId}</td>
  49. <td class="string-cell">${o.nickname}</td>
  50. <td>${utils:format(o.createTime*1000,'yyyy-MM-dd HH:mm:ss')}</td>
  51. <td class="string-cell"><c:if test="${sessionScope.IS_ADMIN == 1}">
  52. <a href='javascript:if(confirm("是否确认删除?"))window.location.href="/console/deleteRoom?roomId=${o._id}&pageIndex=${page.pageIndex}"'>删除</a>
  53. </c:if></td>
  54. <td>&nbsp;</td>
  55. </tr>
  56. </c:forEach>
  57. <tr>
  58. <td colspan="9"><jsp:include page="pageBar.jsp"></jsp:include></td>
  59. </tr>
  60. </tbody>
  61. </table>
  62. </div>
  63. </div>
  64. <jsp:include page="bottom.jsp"></jsp:include>