📄 sendmessage.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sendMessage.aspx.cs" Inherits="message_sendMessage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>发送信息</title>
<link href="../SystemManage/css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
td {font-size:9pt;line-height:20pt}
th {font-size:9pt;line-height:20pt}
A:link{text-decoration: none;color:#000000;}
A:visited{text-decoration: none;color:#003300;}
A:active{text-decoration: none;color: #000000;}
A:hover {text-decoration: none;color: #FF0000;}
</style>
<script language="javascript" type="text/javascript">
function setPanel()
{
if(document.getElementById("Panel1").style.display == 'none')
{
document.getElementById("Panel1").style.display = 'block';
}
else
{
document.getElementById("Panel1").style.display = 'none';
}
}
function SelectName()
{
document.form1.txtReceivedName.value = "";
for(var i=0;i<document.form1.lstAllName.options.length;i++)
{
if(document.form1.lstAllName.options[i].selected)
{
if(document.form1.txtReceivedName.value == "")
{
document.form1.txtReceivedName.value = document.form1.lstAllName.options[i].value + "(" + document.form1.lstAllName.options[i].innerText + ")";
}
else
{
document.form1.txtReceivedName.value = document.form1.txtReceivedName.value + "," + document.form1.lstAllName.options[i].value + "(" + document.form1.lstAllName.options[i].innerText + ")";
}
}
}
}
</script>
</head>
<body style="width:98%;">
<form id="form1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" width="80%" align="center">
<tr>
<td colspan="2" align="center" style=" font-size:14px; height:35px;"><strong>发送信息(带*的是必填项目)</strong></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="650" align="center" style=" border:solid 1px blue;">
<tr style="background-color:#94bae7;">
<td align="right" style="height: 16px; " colspan="2">
</td>
</tr>
<tr>
<td align="right">
<span>发送者名称:</span></td>
<td><asp:Label ID="lblSenderName" runat="server" Width="80%" ForeColor="Blue"></asp:Label></td>
</tr>
<tr>
<td align="right">
<span>接收者名称(*):</span></td>
<td align="left"><asp:TextBox ID="txtReceivedName" runat="server" Width="80%"></asp:TextBox>
<a href="#" onclick="setPanel();"><span id="Span1" name="label1" style="color: #0000ff;
text-decoration: underline" title="">▼ </span></a>
</td>
</tr>
<tr>
<td align="right">
</td>
<td align="left">
<asp:Panel ID="Panel1" runat="server" Height="160px" Width="80%">
<asp:ListBox ID="lstAllName" runat="server" Height="160px"
SelectionMode="Multiple" Width="100%"></asp:ListBox></asp:Panel>
</td>
</tr>
<tr>
<td align="right">
信息标题(*):</td>
<td align="left"><asp:TextBox ID="txtTitle" runat="server" Width="80%" MaxLength="30"></asp:TextBox></td>
</tr>
<tr>
<td align="right">
信息内容:</td>
<td align="left"><asp:TextBox ID="txtContent" runat="server" BorderStyle="Groove" Height="150px"
TextMode="MultiLine" Width="460px" OnTextChanged="txtContent_TextChanged" MaxLength="1000"></asp:TextBox></td>
</tr>
<tr>
<td align="right">
重要程度:</td>
<td align="left"><asp:DropDownList ID="ddlImportant" runat="server" Width="50%">
<asp:ListItem>普通信息</asp:ListItem>
<asp:ListItem Selected="True">重要信息</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td align="right">
附件名称:</td>
<td align="left"><asp:TextBox ID="txtAccName" runat="server" Width="80%" MaxLength="30"></asp:TextBox></td>
</tr>
<tr>
<td align="right">
附件地址:</td>
<td align="left">
<asp:FileUpload ID="upImage" runat="server" />
(文件上载的最大是10M)</td>
</tr>
<tr>
<td align="right">
</td>
<td align="left">
<asp:Label ID="Label1" runat="server" Width="80%"></asp:Label></td>
</tr>
<tr>
<td colspan="2" align="center">
<asp:Button ID="btnSend" runat="server" OnClick="btnSend_Click" Text="发 送" />
<asp:Button ID="btnClear" runat="server" OnClick="btnClear_Click" Text="重 置" />
<asp:Button ID="btnReturn" runat="server" OnClick="btnReturn_Click" Text="返 回" /></td>
</tr>
<tr>
<td align="center" colspan="2" style="height: 10px">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -