protected void Page_Load(object sender, EventArgs e) { int specialId = BasePage.RequestInt32("SpecialID"); int categoryId = BasePage.RequestInt32("SpecialCategoryID"); string str = BasePage.RequestString("SpecialName"); if (PEContext.Current.Admin.IsSuperAdmin) { this.m_Administrator = true; } if (!base.IsPostBack) { this.DropRescentQuery.SelectedValue = BasePage.RequestStringToLower("ListType"); this.HdnListType.Value = BasePage.RequestStringToLower("ListType"); this.HdnStatus.Value = BasePage.RequestStringToLower("status", "100"); if (!string.IsNullOrEmpty(str)) { this.SmpNavigator.AdditionalNode = this.InitSiteMapCategory(categoryId) + " >> " + str; } else { this.SmpNavigator.AdditionalNode = this.InitSiteMapCategory(categoryId); } } if (!this.m_Administrator) { if (specialId > 0) { this.m_IsManage = RolePermissions.AccessCheckSpecialPermission(OperateCode.SepcialContentManage, specialId); } else if (categoryId > 0) { foreach (SpecialCommonModelInfo info in ContentManage.GetCommonModelInfoListBySpecialIdOrSpecialCategoryId(0, 0, 0, categoryId, ContentSortType.None, 100)) { if (RolePermissions.AccessCheckSpecialPermission(OperateCode.SepcialContentManage, info.SpecialId)) { this.m_IsManage = true; break; } } } else { this.m_IsManage = RolePermissions.AccessCheckSpecialPermission(OperateCode.SepcialContentManage, -1); } if (!this.m_IsManage) { this.EBtnDelete.Enabled = false; this.EBtnAddToSpecial.Enabled = false; this.EBtnMoveToOtherSpecial.Enabled = false; } } }