Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.AdminUI\Control\Navigation.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Navigation.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Control.Navigation" %> <% if (this.IsTopNav) { %> <div class="navbar navbar-default navbar-fixed-top"> <div class="container-fulid"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand invisiable_4_short" href="#" style="font-weight:bold;"><%= CookieGroup.ParentName%></a> </div> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav pull-right"> <li class="invisiable_4_short"> <a><%= CookieGroup.UserName%></a> </li> <%--<li class="invisiable_4_short"> <a target="_blank" href="http://www.ava.com.cn/"> <%= DefineEnum.??????.Define()%></a> </li>--%> <%--<a target="fraMain" href="Theme.aspx"> <%= DefineEnum.???.Define()%></a> |--%> <%-- <li class="invisiable_4_short"> <a target="_blank" href="http://www.ava.com.cn/"> <%= DefineEnum.???.Define()%></a> </li>--%> <li> <%= new HtmlAnchor("???") { Href = "/Sys/DatabaseBackup/UpdateVersion.aspx" }%> </li> <li> <%= new HtmlAnchor( DefineEnum.????.Define()) { Href = Request.ApplicationPath+"Logout.aspx" }%> </li> </ul> <ul class="nav navbar-nav"> <li> <a href="<%= Request.WebPath()%>/Index.aspx"> <%= DefineEnum.???.Define()%></a> </li> <% if (prevParentGuid != "") { HasChildMenu(prevParentGuid, _TotoalMenu); } if (this._ListSecurityMenu != null && this._ListSecurityMenu.Count > 0) { foreach (var item in this._ListSecurityMenu .OrderBy(l=>l.SortNumber) .ToList()) { //????????????????????? if (item.Name == Define.Get("Menu_?????????") && SettingGroup.HasSubject == false) { continue; } else if (item.Name == Define.Get("Menu_?????????") && SettingGroup.HasMeeting == false) { continue; } else if (item.Name == Define.Get("Menu_???????????") && SettingGroup.HasLive == false) { continue; } else if (item.Name == Define.Get("Menu_??????") && SettingGroup.HasLiveListen == false) { continue; } else if (item.Name == Define.Get("Menu_????????") && SettingGroup.HasPublicClass == false) { continue; } else if (item.Name == Define.Get("Menu_??????") && SettingGroup.DataLog == false) { continue; } %> <li class="<% if (_currentMenu != null && ParentsList.Contains(item) && !isIndexFn()) {%>active<% }%>" id="top_<%= item.Guid%>"> <%--<a href="<%= Request.WebPath()%>/summary.aspx?muid=<%= item.Guid%>">--%> <% var firstChild = item._ListSecurityMenu.OrderBy(l=>l.SortNumber).First(); if (firstChild._ListSecurityMenu.Count > 0) { firstChild = firstChild._ListSecurityMenu.Where(l => l.Status == 1).OrderBy(l => l.SortNumber).First(); } %> <a href="<%= Request.WebPath()+ firstChild.PageUrl+"?muid="+firstChild.Guid%>"> <%= Define.Get(item.Name)%> </a> <%-- <a href="<%= Request.WebPath()%><%=item._ListSecurityMenu[0].PageUrl %>?muid=<%= item._ListSecurityMenu[0].Guid%>"> <%= Define.Get(item.Name)%> </a>--%> </li> <% }%> <% } %> </ul> </div> <!--/.nav-collapse --> </div> </div> <div class="flash_messages alert alert-danger" style="display: none;"> <button type="button" class="close" data-dismiss="alert">×</button> <p></p> </div> <% } else { %> <a id="menu-toggler" href="#"><span></span></a> <div id="sidebar" data-spy="affix" data-offset-top="50"> <ul class="nav nav-list accordion-group" id="accordion_menu"> <% if (this._ListSecurityMenu != null && this._ListSecurityMenu.Count > 0) { var isSupMenu = false; foreach (var it in this._ListSecurityMenu .OrderBy(l => l.SortNumber) .ToList()) { // ????? this._ListSecurityMenu ????????????? if (it._ListSecurityMenu.Count > 0) { isSupMenu = true; } } if (isSupMenu) { // ???????? foreach (var item in this._ListSecurityMenu .OrderBy(l => l.SortNumber) .ToList()) { if (item.Name == Define.Get("Menu_??????") && SettingGroup.HasDomain == false) { continue; } else if (item.Name == Define.Get("Menu_??????") && SettingGroup.HasWeike == false) { continue; } else if (item.Name == Define.Get("Menu_???") && SettingGroup.HasMeeting == false) { continue; } else if (item.Name == Define.Get("Menu_???") && SettingGroup.HasSubject == false) { continue; } else if (item.Name == Define.Get("Menu_??????") && SettingGroup.HasDomain == false) { continue; } else if (item.Name == Define.Get("Menu_??????") && SettingGroup.DataLog == false) { continue; } %> <% if (item._ListSecurityMenu.Count > 0) { %> <li class="active"> <%-- <a href=" <% if (item.PageUrl != null) { %><%= Request.WebPath() + item.PageUrl%>?muid=<%= item.Guid%><% } else { %><%= Request.WebPath()%>/summary.aspx?muid=<%= this.ParentGuid%><% } %>"--%> <a href="#submenu_<%= item.Guid %>" data-toggle="collapse" data-parent="#accordion_menu" id="dLabel<%= item.Guid %>"> <i class="icon-money"></i> <span><%= Define.Get(item.Name)%> ></span> <b class="arrow icon-angle-down"></b> </a> <ul id="submenu_<%= item.Guid %>" class=" submenu <%= ParentsList.Contains(item) ? "in":"collapse"%> "> <% //var childListSecurityMenu = this.GetChildSecurityMenu(item); var childListSecurityMenu = item._ListSecurityMenu; foreach (var childItem in childListSecurityMenu .OrderBy(l => l.SortNumber) .ToList()) { if (childItem.Name == Define.Get("Menu_??????") && SettingGroup.HasDomain == false) { continue; } else if (childItem.Name == Define.Get("Menu_??????") && SettingGroup.HasWeike == false) { continue; } else if (childItem.Name == Define.Get("Menu_???") && SettingGroup.HasMeeting == false) { continue; } else if (childItem.Name == Define.Get("Menu_???") && SettingGroup.HasSubject == false) { continue; } else if (childItem.Name == Define.Get("Menu_??????") && SettingGroup.HasDomain == false) { continue; } else if (childItem.Name == Define.Get("Menu_??????") && SettingGroup.DataLog == false) { continue; } if (childItem._ListSecurityGroupMenu.Count > 0) { %> <%if (childItem.Status == 1) { %> <li class=" <%= ViewData.Val("Guid", _currentMenu).ToString(null) == childItem.Guid ? "active" : ""%>" id="secondMenu_<%= childItem.Guid%>"> <a title="<%= childItem.Description%>" href="<%= childItem.PageUrl != null ? Request.WebPath() + childItem.PageUrl + "?muid=" + childItem.Guid : Request.WebPath() + "/summary.aspx?muid=" + childItem.Guid%>"> <i class="icon-money"></i><span style="display: none">??????<%= ViewData.Val("Guid", _currentMenu).ToString(null)%><br /> ?????<%= ParentGuid%> </span><%= Define.Get(childItem.Name)%><b class="arrow icon-angle-down"></b> </a> <% var grandChildListSecurityMenu = childItem._ListSecurityMenu; if (grandChildListSecurityMenu.Count > 0) { %> <ul id="third_submenu_<%= childItem.Guid%>" class=" submenu <%= ParentsList.Contains(item) ? "in" : "collapse"%> "> <% foreach (var grandChildItem in grandChildListSecurityMenu .OrderBy(l => l.SortNumber) .ToList()) { if(grandChildItem.Status ==1){%> <li class=" <%= grandChildItem.Guid == ViewData.Val("Guid", _currentMenu).ToString(null) ? "active" : ""%>" id="thirdMenu_<%= grandChildItem.Guid%>"> <a title="<%= grandChildItem.Description%>" href="<%= grandChildItem.PageUrl != null ? Request.WebPath() + grandChildItem.PageUrl + "?muid=" + grandChildItem.Guid : Request.WebPath() + "/summary.aspx?muid=" + grandChildItem.Guid%>"> <i class="icon-double-angle-right"></i><%= Define.Get(grandChildItem.Name)%> </a> </li> <% } }%> </ul> <% } %> </li> <%} } else { if (childItem.Status == 1) { %> <li class=" <%= childItem.Guid == ViewData.Val("Guid", _currentMenu).ToString(null) ? "active" : ""%>" id="<%= childItem.Guid%>"> <a title="<%= childItem.Description%>" href="<%= childItem.PageUrl != null ? Request.WebPath() + childItem.PageUrl + "?muid=" + childItem.Guid : Request.WebPath() + "/summary.aspx?muid=" + childItem.Guid%>"> <i class="i"></i><%= Define.Get(childItem.Name)%> </a> </li> <% } } } %> </ul> </li> <% } else { %> <li class=" <%= item.Guid == ViewData.Val("Guid", _currentMenu).ToString(null) ? "active" : ""%>" id="Li1"> <a title="<%= item.Description%>" href="<%= item.PageUrl != null ? Request.WebPath() + item.PageUrl + "?muid=" + item.Guid : Request.WebPath() + "/summary.aspx?muid=" + item.Guid%>"> <i class="icon-double-angle-right"></i><%= Define.Get(item.Name)%> </a> </li> <% } %> <% }//end for %> <% } else { // ????????// ??????????ist ????????? // this.GetNameByGuid(this.ParentGuid) %> <li class="active"> <a href=" #" id="A1"> <i class="icon-money"></i> <span><%= this.ParentsList.First().Name %> </span> <b class="arrow icon-angle-down"></b> </a> <!-- ????????/ --> <ul class=" submenu"> <% foreach (var item in this._ListSecurityMenu .OrderBy(l => l.SortNumber) .ToList()) { if (item.Name == Define.Get("Menu_??????") && SettingGroup.HasDomain == false) { continue; } else if (item.Name == Define.Get("Menu_??????") && SettingGroup.HasWeike == false) { continue; } else if (item.Name == Define.Get("Menu_???") && SettingGroup.HasMeeting == false) { continue; } else if (item.Name == Define.Get("Menu_???") && SettingGroup.HasSubject == false) { continue; } else if (item.Name == Define.Get("Menu_??????") && SettingGroup.HasDomain == false) { continue; } if (item.Status == 1) { %> <li id="current_<%= item.Guid %>" class="<%= ViewData.Val("Guid",_currentMenu).ToString(null) == item.Guid ? "active" : ""%>"> <a href="<%= item.PageUrl != null ? Request.WebPath() + item.PageUrl + "?muid=" + item.Guid : Request.WebPath() + "/summary.aspx?muid=" + item.Guid %>"> <i class="icon-money"></i> <span><%= Define.Get(item.Name)%> ></span> <b class="arrow icon-angle-down"></b> </a> </li> <% } } //endfor %> </ul> </li> <% }//end if %> <script> $(document).ready(function () { // $("#top_<%=this.ParentGuid%>").addClass("active"); }); </script> <% }%> </ul> <% if (comeFromeIndex) { %> <%= new AuditControlBarInstance(this) {IsIndex=true }.ToHtml()%> <%} %> </div> <% } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de