Exemplo n.º 1
0
    //-----------------------------------------------
    #endregion
    #region ---------------SetTexts---------------
    //-----------------------------------------------
    //SetTexts
    //-----------------------------------------------
    private void SetTexts()
    {
        if (TypeOfDetails == DetailsTypes.SiteDepartment)
        {
            lblTitle.Text            = Resources.SiteDepartments.Title;
            lblShortDescription.Text = Resources.SiteDepartments.ShortDescription;
            lblDetails.Text          = Resources.SiteDepartments.Details;
            lblMetaKeyWords.Text     = Resources.SiteDepartments.MetaKeyWords;
        }

        else
        {
            int    id   = currentModule.ModuleTypeID;
            string res  = currentModule.ResourceFile;
            string dres = currentModule.DefaultResourceFile;

            lblTitle.Text            = DynamicResource.GetText(currentModule, "Title");
            lblShortDescription.Text = DynamicResource.GetText(currentModule, "ShortDescription");
            lblDetails.Text          = DynamicResource.GetText(currentModule, "Details");
            lblAuthorName.Text       = DynamicResource.GetText(currentModule, "AuthorName");
            lblAddress.Text          = DynamicResource.GetText(currentModule, "Address");
            lblExtraText_1.Text      = DynamicResource.GetText(currentModule, "ExtraText_1");
            lblMetaKeyWords.Text     = DynamicResource.GetText(currentModule, "MetaKeyWords");
        }
        //-----------------------------------------------
    }
Exemplo n.º 2
0
            public void ibtnVote_Click(object sender, ImageClickEventArgs e)
            {
                if (!Page.IsValid)
                {
                    return;
                }
                //-----------------------------------------------------------
                LoadControls();
                //-----------------------------------------------------------

                if (SiteSettings.Vote_CloseDuplicateVotingByCookie && Request.Cookies["VoteCookie" + QuesID] != null)
                {
                    lblResult.CssClass = "lblResult_Faild";
                    lblResult.Text     = DynamicResource.GetText("Vote", "YouAlreadyVoted");
                }
                else
                {
                    Response.Cookies.Set(new HttpCookie("VoteCookie" + QuesID, "DefaultValue" + QuesID));
                    Response.Cookies["VoteCookie"].Expires = DateTime.Now.AddYears(1);
                    int answerId = Convert.ToInt32(rbtlAnswers.SelectedValue);
                    if (answerId > 0)
                    {
                        VoteAnswersFactory.IncreaseHits(QuesID, answerId);
                        lblResult.CssClass        = "lblResult_Done";
                        lblResult.Text            = DynamicResource.GetText("Vote", "Thanks4Voting");
                        rbtlAnswers.Enabled       = false;
                        rbtlAnswers.SelectedIndex = -1;
                        GenScript();
                        //Response.Redirect("/Website/AdditionalModules/Vote/default.aspx?id=" + QuesID);
                    }
                }
            }
