<?exit?>
{template spaces_header}

<!--{if !empty($_SCONFIG['indexadcenter'])}-->
<div class="content" style="background: none; margin-bottom: 0.5em;">
	$_SCONFIG[indexadcenter]
</div>
<!--{/if}-->

<!-- Content內容 -->
<div class="contentR">
	<div class="sideR">
		<!-- 用戶面板 -->
		<div id="userpanel" class="sideblock">
			<script src="{S_URL}/batch.panel.php" type="text/javascript" language="javascript"></script>
		</div>
		
		<!-- 同城空間 -->
		<div id="cityspace" class="sideblock">
			<script language="javascript" type="text/javascript" src="{S_URL}/include/js/city.js"></script>
			<form action="{S_URL}/batch.search.php" method="post">
				<button type="submit" name="usersearch" value="true">同城<br />空間</button>
				<script language="javascript" type="text/javascript">showprovince('province', 'city', '');</script>
				<script language="javascript" type="text/javascript">showcity('city', '');</script>
			</form>
		</div>

		<!--一周更新排行榜-->
		<!--{block name="userspace" parameter="lastpost/604800/limit/0,10/order/u.viewnum DESC/cachetime/29800/cachename/hotlist/tpl/data"}-->
		<div class="sideblock">
			<h3>一周更新排行榜</h3>
			<ul class="imgtitlelist">
				<!--{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}-->
			</ul>
		</div>
		
	</div>
	<div class="mainarea">

		<!--空間之星-->
		<!--{block name="userspace" parameter="isstar/1/limit/0,100/order/u.lastpost DESC/cachetime/17400/cachename/spacestar/tpl/data"}-->
		<div class="category">
			<h3>
				<strong>空間之星</strong>
			</h3>
			<ul class="imgthumblist">
				<!--{loop $_SBLOCK['spacestar'] $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>

		<!--{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}-->
		
	</div>
</div>
<!-- /Content -->

<!--{if !empty($_SCONFIG['indexadfloating']) || !empty($_SCONFIG['indexadside'])}-->
<script type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
<script type="text/javascript">
<!--{if !empty($_SCONFIG['indexadfloating'])}-->
var lengthobj = getWindowSize();
lsfloatdiv('floatAdv', 0, 0, "<div style=\"position: absolute; right: 6px; bottom: -"+lengthobj.winHeight+"px;\"><!--{eval echo jsstrip($_SCONFIG['indexadfloating']);}--></div>").floatIt();
<!--{/if}-->
<!--{if !empty($_SCONFIG['indexadside'])}-->
lsfloatdiv('coupleBannerAdv', 0, 0, "<div style=\"position: absolute; left: 6px; top: 6px;\"><!--{eval echo jsstrip($_SCONFIG['indexadside']);}--><br><img src=\"{S_URL}/images/system/advclose.gif\" onMouseOver=\"this.style.cursor='hand'\" onClick=\"closeBanner('coupleBannerAdv');\"></div><div style=\"position: absolute; right: 6px; top: 6px;\"><!--{eval echo jsstrip($_SCONFIG['indexadside']);}--><br><img src=\"{S_URL}/images/system/advclose.gif\" onMouseOver=\"this.style.cursor='hand'\" onClick=\"closeBanner('coupleBannerAdv');\"></div>").floatIt();
<!--{/if}-->
</script>
<!--{/if}-->

{template spaces_footer}