protected void BindDate() { M_SiteInfoConfig = SiteInfo.GetConfig(PhyFilePath); this.txtSiteName.Text = M_SiteInfoConfig.SiteName; this.txtSiteTitle.Text = M_SiteInfoConfig.SiteTitle; this.txtSiteURL.Text = M_SiteInfoConfig.SiteURL; this.txtCopyRight.Text = M_SiteInfoConfig.CopyRight; this.txtMetaKeywords.Text = M_SiteInfoConfig.MetaKeywords; this.txtMetaDescription.Text = M_SiteInfoConfig.MetaDescription; this.txtLogo.Text = M_SiteInfoConfig.Logo; this.txtFavicon.Text = M_SiteInfoConfig.Favicon; }
private void Data_Bind() { string FilePath; string FilePath1; if (SiteDir == "") { FilePath = "~/" + GetVirtualPath + "config/SiteInfo.config"; FilePath1 = "~/" + GetVirtualPath + "config/HR.config"; } else { FilePath = "~/" + GetVirtualPath + SiteDir + "/config/SiteInfo.config"; FilePath1 = "~/" + GetVirtualPath + SiteDir + "/config/HR.config"; } FilePath1 = Server.MapPath(FilePath1); SiteInfoConfig M_SiteInfoConfig = new SiteInfoConfig(); M_SiteInfoConfig = SiteInfo.GetConfig(Server.MapPath(FilePath)); string title = Utils.XmlRead(FilePath1, "HRConfig/EMailTitle", "").Replace("{SiteName}", M_SiteInfoConfig.SiteName); string con = Utils.XmlRead(FilePath1, "HRConfig/EMailContent", ""); string UserName = string.Empty; int id = KingTop.Common.Utils.ParseInt(Request.QueryString["id"], 0); string sql = "SELECT EMail,UserName From K_HRResume Where ID=" + id; DataTable dt = SQLHelper.GetDataSet(sql); if (dt.Rows.Count > 0) { txtEMail.Value = dt.Rows[0]["EMail"].ToString(); UserName = dt.Rows[0]["UserName"].ToString(); } con = con.Replace("{UserName}", UserName).Replace("{SiteName}", M_SiteInfoConfig.SiteName); con = con.Replace("{MSDate}", DateTime.Today.AddDays(1).ToString("yyyy-MM-dd")); con = con.Replace("{SendDate}", DateTime.Today.ToString("yyyy-MM-dd")); Editor1.Content = con; txtTitle.Value = title; }