Exemplo n.º 3
0
    //-----------------------------------------------
    #endregion

    #region ---------------SetTexts---------------
    //-----------------------------------------------
    //SetTexts
    //-----------------------------------------------
    private void SetTexts()
    {
        lblCategoryID.Text     = DynamicResource.GetText(currentModule, "CategoryID");
        lblPhotoExtension.Text = DynamicResource.GetText(currentModule, "PhotoExtension");
        lblFileExtension.Text  = DynamicResource.GetText(currentModule, "FileExtension");
        lblUrl.Text            = DynamicResource.GetText(currentModule, "Url");
        lblEmail.Text          = DynamicResource.GetText(currentModule, "Email");
        lblIsMain.Text         = DynamicResource.GetText(currentModule, "IsMain");

        lblSpecialOption.Text = DynamicResource.GetText(currentModule, "SpecialOption");

        lblIsAvailable.Text = DynamicResource.GetText(currentModule, "IsAvailable");

        lblVideoExtension.Text  = DynamicResource.GetText(currentModule, "VideoExtension");
        lblAudioExtension.Text  = DynamicResource.GetText(currentModule, "AudioExtension");
        lblPriority.Text        = DynamicResource.GetText(currentModule, "Priority");
        lblPhoto2Extension.Text = DynamicResource.GetText(currentModule, "Photo2Extension");
        //-----------------------------------------------
        lblHeight.Text      = DynamicResource.GetText(currentModule, "Height");
        lblWidth.Text       = DynamicResource.GetText(currentModule, "Width");
        lblItemDate.Text    = DynamicResource.GetText(currentModule, "ItemDate");
        lblItemEndDate.Text = DynamicResource.GetText(currentModule, "ItemEndDate");
        lblMailBox.Text     = DynamicResource.GetText(currentModule, "MailBox");
        lblZipCode.Text     = DynamicResource.GetText(currentModule, "ZipCode");
        lblTels.Text        = DynamicResource.GetText(currentModule, "Tels");
        lblFax.Text         = DynamicResource.GetText(currentModule, "Fax");
        lblMobile.Text      = DynamicResource.GetText(currentModule, "Mobile");
        //-----------------------------------------------
        //Available Extension
        lblPhotoAvailableExtension.Text  = currentModule.PhotoAvailableExtension.Replace(".", "");
        lblPhoto2AvailableExtension.Text = currentModule.Photo2AvailableExtension.Replace(".", "");
        lblFileAvailableExtension.Text   = currentModule.FileAvailableExtension.Replace(".", "");
        lblAudioAvailableExtension.Text  = currentModule.AudioAvailableExtension.Replace(".", "");
        lblVideoAvailableExtension.Text  = currentModule.VideoAvailableExtension.Replace(".", "");
        //-----------------------------------------------
        lblYoutubeCode.Text = DynamicResource.GetText(currentModule, "YoutubeCode");
        lblAuthorID.Text    = DynamicResource.GetText(currentModule, "AuthorID");
        //-----------------------------------------------
        lblPrice.Text            = DynamicResource.GetText(currentModule, "Price");
        lblGoogleLatitude.Text   = DynamicResource.GetText(currentModule, "GoogleLatitude");
        lblGoogleLongitude.Text  = DynamicResource.GetText(currentModule, "GoogleLongitude");
        lblOnlyForRegisered.Text = DynamicResource.GetText(currentModule, "OnlyForRegisered");
        //----------------
        cbPublishPhoto.Text  = DynamicResource.GetText(currentModule, "PublishPhoto");
        cbPublishPhoto2.Text = DynamicResource.GetText(currentModule, "PublishPhoto2");
        cbPublishFile.Text   = DynamicResource.GetText(currentModule, "PublishFile");
        cbPublishAudio.Text  = DynamicResource.GetText(currentModule, "PublishAudio");
        cbPublishVideo.Text  = DynamicResource.GetText(currentModule, "PublishVideo");
        cbPublishYoutbe.Text = DynamicResource.GetText(currentModule, "PublishYoutbe");
        //-----------------------------------------------
        //Visitors Participations
        lblSenderName.Text    = DynamicResource.GetText(currentModule, "SenderName");
        lblSenderEMail.Text   = DynamicResource.GetText(currentModule, "SenderEMail");
        lblSenderCountry.Text = DynamicResource.GetText(currentModule, "SenderCountry");
        //-----------------------------------------------
        lblType.Text = DynamicResource.GetText(currentModule, "Type");
        //-----------------------------------------------
        lblIcon.Text = DynamicResource.GetText(currentModule, "Icon");
    }
Exemplo n.º 4
0
    //-----------------------------------------------
    #endregion

    #region ---------------SetTexts---------------
    //-----------------------------------------------
    //SetTexts
    //-----------------------------------------------
    private void SetTexts()
    {
        dgItems.Columns[1].HeaderText = DynamicResource.GetText(currentModule, "Title");
        dgItems.Columns[2].HeaderText = DynamicResource.GetText(currentModule, "PhotoExtension");
        dgItems.Columns[8].HeaderText = DynamicResource.GetText(currentModule, "RequestTotalCount");
        dgItems.Columns[9].HeaderText = DynamicResource.GetText(currentModule, "RequestNewCount");
        lblCategoryID.Text            = DynamicResource.GetText(currentModule, "CategoryID");
    }
