<%loop forumhotname forumhotslist%>
<%set (int){displayorder} = TypeConverter.ObjectToInt(forumhotname["displayorder"])%>
<%if {forumhotname[id]}!="6" && {displayorder}==1%>
<%set (string){datatype} = forumhotname["datatype"].ToString()%>
<%set (int){topiccount} = TypeConverter.ObjectToInt(forumhotname["topiccount"])%>
<%set (int){forumnamelength} = TypeConverter.ObjectToInt(forumhotname["forumnamelength"])%>
<%set (int){topictitlelength} = TypeConverter.ObjectToInt(forumhotname["topictitlelength"])%>
<%set (int){cachetime} = TypeConverter.ObjectToInt(forumhotname["cachetime"])%>
<%set (int){id} = TypeConverter.ObjectToInt(forumhotname["id"])%>
<%if {datatype}=="topics"%>
<%set (TopicOrderType){sorttype} = (TopicOrderType)Enum.Parse(typeof(TopicOrderType), forumhotname["sorttype"].ToString())%>
<%set (TopicTimeType){topictimetype} = (TopicTimeType)Enum.Parse(typeof(TopicTimeType), forumhotname["topictimetype"].ToString())%>
<%set (string){forumid} = forumhotname["forumid"].ToString()%>
<%loop hottopic ForumHots.GetTopicList(topiccount,0,sorttype,false,cachetime,false,forumid,id,topictimetype)%>
<%set (string){topicsname} = Utils.GetSubString(Utils.RemoveHtml(hottopic["title"].ToString().Trim()),topictitlelength*2,"")%>
<%set (string){forumsname} = Utils.GetSubString(Utils.RemoveHtml(hottopic["name"].ToString().Trim()),forumnamelength*2,"")%>
<%set {aspxrewriteurl} = this.ShowTopicAspxRewrite({hottopic[tid]},0)%>
<%set (string){aspxrewriteurl1} = this.ShowForumAspxRewrite({hottopic[fid]},0)%>
<%if {hottopic[_id]}==1%>
<%set (int){tid} = TypeConverter.ObjectToInt(hottopic["tid"])%>
<%loop firsttopic ForumHots.GetFirstPostInfo(tid,cachetime)%>
<%if {firsttopic[layer]}=="0"%>
<%set (string){message} = ForumHots.RemoveUbb(firsttopic["message"].ToString().Trim(),300)%>
- {topicsname}
- {message}
<%/if%>
<%/loop%>
<%else%>
<%if {hottopic[_id]}==8 || {hottopic[_id]}==2%>
<%/if%>
<%/if%>
<%/loop%>
<%/if%>
<%if {datatype}=="users" %>
<%set (string){sorttype} = forumhotname["sorttype"].ToString()%>
<%loop user ForumHots.GetUserList(topiccount,sorttype,cachetime,id)%>
<%set {aspxrewriteurl} = this.UserInfoAspxRewrite({strtoint(user["uid"].ToString())})%>
<%if {user[_id]}%10==1 || {user[_id]}==1%>
<%if {user[_id]}==1%>
<%else%>
<%/if%>
<%/if%>
-
[
<%if {sorttype}=="credits"%>{user[credits]}
<%/if%>
<%if {sorttype}=="posts"%>
{user[posts]}
<%/if%>
<%if {sorttype}=="lastactivity"%>
{user[lastactivity]}
<%/if%>
<%if {sorttype}=="joindate"%>
{user[joindate]}
<%/if%>
]
<%set (int){hotuserid} = TypeConverter.ObjectToInt(user["uid"])%>
{user[username]}
<%if {user[_id]}%10==0%>
<%/if%>
<%/loop%>
<%/if%>
<%if {datatype}=="forums"%>
<%set (string){sorttype} = forumhotname["sorttype"].ToString()%>
<%set (int){forumid} = TypeConverter.ObjectToInt(forumhotname["forumid"])%>
<%loop foruminfo ForumHots.GetHotForumList(topiccount,sorttype,forumid,cachetime,id)%>
<%set {aspxrewriteurl} = this.ShowForumAspxRewrite({strtoint({foruminfo[fid]})},0)%>
<%if {foruminfo[_id]}%10==1 || {foruminfo[_id]}==1%>
<%/if%>
-
[
<%if {sorttype}=="posts"%>
{foruminfo[posts]}
<%/if%>
<%if {sorttype}=="topics"%>
{foruminfo[topics]}
<%/if%>
<%if {sorttype}=="todayposts"%>
{foruminfo[todayposts]}
<%/if%>
]
{foruminfo[name]}
<%if {foruminfo[_id]}%10==0%>
<%/if%>
<%/loop%>
<%/if%>
<%/if%>
<%/loop%>