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

<%@ Register assembly="Chaokers.CN.SysMembership.Components" namespace="Chaokers.CN.SysMembership.Components.Controls" 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">
<asp:Literal runat="server">节点权限管理</asp:Literal>    
</head>
<body>
<form id="form1" runat="server">    
<div id="wrapper">  

    <cc1:CurrLocation ID="CurrLocation1" runat="server" InnerText="角色与权限" />
    
    <div id="mainContainer"> 

    <table cellspacing="0" cellpadding="3" class="editTable" border="1" bordercolor="<% = base.AppTheme.MainBorderColor %>" style="border-collapse:collapse;">
    <thead>
    <td height="20" colspan="2">
        <b><asp:Label ID="lblOperation" runat="server">添加节点权限</asp:Label></b>          
    </td>
    </thead>
    <tr>
    <th height="20">系统模块</th>
    <td>
           <asp:Label ID="lblSysModule" runat="server" Font-Bold="true"></asp:Label>
    </td>
    </tr>
    <tr runat="server" visible="false">
    <th>操作类型</th>
    <td>
          <asp:Label ID="lblActType" runat="server"></asp:Label>
    </td>
    </tr>
    
    <tr>
    <th><span class="mustFillFlag">*</span> 父级权限</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="trSetDefaultPage" runat="server" visible="true">
    <th>入口页面</th>
    <td>
          <asp:TextBox ID="txtDefaultPageURL" runat="server"
               CssClass="input"
               Width="200px" />                         

          <asp:DropDownList ID="ddlTarget" runat="server">          
          <asp:ListItem Value="default" Selected="True">在框架页中打开入口页面</asp:ListItem>
          <asp:ListItem Value="_blank">在新窗口中打开入口页面</asp:ListItem>
          </asp:DropDownList>
          
          <div class="noteMsg">注意：入口页面地址应以“/”开头，例如：/Admin/News/News_Edit.aspx。</div>   
    </td>
    </tr> 
    <tr id="tr1" runat="server" visible="true">
    <th>权限图标</th>
    <td>
          <asp:TextBox ID="txtIcon" runat="server"
               CssClass="input"
               Width="200px" />  如：1.jpeg                      
    </td>
    </tr> 
    <tr id="tr2" runat="server" visible="true">
    <th>分 组 号</th>
    <td>
          <asp:TextBox ID="txtGroupNum" runat="server"
               CssClass="input"
               Width="200px" />                         
    </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="trOprOption" runat="server">
    <th>操作选项</th>
    <td>
          <asp:RadioButtonList ID="rbnOprOption" runat="server"
               RepeatLayout="Flow"
               RepeatDirection="Horizontal" >
          <asp:ListItem Value="1" Selected="True">操作后返回</asp:ListItem>
          <asp:ListItem Value="2">操作后继续添加</asp:ListItem>
          </asp:RadioButtonList>
    </td>
    </tr> 
    <tr>
    <td>&nbsp;</td>
    <td>
          <asp:Button ID="btnSubmit" runat="server"
               Text=" 保存 "
               CssClass="btn"
               OnClick="btnSubmit_Click" />
          <asp:Label ID="lblResult" runat="server" />
          
          <asp:Button ID="btnCancel" runat="server"
               Text=" 返回 "
               CssClass="btn" 
               Onclick="btnCancel_Click"
               CausesValidation="false"
               />
          
          <asp:ValidationSummary id="ValidationSummary1"  runat="server" 
               ShowMessageBox="True" 
               ShowSummary="False" />
    </td>
    </tr>
    </table>

    </div><!--"mainContainer.END"-->

</div><!--"wrapper.END"-->
</form> 

</body>
</html>
