<?exit?>
{template blog_header}

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

<!-- Content內容 -->
<div class="content" style="background: none;">
	<!-- 右側 -->
	<div class="sideR">
		<!-- 用戶面板 -->
		<div id="userpanel" class="sideblock">
			<script src="{S_URL}/batch.panel.php" type="text/javascript" language="javascript"></script>
		</div>

		<!-- 空間之星 -->
		<!--{block name="userspace" parameter="isstar/1/showdetail/1/order/u.lastpost DESC/limit/0,9/cachetime/14400/cachename/spacestar/tpl/data"}-->
		<div id="spacestar" class="sideblock">
			<h3>空間之星</h3>
			<ul>
				<!--{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}-->
			</ul>
		</div>

		<!-- 同城空間 -->
		<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>
	</div>
	<!-- /右側 -->
	<!-- 左側 -->
	<div class="sideL">

		<!--審核等級4的圖文日誌幻燈片-->
		<!--{block name="spaceblog" parameter="grade/4/haveattach/1/showattach/1/order/i.lastpost DESC/limit/0,4/cachetime/11930/cachename/picblog/tpl/data"}-->
		<div id="slideimg" class="sideblock cleanblock">
		<!--{if !empty($_SBLOCK['picblog'])}-->
			<!--{eval $picarr=$linkarr=$textarr=array();}-->
			<!--{loop $_SBLOCK['picblog'] $ikey $value}-->
			<!--{eval $picarr[] = '"'.$value[a_filepath].'"';}-->
			<!--{eval $linkarr[] = '"'.$value[url].'"';}-->
			<!--{eval $textarr[] = '"'.$value[subject].'"';}-->
			<!--{/loop}-->
			<!--{eval $pics = implode(',', $picarr);}-->
			<!--{eval $links = implode(',', $linkarr);}-->
			<!--{eval $texts = implode(',', $textarr);}-->
			
			<script type="text/javascript" language="javascript">
			<!--
			var focus_width=208;
			var focus_height=208;
			var text_height=20;
			
			var xsImgs = new Array({$pics});
			var xsImgLinks = new Array({$links});
			var xsImgTexts = new Array({$texts});
			var xsImgSize = new Array(focus_width, focus_height);
			//-->
			</script>
			<script language="javascript" type="text/javascript" src="{S_URL}/include/js/slide.js"></script>
		<!--{else}-->
			<div style="height:234px; he\ight: 214px; padding:10px; line-height:150%;">圖文日誌顯示區域<br />該區域顯示的日誌需要滿足的條件為：<br />1.<u>日誌的審核等級為4</u><br>2.<u>日誌含有圖片附件</u></div>
		<!--{/if}-->
		</div>
		<!--日誌圖片幻燈片 結束-->
		
		<!--審核等級3的日誌-->
		<!--{block name="spaceblog" parameter="grade/3/order/i.lastpost DESC/limit/0,9/subjectlen/20/subjectdot/1/cachetime/18000/cachename/recommend3blog/tpl/data"}-->
		<div id="commendread" class="sideblock boldblock">
			<h3>推薦閱\讀</h3>
			<ul class="msgtitlelist" style="height: 14.8em;">
			<!--{if !empty($_SBLOCK['recommend3blog'])}-->
				<!--{loop $_SBLOCK['recommend3blog'] $value}-->
				<li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
				<!--{/loop}-->
			<!--{else}-->
				<li style="height: auto;">該區域顯示的日誌需要滿足的條件為：<br /><u>日誌的審核等級為3</u></li>
			<!--{/if}-->
			</ul>
		</div>
	</div>
	<!-- /左側 -->
	<div class="mainarea">
		<!--審核等級5的日誌-->
		<!--{block name="spaceblog" parameter="grade/5/showattach/1/showdetail/1/order/i.dateline DESC/limit/0,1/subjectlen/30/subjectdot/1/messagelen/80/messagedot/1/cachetime/18600/cachename/headblog/tpl/data"}-->
		<!--{if !empty($_SBLOCK['headblog'])}-->
		<!--{loop $_SBLOCK['headblog'] $value}-->
		<div id="headline" class="cleanblock">
			<!--{if !empty($value['a_thumbpath'])}--><a href="$value[url]"><img src="$value[a_thumbpath]" alt="" /></a><!--{/if}-->
			<strong><a href="$value[url]">$value[subject]</a></strong>
			<p>$value[message]</p>
		</div>
		<!--{/loop}-->
		<!--{else}-->
		<div id="headline" class="cleanblock">
			<strong>最新頭條閱\讀</strong>
			<p>該區域顯示的日誌需要滿足的條件為：<br><u>日誌的審核等級為5</u></p>
		</div>
		<!--{/if}-->
		
		<!--站內最新審核BLOG列表-->
		<!--{block name="spaceblog" parameter="grade/1,2,3,4,5/order/i.dateline DESC/limit/0,15/showspacename/1/subjectlen/40/subjectdot/1/cachetime/4800/cachename/newgradeblog/tpl/data"}-->
		<div id="focus">
			<ul class="msgtitlelist">
				<!--{if !empty($_SBLOCK['newgradeblog'])}-->
					<!--{loop $_SBLOCK['newgradeblog'] $value}-->
					<li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a></li>
					<!--{/loop}-->
				<!--{else}-->
					<li style="height: auto;">該區域顯示的日誌需要滿足的條件為：<br /><u>日誌的審核等級為1,2,3,4,5</u></li>
				<!--{/if}-->
			</ul>
		</div>
	</div>
