📄 sendingmessage.aspx
字号:
<%@ Page language="c#" Codebehind="SendingMessage.aspx.cs" AutoEventWireup="false" Inherits="HTMS.Web.SysManage.MessaeManage.SendingMessage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>GraduateWorkInfoOpt</title>
<meta content="Microsoft Visual Studio .NET 7.1" 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">
<LINK href="../../WebStyle/Style/admin.css" type="text/css" rel="stylesheet">
<script language="javascript" src="../../skin/js/DataValid.js" type="text/javascript"></script>
<script language="javascript" src="../../skin/js/Calendar2.js" type="text/javascript"></script>
<script language="javascript">
function CheckAll()
{
var i=1;
var message="∵错误消息提示\n";
var flag=true;
if(trim(document.getElementById("receiverID").value)=="")
{
message+=i+".请选择接收公司\n";
flag=false;
i++;
}
if(trim(document.getElementById("txtMsgTitle").value)=="")
{
message+=i+".请填写消息标题\n";
flag=false;
i++;
}
if(trim(document.getElementById("txtMsgContent").value)=="")
{
message+=i+".请填写消息内容\n";
flag=false;
i++;
}
if(trim(document.Form1.file1.value)!="" && trim(document.getElementById("TextBox1").value)=="")
{
message+=i+".请选择上传文件\n";
flag=false;
i++;
}
if(!flag)
{
window.alert(message);
}
return flag;
}
function OpenWindow()
{
var dm ;
//dm=window.showModalDialog('../PublicPages/CommonSelectWindow.aspx?FuncId= SelectType=MultipleSelect&SelectObjectType=SchoolUnitsUser&CurrentSelectedIDList='+document.Form1.txtAccepterID.value,'44','center:1;help:no;status:no;dialogHeight:500px;dialogWidth:400px;scroll:no')
dm=window.showModalDialog('CompanyList_main.aspx','44','center:1;help:no;status:no;dialogHeight:350px;dialogWidth:520px;scroll:no');
if (dm!=null && dm != "")
{
document.Form1.receiverID.value=dm.split('_')[0];//选择的公司编号
document.Form1.receiverName.value = dm.split('_')[1];//选择的公司名称
}
}
function trim(str)
{
return str.replace(/(^[\\s]*)|([\\s]*$)/g, "");
}
function AddFiles()
{
if(parseInt(document.Form1.myid.value)>=10)
{window.alert("最多添加10个!");return;}
var str="<br><input type='file' size=50 name=file/>";
document.getElementById('MyFile').insertAdjacentHTML("beforeEnd",str);
document.Form1.myid.value=parseInt(document.Form1.myid.value)+1;
// window.alert(document.Form1.myid.value);
}
</script>
</HEAD>
<body bottomMargin="0" leftMargin="0" topMargin="0" scroll="no" MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server" enctype="multipart/form-data">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr bgColor="#eafce6">
<TD class="ReadOnlyInputField" vAlign="middle" align="left" colSpan="2" height="28"><FONT face="宋体" size="4"><IMG height="16" alt="" src="../../WebStyle/Images/child.gif" width="19">
<STRONG>短消息回复页面</STRONG> </FONT>
</TD>
</tr>
</table>
<table cellSpacing="3" cellPadding="3" width="904" border="0" style="WIDTH: 904px; HEIGHT: 211px">
<tr bgColor="#eafce6">
<td align="right" height="8" style="WIDTH: 103px; HEIGHT: 8px">发送者
</td>
<td height="8" style="HEIGHT: 8px"><font color="red" size="4">
<asp:Label id="Label1" runat="server" Width="70px" ForeColor="Green"></asp:Label>*</font>
<input id="SenderID" runat="server" type="hidden" NAME="SenderID">
</td>
</tr>
<TR bgColor="#f3f3f3">
<TD align="right" style="WIDTH: 103px; HEIGHT: 8px" height="8">接收者</TD>
<TD height="8" style="HEIGHT: 8px"><INPUT id="receiverName" onfocus="OpenWindow();" style="WIDTH: 192px; HEIGHT: 22px" type="text"
size="26" name="receiverName" runat="server"><font color="red" size="4"> *</font><INPUT id="receiverID" type="hidden" name="receiverID" runat="server">
</TD>
</TR>
<tr bgColor="#eafce6">
<td align="right" height="6" style="WIDTH: 103px; HEIGHT: 6px">消息标题
</td>
<td colSpan="3" height="6" style="HEIGHT: 6px"><asp:textbox id="txtMsgTitle" runat="server" Width="640px"></asp:textbox><font color="red" size="4"> *</font>
</td>
</tr>
<tr bgColor="#f3f3f3">
<td align="right" height="50" style="WIDTH: 103px; HEIGHT: 50px">消息内容
</td>
<td colSpan="3" height="50" style="HEIGHT: 50px"><asp:textbox id="txtMsgContent" runat="server" Columns="90" Rows="5" TextMode="MultiLine" Width="776px"></asp:textbox><font color="red" size="4"> *</font>
</td>
</tr>
<TR bgColor="#eafce6">
<TD style="WIDTH: 103px" align="right" height="30">添加附件</TD>
<TD colSpan="3" height="30">附件标题:
<asp:textbox id="TextBox1" runat="server"></asp:textbox><INPUT onclick="AddFiles();" type="button" value="添 加">>>
<div id="MyFile"><INPUT type="file" size="50" name="File" id="file1"></div>
</TD>
</TR>
</table>
<table cellSpacing="3" cellPadding="3" width="923" border="0" style="WIDTH: 923px; HEIGHT: 24px">
<tr bgColor="#eafce6">
<TD align="center" valign="middle">
<input type="submit" value="提交内容" id="submit1" onclick="return CheckAll();" runat="server">
<input type="button" value="返 回" id="back" onclick=" window.history.back();">
<INPUT id="Button1" type="button" value="查 看" onclick="window.location.href='MessageList.aspx';" name="Button1">
</TD>
</tr>
</table>
<input type="hidden" id="myid" value="0">
</form>
<script language="javascript">
document.getElementById("file1").value="";
</script>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -