<%@ Page Language="vb" AutoEventWireup="false" Codebehind="UserManage.aspx.vb" Inherits="LuckBet.UserManage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>UserManage</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../Styles.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<TABLE id="Table1" style="FONT-SIZE: 12px; LETTER-SPACING: 1px" cellSpacing="0" borderColorDark="#ffffff"
				cellPadding="3" width="100%" align="center" bgColor="#c5d5e4" borderColorLight="#335078"
				border="1">
				<TR bgColor="#b6ebc4">
					<TD style="HEIGHT: 35px" align="center" width="100%" bgColor="#d8e1eb" colSpan="6"><FONT face="宋体"><FONT style="FONT-WEIGHT: bold; FONT-SIZE: 13pt; COLOR: #330066" size="2">会 
								员 管 理</FONT></FONT></TD>
				</TR>
				<TR>
					<TD align="center"><FONT face="宋体">
							<TABLE id="Table4" style="FONT-SIZE: 12px; LETTER-SPACING: 1px" cellSpacing="0" borderColorDark="#ffffff"
								cellPadding="3" width="99%" align="center" bgColor="#c5d5e4" borderColorLight="#335078"
								border="1">
								<TR bgColor="#b6ebc4">
									<TD style="WIDTH: 731px" align="center" width="731" bgColor="#e4ebf1" height="30"><asp:dropdownlist id="ddlselect" runat="server" AutoPostBack="True">
											<asp:ListItem Value="0" Selected="True">全部信息</asp:ListItem>
											<asp:ListItem Value="3">待审会员</asp:ListItem>
											<asp:ListItem Value="1">普通会员</asp:ListItem>
											<asp:ListItem Value="2">认证会员</asp:ListItem>
										</asp:dropdownlist><asp:dropdownlist id="ddlorder" runat="server" AutoPostBack="True">
											<asp:ListItem Value="RegistTime desc" Selected="True">注册时间倒序</asp:ListItem>
											<asp:ListItem Value="RegistTime">注册时间升序</asp:ListItem>
											<asp:ListItem Value="user_coin">金币余额升序</asp:ListItem>
											<asp:ListItem Value="user_coin desc">金币余额降序</asp:ListItem>
										</asp:dropdownlist><asp:checkbox id="chklock" runat="server" AutoPostBack="True" Text="锁定的会员"></asp:checkbox></TD>
									<TD align="right" width="200" bgColor="#e4ebf1" height="30"><FONT style="BACKGROUND-COLOR: #ffffff">查询会员</FONT>&nbsp;
										<asp:textbox id="txtsearchstr" runat="server" CssClass="textbox" Width="131px"></asp:textbox></TD>
									<TD align="center" bgColor="#e4ebf1" height="30"><asp:button id="Button1" runat="server" Text="查 询"></asp:button></TD>
								</TR>
								<TR>
									<TD colSpan="3" height="28" align="center">
										<TABLE id="Table3" height="16" cellSpacing="0" cellPadding="0" width="998" border="0" style="WIDTH: 998px; HEIGHT: 16px">
											<TR>
												<TD align="center"><asp:label id="Label5" runat="server" ForeColor="Red"></asp:label>&nbsp;<asp:checkbox id="CheckBox1" runat="server" AutoPostBack="True" Text="选中所有"></asp:checkbox>
													<asp:button id="Button7" runat="server" Width="88px" Text="发送站内短信"></asp:button>&nbsp;
													<asp:button id="Button3" runat="server" Width="67px" Text="认证会员"></asp:button>&nbsp;
													<asp:button id="Button4" runat="server" Width="71px" Text="不通过审核"></asp:button>&nbsp;
													<asp:button id="Button5" runat="server" Width="67px" Text="锁定会员"></asp:button>&nbsp;
													<asp:button id="Button6" runat="server" Width="67px" Text="解除锁定"></asp:button>&nbsp;
													<asp:button id="Button2" runat="server" Text="删除会员"></asp:button></TD>
											</TR>
											<TR>
												<TD align="center" style="HEIGHT: 36px">批量送
													<asp:textbox id="txtamount" runat="server" Width="96px" CssClass="textbox" Height="22px"></asp:textbox>(输入整数)
													<asp:dropdownlist id="ddlcoin" runat="server">
														<asp:ListItem Value="0" Selected="True">积分</asp:ListItem>
														<asp:ListItem Value="1">金币</asp:ListItem>
													</asp:dropdownlist>给会员
													<asp:button id="Button8" runat="server" Text="发送到选中会员" Width="129px"></asp:button></TD>
											</TR>
										</TABLE>
										该会员如果有推荐人则ID显示为红色字体,推荐人ID为蓝色
									</TD>
								</TR>
							</TABLE>
							<TABLE id="Table22" style="FONT-SIZE: 12px; LETTER-SPACING: 1px" cellSpacing="0" borderColorDark="#ffffff"
								cellPadding="3" width="99%" align="center" bgColor="#c5d5e4" borderColorLight="#335078"
								border="1">
								<TR bgColor="#b6ebc4">
									<TD align="center" width="100%" bgColor="#e4ebf1" colSpan="3" height="25">
										总共有
										<asp:label id="lblcount" runat="server" ForeColor="Red"></asp:label>&nbsp;条 记录
										<asp:label id="lblCurrentIndex" runat="server"></asp:label>&nbsp;
										<asp:label id="lblPageCount" runat="server"></asp:label></TD>
								</TR>
							</TABLE>
							<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
								<TBODY>
									<TR>
										<TD style="HEIGHT: 169px" vAlign="top" align="center"><asp:datagrid id="DataGrid1" runat="server" Width="100%" PageSize="12" AllowPaging="True" DataKeyField="UserID"
												BackColor="White" AutoGenerateColumns="False" CellPadding="3" BorderColor="#93BEE2" BorderWidth="1px" BorderStyle="None">
												<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
												<AlternatingItemStyle Font-Size="X-Small" BackColor="#E8F4FF"></AlternatingItemStyle>
												<ItemStyle Font-Size="X-Small" ForeColor="#003399" BackColor="White"></ItemStyle>
												<HeaderStyle Font-Size="X-Small" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
												<Columns>
													<asp:TemplateColumn HeaderText="选择">
														<HeaderStyle HorizontalAlign="Center" Width="25px"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:CheckBox id="PID" runat="server"></asp:CheckBox>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="ID">
														<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<%# iif(DataBinder.Eval(Container, "DataItem.user_tjuserID")="0","<font color=black>","<font color=red>") %>
															<%# DataBinder.Eval(Container, "DataItem.userid") %>
						</FONT><a href ='../Games/user.aspx?USID=<%# DataBinder.Eval(Container, "DataItem.user_tjuserID") %>' target =_blank title='点击查看推广会员信息'>
							<font color="blue">
								<%# iif(DataBinder.Eval(Container, "DataItem.user_tjuserID")="0","",DataBinder.Eval(Container, "DataItem.user_tjuserID")) %>
							</font></font></ItemTemplate> </asp:TemplateColumn>
							<asp:TemplateColumn HeaderText="登录名">
								<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
								<ItemTemplate>
									<a href ='../Games/user.aspx?usname=<%# DataBinder.Eval(Container, "DataItem.UserName") %>' target =_blank  title='点击查看会员信息'>
										<%# DataBinder.Eval(Container, "DataItem.UserName") %>
									</a><a href='sendmessage.aspx?id=<%# DataBinder.Eval(Container, "DataItem.Userid") %>'>
										<img src="../images/message.gif" alt="发送站内短信" width="15" height="11" border="0"></a>
								</ItemTemplate>
							</asp:TemplateColumn>
							<asp:TemplateColumn HeaderText="积分">
								<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
								<ItemTemplate>
									<asp:Label runat="server" Text='<%# pub.Comma(DataBinder.Eval(Container, "DataItem.Remark")) %>' ID="Label3">
									</asp:Label>
								</ItemTemplate>
							</asp:TemplateColumn>
							<asp:TemplateColumn HeaderText="金币余额">
								<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
								<ItemTemplate>
									<a href ='BetUserD.aspx?Uid=<%# DataBinder.Eval(Container, "DataItem.UserID") %>' target =_blank title ="点击查看用户投注信息">
										<%# pub.Comma(iif(DataBinder.Eval(Container, "DataItem.user_coinbox")="0",DataBinder.Eval(Container, "DataItem.user_coin"),DataBinder.Eval(Container, "DataItem.user_coinbox")+DataBinder.Eval(Container, "DataItem.user_coin"))) %>
									</a>
								</ItemTemplate>
							</asp:TemplateColumn>
							<asp:TemplateColumn HeaderText="兑换次数">
								<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
								<ItemTemplate>
									<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.djTimes") %>' ID="Label2">
									</asp:Label>
								</ItemTemplate>
							</asp:TemplateColumn>
							<asp:TemplateColumn HeaderText="充值次数">
								<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
								<ItemTemplate>
									<%# DataBinder.Eval(Container, "DataItem.user_CZTimes") %>
								</ItemTemplate>
							</asp:TemplateColumn>
							<asp:TemplateColumn HeaderText="注册时间">
								<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
								<ItemTemplate>
									<%# DataBinder.Eval(Container, "DataItem.RegistTime") %>
								</ItemTemplate>
							</asp:TemplateColumn>
							<asp:TemplateColumn HeaderText="状态">
								<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
								<ItemTemplate>
									<%# iif(DataBinder.Eval(Container, "DataItem.user_lock")=true,"<font color=red>锁定</font>","正常") %>
								</ItemTemplate>
							</asp:TemplateColumn>
							<asp:TemplateColumn HeaderText="最后登陆IP">
								<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
								<ItemTemplate>
									<a href ='IP.asp?Ip=<%# DataBinder.Eval(Container, "DataItem.LastLoginIP") %>' target =_blank >
										<%# DataBinder.Eval(Container, "DataItem.LastLoginIP") %>
									</a>
								</ItemTemplate>
							</asp:TemplateColumn>
							</Columns>
							<PagerStyle NextPageText="上一页" PrevPageText="下一页" HorizontalAlign="Right" ForeColor="#003399"
								Position="TopAndBottom" BackColor="#E8F4FF"></PagerStyle> </asp:datagrid></TD>
				</TR>
			</TABLE>
			</FONT></TD></TR></TBODY></TABLE>
		</form>
	</body>
</HTML>
