supesite之空间篇
1、空间分类:
<!--{block name="category" parameter="type/space/isroot/1/ischannel/2/order/c.displayorder/limit/0,100/cachetime/3600/cachename/category/tpl/data"}-->
<!--{loop $_SBLOCK['category'] $value}-->
<li><a href="$value[url]" target="_self">$value[name]</a></li>
<!--{/loop}-->
2、空间分类及有新内容的空间列表:
<!--{loop $_SBLOCK['category'] $ckey $cat}-->
<!--{eval $ctime=2800+30*$ckey;}-->
<!--{block name="userspace" parameter="catid/$cat[subcatid]/limit/0,15/order/u.lastpost DESC/cachetime/$ctime/cachename/sublist/tpl/data"}-->
<!--{if $_SBLOCK['sublist']}-->
<div class="category">
<h3>
<strong><a href="#action/category/catid/$cat[catid]#" target="_self">$cat[name]</a></strong>
<a href="#action/category/catid/$cat[catid]#" class="more" target="_self">更多</a>
</h3>
<ul class="imgthumblist">
<!--{loop $_SBLOCK['sublist'] $value}-->
<li class="list2line">
<div><a href="$value[url]" target="_blank"><img src="$value[photo]" alt="$value[spacename]" /></a></div>
<p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
<p>信息数value[spaceallnum]</p>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
<!--{/loop}-->
3、空间分类封面及介绍
<!--{if $thecat['thumb']}-->
<img src="{A_URL}/$thecat[thumb]" alt="" />
<!--{/if}-->
<!--{if $thecat['note']}-->
<p>$thecat[note]</p>
<!--{/if}-->
4、空间子分类列表:
<!--{block name="category" parameter="upid/$thecat[catid]/ischannel/2/order/c.displayorder/limit/0,100/cachetime/10900/cachename/subarr/tpl/data"}-->
<!--{if $_SBLOCK['subarr']}-->
<!--{loop $_SBLOCK['subarr'] $value}-->
<li><a href="$value[url]" target="_self">$value[name]</a></li>
<!--{/loop}-->
<!--{/if}-->
6、空间专题列表:
<!--{block name="category" parameter="upid/$thecat[catid]/ischannel/1/showattach/1/order/c.displayorder/limit/0,100/cachetime/16400/cachename/channel/tpl/data"}-->
<!--{if $_SBLOCK['channel']}-->
<!--{loop $_SBLOCK['channel'] $value}-->
<li>
<a href="#action/category/catid/$value[catid]#" target="_self"><img src="$value[thumb]" alt="" /></a>
<p><a href="#action/category/catid/$value[catid]#" target="_self">$value[name]</a></p>
</li>
<!--{/loop}-->
<!--{/if}-->
7、空间更新排行----以一周内新发表数为序
<!--{block name="userspace" parameter="catid/$thecat[subcatid]/lastpost/604800/limit/0,10/order/u.viewnum DESC/cachetime/29800/cachename/hotlist/tpl/data"}-->
<!--{loop $_SBLOCK['hotlist'] $value}-->
<li>
<a href="$value[url]" target="_blank"><img src="$value[photo]" width="78" height="78" alt="$value[spacename]" /></a>
<p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
<p>信息数value[spaceallnum]</p>
</li>
<!--{/loop}-->
8、空间当前类最新列表
<!--{block name="userspace" parameter="perpage/40/catid/$thecat[subcatid]/order/u.lastpost DESC/cachename/newlist/tpl/data"}-->
<!--{if $_SBLOCK['newlist']}-->
<div class="category">
<h3><strong>$thecat[name]</strong></h3>
<ul class="imgthumblist">
<!--{loop $_SBLOCK['newlist'] $value}-->
<li class="list2line">
<div><a href="$value[url]" target="_blank"><img src="$value[photo]" alt="$value[spacename]" /></a></div>
<p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
<p>信息数value[spaceallnum]</p>
</li>
<!--{/loop}-->
</ul>
9、空间当前类子分类最新列表-->
<!--{loop $_SBLOCK['subarr'] $ckey $cat}-->
<!--{eval $ctime=2800+30*$ckey;}-->
<!--{block name="userspace" parameter="catid/$cat[subcatid]/limit/0,100/order/u.lastpost DESC/cachetime/$ctime/cachename/sublist/tpl/data"}-->
<!--{if $_SBLOCK['sublist']}-->
<div class="category">
<h3>
<strong><a href="#action/category/catid/$cat[catid]#" target="_self">$cat[name]</a></strong>
<a href="#action/category/catid/$cat[catid]#" class="more" target="_self">更多</a>
</h3>
<ul class="imgthumblist">
<!--{loop $_SBLOCK['sublist'] $value}-->
<li class="list2line">
<a href="$value[url]" target="_blank"><img src="$value[photo]" width="78" height="78" alt="$value[spacename]" /></a>
<p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
<p>信息数:$value[spaceallnum]</p>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
<!--{/loop}-->
10、空间之星列表(有头像)--按有新发表为序
<!--{block name="userspace" parameter="isstar/1/showdetail/1/order/u.lastpost DESC/limit/0,9/cachetime/14400/cachename/spacestar/tpl/data"}-->
<!--{loop $_SBLOCK['spacestar'] $value}-->
<li><a href="$value[url]"><img src="$value[photo]" alt="$value[spacename]" /></a><p><a href="$value[url]">$value[username]</a></p>
</li>
<!--{/loop}-->
11、空间之星列表(有头像及信息数目)--按有新发表为序
<!--{block name="userspace" parameter="isstar/1/limit/0,100/order/u.lastpost DESC/cachetime/17400/cachename/spacestar/tpl/data"}-->
<!--{loop $_SBLOCK['spacestar'] $value}-->
<li>
<div><a href="$value[url]" target="_blank"><img src="$value[photo]" alt="$value[spacename]" /></a></div>
<p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
<p>信息数:$value[spaceallnum]</p>
</li>
<!--{/loop}-->
12、同城空间:
<div id="cityspace" class="sideblock cleanblock">
<script language="javascript" type="text/javascript" src="{S_URL}/include/js/city.js"></script>
<form action="{S_URL}/batch.search.php" method="post">
<button value="true" type="submit" name="usersearch">同城<br />空间</button>
<script language="javascript" type="text/javascript">showprovince('province', 'city', '');</script>
<script language="javascript" type="text/javascript">showcity('city', '');</script>
</form>
</div>
13、最近更新空间(含空间名称、主人、博客篇数)
<!--{block name="userspace" parameter="order/u.lastpost DESC/limit/0,15/cachetime/1900/cachename/lastspace/tpl/data"}-->
<!--{loop $_SBLOCK['lastspace'] $value}-->
<a href="$value[url]">$value[spacename]</a><br/>
<a href="$value[url]">$value[username]</a> / 博客 ($value[spaceblognum])
<!--{/loop}-->
14、最新加入空间(含空间名称、主人、加入日期)
<!--{block name="userspace" parameter="order/u.dateline DESC/limit/0,15/cachetime/1900/cachename/newspace/tpl/data"}-->
<!--{loop $_SBLOCK['newspace'] $value}-->
<a href="$value[url]">$value[spacename]</a><br/>
<a href="$value[url]">$value[username]</a> / #date("Y-m-d H:i", $value["dateline"])#
<!--{/loop}-->
<!--{block name="category" parameter="type/space/isroot/1/ischannel/2/order/c.displayorder/limit/0,100/cachetime/3600/cachename/category/tpl/data"}-->
<!--{loop $_SBLOCK['category'] $value}-->
<li><a href="$value[url]" target="_self">$value[name]</a></li>
<!--{/loop}-->
2、空间分类及有新内容的空间列表:
<!--{loop $_SBLOCK['category'] $ckey $cat}-->
<!--{eval $ctime=2800+30*$ckey;}-->
<!--{block name="userspace" parameter="catid/$cat[subcatid]/limit/0,15/order/u.lastpost DESC/cachetime/$ctime/cachename/sublist/tpl/data"}-->
<!--{if $_SBLOCK['sublist']}-->
<div class="category">
<h3>
<strong><a href="#action/category/catid/$cat[catid]#" target="_self">$cat[name]</a></strong>
<a href="#action/category/catid/$cat[catid]#" class="more" target="_self">更多</a>
</h3>
<ul class="imgthumblist">
<!--{loop $_SBLOCK['sublist'] $value}-->
<li class="list2line">
<div><a href="$value[url]" target="_blank"><img src="$value[photo]" alt="$value[spacename]" /></a></div>
<p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
<p>信息数value[spaceallnum]</p>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
<!--{/loop}-->
3、空间分类封面及介绍
<!--{if $thecat['thumb']}-->
<img src="{A_URL}/$thecat[thumb]" alt="" />
<!--{/if}-->
<!--{if $thecat['note']}-->
<p>$thecat[note]</p>
<!--{/if}-->
4、空间子分类列表:
<!--{block name="category" parameter="upid/$thecat[catid]/ischannel/2/order/c.displayorder/limit/0,100/cachetime/10900/cachename/subarr/tpl/data"}-->
<!--{if $_SBLOCK['subarr']}-->
<!--{loop $_SBLOCK['subarr'] $value}-->
<li><a href="$value[url]" target="_self">$value[name]</a></li>
<!--{/loop}-->
<!--{/if}-->
6、空间专题列表:
<!--{block name="category" parameter="upid/$thecat[catid]/ischannel/1/showattach/1/order/c.displayorder/limit/0,100/cachetime/16400/cachename/channel/tpl/data"}-->
<!--{if $_SBLOCK['channel']}-->
<!--{loop $_SBLOCK['channel'] $value}-->
<li>
<a href="#action/category/catid/$value[catid]#" target="_self"><img src="$value[thumb]" alt="" /></a>
<p><a href="#action/category/catid/$value[catid]#" target="_self">$value[name]</a></p>
</li>
<!--{/loop}-->
<!--{/if}-->
7、空间更新排行----以一周内新发表数为序
<!--{block name="userspace" parameter="catid/$thecat[subcatid]/lastpost/604800/limit/0,10/order/u.viewnum DESC/cachetime/29800/cachename/hotlist/tpl/data"}-->
<!--{loop $_SBLOCK['hotlist'] $value}-->
<li>
<a href="$value[url]" target="_blank"><img src="$value[photo]" width="78" height="78" alt="$value[spacename]" /></a>
<p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
<p>信息数value[spaceallnum]</p>
</li>
<!--{/loop}-->
8、空间当前类最新列表
<!--{block name="userspace" parameter="perpage/40/catid/$thecat[subcatid]/order/u.lastpost DESC/cachename/newlist/tpl/data"}-->
<!--{if $_SBLOCK['newlist']}-->
<div class="category">
<h3><strong>$thecat[name]</strong></h3>
<ul class="imgthumblist">
<!--{loop $_SBLOCK['newlist'] $value}-->
<li class="list2line">
<div><a href="$value[url]" target="_blank"><img src="$value[photo]" alt="$value[spacename]" /></a></div>
<p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
<p>信息数value[spaceallnum]</p>
</li>
<!--{/loop}-->
</ul>
9、空间当前类子分类最新列表-->
<!--{loop $_SBLOCK['subarr'] $ckey $cat}-->
<!--{eval $ctime=2800+30*$ckey;}-->
<!--{block name="userspace" parameter="catid/$cat[subcatid]/limit/0,100/order/u.lastpost DESC/cachetime/$ctime/cachename/sublist/tpl/data"}-->
<!--{if $_SBLOCK['sublist']}-->
<div class="category">
<h3>
<strong><a href="#action/category/catid/$cat[catid]#" target="_self">$cat[name]</a></strong>
<a href="#action/category/catid/$cat[catid]#" class="more" target="_self">更多</a>
</h3>
<ul class="imgthumblist">
<!--{loop $_SBLOCK['sublist'] $value}-->
<li class="list2line">
<a href="$value[url]" target="_blank"><img src="$value[photo]" width="78" height="78" alt="$value[spacename]" /></a>
<p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
<p>信息数:$value[spaceallnum]</p>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
<!--{/loop}-->
10、空间之星列表(有头像)--按有新发表为序
<!--{block name="userspace" parameter="isstar/1/showdetail/1/order/u.lastpost DESC/limit/0,9/cachetime/14400/cachename/spacestar/tpl/data"}-->
<!--{loop $_SBLOCK['spacestar'] $value}-->
<li><a href="$value[url]"><img src="$value[photo]" alt="$value[spacename]" /></a><p><a href="$value[url]">$value[username]</a></p>
</li>
<!--{/loop}-->
11、空间之星列表(有头像及信息数目)--按有新发表为序
<!--{block name="userspace" parameter="isstar/1/limit/0,100/order/u.lastpost DESC/cachetime/17400/cachename/spacestar/tpl/data"}-->
<!--{loop $_SBLOCK['spacestar'] $value}-->
<li>
<div><a href="$value[url]" target="_blank"><img src="$value[photo]" alt="$value[spacename]" /></a></div>
<p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
<p>信息数:$value[spaceallnum]</p>
</li>
<!--{/loop}-->
12、同城空间:
<div id="cityspace" class="sideblock cleanblock">
<script language="javascript" type="text/javascript" src="{S_URL}/include/js/city.js"></script>
<form action="{S_URL}/batch.search.php" method="post">
<button value="true" type="submit" name="usersearch">同城<br />空间</button>
<script language="javascript" type="text/javascript">showprovince('province', 'city', '');</script>
<script language="javascript" type="text/javascript">showcity('city', '');</script>
</form>
</div>
13、最近更新空间(含空间名称、主人、博客篇数)
<!--{block name="userspace" parameter="order/u.lastpost DESC/limit/0,15/cachetime/1900/cachename/lastspace/tpl/data"}-->
<!--{loop $_SBLOCK['lastspace'] $value}-->
<a href="$value[url]">$value[spacename]</a><br/>
<a href="$value[url]">$value[username]</a> / 博客 ($value[spaceblognum])
<!--{/loop}-->
14、最新加入空间(含空间名称、主人、加入日期)
<!--{block name="userspace" parameter="order/u.dateline DESC/limit/0,15/cachetime/1900/cachename/newspace/tpl/data"}-->
<!--{loop $_SBLOCK['newspace'] $value}-->
<a href="$value[url]">$value[spacename]</a><br/>
<a href="$value[url]">$value[username]</a> / #date("Y-m-d H:i", $value["dateline"])#
<!--{/loop}-->