<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="Member.aspx.cs" Inherits="web.admin.Member" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Member</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<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="images/adminstyle.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>
				<script language="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{

if (Flag == 0)
{

  parent.document.all['Loading'].style.display = 'block';
  parent.document.all['Loading'].style.width = '500';
   parent.document.all['Loading'].style.height = '60';
  //show the window
}
else
{
  parent.document.all['Loading'].style.display = 'none';
  
  //hide the window
}
}
//-->
</script>
	</HEAD>
		<body rightmargin="0" leftmargin="0" topmargin="0" onload="Window_Load(1);">
	
		<form id="Form1" method="post" runat="server" onsubmit="Window_Load(0);">
<table width="100%" height="550" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
          <table width="100%" align="center" cellpadding="0" cellspacing="0" background="img/labelbg.gif" bgcolor="#EDF6FF">
            <tr>
		      <td height="32" class="tl"></td>
		<td class="tm"><span class="tt">会员管理 &gt;&gt; 会员管理</span></td>
		      <td class="tm2"><span class="tt"></span></td>
		<td class="tr"></td>
	</tr>
</table>
</div>
        <div class="mframe"> 
          <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="#FFFFFF" valign="top" ><br>
                      <table width="100%" align="center" cellpadding="0"  cellspacing="0">
                        <tr>
		<td class="ml1"></td>
		<td class="mm1">
<table  cellSpacing="0" cellPadding="0" width="96%" align="center" border="0">
                              <tr height="35">
					            <td align="center"> <div align="left"><span style="color: #ff0033">说明:<br>
                                    1、如果系统积分设置为开放状态.并且需要审核才能追加相应的积分,则在会员列表里的帐号前会有一个“<font color="#006633">新”</font>字显示,提示你未处理审核的新会员<br>
                                    2、如果系统设置给推荐人赠送积分计划，并且系统设置为审核为推荐人追加积分，新会员是推荐人介绍注册的，在其帐号前会有一个“<font color="#00CC33">荐</font><font color="#006633">”</font>字，以提示管理员有推荐人介绍会员进来，请审核并赠送相应的积分。<br />
                                    </span> 3、在会员的相关统计里，如果看到会员的积分增加，每隔5分钟增加一次，就可以表明对方在刷积分！！<br />
                                    <br />
                                    搜索： </div>
                                  <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>&nbsp;
                        <input id="Button1" type="button" value="返回" language="javascript" onclick="return Button1_onclick()" />
                        <br />
						<br />
						<asp:datagrid id="dgList" runat="server" HeaderStyle-CssClass="summary-title" HorizontalAlign="Center"
							Width="100%" DataKeyField="MemberID" AutoGenerateColumns="False" PagerStyle-Mode="NumericPages"
							AllowPaging="True" BorderColor="#E0E0E0" BorderWidth="1px" OnItemDataBound="dgList_ItemDataBound" OnPreRender="dgList_PreRender">
							<HeaderStyle Font-Bold="False" CssClass="head" BackColor="#EDF6FF" Height="35px"></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>
                                    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                        Font-Underline="False" HorizontalAlign="Center" />
                                    <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                        Font-Underline="False" HorizontalAlign="Center" />
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="会员帐户">
									<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
									<ItemStyle HorizontalAlign="Left"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem, "Name")%> 
                                        <asp:Label ID="xz" runat="server" ></asp:Label><asp:Label ID="tj" runat="server"
                                            ></asp:Label>
									</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="积分">
									<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 HeaderText="相关统计">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="60px"></ItemStyle>
									<ItemTemplate>
										<a href='relate.aspx?MemberID=<%#DataBinder.Eval(Container.DataItem,"MemberID")%>'>
											相关统计</a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="修改">
									<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 HeaderText="密码重设">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="60px"></ItemStyle>
									<ItemTemplate>
										<a href='ResetPws.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" HeaderText="删除">
									<ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
								</asp:ButtonColumn>
							</Columns>
							<PagerStyle Mode="NumericPages" Height="26px"></PagerStyle>
                            <ItemStyle Height="26px" />
						</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','');
				}
function Button1_onclick() 
{
history.go(-1);
}

						</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>
