private void BindTopStickybar() { string adminURL = GetParentURL + "/Admin/Admin" + extenstion; SageFrameConfig sfConfig = new SageFrameConfig(); hypLogo.NavigateUrl = adminURL; hypEdit.NavigateUrl = GetHostURL() + "/" + sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage) + SageFrameSettingKeys.PageExtension; hypLogo.ImageUrl = GetApplicationName + "/Administrator/Templates/Default/images/sageframe.png"; string appPath = GetApplicationName; string LogoPath = Server.MapPath(appPath + "~/Administrator/Templates/Default/images/SageLogo.png"); if (File.Exists(LogoPath)) { hypLogo.NavigateUrl = GetPortalAdminPage(); hypLogo.ImageUrl = appPath + "/Administrator/Templates/Default/images/SageLogo.png"; if (GetUsername != SystemSetting.SYSTEM_USER) { lblHideLogo.Visible = false; } } else { divLogo.Visible = false; } hlnkDashboard.NavigateUrl = adminURL; SageFrame.Application.Application app = new SageFrame.Application.Application(); lblVersion.Text = string.Format("V {0}", app.FormatShortVersion(app.Version, true)); lnkAccount.NavigateUrl = GetParentURL + "/sf/" + "sfUser-Profile" + extenstion; }
protected void Page_Load(object sender, EventArgs e) { IncludeLanguageJS(); appPath = GetApplicationName; SecurityPolicy objSecurity = new SecurityPolicy(); userName = objSecurity.GetUser(GetPortalID); Extension = SageFrameSettingKeys.PageExtension; if (!IsPostBack) { // BindThemes(); //BindLayouts(); //BindValues(); hlnkDashboard.Visible = false; SageFrameConfig conf = new SageFrameConfig(); string ExistingPortalShowProfileLink = conf.GetSettingValueByIndividualKey(SageFrameSettingKeys.PortalShowProfileLink); lnkAccount.NavigateUrl = GetProfileLink(); if (ExistingPortalShowProfileLink == "1") { lnkAccount.Visible = true; } else { lnkAccount.Visible = false; } SageFrame.Application.Application app = new SageFrame.Application.Application(); lblVersion.Text = string.Format("V {0}", app.FormatShortVersion(app.Version, true)); } hypLogo.NavigateUrl = GetPortalAdminPage(); hypLogo.ImageUrl = appPath + "/Administrator/Templates/Default/images/sagecomers-logoicon.png"; RoleController _role = new RoleController(); string[] roles = _role.GetRoleNames(GetUsername, GetPortalID).ToLower().Split(','); if (roles.Contains(SystemSetting.SUPER_ROLE[0].ToLower()) || roles.Contains(SystemSetting.SITEADMIN.ToLower())) { hlnkDashboard.Visible = true; hlnkDashboard.NavigateUrl = GetPortalAdminPage(); cpanel.Visible = true; AspxAdminNotificationView1.Visible = true; IsAdmin = true; } else { cpanel.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { appPath = GetApplicationName; Extension = SageFrameSettingKeys.PageExtension; UserName = GetUsername; PortalID = GetPortalID; PortalName = GetPortalSEOName; SageFrameConfig sfConfig = new SageFrameConfig(); bool ShowSideBar = sfConfig.GetSettingBoolValueByIndividualKey(SageFrameSettingKeys.ShowSideBar); IsSideBarVisible = ShowSideBar ? 1 : 0; BuildQuickLinks(); //lblVersion.Text = string.Format("V {0}", Config.GetSetting("SageFrameVersion")); SageFrame.Application.Application app = new SageFrame.Application.Application(); lblVersion.Text = string.Format("V {0}", app.FormatShortVersion(app.Version, true)); }
protected void Page_Load(object sender, EventArgs e) { IncludeLanguageJS(); appPath = GetApplicationName; SecurityPolicy objSecurity = new SecurityPolicy(); userName = objSecurity.GetUser(GetPortalID); Extension = SageFrameSettingKeys.PageExtension; if (!IsPostBack) { // BindThemes(); //BindLayouts(); //BindValues(); hlnkDashboard.Visible = false; SageFrameConfig conf = new SageFrameConfig(); string ExistingPortalShowProfileLink = conf.GetSettingValueByIndividualKey(SageFrameSettingKeys.PortalShowProfileLink); lnkAccount.NavigateUrl = GetProfileLink(); if (ExistingPortalShowProfileLink == "1") { lnkAccount.Visible = true; } else { lnkAccount.Visible = false; } SageFrame.Application.Application app = new SageFrame.Application.Application(); lblVersion.Text = string.Format("V {0}", app.FormatShortVersion(app.Version, true)); } hypLogo.NavigateUrl = GetPortalAdminPage(); hypLogo.ImageUrl = appPath + "/Administrator/Templates/Default/images/sagecomers-logoicon.png"; RoleController _role = new RoleController(); string[] roles = _role.GetRoleNames(GetUsername, GetPortalID).ToLower().Split(','); if (roles.Contains(SystemSetting.SUPER_ROLE[0].ToLower()) || roles.Contains(SystemSetting.SITEADMIN.ToLower())) { hlnkDashboard.Visible = true; hlnkDashboard.NavigateUrl = GetPortalAdminPage(); cpanel.Visible = true; AspxAdminNotificationView1.Visible = true; IsAdmin = true; } else { cpanel.Visible = false; } }