public void SyncUB(M_User_Plat model) { M_Uinfo ubMod = buser.GetUserBaseByuserid(model.UserID); ubMod.UserId = model.UserID; ubMod.Position = model.Post; ubMod.Mobile = model.Mobile; ubMod.UserFace = model.UserFace; ubMod.TrueName = model.TrueName; if (ubMod.IsNull) { buser.AddBase(ubMod); } else { buser.UpdateBase(ubMod); } }
public string SysLabelProc(string syslabel, string Title) { M_Uinfo muinfo = buser.GetUserBaseByuserid(buser.GetLogin().UserID); //处理系统标签获得函数后的内容 string lbl = syslabel; lbl = lbl.Replace("{$", "").Replace("/}", ""); switch (lbl) { case "SiteName": return(SiteName); case "SiteURL": return("<a href='" + SiteUrl + "' alt='" + SiteName + "' target='_blank'>" + SiteUrl + "</a>"); case "SiteTitle": return(SiteTitle); case "MetaKeywords": return(MetaKeywords); case "MetaDescription": return(MetaDescription); case "LogoUrl": return("<img src='" + LogoUrl + "' width='206' height='40' />"); case "Banner": return(BannerUrl); case "Webmaster": return(Webmaster); case "WebmasterEmail": return(WebmasterEmail); case "Copyright": return(Copyright); case "UserName": return(buser.GetLogin().UserName); case "password": return(buser.GetLogin().UserPwd); case "Company": //风格路径 return(buser.GetLogin().CompanyName); case "OfficePhone": return(muinfo.OfficePhone); case "HoneyName": return(muinfo.HoneyName); case "UserFace": return("<img src='" + muinfo.UserFace + "' width='32' height='32' />"); case "sex": if (muinfo.UserSex == true) { return("男"); } else { return("女"); } case "BirthDay": return(muinfo.BirthDay); case "Country": return(muinfo.Country); case "Province": return(muinfo.Province); case "City": return(muinfo.City); case "County": return(muinfo.County); case "Address": return(muinfo.Address); case "ZipCode": return(muinfo.ZipCode); case "Mobile": return(muinfo.Mobile); case "Fax": return(muinfo.Fax); case "Email": return("<a href='mailto:" + buser.GetLogin().Email + "'>" + buser.GetLogin().Email + "</a>"); case "HomePage": return(muinfo.HomePage); case "QQ": return(muinfo.QQ); case "MSN": return(muinfo.MSN); case "Sign": return(muinfo.Sign); case "Title": return(Title); default: return("[err:站群标签引用错误]"); } }