Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\k12Simple\Control\Header_frontPage.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.Header" %> <% if (!string.IsNullOrEmpty(CreateInstance.DomainInfoDao.THIS().MinLogo)) { %> <%--<style type="text/css"> #header .header-top { background: url('<%= SettingGroup.DomainInfoMinLogo(CreateInstance.DomainInfoDao.THIS()) %>') repeat-x scroll left top transparent; } </style>--%> <% } %> <style> .navbar .nav > li > a{ font-size:16px; } </style> <div class="affix flash_messages-wrapper" data-spy="affix" data-offset-top="0"> <div class="flash_messages alert alert-box" style="display: none;"> <button type="button" class="close" data-dismiss="alert">×</button> <h4><i class="icon-info-sign"></i></h4> <p>message-here</p> </div> </div> <div class="header-top-login"> <div class="container"> <div class="row"> <div class="span12 " style="position: relative; overflow: hidden;"> <div style="" class="logpre"> <% if (SettingGroup.LoginNewPage) { %> <a href="<%= WebUrl.Login() %>" style="cursor: pointer">???</a> <% } else { %> <a data-toggle="modal" class="clickAndShowLoginModal" data-target="#sharedModal" data-guid="" id="clickAndShowLoginModal" style="cursor: pointer">???</a> <% } %> | <% if (SettingGroup.SignupNewPage) { %> <a href="<%= WebUrl.Signup() %>" style="cursor: pointer">???</a> <% } else { %> <a data-toggle="modal" class="clickAndShowSignupModal" data-target="#sharedModal" data-guid="" id="clickAndShowSignupModal" style="cursor: pointer">???</a> <% } %> | <%= new HtmlAnchor("???") { Href= WebUrl.Help(), Target="_blank"}%> <%-- <%= new HtmlAnchor("???") { Href = WebUrl.Login(), ID="headerLogin",Class=""}%> | <%= new HtmlAnchor("???") { Href= WebUrl.Signup(),Class=""}%>--%> <script> $(function () { $(document).on("hidden", "#sharedModal", function () { $.validator.removeGroup($.validator.getInitConfig("Login"), "Login"); }); $(document).on("click", ".clickAndShowLoginModal", function () { var pageRecordSize = 12 var param = "PageIndex=" + 1; param += "&PageRecordSize=" + pageRecordSize + "&SRC=<%= this.Request.RawUrl %>"; Global.HtmlControl('<%= ControlPath("/User/Login_Header")%>', param, null, function (json) { $("#sharedModal .modal-body").html(json.Html); $("#sharedModal #sharedModalLabel").html("???"); $("#sharedModal .modal-body").css("height", "auto"); $("#sharedModal") .css("margin-left", -$("#sharedModal").width() / 2) .css("margin-top", -$("#sharedModal").height() / 2); }); }) $(document).on("click", ".clickAndShowSignupModal", function () { var pageRecordSize = 12 var param = "PageIndex=" + 1; param += "&PageRecordSize=" + pageRecordSize + "&SRC=<%= this.Request.RawUrl %>"; Global.HtmlControl('<%= ControlPath("/User/Signup_Header")%>', param, null, function (json) { $("#sharedModal .modal-body").html(json.Html); $("#sharedModal #sharedModalLabel").html("???"); $("#sharedModal .modal-body").css("max-height", 500); $("#sharedModal .modal-body").height(500); $("#sharedModal") .css("margin-left", -$("#sharedModal").width() / 2) .css("margin-top", -$("#sharedModal").height() / 2); }); }) }); </script> </div> <div class="logafter " style="display: none;"> <div class="user_name"> <%= new HtmlAnchor(this.UserName) { Href= WebUrl.My(),TextLength=5,Suffix="..", Class="uname"}%>(<%= new HtmlAnchor("...") { Title = "???", Href = WebUrl.MyMessage(), Class="msgNum" }.Style(new { Color="Red", Font_Weight="Bold" })%>) | <%= new HtmlAnchor("???") { Href = WebUrl.Logout() }%> | <%= new HtmlAnchor("???") { Href= WebUrl.Help(), Target="_blank"}%> </div> </div> </div> <script type="text/javascript"> $(function () { //?????????? if ($.cookie("UserCode<%= SettingGroup.CookieSuffix %>") != null && $.cookie("ParentCode<%= SettingGroup.CookieSuffix %>") != null) { // $(".login_panel").show(); // $("#bulletin_Board .body").css("height", 186); $(".logpre").hide(); $(".logafter").show(); $(".logafter .uname").html($.cookie("UserName<%= SettingGroup.CookieSuffix %>")); Global.HtmlControl('<%= ControlPath("/MsgNum")%>', "", null, function (json) { if (json != null) { $(".logafter .msgNum").html(json.Html); } }); $("#liHeaderMy").show(); } else { // $(".login_panel").hide(); // $("#bulletin_Board .body").css("height", 286); $(".logafter").hide(); $(".logpre").show(); } }); </script> </div> </div> </div> <header id="top"> <div id="header"> <div class=" header-top "> <!-- container --> <div class="container"> <div class=" row "> <!-- span16 --> <div class=" span3 " style=""> <a href="<%= WebUrl.Index() %>" class="banner"> <%= new HtmlImg(SettingGroup.DomainInfoMaxLogo(CreateInstance.DomainInfoDao.THIS()), "") { OnErrorImg=SettingGroup.DefaultImg3}%> </a> </div> <div class="span6"> <div class="navbar"> <div class=""> <div class=""> <a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar"><span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span></a> <div class="nav-collapse"> <ul id="HeaderMenuData" class="nav" style="margin-top: 10px;"> <li class='<%= this.HeaderItem == HeaderItem.Index ? "active" : "" %>'> <%= new HtmlAnchor(Define.Get("Client_???")) { Href = WebUrl.Index() }%></li> <% if (this.User != null && this.User.ParentUserType.VideoShow) { %> <li class='<%= this.HeaderItem == HeaderItem.VideoShow ? "active" : ""%> '> <%= new HtmlAnchor(Define.Get("Client_??????")) { Href = WebUrl.Video() }%></li> <% } else if (this.User == null && SettingGroup.Setting().VideoShow) { %> <li class='<%= this.HeaderItem == HeaderItem.VideoShow ? "active" : ""%> visible-desktop'> <%= new HtmlAnchor(Define.Get("Client_??????")) { Href = WebUrl.Video() }%></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.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.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.ShowOnline) { %> <li class='<%= this.HeaderItem == HeaderItem.OnlineShow ? "active" : ""%> '> <%= new HtmlAnchor(Define.Get("Client_??????")) { Href = SettingGroup.Setting().ClientMonitoring == false ? WebUrl.Online() : "?????????????????????" }%></li> <% } else if (this.User == null && SettingGroup.Setting().OnlineShow) { %> <li class='<%= this.HeaderItem == HeaderItem.OnlineShow ? "active" : ""%> '> <%= new HtmlAnchor(Define.Get("Client_??????")) { Href = SettingGroup.Setting().ClientMonitoring == false ? WebUrl.Online() : "?????????????????????" }%></li> <% } %>--%> <% if (this.User != null) { %> <li class='<%= this.HeaderItem == HeaderItem.My ? "active" : ""%> '> <%= new HtmlAnchor("??????") { Href = WebUrl.My() }%></li> <% } %> </ul> </div> <!-- /.nav-collapse --> </div> </div> <!-- /navbar-inner --> </div> </div> <div class="span3 search_panel"> <div class="inline_panel "> <asp:PlaceHolder ID="HeaderSearch" runat="server" /> </div> </div> </div> </div> </div> </div> </header> <script type="text/javascript"> <%-- function GetHeaderData() { var params = "HeaderItem=<%= (int)this.HeaderItem %>&Local=<%= this.Local %>&SessionCache=1"; Global.HtmlControl('<%= ControlPath("/HeaderData")%>', params, null, function (json) { if (json != null) { $("#HeaderMenuData").append(json.Html); } }); } GetHeaderData();--%> </script> <script> $(document).load(function () { $('.flash_messages').affix(); }); </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de