<%@ Page language="c#" Codebehind="Member.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.Admin.Member" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Member</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK href="inc/style.css" type="text/css" rel="stylesheet">
		<script language="javascript">
			function CheckDelBox(box)    
			{
					for (var i=0;i<document.Form1.elements.length;i++)
				{
					var e = document.Form1.elements[i];
					if ( (e.type=='checkbox') )
					{
			            
							var o=e.name.lastIndexOf('deleteCheckbox');
			                
							if(o!=-1)
							{
								e.checked = box.checked;
							}
			        
					}
				}
			}
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
<table width="100%" height="550" style="border:1px #619ADF solid; border-left:0;margin-top:6px; margin-right:7px;background:#F2F7FD;" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="tl"></td>
		<td class="tm"><span class="tt">会员管理 &gt;&gt; 会员管理</span></td>
		<td class="tm2"><span class="tt"><a href="http://www.wangqi.com" target="_blank"><img src="Images/admin_help.gif" border="0" alt="帮助"></a></span></td>
		<td class="tr"></td>
	</tr>
</table>
</div>
<div class="mframe">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="tl"></td>
		<td class="tm"><div class="tt">&nbsp; 会员管理</div></td>
		<td class="tr"></td>
	</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td class="ml"></td>
    <td  class="mm" align="left" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#EBF3FE" valign="top" style=" border-right:1px #77ABE5 solid;">
<table width="90%"  cellspacing="0" cellpadding="0">
	<tr>
		<td class="ml1"></td>
		<td class="mm1">
<table class="tableBorder" cellSpacing="0" cellPadding="0" width="640" align="center" border="0">
				<tr height="35">
					<td align="center">搜索：
						<asp:TextBox id="txtKeyword" CssClass="input" runat="server"></asp:TextBox>
						<asp:DropDownList id="ddlSearch" runat="server">
							<asp:ListItem Value="0">选择搜索条件</asp:ListItem>
							<asp:ListItem Value="Name">会员帐户</asp:ListItem>
							<asp:ListItem Value="Realname">真实姓名</asp:ListItem>
							<asp:ListItem Value="Email">电子邮件</asp:ListItem>
							<asp:ListItem Value="QQ">QQ号码</asp:ListItem>
						</asp:DropDownList>
						<asp:DropDownList id="ddlGroup" runat="server"></asp:DropDownList>
						<asp:Button id="btnSearch" runat="server" CssClass="btn" Text="GO"></asp:Button></td>
				</tr>
				<tr>
					<td class="forumRowHighlight" height="23">
						<asp:Button id="btnDelete" CssClass="btn1" runat="server" Text="删除会员"></asp:Button>
						<asp:datagrid id="dgList" runat="server" HeaderStyle-CssClass="summary-title" HorizontalAlign="Center"
							Width="100%" DataKeyField="MemberID" AutoGenerateColumns="False" PagerStyle-Mode="NumericPages"
							AllowPaging="True" PageSize="15">
							<HeaderStyle Font-Bold="True" CssClass="summary-title"></HeaderStyle>
							<Columns>
								<asp:TemplateColumn>
									<HeaderTemplate>
										<input type="checkbox" id="checkDel" onClick="CheckDelBox(this)" />
									</HeaderTemplate>
									<ItemTemplate>
										<asp:CheckBox id="deleteCheckbox" runat="server" AutoPostBack="False"></asp:CheckBox>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="会员帐户">
									<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
									<ItemStyle HorizontalAlign="Left"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"Name")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="真实姓名">
									<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
									<ItemStyle HorizontalAlign="Left"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"Realname")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="电子邮件">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"Email")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="QQ号码">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"QQ")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="积分">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"Score")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="注册时间">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"AddDate","{0:d}")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="有效">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
									<ItemTemplate>
										<a href="#" onclick='ChangeMemberStatus(<%# DataBinder.Eval(Container.DataItem, "MemberID") %>)'>
											<img src='images/publish_<%# DataBinder.Eval(Container.DataItem, "Status")%>.png' border="0"></a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn>
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
									<ItemTemplate>
										<a href='MemberAdd.aspx?MemberID=<%#DataBinder.Eval(Container.DataItem,"MemberID")%>'>
											修改</a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn>
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="60px"></ItemStyle>
									<ItemTemplate>
										<a href='MemberPassModify.aspx?MemberName=<%#DataBinder.Eval(Container.DataItem,"Name")%>'>
											密码重设</a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:ButtonColumn Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('真的要删除吗？')&quot;&gt;删除&lt;/div&gt;"
									CommandName="Delete">
									<ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
								</asp:ButtonColumn>
							</Columns>
							<PagerStyle Mode="NumericPages"></PagerStyle>
						</asp:datagrid>
						<input id="funcID" type="hidden" value="0" name="funcID" runat="server">
						<asp:linkbutton id="ChangeMemberStatus" onclick="ChangeMemberStatus_Click" Runat="server"></asp:linkbutton>
						<script language="javascript">
				function ChangeMemberStatus(MemberID)
				{
					document.Form1.funcID.value = MemberID;
					__doPostBack('ChangeMemberStatus','');
				}
						</script>
						<TABLE cellSpacing="0" cellPadding="0" width="100%" align="center" id="tablePage">
							<TR height="35">
								<TD vAlign="middle">
									<asp:label id="lblPager" Runat="server"></asp:label></TD>
								<TD vAlign="middle" align="right"><INPUT id="controlID" type="hidden" name="controlID" runat="server">
									<asp:textbox id="txtPage" Runat="server" Width="30px" CssClass="input"></asp:textbox>&nbsp;&nbsp;
									<asp:button id="btnJump" Runat="server" CssClass="btn" Text=" Go "></asp:button></TD>
							</TR>
						</TABLE>
					</td>
				</tr>
			</table>
		</td>
		<td class="mr1"></td>
	</tr>
</table>
</td>
  </tr>
</table>


<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</td>
    <td  class="mr"></td>
  </tr>
</table>
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>

</div>
    </td>
  </tr>
</table>
		</form>
	</body>
</HTML>
