//保存 protected void btnSubmit_Click(object sender, EventArgs e) { BLL.feedback bll = new BLL.feedback(); model = bll.GetModel(this.id); model.reply_content = Utils.ToHtml(txtReContent.Text); model.reply_time = DateTime.Now; bll.Update(model); JscriptMsg("留言回复成功啦!", "index.aspx", "Success"); }
//保存 protected void btnSubmit_Click(object sender, EventArgs e) { BLL.feedback bll = new BLL.feedback(); model = bll.GetModel(this.id); model.reply_content = Utils.ToHtml(txtReContent.Text); model.reply_time = DateTime.Now; bll.Update(model); JscriptMsg("留言回复成功啦!", "index.aspx", "Success"); }
//保存 protected void btnSubmit_Click(object sender, EventArgs e) { ChkAdminLevel("plugin_feedback", DTEnums.ActionEnum.Reply.ToString()); //检查权限 BLL.feedback bll = new BLL.feedback(); model = bll.GetModel(this.id); model.reply_content = Utils.ToHtml(txtReContent.Text); model.reply_time = DateTime.Now; bll.Update(model); AddAdminLog(DTEnums.ActionEnum.Reply.ToString(), "回复留言插件内容:" + model.title); //记录日志 JscriptMsg("留言回复成功!", "index.aspx", "Success"); }
protected void btn_Submit_Click(object sender, EventArgs e) { BLL.feedback bll = new BLL.feedback(); model = bll.GetModel(this.id); model.is_lock = Utils.StrToInt(rblStatus.SelectedValue, 0); model.reply_content = Utils.ToHtml(txtReContent.Text); model.beizhu = Utils.ToHtml(txtBeiZhu.Text); bll.Update(model); AddAdminLog(TWEnums.ActionEnum.Reply.ToString(), "儲存留言內容:" + model.title); //記錄日誌 JscriptMsg("留言儲存成功!", "list.aspx"); }
//保存 protected void btnSubmit_Click(object sender, EventArgs e) { ChkAdminLevel("plugin_feedback", DTEnums.ActionEnum.Reply.ToString()); //检查权限 BLL.feedback bll = new BLL.feedback(); model = bll.GetModel(this.id); model.reply_content = Utils.ToHtml(txtReContent.Text); model.reply_time = DateTime.Now; bll.Update(model); AddAdminLog(DTEnums.ActionEnum.Reply.ToString(), "回复留言插件内容:" + model.title); //记录日志 JscriptMsg("留言回复成功!", "index.aspx"); }
//儲存 protected void btnSubmit_Click(object sender, EventArgs e) { ChkAdminLevelEdit("site_contact", "Edit"); //ChkAdminLevel("plugin_feedback", TWEnums.ActionEnum.Reply.ToString()); //檢查權限 Model.manager _admin = new Tea.Web.UI.ManagePage().GetAdminInfo(); BLL.feedback bll = new BLL.feedback(); model = bll.GetModel(this.id); model.reply_content = Utils.ToHtml(txtReContent.Text); model.reply_time = DateTime.Now; model.company = _admin.id; model.is_lock = Utils.StrToInt(rblStatus.SelectedValue, 0); model.beizhu = Utils.ToHtml(txtBeiZhu.Text); bll.Update(model); try { //if (model.is_lock == 2) //{ TWMail.sendMail(siteConfig.emailsmtp, siteConfig.emailssl, siteConfig.emailport, siteConfig.emailusername, siteConfig.emailpassword, siteConfig.emailnickname, siteConfig.emailfrom, model.user_email, model.title + ":回答", model.reply_content); TWMail.sendMail(siteConfig.emailsmtp, siteConfig.emailssl, siteConfig.emailport, siteConfig.emailusername, siteConfig.emailpassword, siteConfig.emailnickname, siteConfig.emailfrom, siteConfig.webmail, model.title + ":回答", model.reply_content); // } } catch (Exception eee) { } AddAdminLog(TWEnums.ActionEnum.Reply.ToString(), "回覆留言內容:" + model.title); //記錄日誌 JscriptMsg("留言回覆成功!", "list.aspx"); }