⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.aspx

📁 一款小型的个人办公系统
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="Index.aspx.cs" AutoEventWireup="false" Inherits="OASelfManage.Module.SM.Index" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>消息主页</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">
		<LINK href="../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
		<script language="javascript">
			function selectAll(){
			var len=document.Index.elements.length;
			var i;
		    for (i=0;i<len;i++){
		    
			if (document.Index.elements[i].type=="checkbox"){
		        document.Index.elements[i].checked=true;								
						 }
					}
					
				}

		function unSelectAll(){
	          var len=document.Index.elements.length;
	          var i;
	          for (i=0;i<len;i++){
	               if (document.Index.elements[i].type=="checkbox"){
	                  document.Index.elements[i].checked=false; 
	               }   
	              
	        	 } 
	        	 }
	     	function SendMsg(username,realname)
		{
			window.opener.parent.parent.MainFrame.location='../SM/MsgSend.aspx?SendTo='+username+'&SendToRealName='+realname;
			window.close();
		}
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout" topmargin="0" leftmargin="0">
		<form id="Index" method="post" runat="server">
			<table border="0" cellpadding="0" cellspacing="0" style="BORDER-COLLAPSE: collapse" bordercolor="#111111"
				width="100%" height="1">
				<tr height="30">
					<td width="3%" bgcolor="#c0d9e6" class="GbText" background="../../Images/treetopbg.jpg"><font color="#003366" size="3"></font></td>
					<td bgcolor="#c0d9e6" class="GbText" background="../../Images/treetopbg.jpg"><font color="#006699">短信管理</font></td>
				</tr>
			</table>
			<FONT face="宋体">
				<table cellSpacing="0" cellPadding="0" width="100%" border="0">
					<tr height="20">
						<td id=bar1 
    style="BACKGROUND-POSITION: left top; BACKGROUND-ATTACHMENT: fixed; BACKGROUND-REPEAT: no-repeat; HEIGHT: 25px" 
    align=center width=90 
    background='<% Response.Write(Session["MsgDispType"].ToString()=="1"?"../../images/maillistbutton2.gif":"../../images/maillistbutton1.gif"); %>' 
    >&nbsp;<A href="Index.aspx?DispType=1" class="Newbutton"><FONT color="#ff0033">我的消息</FONT></A></td>
						<td id=bar2 
    style="BACKGROUND-POSITION: left top; BACKGROUND-ATTACHMENT: fixed; BACKGROUND-REPEAT: no-repeat; HEIGHT: 25px" 
    align=center width=90 
    background='<% Response.Write(Session["MsgDispType"].ToString()=="2"?"../../images/maillistbutton2.gif":"../../images/maillistbutton1.gif"); %>' 
    ><FONT color="#cc3333">&nbsp;</FONT><A href="Index.aspx?DispType=2" class="Newbutton"><FONT color="#cc3333">已发送消息</FONT></A></td>
						<td id="bar4" style="BACKGROUND-POSITION: left top; BACKGROUND-ATTACHMENT: fixed; BACKGROUND-REPEAT: no-repeat; HEIGHT: 25px"
							align="center" width="90" background="../../images/maillistbutton1.gif">&nbsp;<A href="MsgSend.aspx" class="Newbutton">写新消息</A></td>
						<td style="HEIGHT: 25px" align="right"><FONT face="宋体">&nbsp;&nbsp;&nbsp;</FONT></td>
					</tr>
				</table>
				<table class="GbText" width="100%" border="0" cellSpacing="0" cellPadding="0">
					<tr>
						<td vAlign="top" colSpan="3"><asp:datagrid id="dgMsgList" runat="server" PageSize="5" DataKeyField="ID" OnPageIndexChanged="DataGrid_PageChanged"
								PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages" AllowPaging="True" AutoGenerateColumns="False" BorderColor="#DEBA84"
								BorderStyle="None" BorderWidth="1px" BackColor="#DEBA84" CellPadding="3" AllowSorting="True" Width="100%" CellSpacing="2">
								<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#738A9C"></SelectedItemStyle>
								<ItemStyle Font-Size="X-Small" HorizontalAlign="Center" ForeColor="#8C4510" VerticalAlign="Middle"
									BackColor="#FFF7E7"></ItemStyle>
								<HeaderStyle Font-Size="X-Small" Font-Bold="True" HorizontalAlign="Center" Height="10px" ForeColor="White"
									VerticalAlign="Top" BackColor="#A55129"></HeaderStyle>
								<FooterStyle Font-Size="XX-Small" HorizontalAlign="Center" Height="10px" ForeColor="#8C4510"
									VerticalAlign="Bottom" BackColor="#F7DFB5"></FooterStyle>
								<Columns>
									<asp:TemplateColumn HeaderText="选择">
										<HeaderStyle HorizontalAlign="Center" Width="40px"></HeaderStyle>
										<ItemStyle Font-Size="X-Small" HorizontalAlign="Center" Height="20px" Width="60px"></ItemStyle>
										<ItemTemplate>
											<asp:CheckBox id="grpMsgID" Checked="False" Runat="server"></asp:CheckBox>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="发送者">
										<HeaderStyle Width="15%"></HeaderStyle>
										<ItemStyle HorizontalAlign="Left"></ItemStyle>
										<ItemTemplate>
											<a href='../SM/MsgSend.aspx?SendTo=<%# DataBinder.Eval(Container, "DataItem.Sender") %>&SendToRealName=<%# DataBinder.Eval(Container,"DataItem.SenderRealName") %>&Type=<%# DataBinder.Eval(Container,"DataItem.type") %>'>
												<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.SenderRealName") %>' ID="Label1">
												</asp:Label></a>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="接收者">
										<HeaderStyle Width="15%"></HeaderStyle>
										<ItemStyle HorizontalAlign="Left"></ItemStyle>
										<ItemTemplate>
											<a href='../SM/MsgSend.aspx?SendTo=<%# DataBinder.Eval(Container, "DataItem.Receiver") %>&SendToRealName=<%# DataBinder.Eval(Container, "DataItem.ReceiverRealName") %>&Type=<%# DataBinder.Eval(Container,"DataItem.type") %>'>
												<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ReceiverRealName") %>' ID="Label2">
												</asp:Label></a>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:BoundColumn DataField="Content" HeaderText="内容">
										<HeaderStyle Width="40%"></HeaderStyle>
										<ItemStyle HorizontalAlign="Left"></ItemStyle>
									</asp:BoundColumn>
									<asp:TemplateColumn HeaderText="短信类型">
										<HeaderStyle Width="10%"></HeaderStyle>
										<ItemTemplate>
											<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.typeDetail") %>' ID="Label3">
											</asp:Label>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="是否已读">
										<HeaderStyle Width="10%"></HeaderStyle>
										<ItemTemplate>
											<%# (string)DataBinder.Eval(Container.DataItem,"IsRead")=="False"?"<img src='../../Images/mailclose.gif'>":"<img src='../../Images/mailopen.gif'>" %>
											</asp:Label>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:BoundColumn DataField="Sendtime" HeaderText="发送时间">
										<HeaderStyle Width="20%"></HeaderStyle>
										<ItemStyle HorizontalAlign="Left"></ItemStyle>
									</asp:BoundColumn>
								</Columns>
								<PagerStyle HorizontalAlign="Center" ForeColor="#8C4510" Mode="NumericPages"></PagerStyle>
							</asp:datagrid><BR>
							<INPUT class="redButtonCss" onclick="selectAll()" type="button" value="全 选">&nbsp;
							<INPUT class="redButtonCss" onclick="unSelectAll()" type="button" value="取 消">&nbsp;
							<asp:button id="btnRead" runat="server" CssClass="redButtonCss" Text="已阅"></asp:button>&nbsp;
							<asp:button id="btnDelete" runat="server" CssClass="redButtonCss" Text="删除"></asp:button></td>
					</tr>
				</table>
			</FONT>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -