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

<!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/Navi_Mange.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper-div">
	<!-- 导航 -->
    <div class="navibox">
    	<ul class="rootlist">
        	<li class="homenode"><span>站点首页</span></li>
            <%if (_naviParenDat.Rows.Count>0) %>
            <%{ %>
                <%foreach (System.Data.DataRow dat in _naviParenDat.Rows) %>
                <%{ %>
        	    <li rel="liRootClick" rev="<%=dat["id"].ToString() %>">
            	    <div class="bgbox">
                	    <div class="rightbgbox">
                        <a class="next" rel="shift" title="向下移动" type="downward" name="<%=dat["parent"].ToString() %>" rev="<%=dat["orderid"].ToString() %>" href="<%=dat["id"].ToString() %>">下移</a>
                        <a class="up" rel="shift" title="向上移动" type="upward" name="<%=dat["parent"].ToString() %>" rev="<%=dat["orderid"].ToString() %>" href="<%=dat["id"].ToString() %>">上移</a>
                        <span class="name"><span class="module ico<%=dat["moduleid"].ToString() %>"></span><a href="Navi_Add.aspx?com=alter&naviid=<%=dat["id"].ToString() %>"><%=dat["name"].ToString() %></a> <font class="E NoB Size9">( id:<%=dat["id"].ToString() %> )</font></span>
                        <a rel="del" id="del-<%=dat["id"].ToString() %>" title="删除栏目" rev="<%=dat["moduleid"].ToString() %>" href="<%=dat["parent"].ToString() %>" isparent="<%=dat["isparent"].ToString() %>" name="<%=dat["name"].ToString() %>">删除</a> | <a title="编辑栏目属性" href="Navi_Add.aspx?com=alter&naviid=<%=dat["id"].ToString() %>">编辑</a> | 
                    
                        <%if (dat["isparent"].ToString() =="0") %>
                        <%{ %>
                        <a target="_blank" title="预览前台页面" href="<%=getNaviUrl(dat["rewrite"].ToString()) %>">预览</a>
                        <%} %>

                        <%if (dat["isparent"].ToString() == "0") %>
                        <%{ %>
                         | <a href="<%=dat["id"].ToString() %>" title="录入体验数据" url="Content_<%=dat["rewritelist"].ToString() %>?naviid=<%=dat["id"].ToString() %>&naviname=<%=dat["name"].ToString() %>" naviname="<%=dat["name"].ToString() %>" moduleid="<%=dat["moduleid"].ToString() %>" rel="setData">体验数据</a>
                        <%} %>

                        </div>
                    </div>
                

                <!-- 子级 -->
                <%if (dat["isparent"].ToString() !="0") %>
                    <%{ %>
                    <ul class="sublist" rel="<%=dat["id"].ToString() %>">
                        <%foreach (System.Data.DataRow sonDat in _naviSonDat(dat["id"].ToString()).Rows) %>
                        <%{ %>
                            <li>
                                <div class="bgbox">
                                    <div class="rightbgbox">
                                    <a class="next"  title="向下移动" rel="shift" type="downward" name="<%=sonDat["parent"].ToString() %>" rev="<%=sonDat["orderid"].ToString() %>" href="<%=sonDat["id"].ToString() %>">下移</a>
                                    <a class="up"  title="向上移动" rel="shift" type="upward" name="<%=sonDat["parent"].ToString() %>" rev="<%=sonDat["orderid"].ToString() %>" href="<%=sonDat["id"].ToString() %>">上移</a>
                                    <span class="name"><span class="module ico<%=sonDat["moduleid"].ToString() %>"></span><%=sonDat["name"].ToString() %> <font class="E NoB Size9">( id:<%=sonDat["id"].ToString() %> )</font></span>
                                    <a rel="del" id="del-<%=sonDat["id"].ToString() %>" rev="<%=sonDat["moduleid"].ToString() %>" href="<%=sonDat["parent"].ToString() %>" title="删除栏目" isparent="<%=sonDat["isparent"].ToString() %>" name="<%=sonDat["name"].ToString() %>">删除</a> | <a title="编辑栏目属性" href="Navi_Add.aspx?com=alter&naviid=<%=sonDat["id"].ToString() %>">编辑</a> | <a title="预览前台页面" target="_blank" href="<%=getNaviUrl(sonDat["rewrite"].ToString()) %>">预览</a> | <a href="<%=sonDat["id"].ToString() %>" moduleid="<%=sonDat["moduleid"].ToString() %>" naviname="<%=sonDat["name"].ToString() %>" title="录入体验数据" url="Content_<%=sonDat["rewritelist"].ToString() %>?naviid=<%=sonDat["id"].ToString() %>&naviname=<%=sonDat["name"].ToString() %>" rel="setData">体验数据</a>
                                    </div>
                                </div>
                            </li> 
                        <%} %>
                        </ul>
                    <%} %>
                    <!-- end 子级 -->

                    </li>

                <%} %>
            <%}else{ %>
                <li class="none"><span class="V">暂无栏目，请点击下方按钮添加栏目</span> </li>
            <%} %>

            
            <li class="bottom-node"><a href="Navi_Add.aspx?com=add" class="bule-btn f_left W text_centent">添加栏目</a></li>
        </ul>
    </div>
    <!-- end 导航 -->
</div>
</body>
</html>
