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

<!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 src="Script/Jquery.Cookie.js" type="text/javascript"></script>
    <script type="text/javascript" src="Script/Content_Tree.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper-div">    

<!-- 内容树 -->
<div class="content-tree-box">
	    
        <!-- left menu -->
        <div id="leftMenuBox" class="left_menubox">
            <div class="title W B">内容树</div>
            <div class="clear-8"></div>
            <ul id="parentMenu" class="parent_list">
                <%foreach (System.Data.DataRow dat in _parenDat.Rows) %>
                <%{ %>
                <li><a rel="<%=dat["id"].ToString() %>" href="<%=dat["id"].ToString() %>"><%=dat["name"].ToString() %></a></li>
                <%} %>
            </ul>
            <div class="clear-20"></div>
        </div>
        <!-- end left menu -->

        <!-- right_sonbox -->
        <div class="right_sonbox">
            <%if (_parenDat.Rows.Count>0) %>
            <%{ %>
                <%foreach (System.Data.DataRow dat in _parenDat.Rows) %>
                    <%{ %>
                        <ul rel="sonList" id="s_<%=dat["id"].ToString() %>" class="son_list">
                            <%if (getSonDat(dat["id"].ToString()).Rows.Count>0) %>
                            <%{ %>
                                <%foreach (System.Data.DataRow sondat in getSonDat(dat["id"].ToString()).Rows) %>
                                <%{ %>
                                    <li>
                                        <div class="title"><span title="内容完善度" class="X NoB f_right m_right8"><%=sondat["progress"].ToString() == "" ? "0" : sondat["progress"].ToString()%>%</span><%=sondat["name"].ToString() %></div>
                                        <div class="infobox K">
                                            推广词语:
                                            <div>
                                            <a rel="keylink" href="#" title="<%=sondat["keyword"].ToString() %>" class="G"><%=EoyooCMS.Common.StringPlus.StrCut(sondat["keyword"].ToString(), 28, "..")%></a>
                                            <textarea name="keyfoucs_txt" naviname="<%=sondat["name"].ToString() %>" id="key-<%=sondat["id"].ToString()%>" class="input-text" tabindex="1" maxlength="80" cols="20" rows=""></textarea>
                                            </div>
                                            推广描述:<div>
                                            <a rel="descriptlink" href="#" title="<%=sondat["description"].ToString() %>" class="G"><%=EoyooCMS.Common.StringPlus.StrCut(sondat["description"].ToString(), 28, "..")%></a>
                                        <textarea name="descriptfoucs_txt" naviname="<%=sondat["name"].ToString() %>" id="descript-<%=sondat["id"].ToString()%>"class="input-text" tabindex="1" maxlength="80" cols="20" rows=""></textarea>
                                            </div>
                                        </div>
                                        <div class="tools">
                                            <%if (sondat["moduleid"].ToString() != "8") %>
                                            <%{ %>
                                                <a class="manage f_right B" href="Content_<%=sondat["rewritelist"].ToString() %>?naviid=<%=sondat["id"].ToString() %>&naviname=<%=sondat["name"].ToString() %>">管理</a>

                                                <%if (sondat["moduleid"].ToString() != "1") %>
                                                <%{ %>
                                                <a class="add f_left m_right12" href="Content_<%=sondat["rewritelist"].ToString().Replace(".aspx","") %>_Control.aspx?com=add&naviid=<%=sondat["id"].ToString() %>&naviname=<%=sondat["name"].ToString() %>">添加内容</a>
                                                <%} %>
                                                <a class="preview f_left Y" target="_blank" href="<%=getNaviUrl(sondat["rewrite"].ToString()) %>">预览</a>
                                            <%}else{%>
                                                <a class="manage f_right B" href="Content_<%=sondat["rewritelist"].ToString() %>?naviid=<%=sondat["id"].ToString() %>&naviname=<%=sondat["name"].ToString() %>">留言管理</a>

                                            <a class="preview f_left Y" target="_blank" href="<%=getNaviUrl(sondat["rewrite"].ToString()) %>">预览</a>
                                            <%} %>
                                            <div class="clear-0"></div>
                                        </div>

                                        <%switch (sondat["moduleid"].ToString()) %>
                                        <%{ %>
                                            <%case"2": %>
                                            <div class="tools">
                                                <a class="pro f_left m_right12" href="Content_PicReview.aspx?naviid=<%=sondat["id"].ToString() %>&naviname=<%=sondat["name"].ToString() %>">评论管理</a>
                                                <div class="clear-0"></div>
                                            </div>
                                            <%break; %>
                                            <%case"3": %>
                                            <div class="tools">
                                                <a class="pro f_left m_right12" href="Content_ArticleReview.aspx?naviid=<%=sondat["id"].ToString() %>&naviname=<%=sondat["name"].ToString() %>">评论管理</a>
                                                <div class="clear-0"></div>
                                            </div>
                                            <%break; %>
                                            <%case"4": %>
                                            <div class="tools">
                                                <a class="pro f_left m_right12" href="ProductClass_Manage.aspx?naviid=<%=sondat["id"].ToString() %>&naviname=<%=sondat["name"].ToString() %>">分类管理</a>

                                                <a class="pro f_left m_right12" href="ProductBrand_Manage.aspx?naviid=<%=sondat["id"].ToString() %>&naviname=<%=sondat["name"].ToString() %>">品牌管理</a>

                                                <a class="pro f_left" href="Product_Order_Manage.aspx?naviid=<%=sondat["id"].ToString() %>&naviname=<%=sondat["name"].ToString() %>">订单管理</a>

                                                <div class="clear-6"></div>

                                                <a class="pro f_left" href="Content_ProductReview.aspx?naviid=<%=sondat["id"].ToString() %>&naviname=<%=sondat["name"].ToString() %>">评论管理</a>
                                                <div class="clear-0"></div>
                                            </div>
                                            <%break; %>
                                            <%case"5": %>
                                            <div class="tools">
                                                <a class="pro f_left m_right12" href="Content_DownLoadReview.aspx?naviid=<%=sondat["id"].ToString() %>&naviname=<%=sondat["name"].ToString() %>">评论管理</a>

                                                <a class="pro f_left" href="DownLoadClass_Manage.aspx?naviid=<%=sondat["id"].ToString() %>&naviname=<%=sondat["name"].ToString() %>">分类管理</a>
                                                <div class="clear-0"></div>
                                            </div>
                                            <%break; %>
                                            <%case"6": %>
                                            <div class="tools">
                                                <a class="pro f_left m_right12" href="Content_VideoReview.aspx?naviid=<%=sondat["id"].ToString() %>&naviname=<%=sondat["name"].ToString() %>">评论管理</a>
                                                <div class="clear-0"></div>
                                            </div>
                                            <%break; %>
                                            <%case"7": %>
                                            <div class="tools">
                                                <a class="pro f_left m_right12" href="Content_JobEngage.aspx?naviid=<%=sondat["id"].ToString() %>&naviname=<%=sondat["name"].ToString() %>">简历管理</a>
                                                <div class="clear-0"></div>
                                            </div>
                                            <%break; %>
                                        <%} %>

                                        <span class="boder l1"></span>
                                        <span class="boder l2"></span>
                                        <span class="boder l3"></span>
                                        <span class="boder l4"></span>
                                    </li>
                                <%} %>
                            <%}else{ %>
                                    <li>
                                        <div class="title"><span title="内容完善度" class="X NoB f_right m_right8"><%=dat["progress"].ToString() == "" ? "0" : dat["progress"].ToString()%>%</span><%=dat["name"].ToString()%></div>
                                            <div class="infobox K">
                                            推广词语:
                                            <div>
                                            <a rel="keylink" href="#" title="<%=dat["keyword"].ToString() %>" class="G"><%=EoyooCMS.Common.StringPlus.StrCut(dat["keyword"].ToString(), 28, "..")%></a>
                                            <textarea name="keyfoucs_txt" naviname="<%=dat["name"].ToString() %>" id="Textarea1" class="input-text" tabindex="1" maxlength="80" cols="20" rows=""></textarea>
                                            </div>
                                            推广词语:<div>
                                            <a rel="descriptlink" href="#" title="<%=dat["description"].ToString() %>" class="G"><%=EoyooCMS.Common.StringPlus.StrCut(dat["description"].ToString(), 28, "..")%></a>
                                        <textarea name="descriptfoucs_txt" naviname="<%=dat["name"].ToString() %>" id="Textarea2"class="input-text" tabindex="1" maxlength="80" cols="20" rows=""></textarea>
                                            </div>
                                        </div>
                                        <div class="tools">
                                            <%if (dat["moduleid"].ToString() != "8") %>
                                            <%{ %>
                                            <a class="manage f_right B" href="Content_<%=dat["rewritelist"].ToString() %>?naviid=<%=dat["id"].ToString() %>&naviname=<%=dat["name"].ToString() %>">管理</a>
                                            <%if (dat["moduleid"].ToString() != "1") %>
                                            <%{ %>
                                            <a class="add f_left m_right12" href="Content_<%=dat["rewritelist"].ToString().Replace(".aspx","") %>_Control.aspx?com=add&naviid=<%=dat["id"].ToString() %>&naviname=<%=dat["name"].ToString() %>">添加内容</a>
                                            <%} %>
                                            <a class="preview f_left Y" target="_blank" href="<%=getNaviUrl(dat["rewrite"].ToString()) %>">预览</a>
                                            <%}else{ %>
                                            <a class="manage f_right B" href="Content_<%=dat["rewritelist"].ToString() %>?naviid=<%=dat["id"].ToString() %>&naviname=<%=dat["name"].ToString() %>">留言管理</a>

                                            <a class="preview f_left Y" target="_blank" href="<%=getNaviUrl(dat["rewrite"].ToString()) %>">预览</a>

                                             <%} %>
                                            <div class="clear-0"></div>
                                        </div>

                                        <%switch (dat["moduleid"].ToString()) %>
                                        <%{ %>
                                            <%case"2": %>
                                            <div class="tools">
                                                <a class="pro f_left m_right12" href="Content_PicReview.aspx?naviid=<%=dat["id"].ToString() %>&naviname=<%=dat["name"].ToString() %>">评论管理</a>
                                                <div class="clear-0"></div>
                                            </div>
                                            <%break; %>
                                            <%case"3": %>
                                            <div class="tools">
                                                <a class="pro f_left m_right12" href="Content_ArticleReview.aspx?naviid=<%=dat["id"].ToString() %>&naviname=<%=dat["name"].ToString() %>">评论管理</a>
                                                <div class="clear-0"></div>
                                            </div>
                                            <%break; %>
                                            <%case"4": %>
                                            <div class="tools">
                                                <a class="pro f_left m_right12" href="ProductClass_Manage.aspx?naviid=<%=dat["id"].ToString() %>&naviname=<%=dat["name"].ToString() %>">分类管理</a>

                                                <a class="pro f_left m_right12" href="ProductBrand_Manage.aspx?naviid=<%=dat["id"].ToString() %>&naviname=<%=dat["name"].ToString() %>">品牌管理</a>

                                                <a class="pro f_left" href="Product_Order_Manage.aspx?naviid=<%=dat["id"].ToString() %>&naviname=<%=dat["name"].ToString() %>">订单管理</a>

                                                <div class="clear-6"></div>

                                                <a class="pro f_left" href="Content_ProductReview.aspx?naviid=<%=dat["id"].ToString() %>&naviname=<%=dat["name"].ToString() %>">评论管理</a>
                                                <div class="clear-0"></div>
                                            </div>
                                            <%break; %>
                                            <%case"5": %>
                                            <div class="tools">
                                                <a class="pro f_left m_right12" href="Content_DownLoadReview.aspx?naviid=<%=dat["id"].ToString() %>&naviname=<%=dat["name"].ToString() %>">评论管理</a>

                                                <a class="pro f_left" href="DownLoadClass_Manage.aspx?naviid=<%=dat["id"].ToString() %>&naviname=<%=dat["name"].ToString() %>">分类管理</a>
                                                <div class="clear-0"></div>
                                            </div>
                                            <%break; %>
                                            <%case"6": %>
                                            <div class="tools">
                                                <a class="pro f_left m_right12" href="Content_VideoReview.aspx?naviid=<%=dat["id"].ToString() %>&naviname=<%=dat["name"].ToString() %>">评论管理</a>
                                                <div class="clear-0"></div>
                                            </div>
                                            <%break; %>
                                            <%case"7": %>
                                            <div class="tools">
                                                <a class="pro f_left m_right12" href="Content_JobEngage.aspx?naviid=<%=dat["id"].ToString() %>&naviname=<%=dat["name"].ToString() %>">简历管理</a>
                                                <div class="clear-0"></div>
                                            </div>
                                            <%break; %>
                                        <%} %>

                                        <span class="boder l1"></span>
                                        <span class="boder l2"></span>
                                        <span class="boder l3"></span>
                                        <span class="boder l4"></span>
                                    </li>

                            <%} %>
                            <div class="clear-0"></div>
                        </ul>
                    <%} %>
                <%}else{ %>
                <span class="V">暂无栏目内容可添加,请添加栏目后再操作</span>
                <%} %>
            <div class="clear-0"></div>
        </div>
        <!-- end right_sonbox -->

    
</div>
<!-- end 内容树 -->
<br /><br />
</div>
</body>
</html>
