<%@ Page CodeBehind="user_sms.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.user_sms" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<% @ Import Namespace="Webdisk" %>
		<link href="<%=xml.GetStyle()%>" type=text/css rel=stylesheet>
		<script type="text/javascript" language="javascript" src="js/function.js"></script>
			<script language="javascript">
function showly()
{
var url='sms_input.aspx';
window.open(url,'','scrollbars=yes,resizable=no,status=no,toolbar=no,menubar=no,location=no,width=550,height=300');
}
			</script>
		</SCRIPT>
	</HEAD>
	<body topMargin="0">
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体"></FONT>
			<br>
			<div align="center">
				<TABLE cellSpacing="0" cellPadding="0" width="98%" align="center">
					<TR>
						<TD width="5" background="pics/wenbenkuan_02.gif"><IMG height="5" src="pics/wenbenkuan_01.gif" width="5"></TD>
						<TD width="874" background="pics/wenbenkuan_02.gif"><IMG height="5" src="pics/wenbenkuan_02.gif" width="5"></TD>
						<TD><IMG height="5" src="pics/wenbenkuan_03.gif" width="5"></TD>
					</TR>
					<TR>
						<TD background="pics/wenbenkuan_04.gif">&nbsp;</TD>
						<TD class="tablebg" background="pics/wenbenkuan_05.gif">
							<TABLE width="100%">
								<TR>
									<TD class="tabletop" width="100%"><img src="pics/page.gif" width="18" height="18" align="absmiddle"> 短消息管理——
				  <asp:label id="curr" runat="server"></asp:label>
		  &nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:history.go(-1);"><img src="pics/link_back.gif" border="0" align="absmiddle"></a></TD>
								</TR>
								<TR class="tablebg">
									<TD>
										<div align="center"><A href="user_sms.aspx?type=1"><IMG height="40" src="pics/m_inbox.gif" width="40" border="0"></A>&nbsp;&nbsp;<A href="user_sms.aspx?type=2"><IMG height="40" src="pics/M_outbox.gif" width="40" border="0"></A>&nbsp;&nbsp;<A href="user_sms.aspx?type=3"><IMG height="40" src="pics/M_issend.gif" width="40" border="0"></A>&nbsp;&nbsp;<A href="user_sms.aspx?type=4"><IMG height="40" src="pics/M_recycle.gif" width="40" border="0"></A>&nbsp;<A onClick="showly();" href="#"><IMG height="40" src="pics/m_write.gif" width="40" border="0"></A>
											<asp:datagrid id="DataGrid" runat="server" CssClass="GridBody" PageSize="20" Width="100%" AutoGenerateColumns="False"
												AllowSorting="True">
												<AlternatingItemStyle CssClass="GridLine"></AlternatingItemStyle>
												<ItemStyle CssClass="GridItem"></ItemStyle>
												<HeaderStyle CssClass="GridHead"></HeaderStyle>
												<Columns>
													<asp:TemplateColumn HeaderText="选择">
														<HeaderStyle HorizontalAlign="Center" Width="3%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<HeaderTemplate>
															<INPUT type="checkbox" id="CheckBox2" onClick="checkAll()">
														</HeaderTemplate>
														<ItemTemplate>
															<INPUT id=chkSelect onclick=AddRemoveValues(this) type=checkbox value='<%#DataBinder.Eval(Container.DataItem,"id")%>' name=checkbox>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn SortExpression="InceptTime" HeaderText="状态">
														<HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<%# ShowType(DataBinder.Eval(Container.DataItem, "InceptTime").ToString()) %>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:HyperLinkColumn Target="_blank" DataNavigateUrlField="To_User" DataNavigateUrlFormatString="userinfo.aspx?username={0}"
														DataTextField="To_User" SortExpression="To_User" HeaderText="收件人">
														<HeaderStyle HorizontalAlign="Center" Width="15%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:HyperLinkColumn>
													<asp:HyperLinkColumn Target="_blank" DataNavigateUrlField="From_User" DataNavigateUrlFormatString="userinfo.aspx?username={0}"
														DataTextField="From_User" SortExpression="From_User" HeaderText="发件人">
														<HeaderStyle HorizontalAlign="Center" Width="15%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:HyperLinkColumn>
													<asp:HyperLinkColumn Target="_blank" DataNavigateUrlField="id" DataNavigateUrlFormatString="sms_show.aspx?id={0}"
														DataTextField="Title" HeaderText="主题"></asp:HyperLinkColumn>
													<asp:BoundColumn DataField="SendTime" SortExpression="SendTime" HeaderText="日期">
														<HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
												</Columns>
												<PagerStyle PageButtonCount="20" Mode="NumericPages"></PagerStyle>
											</asp:datagrid><webdiyer:aspnetpager id="Pager" runat="server" PageSize="20" AlwaysShow="True" ShowCustomInfoSection="Left"
												NumericButtonCount="15" ShowBoxThreshold="21" HorizontalAlign="Right" FirstPageText="<font face=webdings>9</font>"
												PrevPageText="<font face=webdings>3</font>" NextPageText="<font face=webdings>4</font>" LastPageText="<font face=webdings>:</font>"
												Height="20px" onpagechanged="Pager_PageChanged"></webdiyer:aspnetpager><br>
											<span class="forumrow">
												<span class="px14">
													<INPUT class="btn" id="Submit1" type="button" value="删除选中" name="Submit1" runat="server" onserverclick="Submit1_ServerClick">
												</span>
											</span><INPUT id="HdnSelectedValues" type="hidden" name="HdnSelectedValues" runat="server">
											&nbsp;
											<P></P>
										</div>
										</FONT></TD>
								</TR>
							</TABLE>
						</TD>
						<TD width="5" background="pics/wenbenkuan_06.gif"><IMG height="5" src="pics/wenbenkuan_06.gif" width="5"></TD>
					</TR>
					<TR>
						<TD background="pics/wenbenkuan_08.gif"><IMG height="5" src="pics/wenbenkuan_07.gif" width="5"></TD>
						<TD background="pics/wenbenkuan_08.gif"><IMG height="5" src="pics/wenbenkuan_08.gif" width="5"></TD>
						<TD><IMG height="5" src="pics/wenbenkuan_09.gif" width="5"></TD>
					</TR>
				</TABLE>
			</div>
		</form>
	</body>
</HTML>
