protected void Page_Load(object sender, EventArgs e)
        {
            Master.ActivateTab(AdminBaseMasterPage.SectionID.DataImport);

            lblWarning.Text = "";
            lblWarning.Attributes["style"] = "color: #000000;";

            CMSConfigHelper.CleanUpSerialData();
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Master.ActivateTab(AdminBaseMasterPage.SectionID.ContentIndex);

            RedirectIfNoSite();

            CMSConfigHelper.CleanUpSerialData();

            if (!IsPostBack)
            {
                ddlSize.SelectedValue = pagedDataGrid.PageSize.ToString();
            }

            LoadGrid();
        }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Master.ActivateTab(AdminBaseMasterPage.SectionID.BlogIndex);

            RedirectIfNoSite();

            CMSConfigHelper.CleanUpSerialData();

            if (!IsPostBack)
            {
                txtDate.Text = SiteData.CurrentSite.Now.ToShortDateString();
                ContentPage cp = pageHelper.GetLatestPosts(SiteData.CurrentSiteID, 2, false).FirstOrDefault();
                if (cp != null)
                {
                    txtDate.Text = cp.GoLiveDate.ToShortDateString();
                }

                ddlSize.SelectedValue = pagedDataGrid.PageSize.ToString();
            }

            LoadGrid();
        }
Esempio n. 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Master.ActivateTab(AdminBaseMasterPage.SectionID.SiteDashboard);

            if (!IsPostBack)
            {
                CheckDatabase();
            }

            RedirectIfNoSite();

            CMSConfigHelper.CleanUpSerialData();

            phUserSecurity.Visible = SecurityData.IsAdmin;

            litPage.Text = String.Format(" ({0}) ", pageHelper.GetSitePageCount(SiteID, ContentPageType.PageType.ContentEntry));
            litPost.Text = String.Format(" ({0}) ", pageHelper.GetSitePageCount(SiteID, ContentPageType.PageType.BlogEntry));

            litCat.Text = String.Format(" ({0}) ", ContentCategory.GetSiteCount(SiteID));
            litTag.Text = String.Format(" ({0}) ", ContentTag.GetSiteCount(SiteID));

            litSmippet.Text = String.Format(" ({0}) ", pageHelper.GetSiteSnippetCount(SiteID));
        }
Esempio n. 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Master.ActivateTab(AdminBaseMasterPage.SectionID.SiteInfo);

            bNewSite = !SiteData.CurretSiteExists;

            litID.Text = SiteData.CurrentSiteID.ToString();

            if (!IsPostBack)
            {
                CheckDatabase();

                SiteData site = siteHelper.GetCurrentSite();

                if (site == null || !SiteData.CurretSiteExists)
                {
                    site = SiteData.InitNewSite(SiteID);
                }

                ReadOnlyCollection <TimeZoneInfo> timeZones = TimeZoneInfo.GetSystemTimeZones();

                GeneralUtilities.BindList(ddlTimeZone, timeZones, TimeZoneInfo.Local.Id);

                trSiteIndex.Visible = false;

                if (site != null)
                {
                    if (site.GetSitePageCount(ContentPageType.PageType.ContentEntry) > 0)
                    {
                        trSiteIndex.Visible = true;
                    }

                    txtSiteName.Text    = site.SiteName;
                    txtTagline.Text     = site.SiteTagline;
                    txtTitleBar.Text    = site.SiteTitlebarPattern;
                    txtURL.Text         = site.MainURL;
                    txtKey.Text         = site.MetaKeyword;
                    txtDescription.Text = site.MetaDescription;

                    chkHide.Checked             = site.BlockIndex;
                    chkSendTrackback.Checked    = site.SendTrackbacks;
                    chkAcceptTrackbacks.Checked = site.AcceptTrackbacks;

                    txtFolderPath.Text   = site.Blog_FolderPath;
                    txtCategoryPath.Text = site.Blog_CategoryPath;
                    txtTagPath.Text      = site.Blog_TagPath;
                    txtEditorPath.Text   = site.Blog_EditorPath;
                    txtDatePath.Text     = site.Blog_DatePath;

                    GeneralUtilities.SelectListValue(ddlTimeZone, site.TimeZoneIdentifier);

                    GeneralUtilities.SelectListValue(ddlDatePattern, site.Blog_DatePattern);

                    ParentPagePicker.SelectedPage = site.Blog_Root_ContentID;
                }

                phCreatePage.Visible = false;

                if (!SiteData.CurretSiteExists)
                {
                    btnSave.Text         = "Click to Create Site";
                    phCreatePage.Visible = true;
                }
            }

            CMSConfigHelper.CleanUpSerialData();
        }