<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Show_Industry" %>

<!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>
    <title>行业管理</title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script type="text/javascript" src="Script/Show_Industry.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper-div">    
	<!-- 产品分类列表管理 -->
        <!-- 标 -->
            <div class="title-tab">
            <div class="title"><span class="title-ico titico7 F B">行业管理</span></div>     
            </div>
        <!-- end 标 -->
        
        <div class="clear-8"></div>
            <a href="Show_Industry_Control.aspx?com=add" class="bule-btn W f_left text_centent">添加行业</a>
            <p class="PageBox">
                <%=getPagesInfo%>
            </p>
        <div class="clear-8"></div>
        
        <!-- 通用table -->
        <table class="table-1">
        	<thead>
            	<tr>
                    <th width="8%" class="text_left">ID</th>
                	<th width="84%" class="text_left">行业名</th>
                    <th width="8%">操作</th>
                </tr>
            </thead>
            <tbody id="productClassManage_Tbody">
            <%if (_Dat.Rows.Count > 0) %>
            <%{ %>
                <% for (int i = 0; i < _Dat.Rows.Count; i++) %>
                <%{ %>
            	    <tr>
                        <td class="text_left"><span class="X"><%=_Dat.Rows[i]["id"].ToString()%></span></td>
                	    <td class="text_left"><span class="H B"><%=_Dat.Rows[i]["name"].ToString()%></span></td>
                        <td class="text_left">
                            <a href="Show_Industry_Control.aspx?com=alter&id=<%=_Dat.Rows[i]["id"].ToString()%>&type=0" class="F underline">[编辑]</a><br />
                            <a href="<%=_Dat.Rows[i]["id"].ToString()%>" rel="del" sub="<%=_Dat.Rows[i]["subnumber"].ToString() %>" name="<%=_Dat.Rows[i]["name"].ToString()%>" class="R underline">[删除]</a>
                        </td>
                    </tr>
                    <% System.Data.DataTable _industrySonDat = _getSonIndustryDat(_Dat.Rows[i]["id"].ToString()); %>
                    <%for (int j = 0; j < _industrySonDat.Rows.Count; j++) %>
                    <%{ %>
                        <tr>
                            <td class="text_left"><span class="X"><%=_industrySonDat.Rows[j]["id"].ToString()%></span></td>
                	        <td class="text_left"><div class="subTable"><span class="H"><%=_industrySonDat.Rows[j]["name"].ToString()%></span></div></td>
                            <td class="text_left">
                                <a href="Show_Industry_Control.aspx?com=alter&id=<%=_industrySonDat.Rows[j]["id"].ToString()%>&type=1" class="F underline">[编辑]</a><br />
                                <a href="<%=_industrySonDat.Rows[j]["id"].ToString()%>" rel="delsub" name="<%=_industrySonDat.Rows[j]["name"].ToString()%>" class="R underline">[删除]</a>
                            </td>
                        </tr>
                    <%} %>
                <%} %>
            <%} else { %>
            <tr>
                <td  colspan="3" class="text_left"><span class="V">暂无数据</span> <a class="Q B underline" href="Show_Industry_Control.aspx?com=add">[马上添加]</a></td>
            </tr>
            <%} %>
            </tbody>
        </table>

        <div class="clear-8"></div>
            <a href="Show_Industry_Control.aspx?com=add" class="bule-btn W f_left text_centent">添加行业</a>
            <p class="PageBox">
                <%=getPagesInfo%>
            </p>
        <div class="clear-8"></div>

        <!-- end 通用table -->
    <!-- end 产品分类管理 -->
</div>
</body>
</html>
