示例#1
0
        private void Load_Normal_Page(string PageIndexID)
        {
            // Check Properties

            // Check Security
            if (!Security.Users.UserStatus.Validate_PageAuth_View(this.Page))
            {
                Security.Pages.PrivacyMgr myPrivacyMgr           = new Security.Pages.PrivacyMgr();
                string _inherited_pageindexid                    = myPrivacyMgr.Get_Inherited_Privacy_PageIndexID(PageIndexID);
                Security.Pages.Page_PrivacyURL myPage_PrivacyURL = myPrivacyMgr.Get_Page_PrivacyURL(_inherited_pageindexid);
                Response.Redirect(myPage_PrivacyURL.ReturnURL);
            }

            // Load Pages Template
            Nexus.Core.Pages.Page_PropertyMgr myPropertyMgr = new Nexus.Core.Pages.Page_PropertyMgr();
            myPage_Loading_Info = myPropertyMgr.Get_Page_Loading_Info(PageIndexID);

            // Get MasterPageID
            //_master_pageindexid = myPage_Loading_Info.MasterPageIndexID;

            //this.StyleSheetTheme = myPage_Loading_Info.Theme;
            this.Theme          = myPage_Loading_Info.Theme;
            this.MasterPageFile = myPage_Loading_Info.MasterPage_URL;

            this.Title = myPage_Loading_Info.Page_Title;
        }
示例#2
0
        protected override void OnPreInit(EventArgs e)
        {
            //myPage_Loading_Info = new Nexus.Core.Pages.Page_Loading_Info();

            // Check _pageindexid
            string _masterpageindexid = Request["MasterPageIndexID"];

            if (DataEval.IsEmptyQuery(_masterpageindexid))
            {
                // URLrewrite
                _masterpageindexid = "1";
            }

            // Check MasterPage Exist
            MasterPageMgr myMasterPageMgr = new MasterPageMgr();

            myMasterPageIndex = myMasterPageMgr.Get_MasterPageIndex(_masterpageindexid);

            // Get MasterPage Loading Info
            Nexus.Core.Pages.Page_PropertyMgr myPropertyMgr = new Nexus.Core.Pages.Page_PropertyMgr();
            myPage_Loading_Info = myPropertyMgr.Get_MasterPage_Loading_Info(_masterpageindexid);

            // Get Master PageID
            if (!DataEval.IsEmptyQuery(Request["MasterPageID"]))
            {
                myPage_Loading_Info.MasterPageID = Request["MasterPageID"];
            }

            // Check Properties

            // Check Security

            // Apply Them and MasterPage
            ThemeMgr myThemeMgr = new ThemeMgr();
            Theme    myTheme    = myThemeMgr.Get_Theme(myMasterPageIndex.ThemeID);

            this.Theme = myTheme.Theme_Code;

            TemplateMgr         myTemplateMgr         = new TemplateMgr();
            Template_MasterPage myTemplate_MasterPage = myTemplateMgr.Get_Template_MasterPage(myMasterPageIndex.Template_MasterPageID);

            this.MasterPageFile = myTemplate_MasterPage.MasterPage_URL;

            this.Title = myMasterPageIndex.MasterPage_Name;

            base.OnPreInit(e);
        }
示例#3
0
    protected override void OnPreInit(EventArgs e)
    {
        //myPage_Loading_Info = new Nexus.Core.Pages.Page_Loading_Info();

        // Check _pageindexid
        string _pageindexid = Request["PageIndexID"];

        if (DataEval.IsEmptyQuery(_pageindexid))
        {
            // URLrewrite
            _pageindexid = "1";
        }

        // Check PageIxist
        PageEditorMgr myPageEditorMgr = new PageEditorMgr();
        Page_Lock     myPage_Lock     = myPageEditorMgr.Get_Page_Lock(_pageindexid);

        // Check Properties

        // Check Security

        // Load Pages Template
        Nexus.Core.Pages.Page_PropertyMgr myPropertyMgr = new Nexus.Core.Pages.Page_PropertyMgr();

        myPage_Loading_Info = myPropertyMgr.Get_Page_Lock_Loading_Info(_pageindexid);

        // Get MasterPageID
        //_master_pageindexid = myPage_Loading_Info.MasterPageIndexID;

        //this.StyleSheetTheme = myPage_Loading_Info.Theme;
        this.Theme          = myPage_Loading_Info.Theme;
        this.MasterPageFile = myPage_Loading_Info.MasterPage_URL;

        this.Title = myPage_Loading_Info.Page_Title;

        base.OnPreInit(e);
    }