<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyMenu.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyMenu" %>
<% if (CreateInstance.UserDao.Get(this.UserCode).HeadPortrait != null) { //存在头像 %> <%= new HtmlAnchor(new HtmlImg(SettingGroup.UserHeadPortrait(CreateInstance.UserDao.Get(this.UserCode)),"我的头像") { Class="avatar img-circle", Width=80, Height=80}) { Title="我的头像", Href= WebUrl.Basic() }%> <% } else { //不存在头像 %> <%= new HtmlAnchor( new HtmlImg(SettingGroup.DefauteUserImg, "的头像") { ID = "imgHeadPortrait",Class="avatar img-circle", Width=80, Height=80 }) { Title="我的头像", Href= WebUrl.Basic() }%> <% } %>
<%= new HtmlAnchor(this.User.TrueName) { Target = "_blank", Href = WebUrl.Show(this.User.ParentDomain.Code, this.User.UserName), Title = this.User.ParentUserType.Name , Suffix="..", TextLength=3 }%> <%= new HtmlAnchor("[注销]") { Href = WebUrl.Logout() }%>
<%= new HtmlAnchor("消息("+CreateInstance.MessageDao.Count(this.User)+")") { Href= WebUrl.MyMessage() }%>