Exemplo n.º 5
0
        public static bool ContactUS(ContactUsModel model, out string resultMessage)
        {
            int moduleTypeID = 501;
            MessagesModuleOptions currentMessageModule = MessagesModuleOptions.GetType(moduleTypeID);
            //Preparing admin notification email
            string         mailBody = "<table style='width:auto; direction:" + DynamicResource.GetText("Lang", "Dir") + "'>";
            MessagesEntity msg      = new MessagesEntity();

            //-------------------------------------
            msg.ModuleTypeID = moduleTypeID;
            //--------------------------------------------------------------------------
            msg.Name    = model.Name;
            mailBody   += string.Format(rowTemplate, DynamicResource.GetMessageModuleText(currentMessageModule, "Name"), msg.Name);
            msg.EMail   = model.Email;
            mailBody   += string.Format(rowTemplate, DynamicResource.GetMessageModuleText(currentMessageModule, "Email"), msg.EMail);
            msg.Details = model.Message;
            mailBody   += string.Format(rowTemplate, DynamicResource.GetMessageModuleText(currentMessageModule, "Details"), model.Message);
            //-------------------------------------
            msg.LangID = SiteSettings.GetCurrentLanguage();
            bool createMessageFolder = (currentMessageModule.HasFileExtension || currentMessageModule.HasPhotoExtension || currentMessageModule.HasPhoto2Extension || currentMessageModule.HasVideoExtension || currentMessageModule.HasAudioExtension);
            bool status = MessagesFactory.Create(msg, createMessageFolder);

            if (status)
            {
                //-------------------------------------------------------------------------
                //RegisterInMailList
                if ((currentMessageModule.MailListAutomaticRegistration || (msg.HasEmailService)) && !string.IsNullOrEmpty(msg.EMail))
                {
                    MessagesFactory.RegisterInMailList(msg);
                }
                //------------------------------------------------------------------------
                //RegisterInSms
                if ((currentMessageModule.SmsAutomaticRegistration || (msg.HasSmsService)) && !string.IsNullOrEmpty(msg.Mobile))
                {
                    MessagesFactory.RegisterInSms(msg);
                }
                //------------------------------------------------------------------------
                //------------------------------------------------------------------------
                if (SiteSettings.Admininstration_HasAdminEmail)
                {
                    try
                    {
                        string subject = DynamicResource.GetMessageModuleText(currentMessageModule, "NewMessageRecieved");
                        SendMailToSiteAdmin(subject, mailBody);
                    }
                    catch (Exception exc)
                    {
                    }
                }
                //------------------------------------------------------------------------
                resultMessage = DynamicResource.GetMessageModuleText(currentMessageModule, "SendinogOperationDone");
            }
            else
            {
                resultMessage = DynamicResource.GetMessageModuleText(currentMessageModule, "SendinogOperationFaild");
            }
            return(status);
        }
Exemplo n.º 6
0
 public string GetAuther(object Auther)
 {
     if (Auther.ToString().Length > 0)
     {
         return("<br/><font style='color:black;font-weight:normal;'><b> " + DynamicResource.GetText(currentModule, "AuthorName") + " : </b></font><b>" + Auther.ToString() + "</b>");
     }
     else
     {
         return("");
     }
 }
Exemplo n.º 7
0
        //-----------------------------------------------------------

        #region ---------------SetTexts---------------
        //-----------------------------------------------
        //SetTexts
        //-----------------------------------------------
        private void SetTexts()
        {
            //---------------------------------------------------------------------------------
            lblName.Text    = DynamicResource.GetText("ItemsOrders", "CustomerName");
            lblEmail.Text   = DynamicResource.GetText("ItemsOrders", "CustomerEmail");
            lblTel.Text     = DynamicResource.GetText("ItemsOrders", "CustomerPhone");
            lblMobile.Text  = DynamicResource.GetText("ItemsOrders", "CustomerMobile");
            lblAddress.Text = DynamicResource.GetText("ItemsOrders", "CustomerAddress");
            lblComment.Text = DynamicResource.GetText("ItemsOrders", "Comment");
            //---------------------------------------------------------------------------------
        }
Exemplo n.º 8
0
 //-----------------------------------------------------------
 protected void ibtnLogin_Click(object sender, ImageClickEventArgs e)
 {
     if (Membership.ValidateUser(txtUserName.Text, txtPassword.Text))
     {
         MembershipUser user = Membership.GetUser(txtUserName.Text);
         FormsAuthentication.SetAuthCookie(txtUserName.Text, cbRememberMe.Checked);
         Response.Redirect("/WebSite/User/Agency.aspx");
     }
     else
     {
         lblResult.Text = DynamicResource.GetText("MemberShip", "LoginFailed");
     }
 }