</div>
<div class="content" style="background: none;">
	<!-- 右側版塊 -->
	<div class="sideR">
		<!--最新用戶空間名稱列表-->
		<!--{block name="userspace" parameter="lastpost/604800/order/u.spaceblognum DESC/limit/0,10/cachetime/9900/cachename/newspace/tpl/data"}-->
		<div id="hotspace" class="sideblock stat" style="height: 232px;">
			<h3><a href="#action/spaces#" class="more">所有空間&gt;&gt;</a>一周熱點空間</h3>
			<ol>
				<!--{loop $_SBLOCK['newspace'] $value}-->
				<li><em>$value[spaceblognum] </em><a href="$value[url]">$value[spacename]</a></li>
				<!--{/loop}-->
			</ol>
		</div>
	</div>
	<div class="sideL">
	
		<!--最熱日誌TAG列表-->
		<!--{block name="tag" parameter="order/spaceblognum DESC/limit/0,20/cachetime/18000/cachename/hottag/tpl/data"}-->
		<div id="hottag" class="sideblock boldblock">
			<h3>熱門TAG</h3>
			<div style="height: 200px; line-height: 1.9em;">
				<!--{loop $_SBLOCK['hottag'] $value}-->
				<a href="$value[url]">$value[tagname]<em>($value[spaceblognum])</em></a>
				<!--{/loop}-->
				<!--{loop $_SBLOCK['hottag'] $value}-->
				<a href="$value[url]">$value[tagname]<em>($value[spaceblognum])</em></a>
				<!--{/loop}-->
			</div>
		</div>
	</div>
	<div class="mainarea">
		<div id="hotarticle">
			<p id="hotarticletabs"><span id="alltab" onclick="setTab('hotarticle','all')">全部</span> <span id="weektab" onclick="setTab('hotarticle','week')">一月</span> <span id="daytab" class="active" onclick="setTab('hotarticle','day')">一周</span></p>
			<h3>熱門文章</h3>
			<!--站內熱門BLOG列表(一周)-->
			<!--{block name="spaceblog" parameter="dateline/604800/order/i.viewnum DESC/limit/0,10/cachetime/15400/subjectlen/40/subjectdot/1/cachename/hotblog1/tpl/data"}-->
			<ul id="day" class="tabcontent">
				<!--{loop $_SBLOCK['hotblog1'] $value}-->
				<li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a>($value[viewnum])</li>
				<!--{/loop}-->
			</ul>
			<!--站內熱門BLOG列表(一月)-->
			<!--{block name="spaceblog" parameter="dateline/2592000/order/i.viewnum DESC/limit/0,10/cachetime/17200/subjectlen/40/subjectdot/1/cachename/hotblog2/tpl/data"}-->
			<ul id="week" class="tabcontent" style="display: none;">
				<!--{loop $_SBLOCK['hotblog2'] $value}-->
				<li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a>($value[viewnum])</li>
				<!--{/loop}-->
			</ul>
			<!--站內熱門BLOG列表(全部)-->
			<!--{block name="spaceblog" parameter="order/i.viewnum DESC/limit/0,10/cachetime/17400/subjectlen/40/subjectdot/1/cachename/hotblog3/tpl/data"}-->
			<ul id="all" class="tabcontent" style="display: none;">
				<!--{loop $_SBLOCK['hotblog3'] $value}-->
				<li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a>($value[viewnum])</li>
				<!--{/loop}-->
			</ul>
		</div>
	</div>
