/// ----------------------------------------------------------------------------- /// <summary> /// Page_Load runs when the control is loaded /// </summary> /// ----------------------------------------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { try { Session["debateProposalsOwnLang"] = CultureInfo.CurrentCulture.Name; // Page.ClientScript.RegisterClientScriptInclude("module.js", this.TemplateSourceDirectory + "/js/module.js"); if (Session["debateProposalsOwnLang"] == null) { Session["debateProposalsOwnLang"] = CultureInfo.CurrentCulture.Name; } if (Request.QueryString["facebook"] != null) { isFacebook = true; } if (!IsPostBack) { int allProposalsTabId = 73; if (isFacebook) { if (CultureInfo.CurrentCulture.Name == "en-GB") { allProposalsTabId = 271; } else if (CultureInfo.CurrentCulture.Name == "el-GR") { allProposalsTabId = 272; } else if (CultureInfo.CurrentCulture.Name == "cs-CZ") { allProposalsTabId = 273; } else if (CultureInfo.CurrentCulture.Name == "de-AT") { allProposalsTabId = 274; } string[] parameters = new string[5] { "forumid=" + 6, "ctl=" + "PostEdit", "action=new", "mid=415", "facebook=1" }; string url = DotNetNuke.Common.Globals.NavigateURL(allProposalsTabId, "", parameters); hprlnk_ProposeTopic.NavigateUrl = url; } else { string[] parameters = new string[4] { "forumid=" + 6, "ctl=" + "PostEdit", "action=new", "mid=415"}; string url = DotNetNuke.Common.Globals.NavigateURL(allProposalsTabId, "", parameters); Ourspace_Utilities.View util = new Ourspace_Utilities.View(); hprlnk_ProposeTopic.NavigateUrl = url.Replace("language/en-GB", "language/" + CultureInfo.CurrentCulture.Name);// 88 hprlnk_ProposeTopic.NavigateUrl = util.ReplaceQueryString(hprlnk_ProposeTopic.NavigateUrl, "language", CultureInfo.CurrentCulture.Name); } //GetTotalProposals(); } //Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "script2", ("/OurSpace/js/ui.selectmenu.js")); if (Request.QueryString["mode"] != null) { pnlThankYou.Visible = true; Ourspace_Utilities.View util = new Ourspace_Utilities.View(); int threadId = util.GetUserLastPostId(UserId); string[] parameters = new string[2] { "threadid=" + threadId, "scope=posts" }; string url = DotNetNuke.Common.Globals.NavigateURL(73, "", parameters); if (hprlnkThankyou != null) { hprlnkThankyou.Visible = true; hprlnkThankyou.NavigateUrl = url; } } if (UserInfo.IsInRole("Administrator")) { pnl_admin.Visible = true; } if (!IsPostBack) { GetTotalProposals(LanguageType.Own); } } catch (Exception exc) //Module failed to load { Exceptions.ProcessModuleLoadException(this, exc); } }