Beispiel #1
0
    private void Page_Load(System.Object sender, System.EventArgs e)
    {
        //Put user code to initialize the page here
        //string var1 = "";
        string var2 = "";

        if (!string.IsNullOrEmpty(Request.QueryString["fromModal"]))
        {

            fromModal = Convert.ToBoolean(Request.QueryString["fromModal"]);
            commerceAdmin = m_refSiteApi.IsARoleMember(Ektron.Cms.Common.EkEnumeration.CmsRoleIds.CommerceAdmin);
            cancelJavascript = "if ('function' == typeof parent.EktronUiDialogClose) { parent.EktronUiDialogClose('email'); } else { parent.ektb_remove(); }";

        }

        RegisterResources();
        m_refMsg = m_refSiteApi.EkMsgRef;
        if (!Utilities.ValidateUserLogin())
        {
            return;
        }
        if (m_refSiteApi.RequestInformationRef.IsMembershipUser > 0)
        {
            Response.Redirect((string)("reterror.aspx?info=" + m_refSiteApi.EkMsgRef.GetMessage("msg login cms user")), true);
            return;
        }
        ContentLanguage = m_refSiteApi.ContentLanguage;
        if (ContentLanguage == Ektron.Cms.Common.EkConstants.CONTENT_LANGUAGES_UNDEFINED || ContentLanguage == Ektron.Cms.Common.EkConstants.ALL_CONTENT_LANGUAGES)
        {
            ContentLanguage = m_refSiteApi.DefaultContentLanguage;
        }
        language_data = m_refSiteApi.GetLanguageById(ContentLanguage);
        BrowserCode = language_data.BrowserCode;
        strTargUserEmail = "";
        strUserFName = "";
        strUserLName = "";
        globalWarningMsg = "";
        iMaxContLength = 65000;
        localeFileString = "0000";
        m_refUser = m_refSiteApi.EkUserRef;
        m_refContent = m_refSiteApi.EkContentRef;
        UserId = Convert.ToInt64(Request.QueryString["userid"]);
        GroupId = Convert.ToInt64(Request.QueryString["groupid"]);

        UserArray = Request.QueryString["userarray"];
        GroupArray = Request.QueryString["grouparray"];
        MsgNotes = Request.QueryString["notes"];
        ContentId = Convert.ToInt64(Request.QueryString["contentid"]);
        emailclangid = Request.QueryString["emailclangid"];
        target = Request.Form["target"];
        source = Request.Form["source"];
        subject = Request.Form["subject"];
        sMessage = this.message.Content;
        AppeWebPath = m_refSiteApi.ApplicationPath + m_refSiteApi.AppeWebPath;
        var2 = m_refContent.GetEditorVariablev2_0(0, "email");
        EmailData.Text += m_refMail.EmailJS();
        DisplayControl();
    }