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

<!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><%=naviname %> - 产品分类</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/ProductClass_Manage.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"><%=naviname %> - 产品分类</span></div>     
            </div>
        <!-- end 标 -->
        
        <div class="clear-8"></div>
            <a href="ProductClass_Manage_Control.aspx?com=add&naviid=<%=naviid %>&naviname=<%=naviname %>" 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="54%" class="text_left">分类名</th>
                    <th width="22%">分类介绍</th>
                    <th width="8%">排序</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> <span class="N NoB">[产品总数:<%=_Dat.Rows[i]["productnumber"].ToString()%>]</span></td>
                        <td>
                            <span class="V"><%=cutText(_Dat.Rows[i]["intro"].ToString(), 88, "..")%></span>
                        </td>
                        <td>
                            <a href="upwardproductclass-<%=_Dat.Rows[i]["id"].ToString()%>-<%=_Dat.Rows[i]["orderid"].ToString()%>-<%=_Dat.Rows[i]["parent"].ToString()%>-<%=naviid %>-<%=naviname %>" rel="shift" class="F">[上移]</a>
                            <br />
                            <a href="downwardproductclass-<%=_Dat.Rows[i]["id"].ToString()%>-<%=_Dat.Rows[i]["orderid"].ToString()%>-<%=_Dat.Rows[i]["parent"].ToString()%>-<%=naviid %>-<%=naviname %>" rel="shift" class="F">[下移]</a>
                        </td>
                        <td class="text_left">
                            <a href="ProductClass_Manage_Control.aspx?com=alter&classid=<%=_Dat.Rows[i]["id"].ToString()%>&naviid=<%=naviid %>&naviname=<%=naviname %>" class="F underline">[编辑]</a><br />
                            <a href="<%=_Dat.Rows[i]["id"].ToString()%>" rel="del" rev="<%=_Dat.Rows[i]["productnumber"].ToString() %>" sub="<%=_Dat.Rows[i]["subnumber"].ToString() %>" name="<%=_Dat.Rows[i]["name"].ToString()%>" pic="<%=_Dat.Rows[i]["picpath"].ToString()%>" class="R underline">[删除]</a>
                        </td>
                    </tr>
                    <% System.Data.DataTable _proclassSonDat = _productClassSonDat(naviid, _Dat.Rows[i]["id"].ToString()); %>
                    <%for (int j = 0; j < _proclassSonDat.Rows.Count; j++) %>
                    <%{ %>
                        <tr>
                            <td class="text_left"><span class="X"><%=_proclassSonDat.Rows[j]["id"].ToString()%></span></td>
                	        <td class="text_left"><div class="subTable"><span class="H"><%=_proclassSonDat.Rows[j]["name"].ToString()%></span> <span class="N NoB">[产品总数:<%=_proclassSonDat.Rows[j]["productnumber"].ToString()%>]</span></div></td>
                            <td>
                                <span class="V"><%=cutText(_proclassSonDat.Rows[j]["intro"].ToString(), 88, "..")%></span>
                            </td>
                            <td>
                                <a href="upwardproductclass-<%=_proclassSonDat.Rows[j]["id"].ToString()%>-<%=_proclassSonDat.Rows[j]["orderid"].ToString()%>-<%=_proclassSonDat.Rows[j]["parent"].ToString()%>-<%=naviid %>-<%=naviname %>" rel="shift" class="F">[上移]</a>
                                <br />
                                <a href="downwardproductclass-<%=_proclassSonDat.Rows[j]["id"].ToString()%>-<%=_proclassSonDat.Rows[j]["orderid"].ToString()%>-<%=_proclassSonDat.Rows[j]["parent"].ToString()%>-<%=naviid %>-<%=naviname %>" rel="shift" class="F">[下移]</a>
                            </td>
                            <td class="text_left">
                                <a href="ProductClass_Manage_Control.aspx?com=alter&classid=<%=_proclassSonDat.Rows[j]["id"].ToString()%>&naviid=<%=naviid %>&naviname=<%=naviname %>" class="F underline">[编辑]</a><br />
                                <a href="<%=_proclassSonDat.Rows[j]["id"].ToString()%>" rel="del" rev="<%=_proclassSonDat.Rows[j]["productnumber"].ToString() %>" sub="<%=_proclassSonDat.Rows[j]["subnumber"].ToString()%>" name="<%=_proclassSonDat.Rows[j]["name"].ToString()%>" class="R underline">[删除]</a>
                            </td>
                        </tr>
                    <%} %>
                <%} %>
            <%} else { %>
            <tr>
                <td  colspan="5" class="text_left"><span class="V">暂无数据</span> <a class="Q B underline" href="ProductClass_Manage_Control.aspx?com=add&naviid=<%=naviid %>&naviname=<%=naviname %>">[马上添加]</a></td>
            </tr>
            <%} %>
            </tbody>
        </table>

        <div class="clear-8"></div>
            <a href="ProductClass_Manage_Control.aspx?com=add&naviid=<%=naviid %>&naviname=<%=naviname %>" 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>
