Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\HeaderData.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HeaderData.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.HeaderData" %> <li class='<%= this.HeaderItem == HeaderItem.Index ? "active" : "" %>'> <a href="<%=WebUrl.Index() %>"><span class="ico ico-home-ico"></span> ???</a> <%--<%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-home-ico"}+Define.Get("???")) { Title=Define.Get("Client_???"),Href = WebUrl.Index() }%>--%></li> <% if (this.User != null && this.User.ParentUserType.LiveShow && SettingGroup.HasLive == true) { %> <li class='<%= this.HeaderItem == HeaderItem.LiveShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-cloud-ico"}+Define.Get("Client_??????")) { Title=Define.Get("Client_??????"), Href = WebUrl.LivePlay("") }%></li> <% } else if (this.User == null && SettingGroup.Setting().LiveShow && SettingGroup.HasLive == true) { %> <li class='<%= this.HeaderItem == HeaderItem.LiveShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-cloud-ico"}+Define.Get("Client_??????")) {Title=Define.Get("Client_??????"), Href = WebUrl.LivePlay("") }%></li> <% } %> <% if (this.User != null && this.User.ParentUserType.VideoShow) { %> <li class='<%= this.HeaderItem == HeaderItem.VideoShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-play-ico"}+Define.Get("Client_??????")) { Title=Define.Get("Client_??????"), Href = WebUrl.Video(new List<AVA.ResourcesPlatform.Config.UrlParam>().AddOnly("OrderBy",((int)AVA.ResourcesPlatform.Config.OrderType.???????????????).ToString())) }%></li> <% } else if (this.User == null && SettingGroup.Setting().VideoShow) { %> <li class='<%= this.HeaderItem == HeaderItem.VideoShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-play-ico"}+Define.Get("Client_??????")) {Title=Define.Get("Client_??????"), Href = WebUrl.Video(new List<AVA.ResourcesPlatform.Config.UrlParam>().AddOnly("OrderBy",((int)AVA.ResourcesPlatform.Config.OrderType.???????????????).ToString())) }%></li> <% } %> <% if (this.User != null && this.User.ParentUserType.TextbookShow && SettingGroup.HasBook == true) { %> <li class='<%= this.HeaderItem == HeaderItem.TextbookShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-webcourse-ico"}+Define.Get("Client_??????")) {Title=Define.Get("Client_??????"), Href = WebUrl.Textbook() }%></li> <% } else if (this.User == null && SettingGroup.Setting().TextbookShow && SettingGroup.HasBook == true) { %> <li class='<%= this.HeaderItem == HeaderItem.TextbookShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-webcourse-ico"}+Define.Get("Client_??????")) {Title=Define.Get("Client_??????"), Href = WebUrl.Textbook() }%></li> <% } %> <% if (this.User != null && this.User.ParentUserType.AlbumShow) { %> <li class='<%= this.HeaderItem == HeaderItem.AlbumShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-album-ico"}+Define.Get("Client_??????")) {Title=Define.Get("Client_??????"), Href = WebUrl.Album() }%></li> <% } else if (this.User == null && SettingGroup.Setting().AlbumShow) { %> <li class='<%= this.HeaderItem == HeaderItem.AlbumShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-album-ico"}+Define.Get("Client_??????")) {Title=Define.Get("Client_??????"), Href = WebUrl.Album() }%></li> <% } %> <% if (this.User != null && this.User.ParentUserType.WeikeShow && SettingGroup.HasWeike == true) { %> <li class='<%= this.HeaderItem == HeaderItem.WeikeShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-micoke-ico"}+Define.Get("Client_??????")) {Title=Define.Get("Client_??????"), Href = WebUrl.Weike(new List<AVA.ResourcesPlatform.Config.UrlParam>().AddOnly("OrderBy",((int)AVA.ResourcesPlatform.Config.OrderType.??????).ToString())) }%></li> <% } else if (this.User == null && SettingGroup.Setting().WeikeShow && SettingGroup.HasWeike == true) { %> <li class='<%= this.HeaderItem == HeaderItem.WeikeShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-micoke-ico"}+Define.Get("Client_??????")) {Title=Define.Get("Client_??????"), Href = WebUrl.Weike(new List<AVA.ResourcesPlatform.Config.UrlParam>().AddOnly("OrderBy",((int)AVA.ResourcesPlatform.Config.OrderType.??????).ToString())) }%></li> <% } %> <% if (this.User != null && this.User.ParentUserType.SubjectShow && SettingGroup.HasSubject == true) { %> <li class='<%= this.HeaderItem == HeaderItem.SubjectShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-anylize-ico"}+Define.Get("Client_??????")) {Title=Define.Get("Client_??????"), Href = WebUrl.SubjectList() }%></li> <% } else if (this.User == null && SettingGroup.Setting().SubjectShow && SettingGroup.HasSubject == true) { %> <li class='<%= this.HeaderItem == HeaderItem.SubjectShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-anylize-ico"}+Define.Get("Client_??????")) {Title=Define.Get("Client_??????"), Href = WebUrl.SubjectList() }%></li> <% } %> <% if (this.User != null && this.User.ParentUserType.MeetingShow && SettingGroup.HasMeeting == true) { %> <li class='<%= this.HeaderItem == HeaderItem.MeetingShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-edstudy-ico"}+ Define.Get("Client_??????")) { Title=Define.Get("Client_??????"), Href = WebUrl.MeetingList() }%></li> <% } else if (this.User == null && SettingGroup.Setting().MeetingShow && SettingGroup.HasMeeting == true) { %> <li class='<%= this.HeaderItem == HeaderItem.MeetingShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-edstudy-ico"}+Define.Get("Client_??????")) { Title=Define.Get("Client_??????"), Href = WebUrl.MeetingList() }%></li> <% } %> <% if (this.User != null && this.User.ParentUserType.ShowOnline && SettingGroup.HasLive == true) { %> <li class='<%= this.HeaderItem == HeaderItem.OnlineShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-liveplay-ico"}+Define.Get("Client_??????")) { Title = Define.Get("Client_??????"), Href = SettingGroup.Setting().ClientMonitoring == true && SettingGroup.HasVideoMonitoring == true ? WebUrl.CCPClient() : WebUrl.Online() }%></li> <% } else if (this.User == null && SettingGroup.Setting().OnlineShow && SettingGroup.HasLive == true) { %> <li class='<%= this.HeaderItem == HeaderItem.OnlineShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-liveplay-ico"}+Define.Get("Client_??????")) { Title = Define.Get("Client_??????"), Href = SettingGroup.Setting().ClientMonitoring == true && SettingGroup.HasVideoMonitoring == true ? WebUrl.CCPClient() : WebUrl.Online() }%></li> <% } %> <% if (this.User != null && this.User.ParentUserType.SchoolShow && SettingGroup.HasDomain == true) { %> <li class='<%= this.HeaderItem == HeaderItem.SchoolShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-school_list-ico"}+Define.Get("Client_??????")) {Title=Define.Get("Client_??????"), Href = WebUrl.School() }%></li> <% } else if (this.User == null && SettingGroup.Setting().SchoolShow && SettingGroup.HasDomain == true) { %> <li class='<%= this.HeaderItem == HeaderItem.SchoolShow ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-school_list-ico"}+Define.Get("Client_??????")) {Title=Define.Get("Client_??????"), Href = WebUrl.School() }%></li> <% } %> <% if(SettingGroup.HasTeacherSpace) { %> <li class='<%= this.HeaderItem == HeaderItem.TeacherList ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-teacher-ico"}+Define.Get("Client_??????")) {Title=Define.Get("Client_??????"), Href = WebUrl.TeacherList() }%></li> <% } %> <% if(this.User!=null&&this.User.ParentUserType.PublicClassShow && SettingGroup.HasPublicClass) { %> <li class='<%= this.HeaderItem == HeaderItem.PublicClass ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-book-ico"}+Define.Get("Client_?????")) {Title=Define.Get("Client_?????"), Href = WebUrl.PublicClassList() }%></li> <% } else if (this.User == null && SettingGroup.Setting().PublicClassShow && SettingGroup.HasPublicClass) { %> <li class='<%= this.HeaderItem == HeaderItem.PublicClass ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-book-ico"}+Define.Get("Client_?????")) {Title=Define.Get("Client_?????"), Href = WebUrl.PublicClassList() }%></li> <% } %> <% if(CreateInstance.DomainDao.Count(l=>l.DomainType == (int)AVA.ResourcesPlatform.Model.Pub.DomainDomainTypeEnum.????? && l.Status == (int)AVA.ResourcesPlatform.Model.Pub.DomainStatusEnum.???)>0) { var parentDomain = CreateInstance.DomainDao.Where(l => l.DomainType == (int)AVA.ResourcesPlatform.Model.Pub.DomainDomainTypeEnum.????? && l.Status == (int)AVA.ResourcesPlatform.Model.Pub.DomainStatusEnum.???).First(); %> <li class='<%= this.HeaderItem == HeaderItem.TeacherList ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-return-ico"}+"????????") {Title="????????", Href = parentDomain.RouteWebSite }%></li> <% } %> <% if (this.User != null) { %> <li id="liHeaderMy" class='<%= this.HeaderItem == HeaderItem.My ? "active" : ""%> '> <%= new HtmlAnchor(new HtmlSpan(){Class="ico ico-peoples-ico"}+Define.Get("Client_??????")) { Title=Define.Get("Client_??????"),Href= WebUrl.My()}%> </li> <% } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de