<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminAdd.aspx.cs" Inherits="AdminAdd" ValidateRequest="false" %>

<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>50CMS后台框架</title>
    <link rel="shortcut icon" href="favicon.ico">
     <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">
    
        <link href="../50/style.css" rel="stylesheet" />
    <link href="../css/plugins/iCheck/custom.css" rel="stylesheet">  

    <style>
        .footable li {
            float: left;
            margin-right: 10px;
            width: 142px;
            list-style-type: none;
        }

        .form-horizontal .checkbox, .form-horizontal .checkbox-inline, .form-horizontal .radio, .form-horizontal .radio-inline {
    padding-top: 2px;
    margin-top: 0;
    margin-bottom: 0;
}

        .checkall 
        {
               
    font-weight: 600;
    font-size:15px;
        }

        input[type="checkbox"] 
{
margin: 2px 3px 0px 1px;
}
   </style>


</head>
<body class="gray-bg">
<form id="form1" runat="server" class="form-horizontal m-t">
  <div class="wrapper  animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
            
                    <div class="ibox-content">
                       <div class="panel-body">


   
                <ul class="nav nav-tabs">
                     <li class="active" id="tab0" ><a data-toggle="tab" href="#tab00" aria-expanded="true">
                      管理员基础设置</a> </li>
                    <li class="" id="tab1" ><a data-toggle="tab" href="#tab11" aria-expanded="false">
                        系统权限设置</a> </li>
                    <li class="" id="tab2" ><a data-toggle="tab" href="#tab22" aria-expanded="false">
                        新闻权限设置</a> </li>
                </ul>
                <div class="tab-content">

                   <div id="tab00" class="tab-pane active">
                          <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-3 control-label">
                                登录名：</label>
                            <div class="col-sm-4">
        <asp:TextBox ID="txtName" runat="server"  class="form-control"  required="" aria-required="true" 
            maxlength="50" HintTitle="登录名称" HintInfo="登录名称"></asp:TextBox>
                            </div>
                        </div>

                        <asp:Panel ID="Panel2" runat="server" Visible="false" CssClass="col-sm-12" style="margin-top: 1em;">                       
                            <label class="col-sm-3 control-label">
                                密码：</label>
                            <div class="col-sm-4">
  <a id="A1" href="PwAdd.aspx?ID=<asp:Literal ID="Literal1" runat="server"></asp:Literal>" rel="editClass">修改该用户密码</a>
                            </div>                   
                    </asp:Panel>

                           <asp:Panel ID="Panel1" runat="server" Visible="false" CssClass="col-sm-12" style="margin-top: 1em;">
                           
                            <label class="col-sm-3 control-label">
                                密码：</label>
                                 <div class="col-sm-4">
                    <asp:TextBox ID="txtTag" runat="server"   class="form-control"  required="" aria-required="true"  HintTitle="用户密码" 
                    HintInfo="用户密码"></asp:TextBox>
                                  </div>         
                         </asp:Panel>

                          <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-3 control-label">
                                类型：</label>
                           <div class="col-sm-7">

                           
                    <asp:RadioButtonList ID="rblUserType" runat="server" CssClass="checkbox-inline i-checks"
                        RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem  Value="1">超级管理员</asp:ListItem>
                        <asp:ListItem Value="2" Selected="True">系统管理员</asp:ListItem>
                    </asp:RadioButtonList>
                            </div>    
                        </div>                          
                    </div>

                    <div id="tab11" class="tab-pane">
                      <asp:Literal ID="ltMasterSetting" runat="server"></asp:Literal>
                                                      
                    </div>

                    <div id="tab22" class="tab-pane">
           <table >

      <tr>
    
        <th width="20%">编号</th>
        <th width="80%">分类标题</th>
     
  
      </tr>
         <asp:Repeater ID="rptList" runat="server" >
      <ItemTemplate>
      <tr>       
      
        <td align="center" ><asp:Label ID="lb_id" runat="server" Text='<%#Eval("Classid")%>'></asp:Label></td>
        <td>
        
        <%#Eval("ClassName")%>

        </td>
   
      </tr>
      </ItemTemplate>
      </asp:Repeater>               
      </table>
                    </div>
                </div>
             </div>

                        
                         <span class="btn_all btn btn-info" onclick="checktheAll(this);">全选</span>
                         &nbsp;  &nbsp;
                        <asp:Button ID="btnSave" runat="server" Text="确认保存"  CssClass="btn btn-primary" onclick="btnSave_Click" />
  &nbsp;  &nbsp;
  <input type="button" class="btn btn-primary" id="btnCancel" value="取消" onclick="javascript:jQuery().colorbox.close();"/>




                    </div>
                </div>
            </div>
     </div>    
   
        </form>

    
      <!-- 全局js -->
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script src="../js/bootstrap.min.js?v=3.3.6"></script>

      <!-- 自定js -->
           <script src="../50/function.js"></script>
                <!-- iCheck -->
    <script src="../js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',

            });
        });
    </script>

    <script type="text/javascript" src="../js/layer/layer.js"></script>
    <script type="text/javascript">
      
                if (typeof (Close) != "undefined") {
                layer.msg('保存成功，正在返回', {
                time: 2000, //20s后自动关闭 
                },function()
                {
                var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
                parent.layer.close(index); //执行关闭
                });       
                }

                //全选取消按钮函数，调用样式如：
                function checktheAll(chkobj) {
                    if ($(chkobj).text() == "全选") {
                        $(chkobj).text("取消");
                        $(".checkall").attr("checked", true);
                  
                        $(".icheckbox_square-green").addClass("checked");

                    } else {
                        $(chkobj).text("全选");
                        $(".checkall").attr("checked", false);
                        $(".icheckbox_square-green").removeClass("checked");
                   
                    }
                }
    
    
    </script>
 
</body>
</html>
