<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SubPrivilegeEdit.aspx.cs" Inherits="Chaokers.CN.SysMembership.Web.SubPrivilegeEdit" %>
<%@ Import Namespace="System.Data" %>

<!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">
<asp:Literal runat="server">页面及按钮权限管理</asp:Literal>    
</head>
<body>
<form id="form1" runat="server">    
<div>    

    <table cellspacing="0" cellpadding="3" class="editTable" border="1" bordercolor="<% = base.AppTheme.MainBorderColor %>" style="border-collapse:collapse;">
    <thead>
    <td height="20" colspan="2"><b>页面及按钮权限管理</b></td>
    </thead>
    <tr>
    <th>操作类型</th>
    <td>
          <asp:Label ID="lblActType" runat="server"></asp:Label>
    </td>
    </tr>
    <tr>
    <th>权限类型</th>
    <td>
          <asp:RadioButtonList ID="rbnPrivilegeType" runat="server"
               RepeatColumns="2"
               RepeatDirection="Horizontal" 
               onselectedindexchanged="rbnPrivilegeType_SelectedIndexChanged"
               AutoPostBack="true" >
          <asp:ListItem Value="1" Selected="True">页面访问权限</asp:ListItem>
          <asp:ListItem Value="2">按钮执行权限</asp:ListItem>
          </asp:RadioButtonList>
    </td>
    </tr>     
    <tr>
    <th><span class="mustFillFlag">*</span> <asp:Label ID="lblParentPrivDesc" runat="server" Text="父 权 限"></asp:Label></th>
    <td>
          <asp:DropDownList ID="ddlPrivilegeList" runat="server" />
         
          <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" 
               ErrorMessage="请选择父级权限!" 
               ControlToValidate="ddlPrivilegeList" 
               Display="None" />
    </td>
    </tr>
    <tr>
    <th><span class="mustFillFlag">*</span> 权限名称</th>
    <td>
          <asp:TextBox ID="txtPrivilegeName" runat="server"
               CssClass="input"
               Width="200px" />       
          <asp:RequiredFieldValidator id="rfvPrivilegeNamee" runat="server" 
               ErrorMessage="权限名称不能为空!" 
               ControlToValidate="txtPrivilegeName" 
               Display="None" />
    </td>
    </tr>
    <tr>
    <th>权限描述</th>
    <td>
          <asp:TextBox ID="txtPrivilegeDesc" runat="server"
               CssClass="input"
               Width="200px" />     
    </td>
    </tr>     
    <tr id="trPageURL" runat="server">
    <th><span class="mustFillFlag">*</span> 页面地址</th>
    <td>
          <asp:TextBox ID="txtPageURL" runat="server"
               CssClass="input"
               Width="200px" />  
          <div class="noteMsg">注意：入口页面地址应以“/”开头，例如：/Admin/News/News_Edit.aspx。</div>   
          <asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" 
               ErrorMessage="页面地址不能为空!" 
               ControlToValidate="txtPageURL" 
               Display="None" />                           
    </td>
    </tr> 
    <tr id="tr3" runat="server" visible="true">
    <th>权限状态</th>
    <td>
          <asp:DropDownList ID="ddlState" runat="server">
              <asp:ListItem Value="1" Selected="True">启用</asp:ListItem>
              <asp:ListItem Value="2">停用</asp:ListItem>
          </asp:DropDownList>
    </td>
    </tr> 
    <tr id="tr4" runat="server" visible="true">
    <th>权限类型</th>
    <td>
          <asp:DropDownList ID="ddlPrivType" runat="server">
              <asp:ListItem Value="0" Selected="True">普通权限</asp:ListItem>
              <asp:ListItem Value="1">开发商权限</asp:ListItem>
          </asp:DropDownList>
    </td>
    </tr> 
    <tr id="trBtnID" runat="server">
    <th><span class="mustFillFlag">*</span> 按钮ID</th>
    <td>
          <asp:TextBox ID="txtBtnID" runat="server"
               CssClass="input"
               Width="200px" />  
          <asp:RequiredFieldValidator id="RequiredFieldValidator3" runat="server" 
               ErrorMessage="按钮ID不能为空!" 
               ControlToValidate="txtBtnID" 
               Display="None" />                   
    </td>
    </tr> 
    <tr>
    <th>操作选项</th>
    <td>
          <asp:CheckBox ID="chkRefreshTree" runat="server"
               Text="操作完成后，自动刷新右侧权限树"
               Checked="true" />
    </td>
    </tr> 
    <tr>
    <th>&nbsp;</th>
    <td class="tdAction">
          <asp:Button ID="btnSubmit" runat="server"
               Text=" 保存 "
               CssClass="btn"
               OnClick="btnSubmit_Click" />
          
          <asp:Button ID="btnCancel" runat="server"
               Text=" 取消 "
               CssClass="btn" 
               onclick="btnCancel_Click"              
               CausesValidation="false" 
               />  
                           
          <asp:Label ID="lblResult" runat="server" />
          
          <asp:ValidationSummary id="ValidationSummary1"  runat="server" 
               ShowMessageBox="True" 
               ShowSummary="False" />
    </td>
    </tr>
    </table>

</div>
</form>
</body>
</html>
