using System; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CMS.CMSHelper; using CMS.GlobalHelper; using CMS.OnlineMarketing; using CMS.UIControls; using CMS.WebAnalytics; using CMS.ExtendedControls; public partial class CMSModules_OnlineMarketing_Pages_Content_ABTesting_ABVariant_List : CMSABTestContentPage { #region "Methods" protected void Page_Load(object sender, EventArgs e) { int nodeID = QueryHelper.GetInteger("nodeID", 0); int testID = QueryHelper.GetInteger("abTestId", 0); pnlDisabled.Visible = true; // Set disabled module info ucDisabledModule.SettingsKeys = "CMSAnalyticsEnabled;CMSABTestingEnabled"; ucDisabledModule.InfoTexts.Add (GetString("WebAnalytics.Disabled") + "
"); ucDisabledModule.InfoTexts.Add(GetString("abtesting.disabled")); ucDisabledModule.ParentPanel = pnlDisabled; listElem.TestID = testID; // Prepare the actions string[,] actions = new string[1,6]; actions[0, 0] = HeaderActions.TYPE_HYPERLINK; actions[0, 1] = ResHelper.GetString("abtesting.variant.new"); actions[0, 3] = ResolveUrl("Edit.aspx?abtestID=" + testID + "&nodeid=" + nodeID); actions[0, 5] = GetImageUrl("Objects/CMS_Variant/add.png"); // Set the actions ICMSMasterPage master = CurrentMaster; master.HeaderActions.Actions = actions; } protected override void OnPreRender(EventArgs e) { //pnlDisabled.Visible = ucDisabledModule.Visible; base.OnPreRender(e); } #endregion }