<%@ page language="VB" autoeventwireup="false" inherits="b2b_parrot_admin_nav, App_Web_admin_nav.aspx.25f04327" %>
<%  ubb.cms_anquan()%>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<head>
<title>导航管理</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script language="JavaScript" src="js/tanbox.js"></script>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="css/body.css" rel="stylesheet" type="text/css" />
<link href="css/text.css" rel="stylesheet" type="text/css" />
<link href="css/button.css" rel="stylesheet" type="text/css" />
<script src="js/intjs.js" type="text/javascript"></script>
<script type="text/javascript">
document.oncontextmenu=new Function('event.returnValue=false;'); 
</script>
</head>
<body>
<form id="form1" runat="server">
<table width="100%" border="0" cellspacing="3" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="1" cellpadding="0">
            <tr>
              <td bgcolor="#FFFFFF"><table width="100%" height="29" border="0" cellpadding="0" cellspacing="5">
                  <tr>
                    <td height="19" bgcolor="#EBEBEB"><table width="100%" border="0" cellspacing="8" cellpadding="0">
                        <tr>
                          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="3" cellpadding="0">
                              <tr>
                                <td width="15%" height="25" align="center" class="wuse16"><strong class="16huise">管理中心</strong></td>
                                <td valign="bottom" class="huise12">导航管理</td>
                                <td width="65%" valign="bottom" class="huise12">本功能需要模板中包含[!--Navigation--]标签</td>
                              </tr>
                          </table></td>
                        </tr>
                    </table></td>
                  </tr>
              </table>              </td>
            </tr>
             
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<asp:scriptmanager ID="Scriptmanager1" runat="server"></asp:scriptmanager>

<%If ubb.xml_tables("red_parrot.xml", "parrot_addnav") = "True" Then%>
              <fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;"><legend class="wuse12"><strong>添加新导航</strong></legend>
                              <asp:UpdatePanel ID="admin_nav_UpdatePanel" ChildrenAsTriggers="true"  runat="server">
                                <ContentTemplate>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:5px;">
                                          <tr>
                                            <td><table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#E7E7E7">
                                                <tr>
                                                  <td width="17%" height="30" align="center" bgcolor="#F6F6F6" class="wuse12">导航类别：</td>
                                                  <td height="30"><asp:DropDownList ID="n_lei" runat="server" AutoPostBack="True">
                                                      <asp:ListItem Selected="True">请选择导航类别</asp:ListItem>
                                                      <asp:ListItem>内部导航连接</asp:ListItem>
                                                      <asp:ListItem>外部导航连接</asp:ListItem>
                                                    </asp:DropDownList>
                                                      <asp:DropDownList ID="n_navs" runat="server" Visible="False" 
                                                          AutoPostBack="True">
                                                        <asp:ListItem Selected="True">请选择导航分类</asp:ListItem>
                                                      </asp:DropDownList>
                                                      <asp:DropDownList ID="n_leia" runat="server" Visible="False" 
                                                           AutoPostBack="True"> </asp:DropDownList>
                                                      <asp:DropDownList ID="n_leib" runat="server" 
                                                          Visible="False"> </asp:DropDownList>
                                                      <asp:Label ID="Label1" runat="server" Visible="False"></asp:Label>
                                                      <asp:TextBox ID="n_bt" runat="server" 
                                        CssClass="text_autox22_cccccc" Visible="False" Width="250px"></asp:TextBox>
                                                      <asp:Label ID="Label2" runat="server" Visible="False"></asp:Label>
                                                      <asp:TextBox ID="n_url" runat="server" 
                                        CssClass="text_autox22_cccccc" Visible="False" Width="250px"></asp:TextBox>
                                                      <asp:Label ID="Label3" runat="server" Visible="False"></asp:Label>                                                  </td>
                                                </tr>
                                                <asp:Label ID="Label4" runat="server" Visible="False"></asp:Label>
                                                <td align="center" bgcolor="#F6F6F6" class="wuse12" height="30"> 导航隶属：</td>
                                                  <td height="30"><span class="hongse12">
                              <asp:DropDownList ID="n_fid" runat="server" CssClass="lvsetext200x22"> </asp:DropDownList>
                              * </span> </td>
                                              </tr>
                                              <tr>
                                                <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">导航排序：</td>
                                                <td height="30"><asp:TextBox ID="n_px" runat="server" Text='0' onkeydown="intjs()" 
                                                          Height="22px" Width="50px" CssClass="text_autox22_cccccc"></asp:TextBox>
                              <span class="hongse12">* 必须是数字，数字越大越靠后</span></td>
                                              </tr>
                                              <tr>
                                                <td height="22" align="center" bgcolor="#F6F6F6" class="wuse12">打开方式：</td>
                                                <td height="22"><asp:DropDownList ID="n_open" runat="server" 
                                          CssClass="lvsetext200x22">
                                                  <asp:ListItem value="_parent">在原窗口打开</asp:ListItem>
                                                  <asp:ListItem value="_blank">在新窗口打开</asp:ListItem>
                                                </asp:DropDownList>                                                </td>
                                              </tr>
                                              <tr>
                                                <td height="22" align="center" bgcolor="#F6F6F6" class="wuse12">导航备注：</td>
                                                <td height="22"><asp:TextBox ID="n_sm" runat="server" Height="22px" Width="250px" 
                                                          CssClass="text_autox22_cccccc" ></asp:TextBox></td>
                                              </tr>
                                            </table></td>
                                          </tr>
                                      </table>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            
                      <table width="100%" border="0">
                        <tr>
                          <td width="16%">&nbsp;</td>
                          <td><asp:Button ID="add_new_lei_ok" runat="server" CssClass="btn_2k3" Text="提交添加" />                      
                              <span class="hongse12">
                              <asp:Label ID="add_nav_ts" runat="server"></asp:Label>
                            </span></td>
                        </tr>
                      </table>
              </fieldset>
              <%End If%>
              <fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;"><legend class="wuse12"><strong>已建立的导航项</strong></legend>
                <asp:UpdatePanel ID="admin_nav_UpdatePanels" ChildrenAsTriggers="true"  runat="server">
