<%@ Page language="c#" Inherits="temp.UserSearchweb" CodeFile="usersearchhweb.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>UserSearch</title>
		<LINK href="adminstyle.css" type="text/css" rel="stylesheet">
		<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">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体">
				<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="100%" border="0" class="table_1">
					<TR>
						<TD align="center" colSpan="4" style="COLOR: white; HEIGHT: 25px; BACKGROUND-COLOR: #66cc00"><font face="宋体" color="#ffffff">网站主查询/管理</font></TD>
					</TR>
				</TABLE>
				<TABLE id="Table4" width="98%" border="0" class="table_1">
					<TR class="td2">
						<TD width="58">用户名:</TD>
						<TD width="57">用户姓名:</TD>
						<TD width="64">用户类型:</TD>
						<TD width="77" style="WIDTH: 77px">用户状态:</TD>
						<TD>注册日期:</TD>
					</TR>
					<TR class="td1">
						<TD vAlign="top"><asp:textbox id="TextBox2" runat="server" Width="60px"></asp:textbox></TD>
						<TD vAlign="top"><asp:textbox id="TextBox4" runat="server" Width="60px"></asp:textbox></TD>
						<TD vAlign="top"><asp:dropdownlist id="dptype" Runat="server">
								<asp:ListItem Value="is not null">-请选择-</asp:ListItem>
								<asp:ListItem Value="='1'">个人</asp:ListItem>
								<asp:ListItem Value="='2'">单位</asp:ListItem>
							</asp:dropdownlist></TD>
						<TD vAlign="top" style="WIDTH: 77px"><asp:dropdownlist id="dpstate" runat="server">
								<asp:ListItem Value="is not null">-请选择-</asp:ListItem>
								<asp:ListItem Value="='1'">正常</asp:ListItem>
								<asp:ListItem Value="='2'">禁用</asp:ListItem>
								<asp:ListItem Value="='3'">待审核</asp:ListItem>
							</asp:dropdownlist></TD>
						<TD vAlign="top"><font face="宋体">从:<asp:dropdownlist id="dpyear1" runat="server" Width="50"></asp:dropdownlist>
							</font>年
							<asp:dropdownlist id="dpmonth1" runat="server" Width="40"></asp:dropdownlist>月
							<asp:dropdownlist id="dpday1" runat="server" Width="40"></asp:dropdownlist>日 到:<asp:dropdownlist id="dpyear2" runat="server" Width="50"></asp:dropdownlist>
							年
							<asp:dropdownlist id="dpmonth2" runat="server" Width="40"></asp:dropdownlist>月
							<asp:dropdownlist id="dpday2" runat="server" Width="40"></asp:dropdownlist>日</TD>
					</TR>
					<TR class="td1">
						<TD colSpan="5" align="right"><asp:button id="Button2" runat="server" Text="查询" onclick="Button2_Click"></asp:button></TD>
					</TR>
				</TABLE>
				<asp:datagrid id="DataGrid1" runat="server" Width="98%" AllowSorting="True" DataKeyField="id"
					AutoGenerateColumns="False" ShowHeader="True">
					<AlternatingItemStyle BackColor="#FAFFF7"></AlternatingItemStyle>
					<ItemStyle HorizontalAlign="Center" Height="25px" BorderWidth="1px" BorderStyle="None" BackColor="#FAFFF7"></ItemStyle>
					<HeaderStyle Font-Bold="True" HorizontalAlign="Center" Height="30px" BorderWidth="0px" BackColor="#66CC00"></HeaderStyle>
					<FooterStyle HorizontalAlign="Center" BackColor="#DDDDDD"></FooterStyle>
					<Columns>
						<asp:TemplateColumn SortExpression="UserName" HeaderText="用户账号">
							<ItemTemplate>
								<A href='UserWebDetail.aspx?name=<%# DataBinder.Eval(Container.DataItem,"UserName") %>'>
									<%# DataBinder.Eval(Container.DataItem,"UserName")%>
								</A>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn SortExpression="UserType" HeaderText="用户类型">
							<ItemTemplate>
								<%# Convert.ToInt32(DataBinder.Eval(Container.DataItem,"UserType"))==1? "个人":"单位"%>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:BoundColumn DataField="Name" SortExpression="Name" HeaderText="用户姓名"></asp:BoundColumn>
						<asp:BoundColumn DataField="Money" SortExpression="Money" HeaderText="金额"></asp:BoundColumn>
						<asp:BoundColumn DataField="Tel" SortExpression="Tel" HeaderText="用户电话"></asp:BoundColumn>
						<asp:BoundColumn DataField="qq" SortExpression="qq" HeaderText="QICQ"></asp:BoundColumn>
						<asp:BoundColumn DataField="RegDate" SortExpression="RegDate" HeaderText="注册日期"></asp:BoundColumn>
						<asp:TemplateColumn SortExpression="Appearance" HeaderText="用户状态">
							<ItemTemplate>
								<A href='UserModif.aspx?db=WebsiteHost&name=<%# DataBinder.Eval(Container.DataItem,"UserName") %>'>
									<%# Convert.ToInt32(DataBinder.Eval(Container.DataItem,"Appearance"))==1? "正常": Convert.ToInt32(DataBinder.Eval(Container.DataItem,"Appearance"))==2? "禁止":"待审核"%>
								</A>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="修改资料">
							<ItemTemplate>
								<asp:ImageButton id="ImageButton1" runat="server" CommandArgument="modif" CommandName="modif" ImageUrl="img/edit.gif"></asp:ImageButton>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn>
							<ItemTemplate>
								<asp:ImageButton ID="deleteBtn" CommandName="delete" ImageUrl="img/del.gif" Runat="server" AlternateText="删除记录"></asp:ImageButton>
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
				</asp:datagrid></FONT>
			<asp:label id="Label3" runat="server" ForeColor="Red" Height="16px" Width="136px">没有您你要记录！！<br /></asp:label>
            <br />
			&nbsp;<asp:linkbutton id="LinkButton1" runat="server" CommandArgument="frist" onclick="gopage">首页</asp:linkbutton>&nbsp;|&nbsp;<asp:linkbutton id="LinkButton2" runat="server" CommandArgument="pre" onclick="gopage">上一页</asp:linkbutton>&nbsp;|&nbsp;<asp:linkbutton id="LinkButton3" runat="server" CommandArgument="next" onclick="gopage">下一页</asp:linkbutton>&nbsp;|&nbsp;<asp:linkbutton id="LinkButton4" runat="server" CommandArgument="end" onclick="gopage">尾页</asp:linkbutton>
			<asp:label id="Label1" runat="server">0</asp:label>/
			<asp:label id="Label2" runat="server">0</asp:label>&nbsp;记录数共
			<asp:Label id="Label4" runat="server" ForeColor="Red">0</asp:Label>&nbsp;第
			<asp:DropDownList id="DropDownList1" runat="server" AutoPostBack="True"></asp:DropDownList>页
		</form>
	</body>
</HTML>
