<%@ Page Title="" Language="VB" MasterPageFile="~/App_MasterPage/mpManager.master" AutoEventWireup="false" CodeFile="UserGroup.aspx.vb" Inherits="Manager_UserGroup" %>


<%@ Register assembly="ControlPageing" namespace="ControlPageing" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="chpPageTitle" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="chpHead" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="chpScript" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="chpTitle" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="chpContent" Runat="Server">
    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View_Edit" runat="server">
    	    <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0" class="line_table">
	    	<tr>
                    <td align="right" width="20%">分组名称</td>
                    <td width="30%" colspan="2">
                        <asp:TextBox ID="txtGroupName" runat="server" Width="96%" ></asp:TextBox>
                    </td>
                    <td width="50%"><font color="red">*</font></td>
                </tr>	    	<tr>
                    <td align="right" width="20%" style=" vertical-align:top; line-height:25px;">分组简介</td>
                    <td width="30%" colspan="2">
                        <asp:TextBox ID="txtGroupIntro" runat="server" Height="137px" 
                            TextMode="MultiLine" Width="96%" ></asp:TextBox>
                    </td>
                    <td width="50%" style=" vertical-align:top; line-height:25px;"><font color="red">*</font></td>
                </tr>                                                                                             	            
	        <tr>
                    <td align="right" width="20%" height="40px">&nbsp;</td>
                    <td id="SmsaLen" height="60px" style="height: 20px" width="30%"></td>
                </tr>
                <tr>
                    <td align="right" colspan="3" width="50%">
                　          <asp:ImageButton ID="imgSave" runat="server" 
                                ImageUrl="~/App_Themes/ManagerTheme/Images/tj.jpg" style="height: 22px" ToolTip="添加" />
                    </td>
                    <td width="50%"></td>
                </tr>
	    </table>        
        </asp:View>
        <asp:View ID="View_List" runat="server">
    	    <div style="text-align: right;" class="edittd">
        	<asp:CheckBox ID="cbSelectAll" runat="server" AutoPostBack="True" Text="全部" />&nbsp;
        	<asp:LinkButton ID="lnkBtnDel" runat="server"><img src="/App_Themes/ManagerTheme/Images/Delete.gif" style=" border:0px"/>&nbsp;删除选中</asp:LinkButton>&nbsp;&nbsp;
        	<a href="UserGroup.aspx?Action=Add"><img src="/App_Themes/ManagerTheme/Images/add.gif" style=" border:0px" />&nbsp;添加</a>
    	    </div>       
            <asp:Repeater ID="rptList" runat="server">
                <HeaderTemplate>
                    <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0" class="line_table">
			<tr>
			    <td width="5%" align="center" class="left_bt2">选择</td>
			    <td width="20%" align="center" class="left_bt2">分组名称</td>
			    <td width="55%" align="center" class="left_bt2">分组简介</td>
			    <td align="center" width="20%" class="left_bt2">操作</td>
			</tr>
	        </HeaderTemplate>
                <ItemTemplate>
                    <tr class="menuout"   onMouseOver="this.className='menuin'" onMouseOut="this.className='menuout'">
			<td width="5%" align="center"><asp:CheckBox ID="CheckOn" runat="server" ToolTip='<%#Eval("ID")%>' /></td>
			<td width="20%" align="center"><%#Eval("GroupName")%></td>
			<td width="55%" align="center"><%#Eval("GroupIntro")%></td>
			<td width="20%" align="center"><a href="javascript:GroupSec('<%#Eval("ID") %>');">
				<img src="/App_Themes/ManagerTheme/Images/UserPower.gif" style=" border:0px" />&nbsp;权限</a>&nbsp;&nbsp;&nbsp;
			<a href="UserGroup.aspx?Action=Edit&ID=<%#Eval("ID") %>">
				<img src="/App_Themes/ManagerTheme/Images/Edit.gif" style=" border:0px" />&nbsp;编辑</a>&nbsp;&nbsp;&nbsp;<a href="UserGroup.aspx?Action=Del&ID=<%#Eval("ID") %>">
				<img src="/App_Themes/ManagerTheme/Images/Delete.gif" style=" border:0px" />&nbsp;删除</a></td>
			        </tr>
                </ItemTemplate>
                <FooterTemplate></table></FooterTemplate>
            </asp:Repeater>
               <div style="text-align:center"> <cc1:iPaging ID="ListPaging" runat="server" /></div>
<script language="javascript" type="text/jscript">
function GroupSec(GroupID) {
    $.dialog({ 
            lock: true,
            title: '组权限设置',
            content: 'url:/Manager/GroupJurisdiction.aspx?GroupID=' + GroupID, 
            width: 650, 
            height: 480, 
            max: false, 
            min: false
        });
}
       
</script>
        </asp:View>        
    </asp:MultiView>

</asp:Content>