<%@Page Language="C#" Inherits="IWMS.Admin.MemberCheck" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<%btDelete.Attributes["onclick"] = "return confirm_batch_delete()";%>
</asp:Content>
<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<table width="98%" cellpadding="0" cellspacing="0">
			<tr><td>
				<span class="tt">审核会员</span>
			</td><td align="right">
				<form action="" method="get">
				<input type="text" size="15" name="keyword"/>
				<select name="where" >
					<option value="name">会员名</option>
				</select>
				<input type="submit" value="搜索"/>
				</form>
			</td></tr>
		</table>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<asp:Label id="myLabel" class="msgBar" EnableViewState="false" runat="server"/>
		<form id="myForm" runat="server">
		<ASP:DataGrid id="MyDataGrid" runat="server"
				Width="100%"
				align="center"
				ShowHeader="true"
				ShowFooter="false"
				AutoGenerateColumns="false"
				DataKeyField="id"
				AllowPaging="true"
				OnPageIndexChanged="MyDataGrid_Page"
				OnItemDataBound="MyDataGrid_ItemDataBound"
				CssClass="grid"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				PageSize="15"
				CellPadding="6"
				CellSpacing="0" >
			<EditItemStyle CssClass="tdbg-dark" />
			<PagerStyle Mode="NumericPages" PageButtonCount="10" />
			
			<Columns>
				<asp:TemplateColumn
					HeaderText="<input type=&quot;checkbox&quot; onclick=&quot;checkFormAll(this)&quot;/>"
					>
					<ItemTemplate>
						<asp:CheckBox id="chk" runat="server"/>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="20"/>
				</asp:TemplateColumn>
				<asp:TemplateColumn
					HeaderText="会员名"
					>
					<ItemTemplate>
					<a href="admin_member_ncView.aspx?id=<%#Eval("id")%>"><%#Eval("name")%></a>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="90"/>
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="姓名"
					DataField="realname"
					>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="80"/>
				</asp:BoundColumn>
				<asp:TemplateColumn
					HeaderText="email"
					>
					<ItemTemplate>
						<a href="admin_sendmail.aspx?mailto=<%#Eval("email")%>"><%#Eval("email")%></a>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="80"/>
				</asp:TemplateColumn>
				<asp:TemplateColumn
					HeaderText="性别">
					<ItemTemplate>
						<%#((bool)Eval("male")? "男" : "女")%>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="30"/>
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="QQ"
					DataField="qq"
					>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="80"/>
				</asp:BoundColumn>
				<asp:TemplateColumn
					HeaderText="城市"
					>
					<ItemTemplate>
						<%#Eval("country")%>
						<%#Eval("province")%>
						<%#Eval("city")%>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="注册日期"
					DataField="adddate"
					DataFormatString="{0:yyyy-MM-dd}"
					ReadOnly="true">
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="80"/>
				</asp:BoundColumn>
				<asp:TemplateColumn
					HeaderText=""
					>
					<ItemTemplate>
						<%#Eval("activecode").ToString().Length==0 ? "" : "<a href='memberactive.aspx?uname="+ Eval("name") +"&amp;code="+ Eval("activecode") +"' target='_blank'>激活</a>"%>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="40"/>
				</asp:TemplateColumn>			
			</Columns>
		</ASP:DataGrid>
		
		<asp:PlaceHolder id="phPass" Visible=false runat="server" >
			<table width="95%" align="center">
			<tr><td width="80">
				会员名
			</td><td>
				<asp:Literal id="name" runat="server"/><input type="hidden" id="ihID" runat="server"/>
			</td></tr>
			<tr><td>
				备　　注：
			</td><td>
				<asp:TextBox id="tbRemarks" size="40" MaxLength="100" runat="server"/>
			</td></tr>
			<tr><td>
				用 户 组：
			</td><td>
				<asp:CheckBoxList id="cblGroup" RepeatDirection="Horizontal" RepeatColumns=8 runat="server"/>
			</td></tr>
			<tr><td align="center">
				<asp:Button id="btPass" Onclick="btPass_Onclick" Text="审核通过" runat="server"/>
			</td></tr>
			</table>
		</asp:PlaceHolder>
		
		<table>
		<tr><td>
		<asp:PlaceHolder id="phButton" runat="server">
		<asp:Button id="btDelete" OnClick="btDelete_OnClick" Text="删除" runat="server"/>&nbsp;
		<asp:Button id="btPass1" OnClick="btPass1_OnClick" Text="通过审核" runat="server"/>
		</asp:PlaceHolder>
		</td></tr>
		</table>
		
		</form>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>

</asp:Content>