<%csharp%> /* 聚合首面方法说明 /////////////////////////////////////////////////////////////////////////////////////////////// 方法名称: GetForumTopicList(count, views, forumid, timetype, ordertype, isdigest, onlyimg) 方法说明: 返回指定条件的主题列表信息 参数说明: count : 返回的主题数 views : 浏览量 [返回等于或大于当前浏览量的主题] forumid : 版块ID [默认值 0 为所有版块] timetype : 指定时间段内的主题 [ TopicTimeType.Day(一天内) , TopicTimeType.Week(一周内), TopicTimeType.Month(一个月内), TopicTimeType.SixMonth(六个月内), TopicTimeType.Year(一年内), TopicTimeType.All(默认 从1754-1-1至今的所有主题) ordertype : 排序字段(降序) [TopicOrderType.ID(默认 主题ID) , TopicOrderType.Views(浏览量), TopicOrderType.LastPost(最后回复), TopicOrderType.PostDateTime(按最新主题查), TopicOrderType.Digest(按精华主题查), TopicOrderType.Replies(按回复数)] isdigest : 是否精化 [true(仅返回精华主题) false(不加限制)] onlyimg : 是否包含附件 [true(仅返回包括图片附件的主题) false(不加限制)] ////////////////////////////////////////////////////////////////////////////////////////////// 方法名称: GetHotForumList(count) 方法说明: 返回指定数量的热门版块列表 参数说明: count : 返回的版块数 ////////////////////////////////////////////////////////////////////////////////////////////// 方法名称: GetForumList(forumid) 方法说明: 返回指定版块下的所有子段块列表 参数说明: forumid : 指定的版块id ////////////////////////////////////////////////////////////////////////////////////////////// 方法名称: GetLastPostList(forumid, count) 方法说明: 返回指定版块下的最新回帖列表 参数说明: forumid : 指定的版块id count : 返回的回帖数 ////////////////////////////////////////////////////////////////////////////////////////////// 方法名称: GetAlbumList(photoconfig.Focusalbumshowtype, count, days) 方法说明: 返回指定条件的相册列表 参数说明: photoconfig.Focusalbumshowtype : 排序字段(降序) [1(浏览量), 2(照片数), 3(创建时间)] 注:管理后台聚合设置项 count : 返回的相册数 days :有效天数 [指定天数内的相册] ////////////////////////////////////////////////////////////////////////////////////////////// 方法名称: GetWeekHotPhotoList(photoconfig.Weekhot) 方法说明: 返回指定数量的热门图片 参数说明: photoconfig.Weekhot : 返回的热图数量 注:管理后台聚合设置项 ////////////////////////////////////////////////////////////////////////////////////////////// 方法名称: GetSpaceTopComments(count) 方法说明: 返回指定数量的空间最新评论 参数说明: count : 返回的评论数 ////////////////////////////////////////////////////////////////////////////////////////////// 方法名称: GetRecentUpdateSpaceList(count) 方法说明: 返回指定数量的最新更新空间列表 参数说明: count : 返回的空间信息数 ////////////////////////////////////////////////////////////////////////////////////////////// 方法名称: GetGoodsList(condition, orderby, categoryid, count) 方法说明: 返回指定数量的最新更新空间列表 参数说明: condition : 条件 [recommend(仅返回推荐商品, 商城模式下可用) , quality_new(仅返回全新(状态)商品), quality_old(仅返回二手(状态)商品)] orderby: 排序字段(降序) [viewcount(按浏览量排序), hotgoods(按商品交易量排序), newgoods(按发布商品先后顺序排序) ] categoryid : 商品所属分类id [默认值 0 为不加限制] count : 返回的商品数 ////////////////////////////////////////////////////////////////////////////////////////////// 方法名称: GetUserList(count, orderby) 方法说明: 返回指定数量及排序方式的用户列表 参数说明: count : 返回的用户数 orderby: 排序字段(降序) [credits(用户积分), posts(用户发帖数), lastactivity(最后活动时间), joindate(注册时间), oltime(在线时间)] */ <%/csharp%> {meta} {pagetitle} {config.seotitle} - {config.webtitle} {link} {script}
<%if page_err==0%>
<%loop (PostInfo) toppost postlist%> <%if {toppost[_id]}==3%>
    <%/if%> <%if {toppost[_id]}==11%>
<%/if%>
<%if postlist.Length<3%>
    <%set {topiclist} = forumagg.GetForumTopicList(16, 0, 0, TopicTimeType.Year, topicordertype, false, false)%> <%loop toptopicinfo topiclist%> <%if {toptopicinfo[_id]}==9%>
<%/if%>
<%if {rotatepicdata}!=null && {rotatepicdata}!=""%>
<%/if%>

论坛热帖

