<%load.template._MessageHead%><%using Wapkang.Common.Generic%> <%if {errorcount}>0%> <%load.template._errmsgbox%> <%else%> <%set (UserInfo){CurrentUserInfo}=GetCurrentUserInfo()%> <%if {action.Equals("explain")}%> 空间>会员中心>勋章介绍

<%set (string){userMedals}=WebMedals.GetMedalsList(CurrentUserInfo.Medals)%> <%if !{string.IsNullOrEmpty(userMedals)}%> {WmlCode(userMedals)}
<%end if%> [hr] [i][b]+系统勋章列表[/b][/i]
<%if {LogList.Rows.Count}>0%> <%foreach Info LogList%> <%set (string){available}=Info["available"].ToString()%> <%if {available}=="1"%> <%set (string){description}=WmlCode(Info["description"].ToString())%> {Info[image]}-{Info[name]}
<%if !string.IsNullOrEmpty(description)%> [s]介绍:{WmlCode(Utils.HtmlEncode(description))}[/s]
<%end if%> <%end if%> <%foreach%> <%else%> 暂无可用勋章
<%end if%> [hr] <<查看我的勋章
<%else%> 空间>会员中心>我的勋章

<%set (DataTable){userMedals}=WebMedals.GetMedalsDTList(CurrentUserInfo.Medals)%> 用户ID:{CurrentUserInfo.Seqid}
<%if {!string.IsNullOrEmpty(CurrentUserInfo.Username)}%> 登录账号:{CurrentUserInfo.Username}
<%end if%> 用户昵称:{CurrentUserInfo.Nickname}
用户组别:{usergroupinfo.Grouptitle}{WebUtils.GetStarsHtml(usergroupinfo.Stars)}
<%if {userMedals.Rows.Count}>0%> 当前勋章:
<%foreach MyMedals userMedals%> <%set (int){available}=Convert.ToInt32(MyMedals["available"].ToString())%> <%if {available}==1%> <%set (string){description}=WmlCode(MyMedals["description"].ToString())%> {MyMedals[image]} <%end if%> <%foreach%>
<%else%> 当前勋章:您尚未获得授予勋章
<%end if%> [hr] <%if {logcount}>0%> [i][b]+勋章授予记录[/b][/i]
<%foreach Info LogList%> <%set (string){reason}=WmlCode(Info["reason"].ToString())%> <%set (int){Medalsid}=Convert.ToInt32(Info["medals"].ToString())%> <%set (string){createtime}=Info["createtime"].ToString()%> {WebMedals.GetMedalsList(Medalsid.ToString())}于[<%datetostr(createtime,yyyy-MM-dd HH:mm)%>]被 {Info[adminname]} [{Info[actions]}]<%if !string.IsNullOrEmpty(reason)%>-原因:{WmlCode(Utils.HtmlEncode(reason))}<%end if%>
<%foreach%> <%if {pagecount}>=2%> <%set (DetachPageInfo){detachPage}=GetDetachPageInfo(pageid,pagesize,pagecount,logcount,"条",string.Format("{0}User/medal{1}",WebPath,LinkTail))%> <%load.template._detachpage%> <%end if%> <%else%> [s]暂无勋章授予记录[/s]
<%end if%> [hr] >>查看勋章说明
<%end if%> <%end if%> <%load.template._Foot%>