SendMessage.aspx
上传用户:autodoor
上传日期:2022-08-04
资源大小:9973k
文件大小:15k
源码类别:

.net编程

开发平台:

Others

  1. <%@ Register TagPrefix="Uctrl" TagName="AccessoryModule" Src="module/AccessoryModule.ascx" %>
  2. <%@ Register TagPrefix="Uctrl" TagName="ResiveModule" Src="module/ResiveModule.ascx" %>
  3. <%@ Page language="c#" Codebehind="SendMessage.aspx.cs" AutoEventWireup="false" Inherits="qminoa.Webs.Msg.SendMessage" codePage="936" %>
  4. <%@ Register TagPrefix="cc1" Namespace="HangamaHouse" Assembly="RTFBox" %>
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  6. <HTML>
  7.   <HEAD>
  8. <title>SendMessage</title>
  9. <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  10. <meta content="C#" name="CODE_LANGUAGE">
  11. <meta content="JavaScript" name="vs_defaultClientScript">
  12. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  13. <META http-equiv="Content-Type" content="text/html; charset=gb2312">
  14. <LINK href="lynn.css" type="text/css" rel="stylesheet">
  15.   </HEAD>
  16. <body topmargin="0" leftmargin="0" <%=str_NoticeMsg%>>
  17. <form id="SendMessage" method="post" encType="multipart/form-data" runat="server">
  18. <asp:TextBox id="calshow" Width="0" Runat="server"></asp:TextBox>
  19. <asp:TextBox id="txt" Runat="server" Width="0"></asp:TextBox>
  20. <div id="divID1">
  21. <TABLE style="HEIGHT: 613px" cellSpacing="0" cellPadding="0" width="100%" border="0">
  22. <TR>
  23. <TD style="HEIGHT: 18px" width="100%" height="18">
  24. <TABLE class="headcenter" style="HEIGHT: 21px" height="21" width="100%" cellSpacing="0" cellPadding="0" bordercolordark="#ffffff" bordercolor="#888888" border="1" valign="bottom">
  25. <TR>
  26. <TD style="HEIGHT: 20px" vAlign="bottom" align="middle" width="33%">
  27. <DIV id="Div1" style="DISPLAY: none"></DIV>
  28. 基本信息</TD>
  29. <TD style="HEIGHT: 20px" vAlign="bottom" align="middle" width="33%"><A onclick=" javascript:Select('2');" href="javascript:void(0)">接收对象</A></TD>
  30. <TD style="HEIGHT: 20px" vAlign="bottom" align="middle" width="33%"><A onclick=" javascript:Select('3');" href="javascript:void(0)">相关附件</A></TD>
  31. </TR>
  32. </TABLE>
  33. </TD>
  34. </TR>
  35. <TR>
  36. <TD align="middle">
  37. <TABLE id="Table3" style="WIDTH: 579px; HEIGHT: 565px" cellSpacing="0" cellPadding="0" width="579" align="center" border="0">
  38. <TR>
  39. <TD>
  40. <TABLE id="Table5" style="HEIGHT: 26px" cellSpacing="0" cellPadding="0" width="100%" border="0">
  41. <TR>
  42. <TD style="WIDTH: 12px"><IMG src="images/tbtopleft.gif"></TD>
  43. <TD style="BACKGROUND-IMAGE: url(images/tbtop(xi).gif); WIDTH: 45%"><FONT face="宋体"></FONT></TD>
  44. <TD style="BACKGROUND-IMAGE: url(images/tp_bg.gif); VERTICAL-ALIGN: super; WIDTH: 4.67%; BACKGROUND-REPEAT: repeat-x; TEXT-ALIGN: left" align="middle">
  45. <P><FONT style="TEXT-ALIGN: center" face="宋体"><FONT face="宋体"><FONT style="TEXT-ALIGN: center" face="宋体"><FONT style="VERTICAL-ALIGN: super" face="宋体"><FONT style="TEXT-ALIGN: center" face="宋体"><FONT face="宋体"><FONT style="TEXT-ALIGN: center" face="宋体"><FONT style="VERTICAL-ALIGN: baseline" face="宋体"><IMG height="25" src="images/top_corner.gif"></P></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></TD>
  46. <TD style="BACKGROUND-IMAGE: url(images/tp_bg.gif); WIDTH: 55%; BACKGROUND-REPEAT: repeat-x; TEXT-ALIGN: center" align="middle"><FONT face="宋体">基本信息</FONT></TD>
  47. <TD align="right"><IMG src="images/point_corner.gif"></TD>
  48. </TR>
  49. </TABLE>
  50. <TABLE id="Table4" style="BACKGROUND-IMAGE: none; HEIGHT: 517px" height="517" cellSpacing="0" cellPadding="0" width="100%" border="0">
  51. <TR>
  52. <TD style="WIDTH: 6px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 472px"><FONT face="宋体"></FONT></TD>
  53. <TD style="BACKGROUND-IMAGE: url(images/left_bg.gif); WIDTH: 33px; BACKGROUND-REPEAT: repeat-y; HEIGHT: 472px"><FONT face="宋体"></FONT></TD>
  54. <TD style="WIDTH: 99.73%; BACKGROUND-REPEAT: repeat-x; HEIGHT: 472px" bgColor="#f0f7ff"><FONT face="宋体"><FONT face="宋体">
  55. <DIV style="WIDTH: 617px; POSITION: relative; HEIGHT: 496px" ms_positioning="GridLayout">
  56. <TABLE id="Table1" style="Z-INDEX: 101; LEFT: 67px; WIDTH: 547px; POSITION: absolute; TOP: 9px; HEIGHT: 233px" cellSpacing="0" cellPadding="0" width="547" border="0">
  57. <TR>
  58. <TD style="HEIGHT: 13px">
  59. <asp:label id="lblImportant" Runat="server">重要性:</asp:label>
  60. <asp:radiobutton id="radImportant" Runat="server" GroupName="radImportNormal" Text="重要"></asp:radiobutton>
  61. <asp:radiobutton id="radnormal" Runat="server" GroupName="radImportNormal" Text="普通"></asp:radiobutton></TD>
  62. </TR>
  63. <TR>
  64. <TD style="HEIGHT: 3px">
  65. <asp:label id="lblTitle" Runat="server">标题:</asp:label>
  66. <asp:textbox id="txtTitle" Runat="server" Width="300"></asp:textbox>
  67. <asp:requiredfieldvalidator id="RequiredTitle" Runat="server" ControlToValidate="txtTitle" Display="Dynamic">*</asp:requiredfieldvalidator></TD>
  68. </TR>
  69. <TR>
  70. <TD style="HEIGHT: 57px">
  71. <asp:label id="lblCont" Runat="server">内容:</asp:label>
  72. <TABLE id="Table7" cellSpacing="0" cellPadding="1" width="300" bgColor="black" border="0">
  73. <TR>
  74. <TD>
  75. <TABLE id="Table8" cellSpacing="0" cellPadding="0" width="300" bgColor="white" border="0">
  76. <TR>
  77. <TD>
  78. <cc1:rtfbox id="RtfBox1" runat="server" Width="563px" Height="117px" SmilesPath="image/icons/smiles" IconsPath="image/icons" ColorPickerFilePath="image/ColorPicker.html" SmilesPickerFilePath="image/Smiles.html"></cc1:rtfbox></TD>
  79. </TR>
  80. </TABLE>
  81. </TD>
  82. </TR>
  83. </TABLE>
  84. </TD>
  85. </TR>
  86. <TR>
  87. <TD style="HEIGHT: 2px">请选择时间:
  88. <asp:textbox id="txtSend" runat="server" ReadOnly="True" BorderStyle="Outset"></asp:textbox><A onclick="javascript:void(0);SelTime();" href="#"><IMG src="image/date.jpg" border="0"></A>
  89. </TD>
  90. </TR>
  91. <TR>
  92. <TD style="HEIGHT: 23px"><FONT face="宋体">&nbsp; </FONT>
  93. </TD>
  94. </TR>
  95. </TABLE>
  96. <DIV id="divtime" style="DISPLAY: none">
  97. <asp:calendar id="calSend" style="Z-INDEX: 102; LEFT: 121px; POSITION: absolute; TOP: 279px" runat="server" Width="200px" Height="180px" BackColor="White" DayNameFormat="FirstLetter" ForeColor="Black" Font-Size="8pt" Font-Names="Verdana" BorderColor="#999999" CellPadding="4">
  98. <TodayDayStyle ForeColor="Black" BackColor="#CCCCCC"></TodayDayStyle>
  99. <SelectorStyle BackColor="#CCCCCC"></SelectorStyle>
  100. <NextPrevStyle VerticalAlign="Bottom"></NextPrevStyle>
  101. <DayHeaderStyle Font-Size="7pt" Font-Bold="True" BackColor="#CCCCCC"></DayHeaderStyle>
  102. <SelectedDayStyle Font-Bold="True" ForeColor="White" BackColor="#666666"></SelectedDayStyle>
  103. <TitleStyle Font-Bold="True" BorderColor="Black" BackColor="#999999"></TitleStyle>
  104. <WeekendDayStyle BackColor="#FFFFCC"></WeekendDayStyle>
  105. <OtherMonthDayStyle ForeColor="Gray"></OtherMonthDayStyle>
  106. </asp:calendar></DIV>
  107. </DIV>
  108. </FONT></FONT>
  109. </TD>
  110. <TD style="BACKGROUND-POSITION-X: right; BACKGROUND-IMAGE: url(images/right_bg.gif); WIDTH: 6px; BACKGROUND-REPEAT: repeat-y; HEIGHT: 472px" align="middle"><FONT face="宋体"><FONT face="宋体"><FONT style="BACKGROUND-IMAGE: url(images/tb_rightbg.gif); BACKGROUND-REPEAT: repeat-y" face="宋体"><FONT face="宋体"><FONT face="宋体"><FONT style="BACKGROUND-IMAGE: url(images/tb_rightbg.gif); BACKGROUND-REPEAT: repeat-y" face="宋体"></FONT></FONT></FONT></FONT></FONT></FONT>&nbsp;</FONT></TD>
  111. </TR>
  112. <TR>
  113. <TD style="BACKGROUND-IMAGE: url(images/corner_left_l.gif); WIDTH: 6px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 6px"><FONT face="宋体"></FONT></TD>
  114. <TD style="BACKGROUND-IMAGE: none; VERTICAL-ALIGN: super; WIDTH: 7px; HEIGHT: 12px; TEXT-ALIGN: left"><IMG src="images/corner_ll.gif"></TD>
  115. <TD style="BACKGROUND-IMAGE: url(images/bot_bg.gif); WIDTH: 99.87%; BACKGROUND-REPEAT: repeat-x; HEIGHT: 12px"><FONT face="宋体"></FONT><FONT face="宋体"></FONT></TD>
  116. <TD style="BACKGROUND-IMAGE: none; WIDTH: 12px; HEIGHT: 13px"><IMG src="images/corner_r.gif"></TD>
  117. </TR>
  118. </TABLE>
  119. <TABLE id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
  120. <TR align="middle">
  121. <TD>&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  122. </TR>
  123. </TABLE>
  124. </TD>
  125. </TR>
  126. </TABLE>
  127. </TD>
  128. </TR>
  129. </TABLE>
  130. </div>
  131. <div id="divID2">
  132. <TABLE cellSpacing="0" cellPadding="0" border="0" width="100%" style="HEIGHT: 60px">
  133. <TR>
  134. <TD width="100%" style="HEIGHT: 1px">
  135. <TABLE height="20" width="100%" cellSpacing="0" cellPadding="0" bordercolordark="#ffffff" bordercolor="#888888" border="1" class="headcenter">
  136. <TR>
  137. <TD vAlign="bottom" align="middle" width="18%"><A onclick=" javascript:Select('1');" href="javascript:void(0)">基本信息</A></TD>
  138. <TD vAlign="bottom" align="middle" width="18%">接收对象</TD>
  139. <TD vAlign="bottom" align="middle" width="18%"><A onclick=" javascript:Select('3');" href="javascript:void(0)">相关附件</A></TD>
  140. </TR>
  141. </TABLE>
  142. <br>
  143. </TD>
  144. </TR>
  145. <TR>
  146. <TD><UCTRL:RESIVEMODULE id="uctrlResive" runat="server"></UCTRL:RESIVEMODULE></TD>
  147. </TR>
  148. </TABLE>
  149. </div>
  150. <div id="divID3">
  151. <TABLE cellSpacing="0" cellPadding="0" border="0" style="HEIGHT: 72px" width="100%">
  152. <TR>
  153. <TD width="100%" style="HEIGHT: 30px">
  154. <TABLE class="headcenter" borderColor="#888888" height="20" cellSpacing="0" borderColorDark="#ffffff" cellPadding="0" width="100%" border="1">
  155. <TR>
  156. <TD width="18%" vAlign="bottom" align="middle"><A onclick=" javascript:Select('1');" href="javascript:void(0)">基本信息</A></TD>
  157. <TD vAlign="bottom" align="middle" width="18%"><A onclick=" javascript:Select('2');" href="javascript:void(0)">接收对象</A>
  158. </TD>
  159. <TD vAlign="bottom" align="middle" width="18%">相关附件</TD>
  160. </TR>
  161. </TABLE>
  162. <br>
  163. </TD>
  164. </TR>
  165. <TR>
  166. <TD><UCTRL:ACCESSORYMODULE id="uctrlAccessory" runat="server"></UCTRL:ACCESSORYMODULE></TD>
  167. </TR>
  168. </TABLE>
  169. </div>
  170. <TABLE id="Table9" style="HEIGHT: 7px" cellSpacing="0" cellPadding="0" width="100%" border="0">
  171. <TR align="middle">
  172. <TD>
  173. <BUTTON class="mybutton1" id="btnOK" onmouseover="this.className='mybutton2'" onclick="javascript:void(0);confirm();" onmouseout="this.className='mybutton1'" type="button" runat="server">确定</BUTTON>&nbsp;&nbsp;
  174. <asp:Button id="btnSave" onmouseover="this.className='mybutton2'" onmouseout="this.className='mybutton1'" runat="server" Text="保存" CausesValidation="False" CssClass="mybutton1"></asp:Button>
  175. </TD>
  176. </TR>
  177. </TABLE>
  178. </form>
  179. <SCRIPT language="javascript" src="js/func.js"></SCRIPT>
  180. <SCRIPT language="javascript">
  181. <!--
  182. //-------------------------------------------------------------------------
  183. //此段代码用来确定服务器传回页面时,究竟应该显示哪一部分。
  184. //---------------------------------------------------------------------------
  185. if(document.all.item('txt').value == "1")
  186. {
  187. document.all.item('divID2').style.display = "none";
  188. document.all.item('divID3').style.display = "none";
  189. document.all.item('divID1').style.display = "block";
  190. }
  191. else if(document.all.item('txt').value == "2")
  192. {
  193. document.all.item('divID1').style.display = "none";
  194. document.all.item('divID3').style.display = "none";
  195. document.all.item('divID2').style.display = "block";
  196. }
  197. else if(document.all.item('txt').value == "3")
  198. {
  199. document.all.item('divID1').style.display = "none";
  200. document.all.item('divID2').style.display = "none";
  201. document.all.item('divID3').style.display = "block";
  202. }
  203. else
  204. {
  205. document.all.item('divID2').style.display = "none";
  206. document.all.item('divID3').style.display = "none";
  207. document.all.item('divID1').style.display = "block";
  208. }
  209. if( document.all.item("calshow").value == "1")
  210. {
  211. document.all.item("divtime").style.display = "block";
  212. }
  213. //----------------------------------------------------------------------------
  214. //此函数用于在客户端,显示所选择的部分。
  215. //----------------------------------------------------------------------------
  216. function Select(cur_select)
  217. {
  218. var div_id = "divID"
  219. div_id += cur_select;
  220. document.all.item(div_id).style.display = "block";
  221. switch(cur_select)
  222. {
  223. case '1':
  224. document.all.item('divID2').style.display = "none";
  225. document.all.item('divID3').style.display = "none";
  226. document.all.item('txt').value = "1";
  227. break;
  228. case '2':
  229. document.all.item('divID1').style.display = "none";
  230. document.all.item('divID3').style.display = "none";
  231. document.all.item('txt').value = "2";
  232. break;
  233. case '3':
  234. document.all.item('divID1').style.display = "none";
  235. document.all.item('divID2').style.display = "none";
  236. document.all.item('txt').value = "3";
  237. break;
  238. }
  239. }
  240. //------------------------------------------------------------------
  241. //该函数用来验证,是否输入了标题及是否选择了收件人或密送人
  242. //------------------------------------------------------------------
  243. function confirm()
  244. {
  245. var flag = true;
  246. var flagtime = true;
  247. if("" == document.all.item("txtTitle").value || "<>" == document.all.item("txtTitle").value) 
  248. {
  249. alert("标题不能为空!");
  250. document.all.item('divID1').style.display = "block";
  251. document.all.item('divID2').style.display = "none";
  252. document.all.item('divID3').style.display = "none";
  253. document.all.item('txt').value = "1";
  254. document.all.txtTitle.focus();
  255. flag = false;
  256. document.all.item("txtTitle").value = "";
  257. }
  258. //若标题没有填,则不进行是否选择了人员的测试
  259. if(true == flag)
  260. {
  261. if(document.all.uctrlResive_LisBoxSendTo.length == 0 
  262. && document.all.uctrlResive_LisBoxSecretTo.length == 0) 
  263. {
  264. alert("你必须至少选择一个收件人或密送人!");
  265. document.all.item('divID2').style.display = "block";
  266. document.all.item('divID1').style.display = "none";
  267. document.all.item('divID3').style.display = "none";
  268. document.all.item('txt').value = "2";
  269. flagtime = false
  270. }
  271. }
  272. document.all.item("uctrlResive_txtbox").value = "3";        //代表此按纽的编号
  273. }
  274. function SelTime()
  275. {
  276. var flag = document.all.item("divtime").style.display;
  277. if( "none" == flag)
  278. {
  279. document.all.item("divtime").style.display = "block";
  280. }
  281. else
  282. {
  283. document.all.item("divtime").style.display = "none";
  284. }
  285. }
  286. //-->
  287. </SCRIPT>
  288. </body>
  289. </HTML>