<%@ Page Language="C#" MasterPageFile="../Admin.master" AutoEventWireup="true" Inherits="Ruiao.WebSite.Public.Admin.GroupManage" Codebehind="GroupManage.aspx.cs" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="MyContent" ContentPlaceHolderID="cphMain" Runat="Server">

    <fieldset class="ContentBox">
    <div class="Head" onclick="BoxSwitch('mc_MemberNotice','si_MemberNotice')"><div class="Title">会员组管理：</div><div id="si_MemberNotice" class="SwitchIcon_Up"></div></div>
    <div class="Body" id="mc_MemberNotice">
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px"><strong>注意事项：</strong></div><div class="ContentItem_03b" style="width:649px">
        <ul class="NotesMessage">
        <li>点编辑可以修改该组的各种信息与限制，以及该组在各个子系统中的权限设置，这些设置将直接影响到所属会员。</li>
        <li>点删除可以删除该会员组，但在确定删除界面中必须为该组成员指定一个新的组，以转移被删除组的所属会员。</li>
        </div></div>
        
        <div class="ContentItem">        
        <input type="button" class="LinkButton" value="添加会员组" onclick="location='GroupAdd<%=ExtensionName %>'" />
        </div>
    </div>
    <div class="Bottom"></div>
	</fieldset>
	<div class="ContentBox_Separator"></div>
    
    <table id="MemberList" class="MainContentTable" cellspacing="1">
	<tr class="HeadTR">
		<td class="HeadTD" style="width:120px;">名称</td>
		<td class="HeadTD" style="width:460px;">描述</td>
		<td class="HeadTD" style="width:80px;">建立时间</td>
		<td class="HeadTD" style="width:80px;">所属会员</td>
		<td class="HeadTD" style="width:80px;">操作</td>
	</tr>
    <asp:Repeater ID="rpGroupList" runat="server">
    <ItemTemplate>
    <tr class="ItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='ItemTR';">
		<td class="ItemTD" style="text-align:left"><%# DataBinder.Eval(Container, "DataItem.Name") %></td>
		<td class="ItemTD" style="text-align:left"><%# DataBinder.Eval(Container, "DataItem.Description")%></td>
		<td class="ItemTD"><%# ((DateTime)DataBinder.Eval(Container, "DataItem.AddTime")).ToString("yyyy-MM-dd") %></td>
		<td class="ItemTD"><a href="<%=AppUrl %>/Admin/Member/MemberManage<%=ExtensionName %>?MemberGroupID=<%# DataBinder.Eval(Container, "DataItem.ID") %>">列出会员</a></td>
		<td class="ItemTD"><a href="<%=AppUrl %>/Admin/Member/GroupEdit<%=ExtensionName %>?GroupID=<%# DataBinder.Eval(Container, "DataItem.ID") %>">编辑</a> | <a href="<%=AppUrl %>/Admin/Member/GroupDelete<%=ExtensionName %>?GroupID=<%# DataBinder.Eval(Container, "DataItem.ID") %>">删除</a></td>
	</tr>
    </ItemTemplate>
    </asp:Repeater>
    
    <tr class="ItemTR">
    <td class="ItemTD" colspan="5" style="text-align:left;">
    <webdiyer:AspNetPager ID="Pager" runat="server" OnPageChanged="Pager_PageChanged" AlwaysShow="True" UrlPaging="False" />
    </td>
    </tr>
    </table>
</asp:Content>