Exemplo n.º 9
0
    //--------------------------------------------------------
    #endregion

    #region --------------Load_ddlType()--------------
    //---------------------------------------------------------
    //Load_ddlType
    //---------------------------------------------------------
    protected void Load_ddlType()
    {
        ddlType.Items.Insert(0, new ListItem(Resources.User.Choose, "-1"));
        string text = "";
        string id   = "";

        for (int i = 1; i <= currentModule.TypesCount; i++)
        {
            id   = i.ToString();
            text = DynamicResource.GetText(currentModule, "Type_" + i);
            ddlType.Items.Add(new ListItem(text, id));
        }
    }
        //--------------------------------------------------------------------------------
        public string GetEducationLevelText(object educationLevel)
        {
            string el = educationLevel.ToString();

            if (el != "0")
            {
                return(DynamicResource.GetText("Motakhasesen", "EducationLevel_" + el));
            }
            else
            {
                return("");
            }
        }
Exemplo n.º 11
0
 //-----------------------------------------------------------
 protected void Page_Load(object sender, EventArgs e)
 {
     //-----------------------------------------------------------
     CatchControls();
     Prepare();
     //-----------------------------------------------------------
     lblResult.Text = "";
     if (!IsPostBack)
     {
         ibtnEmailSubscripe.AlternateText = DynamicResource.GetText("MailList", "SubscripeBtnText");
         rxvEmail.Text = DynamicResource.GetText("MailList", "InvalidEmail");
         rxvEmail.ValidationExpression = DCValidation.GetEmailExpression();
     }
 }
Exemplo n.º 12
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"];

        ucComments.ModuleTypeID = currentModule.ModuleTypeID;
        if (currentModule.HasSpecialAdminText)
        {
            this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + DynamicResource.GetText(currentModule, "Module_CommentsInactive");
        }
        else
        {
            this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.Module_CommentsInactive;
        }
    }
Exemplo n.º 13
0
    //--------------------------------------------------------
    #endregion

    #region --------------GetActivitiesIDText--------------
    //---------------------------------------------------------
    //GetActivitiesIDText
    //---------------------------------------------------------
    protected string GetActivitiesIDText(object ActivitiesID)
    {
        string text = "";

        if (ActivitiesID != null && ActivitiesID.ToString().Length > 0)
        {
            text = DynamicResource.GetText("UsersData", "ActivitiesID_" + ActivitiesID);
        }
        if (string.IsNullOrEmpty(text))
        {
            text = "";
        }
        return(text);
    }
Exemplo n.º 14
0
    //---------------------------------------------------------
    //GetJobIDText
    //---------------------------------------------------------
    protected string GetJobIDText(object job)
    {
        string text = "";

        if (job != null && job.ToString().Length > 0)
        {
            text = DynamicResource.GetText("UsersData", "Job_" + job);
        }
        if (string.IsNullOrEmpty(text))
        {
            text = "";
        }
        return(text);
    }
Exemplo n.º 15
0
            protected void SendEmail(MailListUsersEntity user)
            {
                // prepare message
                string body = string.Format(DynamicResource.GetText("MailList", "ActivationMailBody"), new string[3] {
                    SitesHandler.GetSiteDomain(), Encryption.Encrypt(user.UserID.ToString()), user.Email
                });
                //string from =MailListEmailsFactory.MailFrom;
                MailListEmailsEntity mail = new MailListEmailsEntity();

                mail.Subject = DynamicResource.GetText("MailList", "ActivationMailSubject");
                mail.Body    = body;
                mail.To.Add(user.Email);
                MailListEmailsFactory.Send(mail);
            }
