protected void Page_Load(object sender, EventArgs e) { if (!Membertask.IsAdministrator() && Membertask.IsTaonoidung() == string.Empty) { Response.Redirect(Globals.UrlRoot); } }
protected void Page_Load(object sender, EventArgs e) { string sLang = Globals.CurrentLang; if (sLang == "vn") { sLang = "vi"; test_lang = 1; } else { test_lang = 2; } group = new Groups(0); if (!this.IsPostBack) { // Set Editor Globals.CKEditor(txtContent); // End Set Editor txtFileImages.Attributes.Add("style", "Width:250px"); //tbxWidth.Attributes.Add("style", "Width:50px"); //tbxHeight.Attributes.Add("style", "Width:50px"); //ltlWidth.Text = Language.GetTextByID(231); //ltlHeight.Text = Language.GetTextByID(232); imgIconHeader.ImageUrl = Globals.UrlImages + "icon_menu1.gif";; ltlHeader.Text = Language.GetTextByID(159); ltlNote.Text = Language.GetTextByID(28); ltlRequireTitle.Text = "Nhập đầy đủ các trường bắt buộc!"; ltlRequireGroup.Text = Language.GetTextByID(94); rdpPublishDate.SelectedDate = DateTime.Now; ltlRequireContent.Text = Language.GetTextByID(36); BtPost.Text = Language.GetTextByID(218); if (Membertask.IsAdministrator() || (Membertask.IsTaonoidung() != string.Empty && Membertask.IsPostOn() != string.Empty)) { BtPost.Visible = true; } else { BtPost.Visible = false; } //Trees view treeview1.ShowCheckBoxes = TreeNodeTypes.All; treeview1.ShowLines = true; treeview1.ExpandDepth = 0; BildRoot(treeview1); } }
protected void Page_Load(object sender, EventArgs e) { string sLang = Globals.CurrentLang; if (sLang == "vn") { sLang = "vi"; test_lang = 1; } else { test_lang = 2; } group = new Groups(1); if (!this.IsPostBack) { Globals.CKEditor(txtContent); ltlGroup.Text = Language.GetTextByID(91); ltlNote.Text = Language.GetTextByID(28); ltlRequireTitle.Text = "Nhập đầy đủ các trường bắt buộc"; ltlGroup.Text = Language.GetTextByID(91); ltlRequireGroup.Text = Language.GetTextByID(94); rdpPublishDate.SelectedDate = DateTime.Now; ltlRequireContent.Text = Language.GetTextByID(36); BtPost.Text = Language.GetTextByID(218); if (Membertask.IsAdministrator() || (Membertask.IsTaonoidung() != string.Empty && Membertask.IsPostOn() != string.Empty)) { BtPost.Visible = true; } else { BtPost.Visible = false; } //Trees view treeview1.ShowCheckBoxes = TreeNodeTypes.All; treeview1.ShowLines = true; treeview1.ExpandDepth = 1; BildRoot(treeview1); // Hoivien //BuildHoivien(group.GetHoiVien()); } }