<%@ Page Language="C#" MasterPageFile="Admin.Master" AutoEventWireup="true" CodeBehind="Adminjbmanage.aspx.cs" Inherits="Mvcb2b.admin.Adminjbmanage" Title="管理员管理" %>
<%@ MasterType VirtualPath="Admin.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript" src="../Comja/val_num.js"></script>
   
<div class="path">当前位置： 系统管理 >>  管理级别设置</div>
<h3>管理级别</h3>
        <asp:GridView ID="GridView1"  HorizontalAlign="Center" Width="98%" EnableViewState="False" 
                                runat="server" AllowPaging="True" AutoGenerateColumns="False" 
                                OnPageIndexChanging="haopage" AllowSorting="True" OnRowDeleting="Haodel" 
                                OnRowEditing="haoedit" GridLines="None" DataKeyNames="id" CellPadding="4" 
                                ForeColor="#333333" >
                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" HorizontalAlign="Center" />
                <Columns >
                <asp:BoundField DataField="id" HeaderText="编号" SortExpression="id" />
                <asp:BoundField DataField="jbname" HeaderText="管理级别" />
                    <asp:CommandField HeaderText="编辑" ShowEditButton="True" ShowHeader="True" 
                        UpdateText="edit" />
                    <asp:CommandField HeaderText="删除" ShowDeleteButton="True"  ShowHeader="True" 
                        DeleteText="&lt;div onclick=&quot;return confirm('确实要删除吗?');&quot;&gt;删除&lt;/div&gt;" />
            </Columns>        
                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
        </asp:GridView>  
        <div class="pagemsg"><asp:label id="Message" runat="server" ></asp:label>
				 &nbsp; 直接进入 <asp:textbox  id="gopage" Width="30px" runat="server" > </asp:textbox> 
            页 <asp:button id ="Submithao"  Text="Go" runat="server" OnClick="Submithao_Click"></asp:button>  </div>
				 <br />
				 <br />
	<table border="0" class="tableadd2"  align="center" >
    <tr>
        <td colspan="2" valign="middle" style="text-align:center;"><Label ID="Label1" runat="server">
            添加管理级别</Label><Label ID="Label2" runat="server" >级别修改</Label></td>
    </tr>
     <tr>
        <td width="270" align="right">级别名称：</td><td width="548"><asp:TextBox ID="jbname_txt" runat="server"  Width="160px" ></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="级别名称不能为空" Display="None" ControlToValidate="jbname_txt"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td >角色授权以下权限：</td><td></td></tr>
    <tr>
        <td  colspan="2">
        <table id="Table3" cellspacing="0" cellpadding="0" width="98%" align="center" border="0">
								<tr>
								  <td><asp:CheckBox ID="haosee_txt" runat="server"  Text="内容查看权"></asp:CheckBox></td>
									<td><asp:CheckBox ID="haoadd_txt" runat="server"  Text="内容添加权"></asp:CheckBox></td>
									<td><asp:checkbox id="haoedit_txt" runat="server"  Text="内容修改权"></asp:checkbox></td>
									<td><asp:checkbox id="haodel_txt" runat="server"  Text="内容删除权"></asp:checkbox></td>
									<td><asp:checkbox id="haomove_txt" runat="server"  Text="内容移动权"></asp:checkbox></td>									
						      </tr>
								<tr>
								  <td><asp:checkbox id="adminsee_txt" runat="server"  Text="设置查看权"></asp:checkbox></td>
									<td><asp:checkbox id="adminadd_txt" runat="server"  Text="设置添加权"></asp:checkbox></td>
									<td><asp:checkbox id="adminedit_txt" runat="server"  Text="设置修改权"></asp:checkbox></td>
									<td><asp:checkbox id="admindel_txt" runat="server"  Text="设置删除权"></asp:checkbox></td>
									<td><asp:checkbox id="ismanage_txt" runat="server"  Text="超级管理权"></asp:checkbox></td>
						      </tr>
		  </table>        
        
     </td>
    </tr>
    <tr>
        <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th scope="col">角色授权访问页面：</th>
    </tr>
  <tr>
    <td style="vertical-align:top;padding-left:20px;"> <asp:TreeView ID="TreeView1"  runat="server" ShowLines="true"   >
      <NodeStyle HorizontalPadding="4px" />
      </asp:TreeView>
      <script type="text/javascript">
        //TreeView_ToggleNode(TreeView1_Data,15,TreeView1n15,'t',TreeView1n15Nodes)  id="TreeView1t15i"
        //  var base_TreeView_ToggleNode = TreeView_ToggleNode;
        // TreeView_ToggleNode = function (data, index, node, lineType, children) {
        //    base_TreeView_ToggleNode(data, index, node, lineType, children);
        //setProfileFolder(index); //自己要执行的JS方法 
        //  }
        /*
        function setProfileFolder(index) {
        var hrefid = "ctl00_ContentPlaceHolder1_TreeView1t" + index + "i";
        // alert(document.getElementById(hrefid).getElementsByTagName("img")[0].getAttribute("src").toUpperCase());
        var imgsrc = document.getElementById(hrefid).children[0].getAttribute("src").toLowerCase();
        if (imgsrc.indexOf("folderopen.gif") > 0)
        imgsrc = imgsrc.replace("folderopen.gif", "folder.gif");
        else
        imgsrc = imgsrc.replace("folder.gif", "folderopen.gif");
        document.getElementById(hrefid).children[0].setAttribute('src', imgsrc)
        }
        */
    </script>
    </td>
    </tr>
</table>
</td></tr>
    <tr>
        <td  colspan="2"  style="text-align:center;">
            <asp:Button ID="Add" runat="server" Text="添加"  Width="80px" OnClick="Add_Click"></asp:Button>
            <asp:Button ID="Edit" runat="server"  Text="修改" Width="80px" onclick="Edit_Click"   /> 	  
            <asp:validationsummary id="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False"></asp:validationsummary>  
        </td>
    </tr>
    <tr>
        <td  colspan="2" >
        <h4>? 帮助：权限的设置可防止对系统的误操作引起数据丢失.</h4>
        <ul>        
        <li>1. 超级管理权是管理后台管理员和内容操作员的权限.</li>
        <li>2. 并非所有页面添加了权限限制.</li>
        </ul>
        </td>
   </tr>
</table>
</asp:Content>
