<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Roles_Edit.aspx.cs" Inherits="TotCms.Web.Admin.Roles_Edit" %>
<%@ 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">
    <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>
    <link href="../../swfupload/swfupload.css" rel="stylesheet" type="text/css" />
    <script src="../../swfupload/swfupload.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/handlers.js"></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">
        var swfu;
        $(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");
            });
            //swf upload
            swfu = new SWFUpload({
                // Backend Settings
                upload_url: "../UploadFace/UploadImg.aspx?issmall=1",
                post_params: {
                    "ASPSESSID": "<%=Session.SessionID %>"
                },

                // File Upload Settings
                file_size_limit: "200 MB",
                file_types: "*.*",
                file_types_description: "files",
                file_upload_limit: "0",    // Zero means unlimited

                // Event Handler Settings - these functions as defined in Handlers.js
                //  The handlers are not part of SWFUpload but are part of my website and control how
                //  my website reacts to the SWFUpload events.
                file_queue_error_handler: fileQueueError,
                file_dialog_complete_handler: fileDialogComplete,
                upload_progress_handler: uploadProgress,
                upload_error_handler: uploadError,
                upload_success_handler: uploadSuccess,
                upload_complete_handler: uploadComplete,

                // Button settings
                button_image_url: "../UploadFace/Images/XPButtonUploadText_61x22.png",
                button_placeholder_id: "spanButtonPlaceholder",
                button_width: 61,
                button_height: 22,
                button_text: '<span class="button"></span>',
                button_text_style: '.button { font-family: 宋体; font-size: 14px; } .buttonSmall { font-size: 12px; }',
                button_text_top_padding: 1,
                button_text_left_padding: 5,

                // Flash Settings
                flash_url: "../../swfupload/swfupload.swf", // Relative to this file

                custom_settings: {
                    upload_target: "divFileProgressContainer",
                    upload_returnobjid: "Photo"
                },

                // Debug Settings
                debug: false
            });
        });           

            
        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>
          <asp:Label ID="CatalogTitle" runat="server" Text=""></asp:Label>
          <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 colspan="2" align="center">
        <asp:Button ID="Button1" runat="server" Text="修改角色" onclick="Button1_Click" />
        <input id="Button2" type="reset" value="取 消" /></td>
    </tr>
  </table>
    </form>
</body>
</html>
