//----------------------------------------------- //Page_Load //----------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"]; MessagesModuleOptions CurrentMessagesModule = MessagesModuleOptions.GetType(currentModule.MessagesModuleID); ucUpdate.ModuleTypeID = CurrentMessagesModule.ModuleTypeID; ucUpdate.DefaultPagePath = "/AdminCP/Items/" + currentModule.Identifire + "/Messages/default.aspx"; //----------------------------------------------- int messageID = -1; if (MoversFW.Components.UrlManager.ChechIsValidIntegerParameter("id")) { messageID = Convert.ToInt32(Request.QueryString["id"]); } //----------------------------------------------- if (messageID > 0) { MessagesEntity msg = MessagesFactory.GetMessagesObject(messageID, UsersTypes.Admin, SitesHandler.GetOwnerIDAsGuid()); ucUpdate.DefaultPagePath += "?id=" + msg.ToItemID; } //----------------------------------------------- if (!IsPostBack) { this.Page.Title = CurrentMessagesModule.GetModuleTitle() + " - " + DynamicResource.GetMessageModuleText(CurrentMessagesModule, "Module_MessageData"); } }
protected void BuilMessagesDefaultPathesLinks() { MessagesModuleOptions CurrentMessagesModule = (MessagesModuleOptions)HttpStore.Items["CurrentMessagesModule"]; string homeText = (string)HttpContext.GetGlobalResourceObject("Modules", "_Home"); string moduleTitle = CurrentMessagesModule.GetModuleTitle(); this.AddLink(homeText, "/Default.aspx"); this.AddLastTitle(moduleTitle); this.PageTitle = moduleTitle; this.TopHeader = moduleTitle; /* * //------------------------------------------------------ * int moduleDepartment, BaseDepartment = 0; * //------------------------------------------------------ * int categoryID = 0; * if (MoversFW.Components.UrlManager.ChechIsValidIntegerParameter("id")) * { * categoryID = Convert.ToInt32(Request.QueryString["id"]); * } * //------------------------------------------------------ * PathHandler ph = new PathHandler(pc); * ph.GetSiteDepartment(currentModule.ModuleTypeID, out moduleDepartment, out BaseDepartment); * ph.BuildDepartmentsPathLinks(moduleDepartment, false); * ph.BuildCategoriesPathLinks(categoryID, true); * //------------------------------------------------------ * Label lblTitle = (Label)this.Master.FindControl("lblTitle"); * //ItemsFactory.AddTitlePath(pc, lblTitle); * lblTitle.Text = currentModule.GetModuleTitle(); */ }
//----------------------------------------------- //Page_Load //----------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"]; MessagesModuleOptions CurrentMessagesModule = MessagesModuleOptions.GetType(currentModule.MessagesModuleID); ucExport.ModuleTypeID = CurrentMessagesModule.ModuleTypeID; if (!IsPostBack) { this.Page.Title = CurrentMessagesModule.GetModuleTitle() + " - " + DynamicResource.GetMessageModuleText(CurrentMessagesModule, "Module_ExportData"); } }
//----------------------------------------------- //Page_Load //----------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"]; MessagesModuleOptions CurrentMessagesModule = MessagesModuleOptions.GetType(currentModule.MessagesModuleID); ucSendMail.ModuleTypeID = CurrentMessagesModule.ModuleTypeID; ucSendMail.FormMailTo = FormMailToTypes.All; if (!IsPostBack) { this.Page.Title = CurrentMessagesModule.GetModuleTitle() + " - " + Resources.AdminText.SendEmail; } }
//---------------------------------------------------------- #endregion #region ----------------BuildMessagesModuleLinks--------------- //---------------------------------------------------------- //BuildMessagesModuleLinks //---------------------------------------------------------- public string BuildMessagesModuleLinks(int moduleType) { //------------------------------------------------------------------------------------------------ MessagesModuleOptions msgsModule = MessagesModuleOptions.GetType(moduleType); //------------------------------------------------------------------------------------------------ string moduleTitleText = msgsModule.GetModuleTitle(); string categoriesAddText = Resources.Modules.Module_CategoriesAdd; string categoriesDefaultText = Resources.Modules.Module_CategoriesDefault; string exportData = Resources.Modules.Module_ExportData; string newMessageText = Resources.Modules.Module_NewMessage; string allMessageText = Resources.Modules.Module_AllMessage; //------------------------------------------------------------------------------------------------ if (msgsModule.HasSpecialAdminText) { //moduleTitleText = itemsModule.GetModuleTitle(); categoriesAddText = DynamicResource.GetMessageModuleText(msgsModule, "Module_CategoriesAdd"); categoriesDefaultText = DynamicResource.GetMessageModuleText(msgsModule, "Module_CategoriesDefault"); exportData = DynamicResource.GetMessageModuleText(msgsModule, "Module_ExportData"); newMessageText = DynamicResource.GetMessageModuleText(msgsModule, "Module_NewMessage"); allMessageText = DynamicResource.GetMessageModuleText(msgsModule, "Module_AllMessage"); } //------------------------------------------------------------------------------------------------ string links = ""; string folder = msgsModule.Identifire.ToString(); if (ZecurityManager.CheckFolderPermission("/AdminCP/Messages/" + folder + "/")) { links += "<li " + AdditionalLinkClassIfActive("/AdminCP/Messages/" + folder + "/") + "><a href=\"#\"><i class=\"icon-stack2\"></i><span>" + moduleTitleText + "</span></a>"; links += "<ul>"; if (msgsModule.CategoryLevel != 0 && msgsModule.DisplayCategoriesInAdminMenue) { links += "<li " + AdditionalLinkClassIfActive("/Messages/" + folder + "/Cats/Add.aspx") + "><a href=\"/AdminCP/Messages/" + folder + "/Cats/Add.aspx\">" + categoriesAddText + "</a></li>"; links += "<li " + AdditionalLinkClassIfActive("/Messages/" + folder + "/Cats/default.aspx") + "><a href=\"/AdminCP/Messages/" + folder + "/Cats/default.aspx\">" + categoriesDefaultText + "</a></li>"; } links += "<li " + AdditionalLinkClassIfActive("Messages/" + folder + "/New.aspx") + "><a href=\"/AdminCP/Messages/" + folder + "/New.aspx\">" + newMessageText + "</a></li>"; links += "<li " + AdditionalLinkClassIfActive("Messages/" + folder + "/default.aspx") + "><a href=\"/AdminCP/Messages/" + folder + "/default.aspx\">" + allMessageText + "</a></li>"; if (msgsModule.HasExportData) { links += "<li " + AdditionalLinkClassIfActive("/Messages/" + folder + "/Export.aspx") + "><a href=\"/AdminCP/Messages/" + folder + "/Export.aspx\">" + exportData + "</a></li>"; } links += "</ul>"; } return(links); }
//----------------------------------------------- //Page_Load //----------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"]; MessagesModuleOptions CurrentMessagesModule = MessagesModuleOptions.GetType(currentModule.MessagesModuleID); //----------------------------------------------- int itemID = -1; if (MoversFW.Components.UrlManager.ChechIsValidIntegerParameter("id")) { itemID = Convert.ToInt32(Request.QueryString["id"]); } //----------------------------------------------- ucGetAll.ModuleTypeID = CurrentMessagesModule.ModuleTypeID; ucGetAll.ToItemID = itemID; //----------------------------------------------- if (!IsPostBack) { this.Page.Title = CurrentMessagesModule.GetModuleTitle() + " - " + DynamicResource.GetMessageModuleText(CurrentMessagesModule, "Module_AllMessage"); } }