</div>

<!--圖片日誌顯示-->
<!--{block name="spaceblog" parameter="haveattach/1/showattach/1/order/i.lastpost DESC/subjectlen/14/subjectdot/1/limit/0,7/cachetime/8000/cachename/picblog/tpl/data"}-->
<div class="throughgallery">
	<ul class="imgthumblist">
		<!--{loop $_SBLOCK['picblog'] $value}-->
		<li><div><a href="$value[url]"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a></div><p><a href="$value[url]">$value[subject]</a></p></li>
		<!--{/loop}-->
	</ul>
</div>
<div class="content">
	<!-- 右側版塊 -->
	<div class="sideR">

		<!--站內熱門BLOG列表(一周)-->
		<!--{block name="spaceblog" parameter="lastpost/604800/order/i.replynum DESC/limit/0,10/cachetime/15400/subjectlen/40/subjectdot/1/cachename/replyhot/tpl/data"}-->
		<div class="sideblock">
			<h3>一周討論熱點</h3>
			<dl>
				<!--{loop $_SBLOCK['replyhot'] $value}-->
				<dt><a href="$value[url]">$value[subject]</a></dt>
				<dd><a href="#uid/$value[uid]/action/space#">$value[username]</a> / <a href="$value[url]">評論($value[replynum])</a></dd>
				<!--{/loop}-->
			</dl>
		</div>
	
		<!--最新發表日誌顯示-->
		<!--{block name="spaceblog" parameter="order/i.lastpost DESC/limit/0,20/cachetime/1000/cachename/newblog/tpl/data"}-->
		<div id="newpost" class="sideblock">
			<h3>評論更新</h3>
			<dl>
				<!--{loop $_SBLOCK['newblog'] $value}-->
				<dt><a href="$value[url]">$value[subject]</a></dt>
				<dd><a href="#uid/$value[uid]/action/space#">$value[username]</a> / #date("Y-m-d", $value["lastpost"])#</dd>
				<!--{/loop}-->
			</dl>
		</div>
	</div>
	<div class="sideL">

		<!--近期更新空間列表-->
		<!--{block name="userspace" parameter="order/u.lastpost DESC/limit/0,15/cachetime/1900/cachename/lastspace/tpl/data"}-->
		<div class="sideblock">
			<h3>最近更新空間</h3>
			<dl>
				<!--{loop $_SBLOCK['lastspace'] $value}-->
				<dt><a href="$value[url]">$value[spacename]</a></dt>
				<dd><a href="$value[url]">$value[username]</a> / 日誌 ($value[spaceblognum])</dd>
				<!--{/loop}-->
			</dl>
		</div>

		<!--最新加入空間列表-->
		<!--{block name="userspace" parameter="order/u.dateline DESC/limit/0,15/cachetime/1900/cachename/newspace/tpl/data"}-->
		<div class="sideblock">
			<h3>最新加入空間</h3>
			<dl>
				<!--{loop $_SBLOCK['newspace'] $value}-->
				<dt><a href="$value[url]">$value[spacename]</a></dt>
				<dd><a href="$value[url]">$value[username]</a> / #date("Y-m-d H:i", $value["dateline"])#</dd>
				<!--{/loop}-->
			</dl>
		</div>

	</div>
	<div class="mainarea">

		<!--各分類最新日誌列表-->
		<!--{loop $_SBLOCK['category'] $ckey $cat}-->
		<!--{eval $ctime=1800+30*$ckey;}-->
		<!--{block name="spaceblog" parameter="catid/$cat[subcatid]/order/i.dateline DESC/limit/0,10/cachetime/$ctime/subjectlen/40/subjectdot/1/cachename/bloglist/tpl/data"}-->
		<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="msgtitlelist">
				<!--{loop $_SBLOCK['bloglist'] $value}-->
				<li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a></li>
				<!--{/loop}-->
			</ul>
		</div>
		<!--{/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 blog_footer}