MsgSend.aspx
上传用户:xgw_05
上传日期:2009-12-11
资源大小:20208k
文件大小:5k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="MsgSend.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.SM.MsgSend" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>MsgSend</title>
  6. <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  7. <meta content="C#" name="CODE_LANGUAGE">
  8. <meta content="JavaScript" name="vs_defaultClientScript">
  9. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  10. <script language="javascript">
  11. function dialwinprocess()
  12. {
  13. var newdialoguewin = window.showModalDialog("SelectReceiver.aspx",window,"dialogWidth:600px;DialogHeight=490px;status:no");
  14. if(newdialoguewin!=null){
  15. if(newdialoguewin.length>5)
  16. {
  17. ReceiverTypeArray = newdialoguewin.split("|");
  18. SendToArray = ReceiverTypeArray[0].split("-");
  19. MobileSendToArray = ReceiverTypeArray[1].split("-");
  20. try{
  21. this.document.MsgSend.txtSendTo.value = SendToArray[0];
  22. this.document.MsgSend.txtMobileSendTo.value = MobileSendToArray[0];
  23. }
  24. catch(e){}
  25. }
  26. }
  27. }
  28. function SendMsg()
  29. {
  30. if(event.keyCode==10)
  31. {
  32. document.MsgSend.btnSend.click();
  33. }
  34. }
  35. </script>
  36. <LINK href="../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  37. </HEAD>
  38. <body MS_POSITIONING="GridLayout" leftmargin="0" topmargin="0" onload="javascript:document.all.MsgSend.txtContent.focus()">
  39. <form id="MsgSend" method="post" runat="server">
  40. <TABLE borderColor="#111111" cellSpacing="0" cellPadding="0" width="100%" border="0">
  41. <TR height="30">
  42. <TD class="GbText" width="20" background="../../Images/treetopbg.jpg" bgColor="#c0d9e6"
  43. align="right"><FONT color="#003366" size="3"><IMG height="16" src="../../dataImages/message2.GIF" width="16"></FONT></TD>
  44. <TD class="GbText" background="../../Images/treetopbg.jpg" bgColor="#e8f4ff" width="60"
  45. align="right">短讯管理</TD>
  46. <TD class="GbText" background="../../Images/treetopbg.jpg" bgColor="#e8f4ff" align="left"><FONT face="宋体">-发送短信</FONT>&nbsp;</TD>
  47. </TR>
  48. </TABLE>
  49. <TABLE borderColor="#93bee2" cellSpacing="0" cellPadding="0" width="100%" border="1" style="BORDER-COLLAPSE: collapse"
  50. class="GbText">
  51. <TR height="30">
  52. <TD align="right" width="150"><asp:label id="lblLReceiver" runat="server" Width="93px">站内短讯接收人</asp:label><FONT face="宋体">:</FONT></TD>
  53. <TD><FONT face="宋体">&nbsp;&nbsp;</FONT><INPUT 
  54. class=InputCss 
  55. readOnly type=text size=50 value="<%=SendToRealName%>" name=txtSendTo><A onclick="dialwinprocess()" href="#"><img src="../../DataImages/staff.gif" border="0"><FONT face="宋体">选择人员</FONT></A></TD>
  56. </TR>
  57. <TR height="30">
  58. <TD align="right"><asp:label id="lblMReceiver" runat="server">站内用户手机短讯</asp:label><FONT face="宋体">:</FONT></TD>
  59. <TD><FONT face="宋体">&nbsp;&nbsp;</FONT><INPUT class=InputCss 
  60. readOnly type=text size=50 value="<%=MobileSendToRN%>" name=txtMobileSendTo style="HEIGHT: 19px"><A onclick="dialwinprocess()" href="#"><img src="../../DataImages/staff.gif" border="0"><FONT face="宋体">选择人员</FONT></A></TD>
  61. </TR>
  62. <TR height="30">
  63. <TD align="right">
  64. <asp:label id="lblAdditionalNo" runat="server">附加手机号码</asp:label><FONT face="宋体">:</FONT></TD>
  65. <TD><FONT face="宋体">&nbsp; </FONT><INPUT class=InputCss 
  66. onkeypress="var  k=event.keyCode;  if ((k==44) || (k<=57 &amp;&amp; k>=48) )  return true; else return false" 
  67. onpaste="return false" 
  68. type=text size=62 value="<%=AdditionalNo%>" name=txtAdditionalNo style="HEIGHT: 19px"><asp:label id="lblRemind" runat="server" Font-Size="X-Small">(多个手机号码请用逗号隔开)</asp:label></TD>
  69. </TR>
  70. <TR height="30">
  71. <TD align="right" vAlign="top">
  72. <asp:label id="lblContent" runat="server">发送内容</asp:label><FONT face="宋体">:</FONT></TD>
  73. <TD><FONT face="宋体">&nbsp;</FONT>
  74. <asp:textbox onkeypress="SendMsg()" id="txtContent" runat="server" Width="400px" Height="200px"
  75. TextMode="MultiLine"></asp:textbox></TD>
  76. </TR>
  77. <TR height="30">
  78. <TD align="right">&nbsp;</TD>
  79. <TD><FONT face="宋体">&nbsp;</FONT><asp:button id="btnSend" runat="server" Width="100px" Text="发      送" CssClass="buttoncss"></asp:button><FONT face="宋体">&nbsp;&nbsp;&nbsp;
  80. </FONT>
  81. <asp:button id="btnReturn" runat="server" Width="100px" Text="返      回" CssClass="buttoncss"></asp:button>
  82. <asp:label id="lblShortCut" runat="server" Font-Size="Small">按Ctrl+回车键 发送消息 </asp:label></TD>
  83. </TR>
  84. </TABLE>
  85. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type=hidden value="<%=SendTo%>" name=hdnTxtSendTo><input type=hidden value="<%=MobileSendTo%>" 
  86. name=hdnTxtMobileSendTo>&nbsp;&nbsp;&nbsp;</form>
  87. </body>
  88. </HTML>