msg_sent_detail.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:9k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.communication.util.DeptEmpHandler" %>
- <%@ page import="java.util.Vector" %>
- <%@ page import="com.vnex.intranet.communication.message.value.MessageValueBean" %>
- <%@ page import="com.vnex.intranet.util.FieldUtil" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_communication.tld" prefix="comm" %>
- <jsp:useBean id="mvb" scope="request" class="com.vnex.intranet.communication.message.value.MessageValueBean" />
- <jsp:useBean id="msgProxy" scope="application" class="com.vnex.intranet.communication.message.proxy.MessageProxyBean" />
- <jsp:useBean id="cu" scope="request" class="com.vnex.intranet.communication.util.CommunicationUtil" />
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <%
- int msgId = Integer.parseInt(request.getParameter("msgId"));
- mvb = msgProxy.getSentMessageDetail(msgId);
- int[] ids = mvb.getReceiverIds();
- String[] receivers = mvb.getReceivers();
- if(request.getParameter("msgTitle") != null)
- mvb.setMsgTitle(FieldUtil.filterQuotTag(request.getParameter("msgTitle")));
- if(request.getParameter("msgBody") != null)
- mvb.setMsgBody(request.getParameter("msgBody"));
- String selfId = ""+BusinessName.getEmpId();
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_communicate.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <script language="JavaScript" src="/vnex/util/popSelect.js"></script>
- <script language="javascript" src="/vnex/util/strUtil.js"></script>
- <script language=JavaScript>
- function SelectAll(form)
- {
- for (var i=0;i<form.elements.length;i++)
- {
- var e = form.elements[i];
- if (e.name != 'C1')
- e.checked = form.C1.checked;
- }
- }
- function sendMsg(form)
- {
- if(isCompleteData(form))
- {
- selectList(form.receiverArray);
- deleteSelf(form.receiverArray, "<%=selfId%>");
- if(form.receiverArray.options.length == 1 && form.receiverArray.options[0].value == "<%=selfId%>")
- {
- alert("你选择了给自己发消息,请选择其它的用户");
- return;
- }
- form.action="/mainctrl/msg/sendMsgProcess?resend";
- form.encoding="multipart/form-data";
- form.submit();
- }
- }
- function deleteThisMsg(form)
- {
- if(confirm("是否删除本消息?"))
- {
- form.action="/mainctrl/msg/deleteSentMsg?msgId="+<%=request.getParameter("msgId")%>;
- form.submit();
- }
- }
- function isCompleteData(form)
- {
- if(isEmpty(form.msgTitle.value))
- {
- alert("请输入发送消息的标题");
- form.msgTitle.focus();
- return false;
- }
- if(isInvalidateLen(form.msgTitle.value, 100))
- {
- alert("标题不能超过25个汉字或100个英文字符");
- form.msgTitle.focus();
- return false;
- }
- if(isInvalidateLen(form.msgBody.value, 1000))
- {
- alert("内容不能超过250个汉字或1000个英文字符");
- form.msgBody.focus();
- return false;
- }
- if(form.receiverArray.options.length == 0)
- {
- alert("请至少选择一个收件人");
- return false;
- }
- return true;
- }
- function SelectAll(form)
- {
- for (var i=0;i<form.elements.length;i++)
- {
- var e = form.elements[i];
- if (e.name != 'C1')
- e.checked = form.C1.checked;
- }
- }
- </script>
- <DIV align=center>
- <form name="form1" method="post">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr valign="top">
- <td bgcolor="#fafafa" >
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr valign="top" bgcolor="#cccccc">
- <td>
- <table width="600" border="0" cellpadding="2" cellspacing="0">
- <tr bgcolor="#666666">
- <td><font class="strongw"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>><a href="/mainctrl/communication/main"><font color="#ffffff">通信</font></a>>><a href="/mainctrl/msg/sentHome"><font color="#ffffff">消息板</font></a>>>发送信息详细内容</font>
- </td>
- </tr>
- </table>
- <table width="600" border="0" cellspacing="1" cellpadding="2">
- <tr bgcolor="#e0e0e0">
- <td width="15%"><strong> 标题:</strong></td>
- <td><input type="text" name="msgTitle" class="text" value="<%=mvb.getMsgTitle()%>"> * (注:带*为必填内容)
- </td>
- </tr>
- <tr bgcolor="fafafa">
- <td width="15%"><strong> 内容:</strong></td>
- <td><textarea rows="5" name="msgBody" cols="59"><%=mvb.getMsgBody()%></textarea>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="26%"><strong> 接收人:</strong></td>
- <td>
- <input type="hidden" name="updated" value="false">
- <input type="hidden" name="tempHidden" value="">
- <select size="7" name="receiverArray" multiple style="width:200px">
- <% if(ids != null)
- {
- for(int i=0;i<ids.length;i++)
- {
- out.println("<option value=""+ids[i]+"">"+receivers[i]+"</option>");
- }
- }
- %>
- </select>
- <input type="button" name="Submit1" value="按部门选择" class="file" onClick="javascript:addList( receiverArray)" style="width:70px">
-
- <input type="button" name="Submit2" style="width:60px" value="分组选择" class="file" onClick="javascript:addGroupList(receiverArray )" >
-
- <input type="button" name="Submit2" value="删除" class="text" onclick="delAllSelOpts(receiverArray)"> *
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="26%"><strong> 原附件:</strong></td>
- <td>
- <table width="100%" border="0" cellspacing="1" cellpadding="2" class="title">
- <comm:attachmentList msgId="<%=msgId%>" searchWhat="send">
- <vnex:items>
- <tr bgcolor="<vnex:itemsColor />" align="center">
- <td><img src="/vnex/MacOS/addfile.gif" border="0">
- <a href="<comm:attachmentAttribute attribute="file_location"/>" target="_blank"><comm:attachmentAttribute attribute="file_name" /></a>
- </td>
- <!--
- <td><input type="button" class="text" value="删除" name="b1"
- onclick="location='/mainctrl/msg/removeAttachment?msgId=<comm:attachmentAttribute attribute="id"/>&fileId=<comm:attachmentAttribute attribute="file_id"/>'">
- </td>
- -->
- <input type="hidden" name="fileLocations" value="<comm:attachmentAttribute attribute="fileNoUseEncode"/>">
- </tr>
- </vnex:items>
- </comm:attachmentList>
- </table>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="26%"><strong> 新附件:</strong></td>
- <td>
- <input type="file" class="file" name="file1" size="24"><br>
- <input type="file" class="file" name="file2" size="24"><br>
- <input type="file" class="file" name="file3" size="24"><br>
- <input type="file" class="file" name="file4" size="24"><br>
- <input type="file" class="file" name="file5" size="24">
- </td>
- </tr>
- <tr bgcolor="#fafafa" height="30">
- <td colspan="2" align="center">
- <input type="button" value="发送" name="B1" onClick="sendMsg(this.form)" class="text">
-
- <input type="reset" value="重置" name="B1" class="text">
-
- <input type="button" value="删除" name="B1" onClick="deleteThisMsg(this.form)" class="text">
-
- <input type="button" value="放弃" name="B1" class="text" onclick="location='/mainctrl/msg/sentHome'">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>