SendMessage.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:9k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312" %>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>短信息-- GForce OA 2.0</title>
- <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="/js/changestyle.js"></script>
- <script language="JavaScript" type="text/javascript">
- function saveClick()
- {
- with(document.sendmessage)
- {
- if(Title.value=="")
- {
- alert("请输入短信息标题!");
- Title.focus();
- return false;
- }
- RecieveUserIDs.value="<%=m_session.GetInt("UserID")%>";
- AccessoriesNames.value="";
- AccessoriesURLs.value="";
- for(var i=0;i<AccessoriesList.length;i++)
- {
- if(AccessoriesList.options[i].value.length>1)
- {
- AccessoriesNames.value += "," + AccessoriesList.options[i].text;
- AccessoriesURLs.value += "," + AccessoriesList.options[i].value;
- }
- }
- }
- document.sendmessage.submit();
- }
- function checkSendMessage()
- {
- with(document.sendmessage)
- {
- if(Title.value=="")
- {
- alert("请输入短信息标题!");
- Title.focus();
- return false;
- }
- AccessoriesNames.value="";
- AccessoriesURLs.value="";
- if(RecieveUserIDs.value.replace(",","").length<1)
- {
- alert("请选择接收人!");
- RecieveUserNames.focus();
- return false;
- }
- for(var i=0;i<AccessoriesList.length;i++)
- {
- if(AccessoriesList.options[i].value.length>1)
- {
- AccessoriesNames.value += "," + AccessoriesList.options[i].text;
- AccessoriesURLs.value += "," + AccessoriesList.options[i].value;
- }
- }
- }
- return true;
- }
- </script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="50" valign="top" background="../images/dy-back.gif">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr valign="middle">
- <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
- <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">发送信件</font></strong></td>
- <td align="right" nowrap="nowrap" valign="bottom">
- <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59"> -->
- <!--单增<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59"> -->
- <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59"> -->
- <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59"> -->
- <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59"> -->
- <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79"> -->
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table><br>
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <form name="sendmessage" action="SendMessageAction.jsp" method="post" onSubmit="javascript:return checkSendMessage();">
- <table width="95%" border="1" cellspacing="0" cellpadding="0">
- <tr>
- <td width="66" bgcolor="<%=m_session.GetString("TitleColor")%>" align="right">主题:</td>
- <td><input name="Title" type="text" id="Title" maxlength="60" size="89"></td>
- <tr>
- <td width="66" bgcolor="<%=m_session.GetString("TitleColor")%>" align="right">接收人:</td>
- <td><textarea name="RecieveUserNames" cols="75" rows="3" readonly="true" ondblclick="GetUserIDAndNames(document.sendmessage.RecieveUserIDs, this);"></textarea>
- <input name="RecieveUserIDs" type="hidden" value=""><a href="" onclick="GetUserIDAndNames(document.sendmessage.RecieveUserIDs, document.sendmessage.RecieveUserNames);return false;" title="选择员工名称"><img src="/images/couple.gif" border="0"></a>
- <br>
- <Select name="OnlineUser" tabindex="10" size="1" style="border-width: 0px;">
- <option ><%=" --- 当前共有" + OnlineUserManager.getOnlineUsers().size() + "人在线 --- "%></option>
- <%
- Enumeration options = OnlineUserManager.getOnlineUsers().elements();
- while(options.hasMoreElements())
- {
- Session option = new Session( (HttpSession)options.nextElement());
- if(option.GetInt("UserID")>0)
- {
- out.print("<option>" + UserManager.getDepartmentNameByUserID(option.GetInt("UserID")) + ":" + UserManager.getPersonnelNameByUserID(option.GetInt("UserID")) + " </option>");
- }
- else
- {
- out.print("<option>客人</option>");
- }
- }
- %>
- </select>
- </tr>
- <tr>
- <td align="right" bgcolor="<%=m_session.GetString("TitleColor")%>">内容:</td>
- <td height="280">
- <IFRAME ID="WebEditor1" src="/WebEditor/WebEditor.jsp?id=Content" frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
- <textarea name="Content" cols="75" rows="3" readonly="true" style="display:none;"><%=""%></textarea>
- </td>
- </tr>
- <tr>
- <td align="right" bgcolor="<%=m_session.GetString("TitleColor")%>">附件:</td>
- <td valign="middle">
- <table width="100%" border="0" cellspacing="1" cellpadding="1">
- <tr>
- <td><select name="AccessoriesList" size="4" multiple style="width:550px;">
- </select></td>
- <td width="100" align="center" valign="middle" style="width:100;">
- <input type="button" onClick="AddAccessories(document.sendmessage.AccessoriesList);" value="新增附件" style="background-color: #FFFFFF; border: 1 solid #000000"><br>
- <input type="button" onClick="DelAccessories(document.sendmessage.AccessoriesList);" value="删除附件" style="background-color: #FFFFFF; border: 1 solid #000000">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td bgcolor="<%=m_session.GetString("TitleColor")%>"> </td>
- <td> <input name="IsSecret" value="1" type="checkbox">是否密送</td>
- </tr>
- <tr>
- <td>
- <input name="AccessoriesNames" type="hidden">
- <input name="AccessoriesURLs" type="hidden">
- </td>
- <td align="center"><input type="submit" name="Submit" value="发 送" style="background-color: #FFFFFF; border: 1 solid #000000"> <input type="button" name="Save" value="保 存" onclick="saveClick();" style="background-color: #FFFFFF; border: 1 solid #000000"> <input type="reset" name="Submit2" value="重 置" style="background-color: #FFFFFF; border: 1 solid #000000">
- <input name="Submit3" type="button" onClick="history.back();" value="返 回" style="background-color: #FFFFFF; border: 1 solid #000000">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>