123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <%@page language="java" pageEncoding="UTF-8"%>
- <%@include file="/commons/include/html_doctype.html"%>
- <html>
- <head>
- <title>查看未读信息</title>
- <%@include file="/commons/include/form.jsp" %>
- <script type="text/javascript" src="${ctx}/servlet/ValidJs?form=messageReply"></script>
- <script type="text/javascript">
- $(function() {
- function showRequest(formData, jqForm, options) {
- return true;
- }
- valid(showRequest,showResponse);
-
- function showResponse(responseText, statusText) {
- var obj=new com.hotent.form.ResultMessage(responseText);
- if(obj.isSuccess()){//成功
- $.ligerDialog.success(obj.getMessage(),'提示信息',function(rtn){
- if(rtn){
- $('#btnReply').css('visibility','hidden');
- }
- });
-
- }else{//失败
- $.ligerDialog.err('出错信息',"查看未读信息失败",obj.getMessage());
- }
- }
-
- parent.$('div.l-dialog-winbtn').click(function() {
- winCls();
- });
-
- });
-
- // 查看下一条信息
- function nextMsg(){
- var url=__ctx + "/platform/system/messageSend/readMsgDialog.ht";
- window.location.href =url;
- }
-
- // 关闭窗口
- function winCls(){
-
- window.top.refresh();
- }
-
- // 提交回复
- function msgReply(){
- $('#messageReplyForm').submit();
- }
-
- // 回复是否私密
- function changePrivate(value){
- $("#isPrivate").val(value);
- }
- </script>
- </head>
- <body>
- <div class="panel">
- <div>
- <div class="tbar-title">
- <span class="tbar-label">查看未读信息</span>
- </div>
- </div>
- <div class="panel-body">
- <div class="panel-detail">
- <table class="table-detail" cellpadding="0" cellspacing="0" border="0">
- <tr>
- <th width="20%">标题:</th>
- <td colspan="3">${messageSend.subject}</td>
- </tr>
- <tr>
- <th width="20%">发信人:</th>
- <td>${messageSend.userName}</td>
- <th width="20%">发送时间:</th>
- <td><fmt:formatDate value="${messageSend.sendTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
- </tr>
- <tr>
- <th width="20%">内容:</th>
- <td colspan="3">${messageSend.content}</td>
- </tr>
- <c:if test="${messageSend.canReply==1}">
- <tr>
- <th width="20%">私密回复: </th>
- <td colspan="3">
- <input type="radio" name="rdoPrivate" value="1" checked="checked" onclick="changePrivate(value)"/>是
- <input type="radio" name="rdoPrivate" value="0" onclick="changePrivate(value)"/>否
- </td>
- </tr>
- <tr>
- <th width="20%">回复内容:</th>
- <td colspan="3">
- <form id="messageReplyForm" name="messageReplyForm" action="${ctx}/platform/system/messageReply/reply.ht" method="post">
- <textarea rows="3" cols="60" name="content">${messageReply.content}</textarea>
- <input type="hidden" value="${messageSend.id}" name="messageId" />
- <input type="hidden" value="${messageReply.isPrivate}" id="isPrivate" name="isPrivate" />
- </form>
- <br>
- <a href='#' id="btnReply" class='button' onclick="msgReply()"
- style="margin-left:150px;" ><span>回 复</span></a>
- </td>
- </tr>
- </c:if>
- </table>
- </div>
- </div>
- <br>
- <div position="bottom" class="bottom" style='margin-top:10px'>
- <form id="nextMsgForm" action=""></form>
- <c:if test="${flag==true}">
- <a href='#' class='button' onclick="nextMsg()" ><span>下一条</span></a>
- </c:if>
- <a href='#' class='button' style='margin-left:10px;' onclick="winCls()">
- <span>关 闭</span></a>
- </div>
-
- </div>
- </body>
- </html>
|