- <%@ Register TagPrefix="Uctrl" TagName="AccessoryModule" Src="module/AccessoryModule.ascx" %>
- <%@ Register TagPrefix="Uctrl" TagName="ResiveModule" Src="module/ResiveModule.ascx" %>
- <%@ Page language="c#" Codebehind="SendMessage.aspx.cs" AutoEventWireup="false" Inherits="qminoa.Webs.Msg.SendMessage" codePage="936" %>
- <%@ Register TagPrefix="cc1" Namespace="HangamaHouse" Assembly="RTFBox" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <HEAD>
- <title>SendMessage</title>
- <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
- <meta content="C#" name="CODE_LANGUAGE">
- <meta content="JavaScript" name="vs_defaultClientScript">
- <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
- <META http-equiv="Content-Type" content="text/html; charset=gb2312">
- <LINK href="lynn.css" type="text/css" rel="stylesheet">
- </HEAD>
- <body topmargin="0" leftmargin="0" <%=str_NoticeMsg%>>
- <form id="SendMessage" method="post" encType="multipart/form-data" runat="server">
- <asp:TextBox id="calshow" Width="0" Runat="server"></asp:TextBox>
- <asp:TextBox id="txt" Runat="server" Width="0"></asp:TextBox>
- <div id="divID1">
- <TABLE style="HEIGHT: 613px" cellSpacing="0" cellPadding="0" width="100%" border="0">
- <TR>
- <TD style="HEIGHT: 18px" width="100%" height="18">
- <TABLE class="headcenter" style="HEIGHT: 21px" height="21" width="100%" cellSpacing="0" cellPadding="0" bordercolordark="#ffffff" bordercolor="#888888" border="1" valign="bottom">
- <TR>
- <TD style="HEIGHT: 20px" vAlign="bottom" align="middle" width="33%">
- <DIV id="Div1" style="DISPLAY: none"></DIV>
- 基本信息</TD>
- <TD style="HEIGHT: 20px" vAlign="bottom" align="middle" width="33%"><A onclick=" javascript:Select('2');" href="javascript:void(0)">接收对象</A></TD>
- <TD style="HEIGHT: 20px" vAlign="bottom" align="middle" width="33%"><A onclick=" javascript:Select('3');" href="javascript:void(0)">相关附件</A></TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- <TR>
- <TD align="middle">
- <TABLE id="Table3" style="WIDTH: 579px; HEIGHT: 565px" cellSpacing="0" cellPadding="0" width="579" align="center" border="0">
- <TR>
- <TD>
- <TABLE id="Table5" style="HEIGHT: 26px" cellSpacing="0" cellPadding="0" width="100%" border="0">
- <TR>
- <TD style="WIDTH: 12px"><IMG src="images/tbtopleft.gif"></TD>
- <TD style="BACKGROUND-IMAGE: url(images/tbtop(xi).gif); WIDTH: 45%"><FONT face="宋体"></FONT></TD>
- <TD style="BACKGROUND-IMAGE: url(images/tp_bg.gif); VERTICAL-ALIGN: super; WIDTH: 4.67%; BACKGROUND-REPEAT: repeat-x; TEXT-ALIGN: left" align="middle">
- <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>
- <TD style="BACKGROUND-IMAGE: url(images/tp_bg.gif); WIDTH: 55%; BACKGROUND-REPEAT: repeat-x; TEXT-ALIGN: center" align="middle"><FONT face="宋体">基本信息</FONT></TD>
- <TD align="right"><IMG src="images/point_corner.gif"></TD>
- </TR>
- </TABLE>
- <TABLE id="Table4" style="BACKGROUND-IMAGE: none; HEIGHT: 517px" height="517" cellSpacing="0" cellPadding="0" width="100%" border="0">
- <TR>
- <TD style="WIDTH: 6px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 472px"><FONT face="宋体"></FONT></TD>
- <TD style="BACKGROUND-IMAGE: url(images/left_bg.gif); WIDTH: 33px; BACKGROUND-REPEAT: repeat-y; HEIGHT: 472px"><FONT face="宋体"></FONT></TD>
- <TD style="WIDTH: 99.73%; BACKGROUND-REPEAT: repeat-x; HEIGHT: 472px" bgColor="#f0f7ff"><FONT face="宋体"><FONT face="宋体">
- <DIV style="WIDTH: 617px; POSITION: relative; HEIGHT: 496px" ms_positioning="GridLayout">
- <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">
- <TR>
- <TD style="HEIGHT: 13px">
- <asp:label id="lblImportant" Runat="server">重要性:</asp:label>
- <asp:radiobutton id="radImportant" Runat="server" GroupName="radImportNormal" Text="重要"></asp:radiobutton>
- <asp:radiobutton id="radnormal" Runat="server" GroupName="radImportNormal" Text="普通"></asp:radiobutton></TD>
- </TR>
- <TR>
- <TD style="HEIGHT: 3px">
- <asp:label id="lblTitle" Runat="server">标题:</asp:label>
- <asp:textbox id="txtTitle" Runat="server" Width="300"></asp:textbox>
- <asp:requiredfieldvalidator id="RequiredTitle" Runat="server" ControlToValidate="txtTitle" Display="Dynamic">*</asp:requiredfieldvalidator></TD>
- </TR>
- <TR>
- <TD style="HEIGHT: 57px">
- <asp:label id="lblCont" Runat="server">内容:</asp:label>
- <TABLE id="Table7" cellSpacing="0" cellPadding="1" width="300" bgColor="black" border="0">
- <TR>
- <TD>
- <TABLE id="Table8" cellSpacing="0" cellPadding="0" width="300" bgColor="white" border="0">
- <TR>
- <TD>
- <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>
- </TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- <TR>
- <TD style="HEIGHT: 2px">请选择时间:
- <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>
- </TD>
- </TR>
- <TR>
- <TD style="HEIGHT: 23px"><FONT face="宋体"> </FONT>
- </TD>
- </TR>
- </TABLE>
- <DIV id="divtime" style="DISPLAY: none">
- <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">
- <TodayDayStyle ForeColor="Black" BackColor="#CCCCCC"></TodayDayStyle>
- <SelectorStyle BackColor="#CCCCCC"></SelectorStyle>
- <NextPrevStyle VerticalAlign="Bottom"></NextPrevStyle>
- <DayHeaderStyle Font-Size="7pt" Font-Bold="True" BackColor="#CCCCCC"></DayHeaderStyle>
- <SelectedDayStyle Font-Bold="True" ForeColor="White" BackColor="#666666"></SelectedDayStyle>
- <TitleStyle Font-Bold="True" BorderColor="Black" BackColor="#999999"></TitleStyle>
- <WeekendDayStyle BackColor="#FFFFCC"></WeekendDayStyle>
- <OtherMonthDayStyle ForeColor="Gray"></OtherMonthDayStyle>
- </asp:calendar></DIV>
- </DIV>
- </FONT></FONT>
- </TD>
- <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> </FONT></TD>
- </TR>
- <TR>
- <TD style="BACKGROUND-IMAGE: url(images/corner_left_l.gif); WIDTH: 6px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 6px"><FONT face="宋体"></FONT></TD>
- <TD style="BACKGROUND-IMAGE: none; VERTICAL-ALIGN: super; WIDTH: 7px; HEIGHT: 12px; TEXT-ALIGN: left"><IMG src="images/corner_ll.gif"></TD>
- <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>
- <TD style="BACKGROUND-IMAGE: none; WIDTH: 12px; HEIGHT: 13px"><IMG src="images/corner_r.gif"></TD>
- </TR>
- </TABLE>
- <TABLE id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
- <TR align="middle">
- <TD> </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- </div>
- <div id="divID2">
- <TABLE cellSpacing="0" cellPadding="0" border="0" width="100%" style="HEIGHT: 60px">
- <TR>
- <TD width="100%" style="HEIGHT: 1px">
- <TABLE height="20" width="100%" cellSpacing="0" cellPadding="0" bordercolordark="#ffffff" bordercolor="#888888" border="1" class="headcenter">
- <TR>
- <TD vAlign="bottom" align="middle" width="18%"><A onclick=" javascript:Select('1');" href="javascript:void(0)">基本信息</A></TD>
- <TD vAlign="bottom" align="middle" width="18%">接收对象</TD>
- <TD vAlign="bottom" align="middle" width="18%"><A onclick=" javascript:Select('3');" href="javascript:void(0)">相关附件</A></TD>
- </TR>
- </TABLE>
- <br>
- </TD>
- </TR>
- <TR>
- <TD><UCTRL:RESIVEMODULE id="uctrlResive" runat="server"></UCTRL:RESIVEMODULE></TD>
- </TR>
- </TABLE>
- </div>
- <div id="divID3">
- <TABLE cellSpacing="0" cellPadding="0" border="0" style="HEIGHT: 72px" width="100%">
- <TR>
- <TD width="100%" style="HEIGHT: 30px">
- <TABLE class="headcenter" borderColor="#888888" height="20" cellSpacing="0" borderColorDark="#ffffff" cellPadding="0" width="100%" border="1">
- <TR>
- <TD width="18%" vAlign="bottom" align="middle"><A onclick=" javascript:Select('1');" href="javascript:void(0)">基本信息</A></TD>
- <TD vAlign="bottom" align="middle" width="18%"><A onclick=" javascript:Select('2');" href="javascript:void(0)">接收对象</A>
- </TD>
- <TD vAlign="bottom" align="middle" width="18%">相关附件</TD>
- </TR>
- </TABLE>
- <br>
- </TD>
- </TR>
- <TR>
- <TD><UCTRL:ACCESSORYMODULE id="uctrlAccessory" runat="server"></UCTRL:ACCESSORYMODULE></TD>
- </TR>
- </TABLE>
- </div>
- <TABLE id="Table9" style="HEIGHT: 7px" cellSpacing="0" cellPadding="0" width="100%" border="0">
- <TR align="middle">
- <TD>
- <BUTTON class="mybutton1" id="btnOK" onmouseover="this.className='mybutton2'" onclick="javascript:void(0);confirm();" onmouseout="this.className='mybutton1'" type="button" runat="server">确定</BUTTON>
- <asp:Button id="btnSave" onmouseover="this.className='mybutton2'" onmouseout="this.className='mybutton1'" runat="server" Text="保存" CausesValidation="False" CssClass="mybutton1"></asp:Button>
- </TD>
- </TR>
- </TABLE>
- </form>
- <SCRIPT language="javascript" src="js/func.js"></SCRIPT>
- <SCRIPT language="javascript">
- <!--
- //-------------------------------------------------------------------------
- //此段代码用来确定服务器传回页面时,究竟应该显示哪一部分。
- //---------------------------------------------------------------------------
- if(document.all.item('txt').value == "1")
- {
- document.all.item('divID2').style.display = "none";
- document.all.item('divID3').style.display = "none";
- document.all.item('divID1').style.display = "block";
- }
- else if(document.all.item('txt').value == "2")
- {
- document.all.item('divID1').style.display = "none";
- document.all.item('divID3').style.display = "none";
- document.all.item('divID2').style.display = "block";
- }
- else if(document.all.item('txt').value == "3")
- {
- document.all.item('divID1').style.display = "none";
- document.all.item('divID2').style.display = "none";
- document.all.item('divID3').style.display = "block";
- }
- else
- {
- document.all.item('divID2').style.display = "none";
- document.all.item('divID3').style.display = "none";
- document.all.item('divID1').style.display = "block";
- }
- if( document.all.item("calshow").value == "1")
- {
- document.all.item("divtime").style.display = "block";
- }
- //----------------------------------------------------------------------------
- //此函数用于在客户端,显示所选择的部分。
- //----------------------------------------------------------------------------
- function Select(cur_select)
- {
- var div_id = "divID"
- div_id += cur_select;
- document.all.item(div_id).style.display = "block";
- switch(cur_select)
- {
- case '1':
- document.all.item('divID2').style.display = "none";
- document.all.item('divID3').style.display = "none";
- document.all.item('txt').value = "1";
- break;
- case '2':
- document.all.item('divID1').style.display = "none";
- document.all.item('divID3').style.display = "none";
- document.all.item('txt').value = "2";
- break;
- case '3':
- document.all.item('divID1').style.display = "none";
- document.all.item('divID2').style.display = "none";
- document.all.item('txt').value = "3";
- break;
- }
- }
- //------------------------------------------------------------------
- //该函数用来验证,是否输入了标题及是否选择了收件人或密送人
- //------------------------------------------------------------------
- function confirm()
- {
- var flag = true;
- var flagtime = true;
- if("" == document.all.item("txtTitle").value || "<>" == document.all.item("txtTitle").value)
- {
- alert("标题不能为空!");
- document.all.item('divID1').style.display = "block";
- document.all.item('divID2').style.display = "none";
- document.all.item('divID3').style.display = "none";
- document.all.item('txt').value = "1";
- document.all.txtTitle.focus();
- flag = false;
- document.all.item("txtTitle").value = "";
- }
- //若标题没有填,则不进行是否选择了人员的测试
- if(true == flag)
- {
- if(document.all.uctrlResive_LisBoxSendTo.length == 0
- && document.all.uctrlResive_LisBoxSecretTo.length == 0)
- {
- alert("你必须至少选择一个收件人或密送人!");
- document.all.item('divID2').style.display = "block";
- document.all.item('divID1').style.display = "none";
- document.all.item('divID3').style.display = "none";
- document.all.item('txt').value = "2";
- flagtime = false
- }
- }
- document.all.item("uctrlResive_txtbox").value = "3"; //代表此按纽的编号
- }
- function SelTime()
- {
- var flag = document.all.item("divtime").style.display;
- if( "none" == flag)
- {
- document.all.item("divtime").style.display = "block";
- }
- else
- {
- document.all.item("divtime").style.display = "none";
- }
- }
- //-->
- </SCRIPT>
- </body>
- </HTML>