roomDetail.jsp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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/groupchat_logs_all?pageIndex=" + pageIndex + "&pageSize=25&room_jid_id=" + $("#room_jid_id").val();
  10. }
  11. function deleteQueryResult() {
  12. if (confirm("是否确认清空查询到的${page.total}条消息?")) {
  13. window.location.href = "/console/groupchat_logs_all/del?room_jid_id=" + $("#room_jid_id").val();
  14. }
  15. }
  16. </script>
  17. <!-- <table style="margin-top: 10px; margin-bottom: 10px; margin-left: 10px;"> -->
  18. <!-- <tr> -->
  19. <!-- <td> -->
  20. <!-- <form class="form-inline"> -->
  21. <!-- <input id="pageIndex" name="pageIndex" type="hidden" value="0" /> <input id="pageSize" name="pageSize" type="hidden" value="25" /> <input id="room_jid_id" -->
  22. <%-- name="room_jid_id" type="text" class="form-control input-sm" placeholder="房间Id" value="${room_jid_id}" /> --%>
  23. <!-- <button type="submit" class="btn btn-default btn-sm">搜索消息</button> -->
  24. <%-- <c:if test="${sessionScope.IS_ADMIN == 1}"> --%>
  25. <!-- <button type="button" class="btn btn-default btn-sm" onclick="deleteQueryResult();">清空消息</button> -->
  26. <%-- </c:if> --%>
  27. <!-- </form> -->
  28. <!-- </td> -->
  29. <!-- </table> -->
  30. <div class="backgrid-container">
  31. <table class="backgrid" style="background-color: #fff;">
  32. <thead>
  33. <tr>
  34. <td width="180">房间Id</td>
  35. <td width="150">发送者Id</td>
  36. <td width="150">发送者</td>
  37. <td width="100">时间</td>
  38. <td>内容</td>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. <c:forEach varStatus="i" var="o" items="${page.pageData}">
  43. <tr>
  44. <td>${o.room_jid_id}</td>
  45. <td>${o.sender}</td>
  46. <td>${o.fromUserName}</td>
  47. <td>${utils:format(o.ts,'yyyy-MM-dd')}</td>
  48. <td>${o.content}</td>
  49. </tr>
  50. </c:forEach>
  51. <tr>
  52. <td colspan="5"><jsp:include page="pageBar.jsp"></jsp:include></td>
  53. </tr>
  54. </tbody>
  55. </table>
  56. </div>
  57. <jsp:include page="bottom.jsp"></jsp:include>