这边风景独好 江景房性价比PK

仔细探寻杭州各大江景房,究竟谁家的性价比更卓越?

    <%set (int) {hottopicscount}=Discuz.Aggregation.TopicAggregationData.GetForumAggerationHotTopics().Rows.Count%> <%if {hottopicscount}==0%> <%else%> <%set (DataTable){hottopicslist}=Discuz.Aggregation.TopicAggregationData.GetForumAggerationHotTopics()%> <%loop newhottopicinfo hottopicslist%>
  • <%set {aspxrewriteurl}=this.ShowForumAspxRewrite({strtoint({newhottopicinfo[fid]})},0,{newhottopicinfo[forumnamerewritename]})%> [{newhottopicinfo[forumname]}] <%set {aspxrewriteurl}=this.ShowTopicAspxRewrite({newhottopicinfo[tid]},0)%> {newhottopicinfo[title]}
  • <%/loop%> <%/if%>
    <%loop __foruminfo forumagg.GetHotForumList(10)%> <%set {aspxrewriteurl} = ShowForumAspxRewrite({strtoint({__foruminfo[fid]})},0, {__foruminfo[rewritename]})%>
  • {__foruminfo[posts]}帖class="first"<%/if%> <%if {__foruminfo[_id]}==2%>class="second"<%/if%> <%if {__foruminfo[_id]}==3%>class="third"<%/if%> > {__foruminfo[_id]}{__foruminfo[name]}
  • <%/loop%>
发帖排行
<%set {userPostCountInfoList} = forumagg.GetUserPostCountList(4, DateType.Day, 1)%> <%loop (UserPostCountInfo) userDayPostCountInfo userPostCountInfoList%>
<%set (string){avatarurl}=Avatars.GetAvatarUrl({userDayPostCountInfo.Uid}, AvatarSize.Small) %> 头像
<%set {aspxrewriteurl} = this.UserInfoAspxRewrite({userDayPostCountInfo.Uid})%> <%getsubstring({userDayPostCountInfo.Username},20,"...")%>
发帖{userDayPostCountInfo.PostCount}
<%/loop%>
<%loop (int) forumid Discuz.Aggregation.AggregationFacade.ForumAggregation.GetRecommendForumID()%> <%set (ForumInfo) {foruminfo} = Forums.GetForumInfo(forumid)%> <%if {foruminfo}!=null %> <%set (int){tcount}={Forums.GetForumList(forumid).Rows.Count}!=0?12:8%>

<%loop sub_forum Forums.GetForumList(forumid)%> <%set {aspxrewriteurl} = this.ShowForumAspxRewrite({strtoint({sub_forum[fid]})},0,{sub_forum[rewritename]})%> {sub_forum[name]} <%if {sub_forum[_id]}>4%> <%break%> <%/if%> <%/loop%> <%set {aspxrewriteurl} = this.ShowForumAspxRewrite({forumid},0,{foruminfo.rewritename})%> 更多>> {foruminfo.Name}

style="height:180px"<%/if%>>
<%set (int) {listcount}=Discuz.Aggregation.TopicAggregationData.GetForumAggregationTopic(forumid).Rows.Count%> <%set {topiclist} = listcount==0?forumagg.GetForumTopicList(6, 0, forumid, TopicTimeType.All, TopicOrderType.PostDateTime, false, false):Discuz.Aggregation.TopicAggregationData.GetForumAggregationTopic(forumid)%> <%set (int) {listsize}=listcount==0?6 :4%> <%loop newtopicinfo topiclist%> <%if {newtopicinfo[_id]}<={listsize}%> <%if {listcount}!=0 && {newtopicinfo[_id]}==1%> <%set {aspxrewriteurl} = this.ShowTopicAspxRewrite({newtopicinfo[topicid]},0)%> <%continue%> <%/if%> <%if {listcount}!=0%> <%if {newtopicinfo[_id]}==2%>
    <%/if%> <%else%> <%if {newtopicinfo[_id]}==1%>
      <%/if%> <%/if%>
    • <%if {listcount}==0%> <%set {aspxrewriteurl} = this.ShowForumAspxRewrite({strtoint({newtopicinfo[fid]})},0)%> [{newtopicinfo[name]}] <%else%> <%set {aspxrewriteurl} = ShowForumAspxRewrite({strtoint({newtopicinfo[fid]})},0)%> <%set (string) {name} = Forums.GetForumInfo({strtoint({newtopicinfo[fid]})}).Name%> [{name}] <%/if%> <%if {listcount}==0%> <%set {aspxrewriteurl} = this.ShowTopicAspxRewrite({newtopicinfo[tid]},0)%> <%else%> <%set {aspxrewriteurl} = this.ShowTopicAspxRewrite({newtopicinfo[topicid]},0)%> <%/if%> <%getsubstring({newtopicinfo[title]},43,"...")%>
    • <%if {newtopicinfo[_id]}=={listsize}%>
    <%/if%> <%/if%> <%/loop%> <%if {listcount}!=0 && {listcount}<4%> <%if {listcount}==1%>
      <%/if%> <%if {listcount}<6%>
    <%/if%> <%/if%> <%if {Forums.GetForumList(forumid).Rows.Count}!=0%>
    <%loop subforum Forums.GetForumList(forumid)%>
    <%set {aspxrewriteurl} = this.ShowForumAspxRewrite({strtoint({subforum[fid]})},0,{subforum[rewritename]})%>
    {subforum[name]}
    {subforum[description]}
    <%if {subforum[_id]}>2 %> <%break%> <%/if%> <%/loop%>
    <%/if%>
