<%@ Page CodeBehind="user_sms.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.user_sms" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<%@ Register Src="~/userleft.ascx" TagPrefix="uc1" TagName="userleft" %>
<%@ Register Src="~/usertop.ascx" TagPrefix="uc1" TagName="usertop" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>短消息管理</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
	<link rel="stylesheet" href="css/atlantis.css">
	
</head>
<body>
 <div class="wrapper">
    <!-- begin::navigation -->
         <uc1:usertop runat="server" ID="usertop" />
    <uc1:userleft runat="server" ID="userleft" />
    <!-- end::navigation -->

   <div class="main-panel">

        <div class="content">
            <div class="page-inner">

        <div >

           <div class="card">
			    <div class="card-body">
						<div class="row">&nbsp;&nbsp;&nbsp;&nbsp;<img src="pics/users.gif" width="16" height="16" align="absMiddle">&nbsp;&nbsp;&nbsp;&nbsp;<h5><b>短消息管理—
				  <asp:label id="curr" runat="server"></asp:label></b></h5></div>
					<form id="Form1" method="post" runat="server">
										<div class="row justify-content-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></div><br>
											 <div class="<%=Webdisk.DAL.Config.IsMobile %>">
											<asp:datagrid id="DataGrid" runat="server" CssClass="table-hover" PageSize="20" Width="100%" AutoGenerateColumns="False" BorderStyle="None" BorderWidth="0px" GridLines="None" AlternatingItemStyle-CssClass="GridMove"
												AllowSorting="True">
												<ItemStyle CssClass="GridItem"></ItemStyle>
                                    <HeaderStyle CssClass="GridHead"></HeaderStyle>
												<Columns>
													<asp:TemplateColumn HeaderText="选择">
														<HeaderStyle HorizontalAlign="Center" Width="3%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<HeaderTemplate>
															<div class="custom-control custom-checkbox mr-0">
												<input type="checkbox" class="custom-control-input" id="customCheckAll">
												<label class="custom-control-label" for="customCheckAll"></label>
											</div>
														</HeaderTemplate>
														<ItemTemplate>
															 <div class="custom-control custom-checkbox mr-0">
											<INPUT id='chkSelect<%# Eval("id") %>' onclick=AddRemoveValues(this) class='custom-control-input' name="checkbox" type=checkbox value='<%#DataBinder.Eval(Container.DataItem,"id")%>'>
												 <label class="custom-control-label" for="chkSelect<%# Eval("id") %>"></label></div>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn SortExpression="InceptTime" HeaderText="状态">
														<HeaderStyle HorizontalAlign="Center" Width="8%"></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><br></div>
												<div class="hidden-sm hidden-md hidden-lg text-center"><%=sjinfo %><p></div>
											<webdiyer:aspnetpager CssClass="paginator" CurrentPageButtonClass="cpb" PagingButtonSpacing="0" CustomInfoTextAlign="Left" id="Pager" runat="server" PageSize="20" AlwaysShow="True" ShowCustomInfoSection="Left"
												NumericButtonCount="5" HorizontalAlign="Right" FirstPageText="|<" PrevPageText="<" NextPageText=">" LastPageText=">|"
												Height="20px" onpagechanged="Pager_PageChanged"></webdiyer:aspnetpager><br>
											<div class="forumrow">
												<div class="row justify-content-center">
													<INPUT class="btn btn-outline-light" id="Submit1" type="button" value="删除选中" name="Submit1" runat="server" onserverclick="Submit1_ServerClick">
												</div>
											</span><INPUT id="HdnSelectedValues" type="hidden" name="HdnSelectedValues" runat="server">
											&nbsp;
											<P></P>
										</div>
										</form>
			    </div>
			    </div>

    </div> </div> </div>
    <!-- end::main content -->
</body>
</html>			
<!-- Plugin scripts -->
			   <script type="text/javascript" src="js/calendar.js"></script>
<script src="js/jquery.3.2.1.min.js"></script>
	<script src="js/popper.min.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<!-- jQuery UI -->
	<script src="js/jquery-ui.min.js"></script>
	<script src="js/jquery.ui.touch-punch.min.js"></script>
	
	<!-- jQuery Scrollbar -->
	<script src="js/jquery.scrollbar.min.js"></script>
	<!-- Atlantis JS -->
	<script src="js/webfont.min.js"></script>
	<script src="js/atlantis.js"></script>

<script src="js/function.js"></script>
			<script>
                function showly() {
                    var url = 'sms_input.aspx';
                    window.open(url, '', 'scrollbars=yes,resizable=no,status=no,toolbar=no,menubar=no,location=no,width=650,height=400');
                }
            </script>