%template _websiteheader%>
<%if page_err==0%>
<%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%>
<%if {rotatepicdata}!=null && {rotatepicdata}!=""%>
<%/if%>
<%if postlist.Length>0 %>
<%loop (PostInfo) toppost postlist%>
<%if {toppost[_id]}==2%>
<%/if%>
<%if {toppost[_id]}==1%>
- {toppost.message}
<%else%>
- {toppost.poster}{toppost.title}
<%/if%>
<%if {toppost[_id]}=={postlist.Length}%>
<%/if%>
<%/loop%>
<%/if%>
<%if {postlist.Length}<2%>
<%if {postlist.Length}==1%>
<%set {topiclist} = forumagg.GetForumTopicList(6, 0, 0, TopicTimeType.Day, TopicOrderType.Replies, false, false)%>
<%else if {postlist.Length}==0%>
<%set {topiclist} = forumagg.GetForumTopicList(10, 0, 0, TopicTimeType.Day, TopicOrderType.Replies, false, false)%>
<%/if%>
<%loop toptopicinfo topiclist%>
-
<%set {aspxrewriteurl} = this.ShowForumAspxRewrite({strtoint({toptopicinfo[fid]})},0,{toptopicinfo[rewritename]})%>
{toptopicinfo[name]}
<%set {aspxrewriteurl} = this.ShowTopicAspxRewrite({toptopicinfo[tid]},0)%>
<%getsubstring({toptopicinfo[title]},43,"...")%>
<%/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%>
- 会员总数: {totalusers}人
- 最新注册会员:<%set {aspxrewriteurl} = this.UserInfoAspxRewrite({lastuserid})%>{lastusername}
- 主题数:{totaltopic}主题
- 帖子数:{totalpost} 个(含回帖)
- 今 日:{todayposts}帖 昨 日: {yesterdayposts} 帖
<%if {highestpostsdate}!=""%>
-
最高日:{highestposts}帖
-
最高发帖日:{highestpostsdate}
<%/if%>
- 在线总数:{totalonline}人
- 最高在线:{highestonlineusercount} 人
- 发生于:{highestonlineusertime}
<%loop (int) forumid Discuz.Aggregation.AggregationFacade.ForumAggregation.GetRecommendForumID()%>
<%set (ForumInfo) {foruminfo} = Forums.GetForumInfo(forumid)%>
<%if {foruminfo}!=null %>
<%loop sub_forum Forums.GetForumList(forumid)%>
<%if {sub_forum[_id]}<=5 %>
<%set {aspxrewriteurl} = this.ShowForumAspxRewrite({strtoint({sub_forum[fid]})},0,{sub_forum[rewritename]})%>
{sub_forum[name]}
<%/if%>
<%/loop%>
<%set {aspxrewriteurl} = this.ShowForumAspxRewrite({forumid},0,{foruminfo.rewritename})%>
更多>>
<%set {topiclist} = forumagg.GetForumTopicList(8, 0, forumid, TopicTimeType.All, TopicOrderType.PostDateTime, false, false)%>
<%loop newtopicinfo topiclist%>
-
<%set {aspxrewriteurl} = ShowForumAspxRewrite({strtoint({newtopicinfo[fid]})},0,{newtopicinfo[rewritename]})%>
{newtopicinfo[name]}
<%set {aspxrewriteurl} = this.ShowTopicAspxRewrite({newtopicinfo[tid]},0)%>
<%getsubstring({newtopicinfo[title]},43,"...")%>
<%/loop%>
<%set {topiclist} = forumagg.GetForumTopicList(8, 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%>
<%set {topiclist} = forumagg.GetForumTopicList(8, 0, forumid, TopicTimeType.All, TopicOrderType.LastPost, false, false)%>
<%if {topiclist.Rows.Count}>0%>
<%loop replytopic topiclist%>
- <%getsubstring({replytopic[title]},28,"...")%>
<%/loop%>
<%else%>
暂无数据!
<%/if%>
<%set {topiclist} = forumagg.GetForumTopicList(8, 0, forumid, TopicTimeType.All, TopicOrderType.LastPost, true, false)%>
<%if {topiclist.Rows.Count}>0%>
<%loop replytopic topiclist%>
- <%getsubstring({replytopic[title]},28,"...")%>
<%/loop%>
<%else%>
暂无数据!
<%/if%>
<%/if%>
<%/loop%>
<%if {config.enablealbum}==1%>
<%set {albumlist} = albumagg.GetAlbumList(photoconfig.Focusalbumshowtype, 7, 180)%>
<%if {albumlist.count}>0%>
<%loop (AlbumInfo) hotalbuminfo albumlist%>
- {hotalbuminfo.Views}{hotalbuminfo.title} ({hotalbuminfo.username})
<%/loop%>
<%else%>
暂无数据!
<%/if%>
<%set {photolist} = albumagg.GetWeekHotPhotoList(photoconfig.Weekhot)%>
<%if {photolist.count}>0%>
<%loop (PhotoInfo) __photolist photolist%>
- {__photolist.Views}{__photolist.title} ({__photolist.username})
<%/loop%>
<%else%>
暂无数据!
<%/if%>
<%/if%>
<%if {config.enablespace}==1%>
<%/if%>
<%if {config.enablemall}==1%>
更多>>
最新上架产品
<%set {goodscoll} = goodsagg.GetGoodsList("", "newgoods",0,6)%>
<%if {goodscoll.count}>0%>
<%loop (Goodsinfo) goodsinfo goodscoll%>
-
<%set {aspxrewriteurl} = this.ShowGoodsAspxRewrite({goodsinfo.goodsid})%>
<%if {goodsinfo.goodspic}==""%>
<%else%>
<%/if%>
市场价:{goodsinfo.price}元
<%set {aspxrewriteurl} = this.UserInfoAspxRewrite({goodsinfo.selleruid})%>
卖家:{goodsinfo.seller}
<%/loop%>
<%else%>
暂无数据!
<%/if%>
<%set {goodscoll} = goodsagg.GetGoodsList("quality_new", "hotgoods",0,7)%>
<%if {goodscoll.count}>0%>
<%loop (Goodsinfo) hot_goods goodscoll%>
-
<%set {aspxrewriteurl} = this.UserInfoAspxRewrite({hot_goods.selleruid})%>{hot_goods.seller}
<%set {aspxrewriteurl} = this.ShowGoodsAspxRewrite({hot_goods.goodsid})%><%getsubstring({hot_goods.title},20,"...")%>
<%/loop%>
<%else%>
暂无数据!
<%/if%>
<%set {goodscoll} = goodsagg.GetGoodsList("quality_old", "" ,0,7)%>
<%if {goodscoll.count}>0%>
<%loop (Goodsinfo) reco_goods goodscoll%>
-
<%set {aspxrewriteurl} = this.UserInfoAspxRewrite({reco_goods.selleruid})%>{reco_goods.seller}
<%set {aspxrewriteurl} = this.ShowGoodsAspxRewrite({reco_goods.goodsid})%><%getsubstring({reco_goods.title},20,"...")%>
<%/loop%>
<%else%>
暂无数据!
<%/if%>
<%/if%>
<%set {topiclist} = forumagg.GetForumTopicList(10, 0, 0, TopicTimeType.All, TopicOrderType.Views, false, false)%>
<%loop views_topicinfo topiclist%>
-
{views_topicinfo[views]}class="first"<%/if%> <%if {views_topicinfo[_id]}==2 %>class="second"<%/if%> <%if {views_topicinfo[_id]}==3%>class="third"<%/if%>>{views_topicinfo[_id]}
<%set {aspxrewriteurl} = this.ShowTopicAspxRewrite({views_topicinfo[tid]},0)%>
<%getsubstring({views_topicinfo[title]},24,"")%>
<%/loop%>
<%set {topiclist} = forumagg.GetForumTopicList(10, 0, 0, TopicTimeType.All, TopicOrderType.Replies, true, false)%>
<%loop digest_topicinfo topiclist%>
-
{digest_topicinfo[views]}class="first"<%/if%> <%if {digest_topicinfo[_id]}==2%>class="second"<%/if%> <%if {digest_topicinfo[_id]}==3 %>class="third"<%/if%>>{digest_topicinfo[_id]}
<%set {aspxrewriteurl} = this.ShowTopicAspxRewrite({digest_topicinfo[tid]},0)%>
<%getsubstring({digest_topicinfo[title]},24,"")%>
<%/loop%>
<%set {userlist} = forumagg.GetUserList(10, "credits")%>
<%loop credits_user userlist%>
-
{credits_user[credits]}class="first"<%/if%> <%if {credits_user[_id]}==2%>class="second"<%/if%> <%if {credits_user[_id]}==3%>class="third"<%/if%>>{credits_user[_id]}
<%set {aspxrewriteurl} = this.UserInfoAspxRewrite({credits_user[uid]})%>
<%getsubstring({credits_user[username]},20,"...")%>
<%/loop%>
<%set {userlist} = forumagg.GetUserList(10, "oltime")%>
<%loop oltime_user userlist%>
-
{oltime_user[oltime]}分class="first"<%/if%> <%if {oltime_user[_id]}==2%>class="second"<%/if%> <%if {oltime_user[_id]}==3%>class="third"<%/if%>>{oltime_user[_id]}
<%set {aspxrewriteurl} = this.UserInfoAspxRewrite({oltime_user[uid]})%>
<%getsubstring({oltime_user[username]},20,"...")%>
<%/loop%>
<%if {forumlinkcount}>0%>
友情链接
<%set (bool){forumlinkend} = false%>
<%loop forumlink forumlinklist%>
<%if {forumlink[_id]}==1%>
<%/if%>
<%if {forumlink[logo]}!=""%>
-
{forumlink[note]}
<%else if {forumlink[name]}!="$$otherlink$$"%>
-
{forumlink[note]}
<%else%>
<%if {forumlinkend}==false%>
<%set {forumlinkend} = true%>
<%/if%>
{forumlink[note]}
<%/if%>
<%/loop%>
<%if {forumlinkend}==false%>
<%/if%>
<%/if%>
<%else%>
<%template _errmsgbox%>
<%/if%>
<%template _copyright%>
<%template _adlist%>
<%template _footer%>