style="height:180px"<%/if%>>
    <%set {topiclist} = forumagg.GetForumTopicList(tcount, 0, forumid, TopicTimeType.All, TopicOrderType.Replies, false, false)%> <%if {topiclist.Rows.Count}>0%> <%loop hottopicinfo topiclist%> <%set {aspxrewriteurl} = this.ShowTopicAspxRewrite({hottopicinfo[tid]},0)%>
  • {hottopicinfo[replies]}<%getsubstring({hottopicinfo[title]},28,"...")%>
  • <%/loop%> <%else%> 暂无数据! <%/if%>
<%/if%> <%/loop%>
<%if {Discuz.Plugin.Space.SpacePluginProvider.GetInstance()}!=null%> <%if {config.enablespace}==1%>

空间首页>>个人空间

<%loop (SpaceConfigInfoExt) __spaceconfig spaceconfigs%> <%if {__spaceconfig[_id]}<=3 %> <%set (string){avatarurl}=Avatars.GetAvatarUrl(__spaceconfig.Userid,AvatarSize.Small) %>
blogphoto
<%getsubstring({__spaceconfig.spacetitle},20,"...")%>
<%getsubstring({__spaceconfig.posttitle},30,"...")%>
<%/if%> <%/loop%>
<%loop space spaceagg.GetRecentUpdateSpaceList(5)%> <%if {space[_id]}<=5%>
<%set (string){avatarurl}=Avatars.GetAvatarUrl({space[userid]}, AvatarSize.Small) %> 头像
<%getsubstring({space[spacetitle]},30,"...")%>
日志{space[PostCount]}
<%/if%> <%/loop%>
<%/if%> <%/if%> <%if {Discuz.Plugin.Album.AlbumPluginProvider.GetInstance()}!=null%> <%if {config.enablealbum}==1%>

<%loop (AlbumCategoryInfo) ac albumcategorylist%> {ac.title} <%if {ac[_id]}>=4%> <%break%> <%/if%> <%/loop%> 更多>>相册

<%loop (AlbumInfo) __albuminfo recommendalbumlist%> <%if {__albuminfo[_id]}<=4 %>
<%if {__albuminfo.logo}!=""%> {__albuminfo.title} <%else%> {__albuminfo.albumid} <%/if%>
{__albuminfo.title}
<%/if%> <%/loop%>
    <%set {albumlist} = albumagg.GetAlbumList(photoconfig.Focusalbumshowtype, 7, 180)%> <%if {albumlist.count}>0%> <%loop (AlbumInfo) hotalbuminfo albumlist%>
  • {hotalbuminfo.title} ({hotalbuminfo.username})
  • <%/loop%> <%else%> 暂无数据! <%/if%>
<%/if%> <%/if%>
<%if {forumlinkcount}>0%> <%/if%>
<%/if%>
<%else%> <%template _errmsgbox%> <%/if%> <%set (string){webSiteBottomAd}={Advertisements.GetWebSiteAd(AdType.WebSiteBottomAd)}%> <%template _copyright%> <%set (string){webSiteHeaderAd}={Advertisements.GetWebSiteAd(AdType.WebSiteHeaderAd)}%> <%set (string){webSiteHotTopicAd}={Advertisements.GetWebSiteAd(AdType.WebSiteHotTopicAd)}%> <%set (string){webSiteUserPostTopAd}={Advertisements.GetWebSiteAd(AdType.WebSiteUserPostTopAd)}%> <%set (string){webSiteRecForumTopAd}={Advertisements.GetWebSiteAd(AdType.WebSiteRecForumTopAd)}%> <%set (string){webSiteRecForumBottomAd}={Advertisements.GetWebSiteAd(AdType.WebSiteRecForumBottomAd)}%> <%set (string){webSiteRecAlbumAd}={Advertisements.GetWebSiteAd(AdType.WebSiteRecAlbumAd)}%> <%template _adlist%> <%template _footer%>