<%@ Page Title="" Language="C#"   AutoEventWireup="true" CodeBehind="CategoryTable.aspx.cs" Inherits="Helpdesk.Admin.CategoryTable" %>
<!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 id="Head1" runat="server">
    <title>分类列表</title>
 <style>
      .result-wrap td{ font-size:12px; font-family:Verdana; line-height:30px; margin:0px;  margin-left:10px; font-family:12px; font-family:Verdana }
   </style>

</head>
<body style=" width:800px; margin:0 auto">
    <form id="form1" runat="server"> 

        <br />
    <a href="CategoryTable.aspx"  style=" color:#336699; font-size:12px" target="_blank">单击在新窗口打开本页</a>
    <br />

  <div class="result-wrap">
    <asp:GridView runat="server"  EnableViewState="false"
     ID="gv_cat1"  CssClass="result-tab"
     AutoGenerateColumns="false" 
     CellPadding="0"  CellSpacing="0"  Width="780px"
     >

    <HeaderStyle  BackColor="#000" ForeColor="#ffffff" />
    <RowStyle  VerticalAlign="Top" />
    <Columns>
    <asp:BoundField DataField="catname"  ItemStyle-Font-Bold="true" HeaderText="大类"/> 

    <asp:TemplateField>
      <HeaderTemplate>中类与小类</HeaderTemplate>
      <ItemTemplate>
         
        <asp:GridView EnableViewState="false" 
          BorderWidth="0px" runat="server" ID="gv_cat2" Width="100%" 
          CellPadding="0"  CellSpacing="0" 
          ShowHeader="false" 
          DataSource=<%#GetCat(Eval("id")) %> 
          AutoGenerateColumns="false">
          <RowStyle  VerticalAlign="Top" /> 
           <Columns>
          <asp:BoundField DataField="catname"    ItemStyle-Width="200px" />
            

            <asp:TemplateField>
            
            <ItemTemplate>
            
            
              <asp:GridView EnableViewState="false"
               Width="100%" CellPadding="0" CellSpacing="0" runat="server" ID="gv_cat3" 
               BorderWidth="0px" ShowHeader="false"   AutoGenerateColumns="false"  
               DataSource=<%#GetCat(Eval("id")) %>  >
               
               <Columns>
                 <asp:BoundField DataField="catname"  HeaderText="小类"  ItemStyle-Width="200px" /> 
               </Columns>
                 
              
              
              </asp:GridView> 
            
            
            </ItemTemplate>
            </asp:TemplateField> 
        
        </Columns> 
        
        </asp:GridView> 
     
     </ItemTemplate>  
    
    </asp:TemplateField>
    </Columns> 
    </asp:GridView>
    </div>

    <br />
    <a href="CategoryTable.aspx"  style=" color:#336699; font-size:12px" target="_blank">单击在新窗口打开本页</a>
    <br />




       </form>
</body>
</html>
