<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Roles_Add.aspx.cs" Inherits="TotCms.Web.Admin.Roles_Add" %>

<%@ Register src="../UI/main_top.ascx" tagname="main_top" tagprefix="uc1" %>

<!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">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>添加角色</title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery-1.5.1.min.js" type="text/javascript"></script> 
    <script src="../../js/jquery-ui-1.8.10/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <link href="../../js/jquery-ui-1.8.10/css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
      $(function () {
        $("#dialog:ui-dialog").dialog("destroy");
        $("#dialog-win").dialog({
          autoOpen: false,
          height: 350,
          width: 400,
          modal: true,
          buttons: {
            "确定": function () {
              $(this).dialog("close");
            },
            "取消": function () {
              $(this).dialog("close");
            }
          },
          close: function () {

          }
        });

        $("#selclass").click(function () {
          $("#dialog-win").dialog("open");
        });
      }); 
        function CloseFrame() {
            $("#dialog-win").dialog("close");
        }
        function ClearClass() {
            $('#CatalogTitle').html('');
            $('#Catalogs').val('');
        }
    </script>
</head>
<body>
    <div id="dialog-win" title="选择分类" style="display:none;">
	  <iframe src="Catalogs.aspx" width="370" height="350" frameborder="0" scrolling="auto"></iframe>	
   </div>
    <form id="form1" runat="server">
    <div>
    
      <uc1:main_top ID="main_top1" runat="server" />
    
    </div>
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" 
      class="black_border">
      <tr class="suphead">
        <td colspan="2">
          添加角色</td>
    </tr>
    <tr>
      <td class="fields_text">
        角色名称：</td>
      <td class="fields_input">
        <asp:TextBox ID="RoleName" runat="server"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
          ControlToValidate="RoleName" ErrorMessage="角色名称不能为空"></asp:RequiredFieldValidator>
          </td>
    </tr>
    <tr>
      <td class="fields_text">
          栏目设置：</td>
      <td class="fields_input">
          <asp:TextBox ID="Catalogs" runat="server" CssClass="hidden"></asp:TextBox>
          <span id="CatalogTitle"></span>
          <input id="selclass" name="selclass" type="button" value="请选择" class="selclass" />    
          <input id="clearclass" name="clearclass" onclick="javascript:ClearClass()" type="button" value="清空" style="border:1px solid #eee; background-color:#f5f5f5; color:#333; padding:3px 5px;" /> 
      </td>
    </tr>
    <tr>
      <td class="fields_text">
        拥有权限：</td>
      <td class="fields_input">
        <asp:CheckBoxList ID="Privileges" runat="server">
          <asp:ListItem Value="p01">栏目管理</asp:ListItem>
          <asp:ListItem Value="p02">模板管理</asp:ListItem>
          <asp:ListItem Value="p03">文章管理</asp:ListItem>
          <asp:ListItem Value="p04">专题管理</asp:ListItem>
          <asp:ListItem Value="p03a">文章审核</asp:ListItem>
          <asp:ListItem Value="p03b">文章回收站</asp:ListItem>
          <asp:ListItem Value="p03c">文章点击</asp:ListItem>
          <asp:ListItem Value="p03d">投稿管理</asp:ListItem>
          <asp:ListItem Value="p05">标签管理</asp:ListItem>
          <asp:ListItem Value="p06">发布管理</asp:ListItem>
          <asp:ListItem Value="p07">角色管理</asp:ListItem>
          <asp:ListItem Value="p08">管理员管理</asp:ListItem>
          <asp:ListItem Value="p09">投票管理</asp:ListItem>
          <asp:ListItem Value="p10">广告管理</asp:ListItem>
          <asp:ListItem Value="p11">搜索管理</asp:ListItem>
          <asp:ListItem Value="p12">评论管理</asp:ListItem>
          <asp:ListItem Value="p13">采集管理</asp:ListItem>
          <asp:ListItem Value="p14">系统管理</asp:ListItem>
          <asp:ListItem Value="p15">资源管理</asp:ListItem>
          <asp:ListItem Value="p16">友情链接管理</asp:ListItem>
          <asp:ListItem Value="p17">会员管理</asp:ListItem>
          <asp:ListItem Value="p18">下载管理</asp:ListItem>
          <asp:ListItem Value="p19">视频管理</asp:ListItem>
          <asp:ListItem Value="p20">财务管理</asp:ListItem>
          <asp:ListItem Value="p21">商城管理</asp:ListItem>
          <asp:ListItem Value="p22">订单管理</asp:ListItem>
          <asp:ListItem Value="p23">电子报管理</asp:ListItem>
        </asp:CheckBoxList>
          </td>
    </tr>
    <tr>
      <td></td>
      <td height="45" align="left">
        <asp:Button ID="Button1" runat="server" Text="添加角色" onclick="SaveRole" CssClass="btn-submit" />
        <input id="Button2" type="reset" value="取 消" class="btn-cancel" /></td>
    </tr>
  </table>
    </form>
    </body>
</html>
