messageSendReadMsgDialog.jsp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <%@include file="/commons/include/html_doctype.html"%>
  3. <html>
  4. <head>
  5. <title>查看未读信息</title>
  6. <%@include file="/commons/include/form.jsp" %>
  7. <script type="text/javascript" src="${ctx}/servlet/ValidJs?form=messageReply"></script>
  8. <script type="text/javascript">
  9. $(function() {
  10. function showRequest(formData, jqForm, options) {
  11. return true;
  12. }
  13. valid(showRequest,showResponse);
  14. function showResponse(responseText, statusText) {
  15. var obj=new com.hotent.form.ResultMessage(responseText);
  16. if(obj.isSuccess()){//成功
  17. $.ligerDialog.success(obj.getMessage(),'提示信息',function(rtn){
  18. if(rtn){
  19. $('#btnReply').css('visibility','hidden');
  20. }
  21. });
  22. }else{//失败
  23. $.ligerDialog.err('出错信息',"查看未读信息失败",obj.getMessage());
  24. }
  25. }
  26. parent.$('div.l-dialog-winbtn').click(function() {
  27. winCls();
  28. });
  29. });
  30. // 查看下一条信息
  31. function nextMsg(){
  32. var url=__ctx + "/platform/system/messageSend/readMsgDialog.ht";
  33. window.location.href =url;
  34. }
  35. // 关闭窗口
  36. function winCls(){
  37. window.top.refresh();
  38. }
  39. // 提交回复
  40. function msgReply(){
  41. $('#messageReplyForm').submit();
  42. }
  43. // 回复是否私密
  44. function changePrivate(value){
  45. $("#isPrivate").val(value);
  46. }
  47. </script>
  48. </head>
  49. <body>
  50. <div class="panel">
  51. <div>
  52. <div class="tbar-title">
  53. <span class="tbar-label">查看未读信息</span>
  54. </div>
  55. </div>
  56. <div class="panel-body">
  57. <div class="panel-detail">
  58. <table class="table-detail" cellpadding="0" cellspacing="0" border="0">
  59. <tr>
  60. <th width="20%">标题:</th>
  61. <td colspan="3">${messageSend.subject}</td>
  62. </tr>
  63. <tr>
  64. <th width="20%">发信人:</th>
  65. <td>${messageSend.userName}</td>
  66. <th width="20%">发送时间:</th>
  67. <td><fmt:formatDate value="${messageSend.sendTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
  68. </tr>
  69. <tr>
  70. <th width="20%">内容:</th>
  71. <td colspan="3">${messageSend.content}</td>
  72. </tr>
  73. <c:if test="${messageSend.canReply==1}">
  74. <tr>
  75. <th width="20%">私密回复: </th>
  76. <td colspan="3">
  77. <input type="radio" name="rdoPrivate" value="1" checked="checked" onclick="changePrivate(value)"/>是
  78. <input type="radio" name="rdoPrivate" value="0" onclick="changePrivate(value)"/>否
  79. </td>
  80. </tr>
  81. <tr>
  82. <th width="20%">回复内容:</th>
  83. <td colspan="3">
  84. <form id="messageReplyForm" name="messageReplyForm" action="${ctx}/platform/system/messageReply/reply.ht" method="post">
  85. <textarea rows="3" cols="60" name="content">${messageReply.content}</textarea>
  86. <input type="hidden" value="${messageSend.id}" name="messageId" />
  87. <input type="hidden" value="${messageReply.isPrivate}" id="isPrivate" name="isPrivate" />
  88. </form>
  89. <br>
  90. <a href='#' id="btnReply" class='button' onclick="msgReply()"
  91. style="margin-left:150px;" ><span>回&nbsp;&nbsp;&nbsp;&nbsp;复</span></a>
  92. </td>
  93. </tr>
  94. </c:if>
  95. </table>
  96. </div>
  97. </div>
  98. <br>
  99. <div position="bottom" class="bottom" style='margin-top:10px'>
  100. <form id="nextMsgForm" action=""></form>
  101. <c:if test="${flag==true}">
  102. <a href='#' class='button' onclick="nextMsg()" ><span>下一条</span></a>
  103. </c:if>
  104. <a href='#' class='button' style='margin-left:10px;' onclick="winCls()">
  105. <span>关&nbsp;&nbsp;&nbsp;&nbsp;闭</span></a>
  106. </div>
  107. </div>
  108. </body>
  109. </html>