<%@ Page Language="C#" MasterPageFile="../Admin.master" AutoEventWireup="true" Inherits="Ruiao.WebSite.Public.Admin.MemberOperation" Codebehind="MemberOperation.aspx.cs" %>
<asp:Content ID="MyHead" ContentPlaceHolderID="cphHead" Runat="Server">
<script type="text/javascript">
//<![CDATA[
function addLoadEvent(func)
{
    if ( typeof MyOnload!='function')
    {
        MyOnload=func;
    }
    else
    {
        var Oldonload=MyOnload;
        MyOnload=function(){Oldonload();func();}
    }
}
//]]>
</script>
<script type="text/javascript" src="<%=AppUrl %>/Common/Script/fat.js"></script>
</asp:Content>
<asp:Content ID="MyContent" ContentPlaceHolderID="cphMain" Runat="Server">
	
	<fieldset class="ContentBox">
    <div class="Head"><div class="Title"><%=MyTitle %></div></div>
    <div class="Body" id="mc_MainBody">
        <div class="ContentItem">
        	<div id="message" class="NoticeMessage fade"><p><strong>以下会员将被<strong><%=ActionText %></strong>，请在确认无误后，再进行操作。</strong></p></div>
	<table id="MemberList" class="MainContentTable" cellspacing="1">
	<tr class="HeadTR">
	    <td class="HeadTD" style="width:20px;">ID</td>
		<td class="HeadTD" style="width:220px;">会员名称</td>
		<td class="HeadTD" style="width:120px;">会员组</td>
		<td class="HeadTD" style="width:80px;">最后登录IP</td>
		<td class="HeadTD" style="width:80px;">最后登录时间</td>
		<td class="HeadTD" style="width:80px;">注册时间</td>
		<td class="HeadTD" style="width:40px;">编辑</td>
		<td class="HeadTD" style="width:40px;">设置</td>
		<td class="HeadTD" style="width:40px;">操作</td>
	</tr>
	
    <asp:Repeater ID="rpMemberList" runat="server" OnItemCreated="rpMemberList_ItemCreated">
    <ItemTemplate>
    <tr class="ItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='ItemTR';">
        <td class="ItemTD"><asp:Label ID="lbID" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ID")%>' /></td>
		<td class="ItemTD" style="text-align:left"><%# DataBinder.Eval(Container, "DataItem.DisplayName")%>(<%# DataBinder.Eval(Container, "DataItem.LoginName") %>)</td>
		<td class="ItemTD"><%# MyMemberGroup.Name %></td>
		<td class="ItemTD"><%# DataBinder.Eval(Container, "DataItem.LastLoginIP") %></td>
		<td class="ItemTD"><%# ((DateTime)DataBinder.Eval(Container, "DataItem.LastLoginTime")).ToString("yyyy-MM-dd") %></td>		
		<td class="ItemTD"><%# ((DateTime)DataBinder.Eval(Container, "DataItem.AddTime")).ToString("yyyy-MM-dd") %></td>
		<td class="ItemTD"><a target="_blank" href="<%=AppUrl %>/Member/InfoEdit<%=ExtensionName %>?MemberID=<%# DataBinder.Eval(Container, "DataItem.ID") %>">编辑</a></td>
		<td class="ItemTD"><a href="<%=AppUrl %>/Admin/Member/MemberEdit<%=ExtensionName %>?MemberID=<%# DataBinder.Eval(Container, "DataItem.ID") %>">设置</a></td>
		<td class="ItemTD"><asp:CheckBox ID="cbxSelect" runat="server" Checked="true" /></td>
	</tr>
    </ItemTemplate>
    </asp:Repeater>
    
    <tr class="ItemTR">
    <td class="ItemTD" colspan="9" style="text-align:right;">
    <asp:Button ID="btEnter" runat="server" Text='确认操作' OnClick="btEnter_Click" CssClass="SubmitButton" />
    </td>
    </tr>
    
    </table>
        </div>
    </div>
    <div class="Bottom"></div>
	</fieldset>
	<div class="ContentBox_Separator"></div>
    <script type="text/javascript">if(typeof MyOnload=='function')MyOnload();</script>
</asp:Content>
