Compose.aspx
上传用户:jdb8708888
上传日期:2013-05-29
资源大小:19971k
文件大小:12k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="Compose.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Mail.Compose" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>写新邮件</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. <LINK href="../../../css/BasicLayout.css" type="text/css" rel="stylesheet">
  11. <script language="javascript">
  12. function dialwinprocess(type)
  13. {
  14. var newdialoguewin = window.showModalDialog("SelectReceiver.aspx?ClassID=<% Response.Write(ClassID); %>&type="+type,window,"dialogWidth:600px;DialogHeight=490px;status:no");
  15. if(newdialoguewin!=null){
  16. if(newdialoguewin.length>5)
  17. {
  18. ReceiverTypeArray = newdialoguewin.split("|");
  19. SendToArray = ReceiverTypeArray[0].split("-");
  20. CcToArray = ReceiverTypeArray[1].split("-");
  21. BccToArray = ReceiverTypeArray[2].split("-");
  22. try{
  23. this.document.Compose.txtSendTo.value = SendToArray[0];
  24. this.document.Compose.txtCcTo.value = CcToArray[0];
  25. this.document.Compose.txtBccTo.value = BccToArray[0]; 
  26. }
  27. catch(e){}
  28. }
  29. }
  30. }
  31. function ProjectSelect()
  32. {
  33. var ret;
  34. ret = window.showModalDialog("TreeView.aspx",window,"dialogHeight:400px;dialogWidth:300px;center:Yes;Help:No;Resizable:No;Status:Yes;Scroll:auto;Status:no;");
  35. if(ret>0)
  36. return false;
  37. }
  38. </script>
  39. <script language="javascript">
  40. var ball1 = new Image();
  41. var ball2 = new Image();
  42. ball1.src = 'images/ball1.gif';
  43. ball2.src = 'images/ball2.gif';
  44. var active = new Image();
  45. var nonactive = new Image();
  46. active.src = '../../../images/maillistbutton2.gif';
  47. nonactive.src = '../../../images/maillistbutton1.gif';
  48. function onMouseOver(img)
  49. {
  50. document.images[img].src = ball2.src;
  51. }
  52. function onMouseOut(img)
  53. {
  54. document.images[img].src = ball1.src;
  55. }
  56. function onOverBar(bar)
  57. {
  58. if (bar != null) {
  59. bar.style.backgroundImage = "url("+active.src+")";
  60. }
  61. }
  62. function onOutBar(bar)
  63. {
  64. if (bar != null) {
  65. bar.style.backgroundImage = "url("+nonactive.src+")";
  66. }
  67. }
  68. function selectAll(){
  69. var len=document.MailList.elements.length;
  70. var i;
  71.     for (i=0;i<len;i++){
  72. if (document.MailList.elements[i].type=="checkbox"){
  73.         document.MailList.elements[i].checked=true;
  74.  }
  75. }
  76. }
  77. function unSelectAll(){
  78.           var len=document.MailList.elements.length;
  79.           var i;
  80.           for (i=0;i<len;i++){
  81.                if (document.MailList.elements[i].type=="checkbox"){
  82.                   document.MailList.elements[i].checked=false; 
  83.                }   
  84.           } 
  85.     }
  86. </script>
  87. </HEAD>
  88. <body leftMargin="0" MS_POSITIONING="GridLayout" topmargin="0">
  89. <form id="Compose" method="post" encType="multipart/form-data" runat="server">
  90. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  91. <tr>
  92. <td vAlign="top" height="38"><TABLE borderColor="#111111" height="1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  93. <TR height="30">
  94. <TD class="GbText" width="20" background="../../../Images/treetopbg.jpg" bgColor="#c0d9e6"
  95. align="right"><FONT color="#003366" size="3"><IMG height="16" src="../../../Images/icon/284.GIF" width="16"></FONT></TD>
  96. <TD class="GbText" background="../../../Images/treetopbg.jpg" bgColor="#e8f4ff" width="60"
  97. align="right"><font color="#006699">我的邮件</font></TD>
  98. <TD class="GbText" background="../../../Images/treetopbg.jpg" bgColor="#e8f4ff" align="right"><FONT face="宋体">&nbsp;&nbsp;&nbsp;</FONT></TD>
  99. </TR>
  100. </TABLE>
  101. </td>
  102. </tr>
  103. <tr>
  104. <td vAlign="bottom" height="25">
  105. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  106. <tr height="25">
  107. <td style="HEIGHT: 25px" width="1"></td>
  108. <td id="bar1" style="HEIGHT: 25px" align="center" width="90" background="../../../images/maillistbutton1.gif">&nbsp;<A href="Index.aspx?FolderType=1" class="Newbutton">收件箱</A></td>
  109. <td id="bar2" style="HEIGHT: 25px" align="center" width="90" background="../../../images/maillistbutton1.gif">&nbsp;<A href="Index.aspx?FolderType=2" class="Newbutton">发件箱</A></td>
  110. <td id="bar3" style="HEIGHT: 25px" align="center" width="90" background="../../../images/maillistbutton1.gif">&nbsp;<A href="Index.aspx?FolderType=3" class="Newbutton">废件箱</A></td>
  111. <td id="bar4" style="HEIGHT: 25px" align="center" width="90" background="../../../images/maillistbutton2.gif">&nbsp;<A href="Compose.aspx?ClassID=0" class="Newbutton">撰写新邮件</A></td>
  112. <td id="bar5" style="HEIGHT: 25px" align="center" width="90" background="../../../images/maillistbutton1.gif">&nbsp;<A href="Index.aspx?FolderType=4" class="Newbutton">外部邮件</A></td>
  113. <td style="HEIGHT: 25px" align="right"><FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></td>
  114. </tr>
  115. </table>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td bgColor="#93bee2" colSpan="5" height="5"><FONT style="BACKGROUND-COLOR: #ffffff" face="宋体"></FONT></td>
  120. </tr>
  121. <tr>
  122. <td>&nbsp;
  123. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  124. <tr>
  125. <td align="right" width="100"><asp:label id="lblSendTo" runat="server" CssClass="Text" Font-Size="X-Small">收件人:</asp:label><FONT face="宋体">&nbsp;</FONT></td>
  126. <td><input class=InputCss 
  127.             style="WIDTH: 404px; HEIGHT: 19px" readOnly type=text size=62 
  128.             value="<%=SendToRealName%>" name=txtSendTo 
  129.             >&nbsp;<A style="CURSOR: hand" onclick="dialwinprocess(1)" href="#"><FONT face="宋体">选择收件人</FONT></A></td>
  130. </tr>
  131. <tr>
  132. <td align="right"><asp:label id="lblCcTo" runat="server" CssClass="Text" Font-Size="X-Small">抄送人:</asp:label><FONT face="宋体">&nbsp;</FONT></td>
  133. <td><input class=InputCss 
  134.             style="WIDTH: 405px; HEIGHT: 19px" readOnly type=text size=62 
  135.             value="<%=CcToRealName%>" name=txtCcTo>&nbsp;<A style="CURSOR: hand" onclick="dialwinprocess(2)" href="#"><FONT face="宋体">选择抄送人</FONT></A></td>
  136. </tr>
  137. <tr>
  138. <td align="right"><asp:label id="lblBccTo" runat="server" CssClass="Text" Font-Size="X-Small">秘抄人:</asp:label><FONT face="宋体">&nbsp;</FONT></td>
  139. <td><input class=InputCss 
  140.             style="WIDTH: 406px; HEIGHT: 19px" readOnly type=text size=62 
  141.             value="<%=BccToRealName%>" name=txtBccTo 
  142.             >&nbsp;<A style="CURSOR: hand" onclick="dialwinprocess(2)" href="#"><FONT face="宋体">选择密送人</FONT></A></td>
  143. </tr>
  144. <tr>
  145. <td style="HEIGHT: 21px" align="right"><asp:label id="lblSubject" runat="server" CssClass="Text" Font-Size="X-Small" Width="40px">主&nbsp;&nbsp;题:</asp:label><FONT face="宋体">&nbsp;</FONT></td>
  146. <td style="HEIGHT: 21px"><asp:textbox id="txtSubject" runat="server" CssClass="InputCss" Width="484px"></asp:textbox></td>
  147. </tr>
  148. <tr height="30">
  149. <td align="right"><asp:label id="lblImportance" runat="server" CssClass="Text" Font-Size="X-Small">重要性:</asp:label><FONT face="宋体">&nbsp;</FONT></td>
  150. <td><asp:dropdownlist id="listImportance" runat="server" Width="150px"></asp:dropdownlist>&nbsp;&nbsp;&nbsp;&nbsp;<input 
  151.             class=InputCss name=hdnProjectID style="WIDTH: 150px; HEIGHT: 20px" 
  152.             type=hidden size=11 value="<%=ClassID %>" 
  153.             width="20"><input class=InputCss name=txtProjectName 
  154.             style="WIDTH: 150px; HEIGHT: 20px" readOnly type=text size=11 
  155.             value="<%=GetClassName() %>" width="20"><input class="redButtonCss" onclick="ProjectSelect()" type="button" value="▼">
  156. <asp:CheckBox id="cbRemind" runat="server" Font-Size="X-Small" Text="站内短消息提醒"></asp:CheckBox></td>
  157. </tr>
  158. <tr>
  159. <td align="right"><asp:label id="lblBody" runat="server" CssClass="Text" Font-Size="X-Small">内&nbsp;&nbsp;容:</asp:label><FONT face="宋体">&nbsp;</FONT></td>
  160. <td><asp:textbox id="txtBody" runat="server" CssClass="inputsta" Width="486px" Height="188px" TextMode="MultiLine"></asp:textbox></td>
  161. </tr>
  162. <tr class="InputCss">
  163. <td>&nbsp;</td>
  164. <td>
  165. <table id="tblAttachFiles" width="486" border="0" cellpadding="0" cellspacing="0">
  166. <TR>
  167. <TD align="center">
  168. <table cellspacing="0" cellPadding="0" width="485" border="0">
  169. <tr>
  170. <td class="InputCss" style="WIDTH: 45px" rowSpan="2">
  171. <table style="WIDTH: 44px; HEIGHT: 76px" width="44" align="center" border="0">
  172. <TBODY class="InputCss">
  173. <tr>
  174. <td>&nbsp;<FONT face="宋体">附件1</FONT></td>
  175. </tr>
  176. <tr>
  177. <td>&nbsp;<FONT face="宋体">附件2</FONT></td>
  178. </tr>
  179. <tr>
  180. <td>&nbsp;<FONT face="宋体">附件3</FONT></td>
  181. </tr>
  182. <tr>
  183. <td>&nbsp;<FONT face="宋体">附件4</FONT></td>
  184. </tr>
  185. </TBODY>
  186. </table>
  187. </td>
  188. <td style="WIDTH: 150px" rowSpan="2"><INPUT class="InputCss" id="filecontrol1" style="WIDTH: 146px; HEIGHT: 19px" type="file"
  189. size="5" name="filecontrol1" runat="server"><br>
  190. <INPUT class="InputCss" id="filecontrol2" style="WIDTH: 146px; HEIGHT: 19px" type="file"
  191. size="6" name="filecontrol2" runat="server"><br>
  192. <INPUT class="InputCss" id="File1" style="WIDTH: 146px; HEIGHT: 19px" type="file" size="6"
  193. name="filecontrol3" runat="server"><br>
  194. <INPUT class="InputCss" id="File2" style="WIDTH: 146px; HEIGHT: 19px" type="file" size="6"
  195. name="filecontrol4" runat="server">
  196. </td>
  197. <td>&nbsp;<FONT face="宋体"> </FONT>
  198. <asp:button id="btnUpload" runat="server" CssClass="redButtonCss" Text="添加附件"></asp:button></td>
  199. <td rowSpan="2">&nbsp;<FONT face="宋体">&nbsp;&nbsp; </FONT>
  200. <asp:listbox id="listUp" runat="server" Width="153px" Height="81px" SelectionMode="Multiple"></asp:listbox></td>
  201. </tr>
  202. <tr>
  203. <td>&nbsp;<FONT face="宋体">
  204. <asp:button id="btnRemove" runat="server" CssClass="redButtonCss" Text="删除附件"></asp:button></FONT></td>
  205. </tr>
  206. </table>
  207. <P>
  208. &nbsp;&nbsp;&nbsp;&nbsp;<asp:checkboxlist id="cblistAttribute" runat="server" Font-Size="X-Small" RepeatDirection="Horizontal"></asp:checkboxlist></P>
  209. <P><asp:button id="btnSendMail" runat="server" CssClass="ButtonCss" Text=" 发  送 "></asp:button>&nbsp;&nbsp;&nbsp;
  210. <INPUT class=ButtonCss style="WIDTH: 58px; HEIGHT: 20px" onclick="javascript:try {if(parent.frames.length==0) window.close();else self.location='<% Response.Write(Request.UrlReferrer); %>';} catch(e){}" type=button value=" 返  回 "></P>
  211. </TD>
  212. </TR>
  213. </table>
  214. </td>
  215. </tr>
  216. <tr>
  217. <td>&nbsp;</td>
  218. <td>&nbsp;</td>
  219. </tr>
  220. <tr>
  221. <td>&nbsp;</td>
  222. <td>&nbsp;</td>
  223. </tr>
  224. <tr>
  225. <td>&nbsp;</td>
  226. <td>&nbsp;</td>
  227. </tr>
  228. </table>
  229. </td>
  230. </tr>
  231. <tr>
  232. <td>
  233. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  234. <tr>
  235. <td width="47%"><IMG height="25" src="../../../Images/temp.gif" width="250">
  236. </td>
  237. <td width="53%">
  238. <div align="right"><IMG height="25" src="../../../Images/endbott.gif" width="279"></div>
  239. </td>
  240. </tr>
  241. </table>
  242. </td>
  243. </tr>
  244. </table>
  245. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <INPUT style="Z-INDEX: 109; LEFT: 137px; POSITION: absolute; TOP: 338px" type="hidden"
  246. name="hdnSendToStr">&nbsp; <input type=hidden 
  247. value="<%=SendTo%>" name=hdnTxtSendTo><input type=hidden 
  248. value="<%=CcTo%>" name=hdnTxtCcTo><input type=hidden 
  249. value="<%=BccTo%>" name=hdnTxtBccTo></form>
  250. </body>
  251. </HTML>