<ContentTemplate>

                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="right" valign="bottom"><asp:LinkButton ID="admin_nav_shuaxin" runat="server" 
                                                  CssClass="lanse12">刷新列表</asp:LinkButton></td>
                  </tr>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><%
                                                            Dim i, j As Integer
                                                            For i = 0 To CInt(nav_tb.Rows.Count - 1)%>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td><table width="100%" border="0" cellpadding="0" cellspacing="3" onMouseOver="this.bgColor='#DBDBDB';" onMouseOut="this.bgColor='#D7F7FF';" bgcolor="#D7F7FF">
                                <tr>
                                  <td width="3%" align="center"><img src="image/gif-0900_2.gif" width="12" height="17" /></td>
                                  <td class="wuse12"><span class="hongse12">[<%=nav_tb.Rows(i).Item("n_px")%>]</span><%=nav_tb.Rows(i).Item("n_bt")%><a name="nameid<%=nav_tb.Rows(i).Item("n_id")%>" id="nameid<%=nav_tb.Rows(i).Item("n_id")%>"></a>　<span class="chense12"><strong>：<%=nav_tb.Rows(i).Item("n_url")%></strong></span></td>
                                  <td width="6%" align="center" class="wuse12"><a href="?up=True&amp;up_id=<%=nav_tb.Rows(i).Item("n_id")%>"><img src="image/up.gif" alt="上移" border="0" /></a></td>
                                  <td width="6%" align="center" class="wuse12"><a href="?de=True&amp;de_id=<%=nav_tb.Rows(i).Item("n_id")%>"><img src="image/de.gif" alt="下移" border="0" /></a></td>
                                  <td width="14%" class="wuse12"><%If ubb.xml_tables("red_parrot.xml", "parrot_updatenav") = "True" Then%>
                                      <a href="javascript:ShowHtmlString(570,275,'admin_update_nav.aspx?navid=<%=nav_tb.Rows(i).Item("n_id")%>','修改一级导航分类');" >修改</a>
                                      <%End If
                                                  If ubb.xml_tables("red_parrot.xml", "parrot_deletenav") = "True" Then%>
                                    |　 <a href="?admin_url=nav_delete&navid=<%=nav_tb.Rows(i).Item("n_id")%>" onClick="javascrip:return confirm('你确认要删除此分类吗？');">删除</a>
                                    <%End If%></td>
                                </tr>
                                <tr>
                                  <td colspan="5" bgcolor="#CCCCCC"><img src="image/bj/gli.gif" width="22" height="1" /></td>
                                </tr>
                              </table>
                                <% 
                              
                          
                                                  Dim nav_zdt As New Data.DataTable
                                                  nav_zdt = ubb.tables("select * from wn_nav where n_fid=" & nav_tb.Rows(i).Item("n_id") & " order by n_px asc")
                                                  For j = 0 To nav_zdt.Rows.Count - 1
                                                      
                          
                          %>
                                <table width="100%" border="0" cellpadding="0" cellspacing="3" onMouseOver="this.bgColor='#DBDBDB';" onMouseOut="this.bgColor='#F7F7F7';" bgcolor="#F7F7F7">
                                  <tr>
                                    <td width="5%" align="right"><a href="?up=True&amp;up_id=<%=nav_zdt.Rows(j).Item("n_id")%>"><img src="image/up.gif" alt="上移" border="0" /></a></td>
                                    <td width="5%" align="right"><a href="?de=True&amp;de_id=<%=nav_zdt.Rows(j).Item("n_id")%>"><img src="image/de.gif" alt="下移" border="0" /></a></td>
                                    <td width="2%" align="right"><img src="image/gif-0900.gif" width="12" height="17" /></td>
                                    <td class="wuse12"><span class="hongse12">[<%=nav_zdt.Rows(j).Item("n_px")%>]</span><%=nav_zdt.Rows(j).Item("n_bt")%><a name="nameid<%=nav_zdt.Rows(j).Item("n_id")%>" id="nameid<%=nav_zdt.Rows(j).Item("n_id")%>"></a>　<span class="lanse12"><strong>：<%=nav_zdt.Rows(j).Item("n_url")%></strong></span></td>
                                    <td width="14%" align="center" class="wuse12"><%If ubb.xml_tables("red_parrot.xml", "parrot_updatenav") = "True" Then%>
                                        <a href="javascript:ShowHtmlString(570,285,'admin_update_nav.aspx?navid=<%=nav_zdt.Rows(j).Item("n_id")%>','修改二级导航分类');" >修改</a>
                                        <%End If
                                                    If ubb.xml_tables("red_parrot.xml", "parrot_deletenav") = "True" Then%>
                                      |　<a href="?admin_url=nav_delete&navid=<%=nav_zdt.Rows(j).Item("n_id")%>" onClick="javascrip:return confirm('你确认要删除此类吗？');">删除</a>
                                      <%End If%></td>
                                  </tr>
                                  <tr>
                                    <td colspan="6" bgcolor="#CCCCCC"><img src="image/bj/gli.gif" width="22" height="1" /></td>
                                  </tr>
                                </table>
                              <%Next
                      %>
                            </td>
                          </tr>
                        </table>
                      <%Next%></td>
                  </tr>
                </table>


               </ContentTemplate>
              </asp:UpdatePanel>
  </fieldset>  

    </form>
</body>