예제 #1
0
        protected virtual void BindActionsListUI()
        {
            HyperLink lnkConfigure      = Utilities.CreateHyperLink("Configure", "Configure.aspx");
            HyperLink lnkSkins          = Utilities.CreateHyperLink("Skins", "Skins.aspx");
            HyperLink lnkCustomize      = Utilities.CreateHyperLink("Meta Tags", "Customize.aspx");
            HyperLink lnkPreferences    = Utilities.CreateHyperLink("Preferences", "Preferences.aspx");
            HyperLink lnkSyndication    = Utilities.CreateHyperLink("Syndication", "Syndication.aspx");
            HyperLink lnkComments       = Utilities.CreateHyperLink("Comments", "Comments.aspx");
            HyperLink linkKeyWords      = Utilities.CreateHyperLink("Key Words", "EditKeyWords.aspx");
            HyperLink lnkSecurity       = Utilities.CreateHyperLink("Security", "Security.aspx");
            HyperLink lnkImportExport   = Utilities.CreateHyperLink("Import/Export", "ImportExport.aspx");
            HyperLink lnkFullTextSearch = Utilities.CreateHyperLink("FullText Search", "FullTextSearch.aspx");


            // Add the buttons to the PageContainer.
            AdminMasterPage.ClearActions();
            AdminMasterPage.AddToActions(lnkConfigure);
            AdminMasterPage.AddToActions(lnkSkins);
            AdminMasterPage.AddToActions(lnkComments);
            AdminMasterPage.AddToActions(lnkSyndication);
            AdminMasterPage.AddToActions(lnkSecurity);
            AdminMasterPage.AddToActions(linkKeyWords);
            AdminMasterPage.AddToActions(lnkCustomize);
            AdminMasterPage.AddToActions(lnkPreferences);
            AdminMasterPage.AddToActions(lnkImportExport);
            AdminMasterPage.AddToActions(lnkFullTextSearch);
        }
    protected void Page_Load(object sender, EventArgs e)
    {
        AdminMasterPage.InitPage(this, "Start page", false);
        int articleId = Utils.GetArticleId(this);

        ucArticles.InitControl(articleId, 10, true);
    }
예제 #3
0
    public static Log InitPage(Page page, string title, bool enableExcelReport)
    {
        page.Title = "Administration - " + title;
        AdminMasterPage mp = page.Master as AdminMasterPage;

        mp.log            = new Log(page);
        mp.ucHeader.Title = title;
//!!!		mp.hlExcelExport.Visible = enableExcelReport;
        return(mp.Log);
    }
예제 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         log = AdminMasterPage.InitPage(this, "Upload image");
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
예제 #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         log = AdminMasterPage.InitPage(this, "You are not authorized to view the page.");
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     log = AdminMasterPage.InitPage(this, "Candidates", true);
     try
     {
         int articleId = RequestUtils.GetArticleId(this);
         this.SqlDataSource1.SelectParameters["PositionId"].DefaultValue = articleId.ToString();
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
예제 #7
0
        protected override void OnLoad(EventArgs e)
        {
            if (Page.Master != null)
            {
                body = AdminMasterPage.FindControl("AdminSection") as HtmlGenericControl;
            }

            if (!IsPostBack)
            {
                ControlHelper.ApplyRecursively(SetTextBoxStyle, this);
                ControlHelper.ApplyRecursively(SetButtonStyle, this);
                DataBind();
            }
            base.OnLoad(e);
        }
예제 #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         log        = AdminMasterPage.InitPage(this, "Album photo");
         pageHelper = new PageHelper(this);
         if (!IsPostBack)
         {
             LoadData();
         }
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
예제 #9
0
        private void BindLocalUI()
        {
            LinkButton lkbNewLink = Utilities.CreateLinkButton("New Link");

            lkbNewLink.Click           += lkbNewLink_Click;
            lkbNewLink.CausesValidation = false;
            AdminMasterPage.AddToActions(lkbNewLink);
            HyperLink lnkEditCategories = Utilities.CreateHyperLink(Resources.Label_EditCategories,
                                                                    string.Format(CultureInfo.InvariantCulture,
                                                                                  "{0}?{1}={2}",
                                                                                  Constants.URL_EDITCATEGORIES,
                                                                                  Keys.QRYSTR_CATEGORYTYPE,
                                                                                  CategoryType.LinkCollection));

            AdminMasterPage.AddToActions(lnkEditCategories);
        }
예제 #10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         log = AdminMasterPage.InitPage(this, "Edit article");
         int ar = RequestUtils.GetArticleId(this);
         if (ar != 0)
         {
             ucArticleParams.InitControl(ar);
         }
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
예제 #11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         log        = AdminMasterPage.InitPage(this, "Messages log", true);
         gridHelper = new GridHelper(this, gridView);
         if (!IsPostBack)
         {
             LoadData();
         }
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         log        = AdminMasterPage.InitPage(this, "Poll answer");
         pageHelper = new PageHelper(this);
         if (!IsPostBack)
         {
             LoadData();
         }
         ucPollAnswer.InitControl(pollAnswer);
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     log = AdminMasterPage.InitPage(this, "Positions", true);
     try
     {
         int articleId = 0;
         using (var conn = Global.CreateConnection())
         {
             articleId = Article.GetArticleId(conn, "Positions");
         }
         ucPositions.InitControl(articleId, 20, true);
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
예제 #14
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         log        = AdminMasterPage.InitPage(this, "Edit article");
         pageHelper = new PageHelper(this);
         if (!IsPostBack)
         {
             LoadData();
             //				PrivateMasterPage.InitPage(this, user.Id == 0 ? "Add пользователя" : "Пользователь", false);
         }
         ucArticle.InitControl(article);
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
예제 #15
0
        private void BindLocalUI()
        {
            // REFACTOR: we're duplicating this in both Articles and Posts for the sake
            // of wireup. There's a structural issue btw Page and Container.
            LinkButton lkbNewPost = Utilities.CreateLinkButton("New Article");

            lkbNewPost.CausesValidation = false;
            lkbNewPost.Click           += lkbNewPost_Click;
            AdminMasterPage.AddToActions(lkbNewPost);

            // REFACTOR: Structural issue btw Page and Container.
            HyperLink lnkEditCategories = Utilities.CreateHyperLink(Resources.Label_EditCategories,
                                                                    string.Format(CultureInfo.InvariantCulture,
                                                                                  "{0}?{1}={2}",
                                                                                  Constants.URL_EDITCATEGORIES,
                                                                                  Keys.QRYSTR_CATEGORYTYPE,
                                                                                  categoryLinks.CategoryType));

            AdminMasterPage.AddToActions(lnkEditCategories);
        }
예제 #16
0
 protected void Page_Load(object sender, EventArgs e)
 {
     log = AdminMasterPage.InitPage(this, "Control panel", false);
 }