protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { ReportUtils objRptUtil = new ReportUtils(); ltrStyle.Text = objRptUtil.getCSSDefns(1); WeeklyReports objRpt = new WeeklyReports(); ltrContent.Text = objRpt.userWebinarReport(Convert.ToInt32(Session["UserID"])); ltrHeader.Text = objRptUtil.getEmailRptHeader(); ltrFooter.Text = objRptUtil.getEmailRptFooter(); } }
public string getHTMLFormattedWebinarPresenterContact(string emailType, int webinarID) { TemplateMgmt objTpl = new TemplateMgmt(); string strTpl = objTpl.GetGeneralEmailTpl(Constant.DocTemplate + "PresenterContact.tpl"); if (strTpl != "") { ReportUtils objRptUtil = new ReportUtils(); //WeeklyReports objRpt = new WeeklyReports(); List<WebinarTheme> objWBTheme = new List<WebinarTheme>(); List<WebinarEmailBE> objWBE = objEmailDA.GetWebinarEmailDefault(1, "Presenter Contact"); objWBTheme = objWebinarDA.getWebinarTheme(webinarID); strTpl = objRptUtil.getCSSDefns(objWBTheme[0].ThemeLayoutID, strTpl); strTpl = strTpl.Replace("##HEADER##", objRptUtil.getEmailRptHeader()); strTpl = strTpl.Replace("##CONTENT##", objWBE[0].EmailContent); strTpl = strTpl.Replace("##FOOTER##", objRptUtil.getEmailRptFooter()); } return strTpl; }
public string getHTMLFormattedPasswdChangeNotify(string emailID, int languageID=1) { TemplateMgmt objTpl = new TemplateMgmt(); string strTpl = objTpl.GetGeneralEmailTpl(Constant.DocTemplate + "PasswdChange.tpl"); if (strTpl != "") { ReportUtils objRptUtil = new ReportUtils(); UserDA objUDA = new UserDA(); List<UserBE> objUBE = objUDA.GetUserDetailDA(emailID); List<WebinarEmailBE> objWBE = objEmailDA.GetGeneralEmailDefault("Password Changed",languageID); strTpl = strTpl.Replace("##HEADER##", objRptUtil.getEmailRptHeader()); strTpl = strTpl.Replace("##CONTENT##", objWBE[0].EmailContent); strTpl = strTpl.Replace("##FOOTER##", objRptUtil.getEmailRptFooter()); strTpl = strTpl.Replace("##PSWDCHANGEDATETIME##", objUBE[0].PasswordChangedOn); } return strTpl; }
public string getHTMLFormattedNewAccountNotify(string emailID, string passwd, string gendate, int languageID=1) { TemplateMgmt objTpl = new TemplateMgmt(); string strTpl = objTpl.GetGeneralEmailTpl(Constant.DocTemplate + "NewUserAccount.tpl"); if (strTpl != "") { ReportUtils objRptUtil = new ReportUtils(); UserDA objUDA = new UserDA(); List<UserBE> objUBE = objUDA.GetUserDetailDA(emailID); List<WebinarEmailBE> objWBE = objEmailDA.GetGeneralEmailDefault("New User Account", languageID); strTpl = strTpl.Replace("##HEADER##", objRptUtil.getEmailRptHeader()); strTpl = strTpl.Replace("##CONTENT##", objWBE[0].EmailContent); strTpl = strTpl.Replace("##FOOTER##", objRptUtil.getEmailRptFooter()); strTpl = strTpl.Replace("##ACCTDATETIME##", gendate); strTpl = strTpl.Replace("##USEREMAILADDRESS##", emailID); strTpl = strTpl.Replace("##PASSWORD##", passwd); } return strTpl; }
public string getHTMLFormattedGeneralEmail(string reqType,int languageID = 1) { TemplateMgmt objTpl = new TemplateMgmt(); string strTpl = objTpl.GetGeneralEmailTpl(Constant.DocTemplate + "generalEmail1.tpl"); if (strTpl != "") { ReportUtils objRptUtil = new ReportUtils(); List<WebinarEmailBE> objWBE = objEmailDA.GetGeneralEmailDefault(reqType, languageID); strTpl = strTpl.Replace("##HEADER##", objRptUtil.getEmailRptHeader()); strTpl = strTpl.Replace("##CONTENT##", objWBE[0].EmailContent); strTpl = strTpl.Replace("##FOOTER##", objRptUtil.getEmailRptFooter()); } return strTpl; }
public string getHTMLFormattedEmailContent(string contentWithTags, string emailType, int webinarID, string dateformat="") { TemplateMgmt objTpl = new TemplateMgmt(); string strTpl = objTpl.GetGeneralEmailTpl(Constant.DocTemplate + "generalEmail.tpl"); if (strTpl != "") { ReportUtils objRptUtil = new ReportUtils(); WeeklyReports objRpt = new WeeklyReports(); List<WebinarEmailBE> objWBEmail = new List<WebinarEmailBE>(); objWBEmail = objEmailDA.GetWebinarEmail(webinarID, emailType); strTpl = objRptUtil.getCSSDefns(objWBEmail[0].ThemeID, strTpl); //strTpl = strTpl.Replace("##STYLE##", objRptUtil.getCSSDefns(objWBEmail[0].ThemeID)); strTpl = strTpl.Replace("##HEADER##", objRptUtil.getEmailRptHeader(webinarID)); strTpl = strTpl.Replace("##CONTENT##", getFormedEmailContent(contentWithTags, emailType, webinarID, dateformat)); if (objWBEmail[0].IsSystemReq) strTpl = strTpl.Replace("##SYSREQ##", objRptUtil.getSystemRequirement(AudiUrl)); else strTpl = strTpl.Replace("##SYSREQ##", ""); strTpl = strTpl.Replace("##FOOTER##", objRptUtil.getEmailRptFooter()); } return strTpl; }