Exemplo n.º 16
0
            //-----------------------------------------------
            #endregion

            protected void ibtnSmsSubscripe_Click(object sender, ImageClickEventArgs e)
            {
                //-------------------------------------
                if (!Page.IsValid)
                {
                    return;
                }
                //-------------------------------------
                if (txtMobileNo.Text.Trim() == "")
                {
                    Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "a", "alert('" + DynamicResource.GetText("SMS", "EnterNo") + "')", true);
                    return;
                }
                SMSNumbersEntity newNumber = new SMSNumbersEntity();

                newNumber.Numbers = txtMobileNo.Text;
                //newNumber.IsActive = true;
                ExecuteCommandStatus status = SMSNumbersFactory.Create(newNumber);

                if (status == ExecuteCommandStatus.Done)
                {
                    lblResult.CssClass = "operation_done";
                    lblResult.Text     = DynamicResource.GetText("SMS", "Done");
                    try
                    {
                        if ((SmsWebService.WebMethods.SendMessage(ConfigurationManager.AppSettings["SMSKey"], DynamicResource.GetText("SMS", "Welcome"), txtMobileNo.Text)) != SmsWebService.SMSSendStatus.Sent)
                        {
                            //resultMsg += DynamicResource.GetText("SMS","Error");
                        }
                    }
                    catch { }
                    txtMobileNo.Text = "";
                }
                else if (status == ExecuteCommandStatus.AllreadyExists)
                {
                    lblResult.CssClass = "operation_error";
                    lblResult.Text     = DynamicResource.GetText("SMS", "ExistBefor");
                }
                else
                {
                    lblResult.CssClass = "operation_error";
                    lblResult.Text     = DynamicResource.GetText("SMS", "ExistBefor");
                }
            }
Exemplo n.º 17
0
    //-----------------------------------------------
    #endregion

    #region ---------------SetTexts---------------
    //-----------------------------------------------
    //SetTexts
    //-----------------------------------------------
    private void SetTexts()
    {
        //------------------------------------------------------------------------------
        lblCategoryID.Text = DynamicResource.GetText(currentModule, "CategoryID");
        //------------------------------------------------------------------------------
        lblIsMain.Text      = DynamicResource.GetText(currentModule, "IsMain");
        lblIsAvailable.Text = DynamicResource.GetText(currentModule, "IsAvailable");
        lblPriority.Text    = DynamicResource.GetText(currentModule, "Priority");
        //------------------------------------------------------------------------------
        lblPhotoExtension.Text  = DynamicResource.GetText(currentModule, "PhotoExtension");
        lblPhoto2Extension.Text = DynamicResource.GetText(currentModule, "Photo2Extension");
        lblFileExtension.Text   = DynamicResource.GetText(currentModule, "FileExtension");
        lblVideoExtension.Text  = DynamicResource.GetText(currentModule, "VideoExtension");
        lblAudioExtension.Text  = DynamicResource.GetText(currentModule, "AudioExtension");
        //------------------------------------------------------------------------------
        lblHeight.Text = DynamicResource.GetText(currentModule, "Height");
        lblWidth.Text  = DynamicResource.GetText(currentModule, "Width");
        //------------------------------------------------------------------------------
        lblItemDate.Text = DynamicResource.GetText(currentModule, "ItemDate");
        //------------------------------------------------------------------------------
        //Available Extension
        lblPhotoAvailableExtension.Text  = currentModule.CategoryPhotoAvailableExtension.Replace(".", "");
        lblPhoto2AvailableExtension.Text = currentModule.CategoryPhoto2AvailableExtension.Replace(".", "");
        lblFileAvailableExtension.Text   = currentModule.CategoryFileAvailableExtension.Replace(".", "");
        lblAudioAvailableExtension.Text  = currentModule.CategoryAudioAvailableExtension.Replace(".", "");
        lblVideoAvailableExtension.Text  = currentModule.CategoryVideoAvailableExtension.Replace(".", "");
        //------------------------------------------------------------------------------
        lblYoutubeCode.Text = DynamicResource.GetText(currentModule, "CategoryYoutubeCode");
        //------------------------------------------------------------------------------
        lblGoogleLatitude.Text   = DynamicResource.GetText(currentModule, "GoogleLatitude");
        lblGoogleLongitude.Text  = DynamicResource.GetText(currentModule, "GoogleLongitude");
        lblOnlyForRegisered.Text = DynamicResource.GetText(currentModule, "OnlyForRegisered");
        //------------------------------------------------------------------------------
        cbPublishPhoto.Text  = DynamicResource.GetText(currentModule, "PublishPhoto");
        cbPublishPhoto2.Text = DynamicResource.GetText(currentModule, "PublishPhoto2");
        cbPublishFile.Text   = DynamicResource.GetText(currentModule, "PublishFile");
        cbPublishAudio.Text  = DynamicResource.GetText(currentModule, "PublishAudio");
        cbPublishVideo.Text  = DynamicResource.GetText(currentModule, "PublishVideo");
        cbPublishYoutbe.Text = DynamicResource.GetText(currentModule, "PublishYoutbe");
        //------------------------------------------------------------------------------
    }
