<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.ProductBrand_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/ProductBrand_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="ProductBrand_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="upwardproductbrand-<%=_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="downwardproductbrand-<%=_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="ProductBrand_Manage_Control.aspx?com=alter&brandid=<%=_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 _brandsonDat = _productBrandSonDat(naviid, _Dat.Rows[i]["id"].ToString()); %>
                    <%for (int j = 0; j < _brandsonDat.Rows.Count; j++) %>
                    <%{ %>
                        <tr>
                            <td class="text_left"><span class="X"><%=_brandsonDat.Rows[j]["id"].ToString()%></span></td>
                	        <td class="text_left"><div class="subTable"><span class="H"><%=_brandsonDat.Rows[j]["name"].ToString()%></span> <span class="N NoB">[产品总数:<%=_brandsonDat.Rows[j]["productnumber"].ToString()%>]</span></div></td>
                            <td>
                                <span class="V"><%=cutText(_brandsonDat.Rows[j]["intro"].ToString(), 88, "..")%></span>
                            </td>
                            <td>
                                <a href="upwardproductbrand-<%=_brandsonDat.Rows[j]["id"].ToString()%>-<%=_brandsonDat.Rows[j]["orderid"].ToString()%>-<%=_brandsonDat.Rows[j]["parent"].ToString()%>-<%=naviid %>-<%=naviname %>" rel="shift" class="F">[上移]</a>
                                <br />
                                <a href="downwardproductbrand-<%=_brandsonDat.Rows[j]["id"].ToString()%>-<%=_brandsonDat.Rows[j]["orderid"].ToString()%>-<%=_brandsonDat.Rows[j]["parent"].ToString()%>-<%=naviid %>-<%=naviname %>" rel="shift" class="F">[下移]</a>
                            </td>
                            <td class="text_left">
                                <a href="ProductBrand_Manage_Control.aspx?com=alter&brandid=<%=_brandsonDat.Rows[j]["id"].ToString()%>&naviid=<%=naviid %>&naviname=<%=naviname %>" class="F underline">[编辑]</a><br />
                                <a href="<%=_brandsonDat.Rows[j]["id"].ToString()%>" rel="del" rev="<%=_brandsonDat.Rows[j]["productnumber"].ToString() %>" sub="<%=_brandsonDat.Rows[j]["subnumber"].ToString()%>" name="<%=_brandsonDat.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="ProductBrand_Manage_Control.aspx?com=add&naviid=<%=naviid %>&naviname=<%=naviname %>">[马上添加]</a></td>
            </tr>
            <%} %>
            </tbody>
        </table>

        <div class="clear-8"></div>
            <a href="ProductBrand_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>
