msg_send.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.communication.util.DeptEmpHandler" %>
- <%@ page import="com.vnex.intranet.communication.message.value.MessageValueBean" %>
- <%@ page import="com.vnex.intranet.util.FieldUtil" %>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <%
- String msgTitle = "";
- String msgBody = "";
- if(request.getParameter("msgTitle") != null)
- msgTitle = FieldUtil.filterQuotTag(request.getParameter("msgTitle"));
- if(request.getParameter("msgBody") != null)
- msgBody = 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 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";
- form.encoding="multipart/form-data";
- form.submit();
- }
- }
- function isCompleteData(form)
- {
- if(isEmpty(form.msgTitle.value) || isEmptyStr(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;
- }
- </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="#fafafa">
- <td width="15%"><strong> 标题:</strong></td>
- <td><input type="text" name="msgTitle" class="text" value="<%=msgTitle%>"> * (注:带*为必填内容)
- </td>
- </tr>
- <tr bgcolor="e0e0e0">
- <td width="15%"><strong> 内容:</strong></td>
- <td><textarea rows="5" name="msgBody" cols="59"><%=msgBody%></textarea>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <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">
- </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="#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" 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>