<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.Master" AutoEventWireup="true" CodeBehind="question_cat_list.aspx.cs" Inherits="Math.admin.question_cat" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


    <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <script src="../bootstrap/js/bootstrap.min.js"></script>

    <link href="../javascript/jquery.treeGrid/css/jquery.treegrid.css" rel="stylesheet" />
    
    <script src="../javascript/jquery.treeGrid/js/jquery.treegrid.min.js"></script>
   
   
    <script src="../javascript/jquery.treeGrid/js/jquery.treegrid.bootstrap3.js"></script>
   

     
    
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>试题分类</legend>
</fieldset>



    <div style="margin:0px 10px 10px 0px">
        <a   onclick="Pop('question_cat_addedit.aspx', 500, 400, '增加子分类');return false;" class=" layui-btn">添加分类</a>
    </div>


    <div  >

          



           <table class="table table-bordered table-hover tree" style="font-size:13px;">

            <thead>
                <tr>
                    <th>题目分类
                    </th>
                    <th class="center" style="width: 440px;">操作
                    </th>
                </tr>
            </thead>
            <tbody>

                <asp:Repeater runat="server" ID="rpt_list" EnableViewState="false">
                    <ItemTemplate>


                        
                <tr class="treegrid-<%#Eval("id")%>  <%#int.Parse(Eval("pid").ToString())>0? "treegrid-parent-"+Eval("pid")  :"" %>">
                    <td class="middle">

                        <a href="###" onclick="Pop('question_cat_addedit.aspx?treeid=<%#Eval("id")%>', 500, 400, '增加子分类');return false;"  ><%#Eval("catname")%></a>
                    </td>
                    <td class="center middle">

                        <div class="btn-group"> 

                              <a  onclick="Pop('question_cat_addedit.aspx?pid=<%#Eval("id")%>', 500, 400, '增加子分类');return false;"   href="###"  class="btn btn-sm  btn-default " >增加子分类</a>

                               <a  onclick="Pop('question_cat_addedit.aspx?treeid=<%#Eval("id")%>', 500, 400, '编辑');return false;"   href="###"    class="btn btn-sm  btn-default "   >编辑</a>

 
            

                              <a href="###" onclick="Pop('question_cat_order.aspx?treeid=<%#Eval("id")%>' + id, 1000, 650, '分类排序');"   class="btn btn-sm  btn-default" >排序</a>

 
                        </div>
                     
                    </td>
                </tr>


                    </ItemTemplate>

                </asp:Repeater>


           
          
            </tbody>
        </table>

         
    
   <script type="text/javascript">
        $(document).ready(function () {
            $('.tree').treegrid({
                expanderExpandedClass: 'glyphicon glyphicon-minus aa',
                expanderCollapsedClass:'glyphicon glyphicon-plus bb'
            });
        });
    </script>


         
















  </div>











</asp:Content>
 