Exemplo n.º 18
0
            protected void ibtnEmailSubscripe_Click(object sender, ImageClickEventArgs e)
            {
                //-------------------------------------
                if (!Page.IsValid)
                {
                    return;
                }
                //-------------------------------------
                MailListUsersEntity  mailListUsers;
                ExecuteCommandStatus status;
                Languages            langID = SiteSettings.GetCurrentLanguage();

                mailListUsers        = new MailListUsersEntity();
                mailListUsers.LangID = langID;
                //mailListUsers.Groups = groups;
                mailListUsers.ModuleTypeID = (int)StandardItemsModuleTypes.MailList;
                mailListUsers.Email        = txtEMail.Text;
                status = MailListUsersFactory.Create(mailListUsers);

                if (status == ExecuteCommandStatus.Done)
                {
                    lblResult.CssClass = "operation_done";
                    lblResult.Text     = DynamicResource.GetText("MailList", "SubscripeDone");
                    // Clear controls;
                    txtEMail.Text = "";
                }
                else if (status == ExecuteCommandStatus.AllreadyExists)
                {
                    lblResult.CssClass = "operation_error";
                    lblResult.Text     = DynamicResource.GetText("MailList", "ExistsEmail");
                }
                else
                {
                    lblResult.CssClass = "operation_error";
                    lblResult.Text     = DynamicResource.GetText("MailList", "SubscripeFailed");
                }
            }
Exemplo n.º 19
0
    //----------------------------------------------------------
    #region ----------------BuildItemsModuleLinks---------------
    //----------------------------------------------------------
    //BuildItemsModuleLinks
    //----------------------------------------------------------
    public string BuildItemsModuleLinks(int moduleType)
    {
        ItemsModulesOptions itemsModule = ItemsModulesOptions.GetType(moduleType);
        string moduleTitleText          = itemsModule.GetModuleTitle();
        string categoriesAddText        = Resources.Modules.Module_CategoriesAdd;
        string categoriesDefaultText    = Resources.Modules.Module_CategoriesDefault;
        string itemsAddText             = Resources.Modules.Module_ItemsAdd;
        string itemsDefaultText         = Resources.Modules.Module_ItemsDefault;
        string itemsPhotosAddText       = Resources.Modules.Module_ItemsPhotosAdd;
        //string Module_NewMessage = DynamicResource.GetText(itemsModule, "Module_NewMessage");
        //string Module_AllMessage = DynamicResource.GetText(itemsModule, "Module_AllMessage");
        string commentsInactiveText = Resources.Modules.Module_CommentsInactive;
        string newMessageText       = Resources.Modules.Module_NewMessage;
        string allMessageText       = Resources.Modules.Module_AllMessage;

        if (itemsModule.HasSpecialAdminText)
        {
            //moduleTitleText = itemsModule.GetModuleTitle();
            categoriesAddText     = DynamicResource.GetText(itemsModule, "Module_CategoriesAdd");
            categoriesDefaultText = DynamicResource.GetText(itemsModule, "Module_CategoriesDefault");
            itemsAddText          = DynamicResource.GetText(itemsModule, "Module_ItemsAdd");
            itemsDefaultText      = DynamicResource.GetText(itemsModule, "Module_ItemsDefault");
            itemsPhotosAddText    = DynamicResource.GetText(itemsModule, "Module_ItemsPhotosAdd");
            commentsInactiveText  = DynamicResource.GetText(itemsModule, "Module_CommentsInactive");
            newMessageText        = DynamicResource.GetText(itemsModule, "Module_NewMessage");
            allMessageText        = DynamicResource.GetText(itemsModule, "Module_AllMessage");
        }
        string links  = "";
        string folder = itemsModule.Identifire.ToString();

        if (ZecurityManager.CheckFolderPermission("/AdminCP/Items/" + folder + "/"))
        {
            links += "<li " + AdditionalLinkClassIfActive("/AdminCP/Items/" + folder + "/") + "><a href=\"#\"><i class=\"icon-stack2\"></i><span>" + itemsModule.GetModuleTitle() + "</span></a>";
            links += "<ul>";
            if (itemsModule.CategoryLevel != 0 && itemsModule.DisplayCategoriesInAdminMenue)
            {
                links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/Cats/Add.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/Cats/Add.aspx\">" + categoriesAddText + "</a></li>";
                links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/Cats/default.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/Cats/default.aspx\">" + categoriesDefaultText + "</a></li>";
            }

            links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/Add.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/Add.aspx\">" + itemsAddText + "</a></li>";
            links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/default.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/default.aspx\">" + itemsDefaultText + "</a></li>";
            if (itemsModule.HasMultiPhotos)
            {
                links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/AddPhoto.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/AddPhoto.aspx\">" + itemsPhotosAddText + "</a></li>";
            }
            if (itemsModule.MessagesModuleID > 0)
            {
                links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/Messages/New.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/Messages/New.aspx\">" + newMessageText + "</a></li>";
                links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/Messages/default.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/Messages/default.aspx\">" + DynamicResource.GetText(itemsModule, "Module_AllMessage") + "</a></li>";
            }
            if (itemsModule.HasComments)
            {
                int inactiveCommentsCount = ItemsCommentsFactory.GetCount(-1, Languages.Unknowen, itemsModule.ModuleTypeID, true, false, false, SitesHandler.GetOwnerIDAsGuid());
                links += "<li " + AdditionalLinkClassIfActive("/Items/" + folder + "/Comments/InActive.aspx") + "><a href=\"/AdminCP/Items/" + folder + "/Comments/InActive.aspx\">" + commentsInactiveText + " -" + inactiveCommentsCount + "</a></li>";
                links += "    ";
            }
            links += "</ul>";
        }
        return(links);
    }
