NewMessage.aspx
上传用户:tree100901
上传日期:2007-06-03
资源大小:2295k
文件大小:4k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="NewMessage.aspx.cs" AutoEventWireup="false" validateRequest=false  Inherits="OA.WebForm1" %>
  2. <%@ Register TagPrefix="uc1" TagName="Mymenu" Src="MENU/Mymenu.ascx" %>
  3. <%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  5. <HTML>
  6. <HEAD>
  7. <title>安泰自动办公系统</title>
  8. <style type="text/css">TABLE { FONT-SIZE: 9pt }
  9. BODY { FONT-SIZE: 9pt }
  10. </style>
  11. <LINK href="baseStyle.css" type="text/css" rel="stylesheet">
  12. <LINK href="MENU/menuStyle.css" type="text/css" rel="stylesheet">
  13. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  14. <meta content="C#" name="CODE_LANGUAGE">
  15. <meta content="JavaScript" name="vs_defaultClientScript">
  16. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  17. <script language="javascript">
  18. function SelectAccepter_onclick(){
  19. var BackValue = window.showModalDialog("SelectAccepter.aspx","","scroll:0;status:0;help:0;resizable:0;dialogWidth:400px;dialogHeight:380px")
  20. if(BackValue != null)
  21. {
  22. document.all.Accepter.value=BackValue["name"];
  23. document.all.AccepterID.value=BackValue["id"];
  24. }
  25. }
  26. </script>
  27. </HEAD>
  28. <body topMargin="5" oncontextmenu='return false'>
  29. <form id="Form1" method="post" runat="server">
  30. <uc1:mymenu id="Mymenu1" runat="server" MenuData="MENU/MenuData.xml"></uc1:mymenu>
  31. <TABLE id="Table1" style="WIDTH: 90%; HEIGHT: 80%" cellSpacing="1" cellPadding="1" align="center"
  32. border="1">
  33. <TR>
  34. <TH style="BORDER-RIGHT: honeydew thin outset; BORDER-TOP: honeydew thin outset; BORDER-LEFT: honeydew thin outset; BORDER-BOTTOM: honeydew thin outset; HEIGHT: 25px; BACKGROUND-COLOR: #99ccff"
  35. align="center" bgColor="#d0d8df" colSpan="2">
  36. <P dir="ltr" style="FONT-WEIGHT: bold; COLOR: white; MARGIN-RIGHT: 0px; FONT-FAMILY: 宋体, 黑体"
  37. align="center">发送新信息</P>
  38. </TH>
  39. </TR>
  40. <TR>
  41. <TD style="WIDTH: 10%" align="center" background="AliceBlue" bgColor="#f0f8ff">发送到:</TD>
  42. <TD align="center" background="AliceBlue" bgColor="#f0f8ff"><asp:textbox id="Accepter" runat="server" Height="25px" Width="80%" ReadOnly="True" ForeColor="#8080FF"></asp:textbox><INPUT onclick="SelectAccepter_onclick()" type="button" value="浏览...">
  43. <asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ControlToValidate="Accepter" ErrorMessage="*"></asp:requiredfieldvalidator><INPUT id="AccepterID" type="hidden" runat="server"></TD>
  44. </TR>
  45. <TR>
  46. <TD style="WIDTH: 10%; HEIGHT: 70%" align="center" bgColor="aliceblue">内&nbsp; 容:</TD>
  47. <TD style="WIDTH: 100%; HEIGHT: 100%" align="center" bgColor="aliceblue"><FTB:FREETEXTBOX id="FreeTextBox1" runat="server" Height="100%" Width="100%" AllowHtmlMode="False"
  48. AutoConfigure="EnableAll" BackColor="Control" GutterBackColor="Control" ToolbarType="Office2003"></FTB:FREETEXTBOX></TD>
  49. </TR>
  50. <TR>
  51. <TD style="WIDTH: 10%; HEIGHT: 80%" align="center" bgColor="#f0f8ff"><FONT face="宋体">附件:</FONT></TD>
  52. <TD style="WIDTH: 100%; HEIGHT: 100%" align="center" bgColor="#f0f8ff"><INPUT style="WIDTH: 80%; HEIGHT: 22px" type="file" size="87" id="Attachment" runat="server"></TD>
  53. </TR>
  54. <TR>
  55. <TD align="center" bgColor="#f0f8ff" colSpan="2">
  56. <P><INPUT id="Send" onclick="javascript:if(document.frames['FreeTextBox1_editor'].document.body.innerHtml=='')alert('你的信息内容是空的!');"
  57. type="button" value="发送" runat="server"><INPUT id="Reset" onclick="javascript:document.all.Accepter.value='';document.frames['FreeTextBox1_editor'].document.body.innerText='';"
  58. type="button" value="取消" CausesValidation="False"></P>
  59. </TD>
  60. </TR>
  61. </TABLE>
  62. </form>
  63. </body>
  64. </HTML>