Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\XiShan\Control\Header.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.Header" %> <% if (!string.IsNullOrEmpty(CreateInstance.DomainInfoDao.THIS().MinLogo)) { %> <style type="text/css"> .logpre a,.logafter a {color:#fff;} #header .header-top { background: url('<%= SettingGroup.DomainInfoMinLogo(CreateInstance.DomainInfoDao.THIS()) %>') repeat-x scroll left top transparent; } </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> <header id="top"> <div id="header"> <div class=" header-top " > <!-- container --> <div class="container"> <div class=" row "> <!-- span16 --> <div class=" span5 "> <a href="<%= WebUrl.Index() %>" class="banner"> <%= new HtmlImg(SettingGroup.DomainInfoMaxLogo(CreateInstance.DomainInfoDao.THIS()), "")%> </a> </div> <div class="span4"> <div class="inline_panel search_panel"> <asp:PlaceHolder ID="HeaderSearch" runat="server" /> </div> </div> <div class="appLink" style="position:absolute;right:200px"> <img src="<%= Import.CSSFile("./appLink.png") %>" width="90" height="90"/> </div> <div class="span3"> <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 () { ShowLoginModal(); }); $(document).on("click", ".clickAndShowSignupModal", function () { ShowSignupModal(); }); }); function ShowSignupModal() { var pageRecordSize = 12; var param = "CacheEnable=3600&SRC=" + encodeURIComponent(window.location.href); 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); }); } function ShowLoginModal() { var pageRecordSize = 12; var param = "CacheEnable=3600&SRC=" + encodeURIComponent(window.location.href); 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); }); } function VideoShareWithLogined() { if ($.cookie("UserCode<%= SettingGroup.CookieSuffix %>") != null && $.cookie("ParentCode<%= SettingGroup.CookieSuffix %>") != null) { //??????????????????if?????????????????????? // $(link).removeAttr("data-toggle"); return true; } else { //$(link).removeAttr("href"); $("#sharedModal").modal(); ShowLoginModal(); return false; } } </script> </div> <div class="logafter " style="display: none;"> <div class="user_name"> <%= new HtmlAnchor(this.UserName) { Href= WebUrl.My(),TextLength=5,Suffix=".."}%>(<%= new HtmlAnchor(CreateInstance.MessageDao.Count(this.User)) { Title = "???", Href = WebUrl.MyMessage() }.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 %>")); $("#liHeaderMy").show(); } else { // $(".login_panel").hide(); // $("#bulletin_Board .body").css("height", 286); $(".logafter").hide(); $(".logpre").show(); } }); </script> </div> </div> <div class=""> <div class=""> <!-- span16 --> <div class="navbar"> <div class="navbar-inner blue"> <div class="container"> <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"> </ul> </div> <!-- /.nav-collapse --> </div> </div> <!-- /navbar-inner --> </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").prepend(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