Exemplo n.º 20
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"];

        ucCreate.ModuleTypeID = currentModule.ModuleTypeID;
        if (!IsPostBack)
        {
            if (currentModule.HasSpecialAdminText)
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + DynamicResource.GetText(currentModule, "Module_CategoriesAdd");
            }
            else
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.Module_CategoriesAdd;
            }
        }
    }
Exemplo n.º 21
0
    //-----------------------------------------------
    //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)
        {
            if (currentModule.HasSpecialAdminText)
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + DynamicResource.GetText(currentModule, "Module_MessageData");
            }
            else
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.Module_MessageData;
            }
        }
        //-----------------------------------------------
    }
Exemplo n.º 22
0
    //-----------------------------------------------
    //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"]);
        }
        //-----------------------------------------------
        ucGetNew.ModuleTypeID = CurrentMessagesModule.ModuleTypeID;
        ucGetNew.ToItemID     = itemID;
        //-----------------------------------------------
        if (!IsPostBack)
        {
            if (currentModule.HasSpecialAdminText)
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + DynamicResource.GetText(currentModule, "Module_NewMessage");
            }
            else
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.Module_NewMessage;
            }
        }
        //-----------------------------------------------
    }
Exemplo n.º 23
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        ItemsModulesOptions currentModule = (ItemsModulesOptions)HttpContext.Current.Items["CurrentItemsModule"];

        ucSendSms.ModuleTypeID = currentModule.ModuleTypeID;
        ucSendSms.FormSmsTo    = FormSMSToTypes.All;
        //-----------------------------------------------
        if (!IsPostBack)
        {
            if (currentModule.HasSpecialAdminText)
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + DynamicResource.GetText(currentModule, "SendSms");
            }
            else
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.SendSms;
            }
        }
        //-----------------------------------------------
    }
Exemplo n.º 24
0
    //-----------------------------------------------
    //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)
        {
            if (currentModule.HasSpecialAdminText)
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + DynamicResource.GetText(currentModule, "SendEmail");
            }
            else
            {
                this.Page.Title = currentModule.GetModuleAdminSpecialTitle() + " - " + Resources.Modules.SendEmail;
            }
        }
        //-----------------------------------------------
    }