<%
    //-----------------------------------------------------------
    // 文件名称: Tool_PageControlPower_Manage.aspx
    // 页面名称: 页面控件权限管理
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-05-20
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Tool_PageControlPower_Manage, V5Shop.Shop.Tool" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
    <style type="text/css">
    .titles
    {
        background-color: #ffffff; 
        width: 20%; 
        text-align: right; 
        vertical-align: middle;
    }
    .items
    {
        background-color: #ffffff; 
        width: 80%; 
        text-align: left; 
        vertical-align: middle;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <uc3:ManageHeader ID="PageHead" runat="server" />
            <div id="content">
                <asp:Panel runat="server" ID="PanelShow" Width="100%">
                    <div style="text-align: center; vertical-align: middle;">
                        <table id="OperateTable" style="width:100%;border:0px;text-align:center;" cellpadding="0" cellspacing="0">
                            <!-- 页面名 -->
                            <tr>
                                <td class="titles" style="height: 30px">	<cc1:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="权限组" HideSelects="False" ImageURL="images/help.gif" Text="选择需要分配页面控件权限的权限组。" />
                                    <asp:Label ID="lblRole" runat="server" Text="权限组：" /></td>
                                <td class="items" style="height: 30px">
                                    <asp:DropDownList ID="ddlRole" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlRole_SelectedIndexChanged">
                                        <asp:ListItem Value="-1" Selected="True">请选择</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <!-- 控件类型 -->
                            <tr>
                                <td class="titles" style="height: 30px"><cc1:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="页面名称" HideSelects="False" ImageURL="images/help.gif" Text="选择了权限组后会列出权限组下面的页面。" />
                                    <asp:Label ID="lblPage" runat="server" Text="页面名称：" /></td>
                                <td align="left" style="vertical-align: top; height: 30px;">
                                    <asp:DropDownList ID="ddlPage" runat="server" AutoPostBack="True" Enabled="False" OnSelectedIndexChanged="ddlPage_SelectedIndexChanged">
                                        <asp:ListItem Value="-1" Selected="True">请选择</asp:ListItem>
                                    </asp:DropDownList>
                                    <span style="width: 10%; height: 30px; text-align: right;"></span>
                                </td>
                            </tr>
                            <!-- 页面控件功能 -->
                            <tr>
                                <td align="right" style="width: 10%; height: 30px; text-align: right;"><cc1:HelpCtrl ID="HelpCtrl3" runat="server" FontColor="red" Header="页面控件功能" HideSelects="False" ImageURL="images/help.gif" Text="列表中列出了被选页面的控件,可以操作控件是否可用和是否可见。" />
                                    <asp:Label ID="lblPageControlPower" runat="server" Text="页面控件功能：" /></td>
                                <td align="left" style="vertical-align: top">
                                    <asp:GridView ID="dgPageControlPower" runat="server" AutoGenerateColumns="False" CssClass="datalist" PageSize="12" BorderWidth="0px" GridLines="None" Visible="False">
                                        <Columns>
                                            <asp:BoundField HeaderText="ID" DataField="ID" />
                                            <asp:BoundField HeaderText="控件ID" DataField="ControlID" />
                                            <asp:BoundField HeaderText="控件名" DataField="ControlName" />
                                            <asp:TemplateField HeaderText="Enable状态">
                                                <ItemTemplate>
                                                    <asp:CheckBox runat="server" Checked='<%# Bind("IsEnable") %>' ID="IsEnable" Text="是否可用" CssClass="input3" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Visible状态">
                                                <ItemTemplate>
                                                    <asp:CheckBox runat="server" Checked='<%# Bind("IsVisible") %>' ID="IsVisible" Text="是否可见" CssClass="input3" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField HeaderText="描述" DataField="Description" />
                                        </Columns>
                                        <HeaderStyle CssClass="category" />
                                        <PagerSettings FirstPageText="第一页" LastPageText="最后一页" Mode="NumericFirstLast" NextPageText="下一页" PreviousPageText="上一页" />
                                        <PagerStyle HorizontalAlign="Right" />
                                    </asp:GridView>
                                    &nbsp;
                                </td>
                            </tr>
                            <!-- 确定/更新/重置 -->
                            <tr>
                                <td style="text-align:center;" colspan="2">
                                    <asp:Button ID="btnAddSubmit" runat="server" meta:resourcekey="btnAddResource1" OnClick="btnAddSubmit_Click" Text="确定" CssClass="button" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
            </div>
            <uc2:PageBottom ID="PageBottom" runat="server" />
        </div>
    </form>
    <script type="text/javascript">
    //加TABLE样式
    InitTrClass();
    </script>
</body>
</html>
