📄 sendmessage.aspx
字号:
</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -