<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyBasic.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyBasic" %>
个人信息管理:
*编辑头像:
<% if (this.HeadPortraitUrl != null) { //存在头像 %> <%= new HtmlImg(this.HeadPortraitUrl, this.User.TrueName + "的头像") { ID = "imgHeadPortrait", Width=120, Height=120, OnErrorImg = SettingGroup.DefauteUserImg }%> <% } else { //不存在头像 %> <%= new HtmlImg(SettingGroup.DefauteUserImg, this.User.TrueName + "的头像") { ID = "imgHeadPortrait", Width=120, Height=120 }%> <% } %> <%= new HtmlHidden("HeadPortrait", this.User.HeadPortrait)%>
<%= new HtmlYKTip("Photo")%> <%--<%= new HtmlSubmit("修改头像", null, "HeadPortraitClient(this);") { Class="btn" }%>--%>
支持.jpg、gif、png格式的图片
<%-- --%>
*真实姓名: <%= new HtmlText("TrueName", this.User.TrueName, 12) { Class = "text" }%> <%= new HtmlYKTip("TrueName") { }%>
*关联学科:
    <% var listCategory = CreateInstance.CategoryDao.Where(l => l.ParentCategory != null && l.Status == (int)AVA.ResourcesPlatform.Model.Pub.CategoryStatusEnum.有效) .OrderBy(l=>l.SortNumber) .ToList(); for (var i = 0; i <= listCategory.Count - 1; i++) { var category = listCategory[i]; bool has = CookieGroup.ListUserCategory.Count(l => l == category.Guid) > 0; %>
  • <%= new HtmlCheckBox("UserCategory", false, category.Guid, "") { ID = "UserCategory" + category.Guid, Checked = has }.Style(new { Width = "auto" })%> <%= new HtmlLabel("UserCategory" + category.Guid, category.Name)%>
  • <% } %>
关联学段: <% var listGrade = CreateInstance.GradeDao.Where(l => l.ParentGrade == null && l.Status == (int)AVA.ResourcesPlatform.Model.Pub.GradeStatusEnum.有效) .OrderBy(l => l.SortNumber) .ToList(); var userGrade = CreateInstance.UserGradeDao.Where(l => l.ParentUser == this.User).FirstResult(); %> <%= new HtmlSelect("GradeGuid","Name","Guid","Guid"){ Option = listGrade,SelectedValue = userGrade == null ? null : userGrade.ParentGrade.Guid}.InsertOption("::请选择::", null, 0)%> <%= new HtmlYKTip("GradeGuid") { }%>
个性签名档: <%= new HtmlTextArea("Introduction", this.User.Introduction, 1000) { Class = "text span4", Rows = 3 }%> <%= new HtmlYKTip("Introduction") { }%>
*手机号码: <%= new HtmlText("MobilePhone", this.User.MobilePhone, 255) { Class = "text" }%> <%= new HtmlYKTip("MobilePhone") { }%>
电话: <%= new HtmlText("Telephone", this.User.Telephone, 255) { Class = "text" }%>
Email: <%= new HtmlText("Email", this.User.Email, 255) { Class = "text" }%>
身份证号码: <%= new HtmlText("IDCard", this.User.IDCard, 255) { Class = "text" }%>
QQ: <%= new HtmlText("QQ", this.User.QQ, 255) { Class = "text" }%>
MSN: <%= new HtmlText("MSN", this.User.MSN, 255) { Class = "text" }%>
联系地址: <%= new HtmlText("Address", this.User.Address, 255) { Class = "text" }%>
邮政编码: <%= new HtmlText("PostalCode", this.User.PostalCode, 55) { Class = "text" }%>
<%= new HtmlSubmit("提交修改", "Basic", "BasicClient(this);") { Width = 100 }%>