{template header}
<!--/* 系統調用完 header.htm 頭文件後,Discuz 首頁中間內容開始輸出 */-->
<div style="width: {TABLEWIDTH}; clear: both; overflow: hidden;">
<!--/* Discuz 首頁左上角個人信息開始*/-->
<div class="left" style="line-height: 18px;">
<span class="bold">
<!--/* 在 gid 頁面 (以 index.php?gid=xxx 形式進入的頁面) 時,判斷是否是會員,
如果只是遊客 (條件:$gid || !$discuz_uid),則輸出:$bbname 和個人空間相應的鏈接,否則輸出:
用户名 ($discuz_user)
在這裏,我們用可以用 $gid 來控制 gid 論壇指定列表的頁面輸出了。。*/-->
<!--{if $gid || !$discuz_uid}-->
<a href="$indexname">$bbname</a>
<!--{else}-->
<!--{if $supe['status']}--><a href="$supe[siteurl]" target="_blank">$supe['sitename']</a> -
<!--{/if}-->
$discuz_user
<!--{/if}-->

<!--{if $discuz_uid}-->
<!--/*如果是註冊會員,*/-->

<!--{if $spacestatus || $supe['status']}-->
<!--/*如果 $spacestatus 和 $supe['status'] 兩個條件 (個人信息顯示和是否安裝 SS) 有其中一個成立,則輸出 「個人空間」 的鏈接*/-->
- <a href="space.php?uid=$discuz_uid" target="_blank">{lang space}</a>
<!--{/if}-->

<!--{if $supe['status'] && !$xspacestatus}-->
<!--/*如果已經安裝 SS 或者 X-SPACE 程序*/-->
<!--{if $spacestatus}-->
<!--/*如果已經開通個人空間,則輸出 「升級個人空間」 、否則輸出 「開通個人空間」 的鏈接*/-->
- <a href="$supe[siteurl]/index.php?action/register" target="_blank">{lang space_upgrade_space}</a>
<!--{else}-->
- <a href="$supe[siteurl]/index.php?action/register" target="_blank">{lang supe_signin_xspace}</a>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
</span>

<br>
{lang credits}: <span class="bold smalltxt">$credits</span> <span id="creditlist">{lang credits_detail}<script type="text/javascript">menuregister(false, "creditlist", true)</script></span> / {lang index_status}:
<!--{if $validdays}-->
<!--/*如果用户組有日期限制的,輸出的用户組後面帶有相應的日期,否則直接輸出用户組名稱*/-->
<a href="member.php?action=groupexpiry"><span class="bold">$grouptitle</span>($validdays)</a>
<!--{else}-->
<span class="bold">$grouptitle</span>
<!--{/if}-->
<!--{if $allowinvisible && $discuz_uid}-->
<!--/*如果當前會員為註冊會員,並且擁有隱身的權限,則輸出詳細的在線狀態:在線模式、隱身模式,並帶上兩個狀態切換的鏈接*/-->
{lang online_status}:
<!--{if !empty($invisible)}-->
<a href="member.php?action=switchstatus" title="{lang login_switch_normal_mode}">{lang login_invisible_mode}</a>
<!--{else}-->
<a href="member.php?action=switchstatus" title="{lang login_switch_invisible_mode}">{lang login_normal_mode}</a>
<!--{/if}-->
<!--{/if}-->
<br>
{lang your_lastvisit} <span class="smalltxt">$lastvisittime</span><br>
</div>
<!--/* Discuz 首頁左上角個人信息結束 */-->
<!--/* Discuz 首頁右上角論壇基本信息開始 */-->
<div class="right" style="line-height: 18px;">
<a href="search.php?srchfrom=$newthreads&searchsubmit=yes">{lang show_newthreads}</a> |
<a href="digest.php">{lang digest}</a> |
<a href="member.php?action=markread">{lang mark_read}</a>
<!--{if $rssstatus}--><a href="rss.php?auth=$rssauth" target="_blank"><img src="images/common/xml.gif" border="0" class="absmiddle" alt="{lang rss_subscribe_all}" /></a><!--{/if}-->
<br>
{lang total} <span class="smalltxt">$threads</span> {lang index_threads} / <span class="smalltxt">$posts</span> {lang index_posts} / {lang index_today} <span class="smalltxt">$todayposts</span> {lang index_posts}<br>
{lang total} <span class="smalltxt">$totalmembers</span> {lang index_members} / {lang welcome_newmember} <a href="space.php?username=$memberenc"><span class="bold">$lastmember</span></a>
</div>
</div><br>
<!--/* Discuz 首頁右上角論壇基本信息結束 */-->
<!--/* Discuz 首頁公告、 Qihoo 搜索模塊開始*/-->
<!--{if empty($gid)}-->
<!--/*沒有在沒有接到 URL 傳遞到的 $gid 值的條件下 (也就是在非指定論壇列表的頁面下),輸出公告和 Qihoo 搜索的內容 */-->
<!--{if !empty($announcements)}-->
<!--/*如果公告變量 $announcements 非為空,則輸出公告內容,並用 javascript 控制其滾動 */-->
<div id="announcement">$announcements</div><script type="text/javascript">announcement();</script>
<!--{/if}-->
<!--/* Discuz 首頁 Qihoo 搜索模塊開始*/-->
<!--{if !empty($qihoo_status) && $searchboxstatus}-->
<div class="subtable" style="clear: both; width: {TABLEWIDTH}">
<div class="right">
<form method="post" action="search.php?srchtype=qihoo" >
<input type="hidden" name="searchsubmit" value="yes">
<input type="text" name="srchtxt" value="$qihoo_searchboxtxt" size="30" class="input" style="{BGCODE};" >
<select name="stype"><option value="" selected>{lang qihoo_search_filltext}</option><option value="1">{lang qihoo_search_title}</option><option value="2">{lang qihoo_search_author}</option></select>
<input name="searchsubmit" class="button" type="submit" value="{lang search}">
</form>
</div>
<!--{if $qihoo_links['keywords']}-->
<span class="bold">{lang qihoo_hot_searches}</span>
<!--{loop $qihoo_links['keywords'] $link}-->
$link
<!--{/loop}-->
<!--{/if}-->
</div>
<div class="subtable" style="clear: both; width: {TABLEWIDTH}">
<div class="right">
<!--{if $customtopics}-->
<span class="bold">{lang qihoo_custom_topics}</span> $customtopics [<a href="###" >{lang edit}</a>]
<!--{/if}-->
</div>
<!--{if $qihoo_links['topics']}-->
<span class="bold">{lang qihoo_topics}</span>
<!--{loop $qihoo_links['topics'] $url}-->
{$url}
<!--{/loop}-->
<!--{/if}-->
</div>
<!--{/if}-->
<!--/* Discuz 首頁 Qihoo 搜索模塊結束*/-->
<!--{/if}-->
<!--/* Discuz 首頁公告、 Qihoo 搜索模塊模塊結束*/-->
<!--/* Discuz 首頁信息提示模塊開始*/-->
<!--{if !empty($newpmexists) || $announcepm}-->
<!--/*用户短信息數組為非空,或者公共消息 (後台統一發送) 數組非空,則調用 pmprompt.htm 模板,實現首頁的短信提示*/-->
<div style="clear: both; margin-top: 5px">
{template pmprompt}
</div>
<!--{/if}-->
<!--/* Discuz 首頁信息提示模塊結束*/-->
<!--/* Discuz 首頁廣告模塊開始*/-->
<!--{if !empty($advlist['text'])}-->
<!--/*如果廣告類型為:text 的數組為非空,則輸出面頁廣告*/-->
<div style="clear: both; margin-top: 5px;">
<div class="spaceborder" style="width: {TABLEWIDTH}">
<table cellspacing="1" border="0" cellpadding="{TABLESPACE}" width="100%" style="background: {BGBORDER}">$advlist[text]</table>
</div><br></div>
<!--{/if}-->
<!--/* Discuz 首頁廣告模塊結束*/-->
<!--/* Discuz 首頁 X-SPACE 熱點導讀模塊開始*/-->
<!--{if $supe['status'] && $supe['items']['status'] && $_DCACHE['supe_updateitems']}-->
<div style="clear: both; margin-top: 5px;">
<div class="spaceborder" style="width: {TABLEWIDTH}">
<table cellspacing="0" border="0" cellpadding="{TABLESPACE}" width="100%">
<tr><td colspan="$supe[items][columns]" class="header" style="padding-left:20px">
<div class="subtable" style="padding: 0px"><a href="$supe[siteurl]" target="_blank">{lang supe_updateitems}</a></div>
</td></tr>
<script language="javascript">$_DCACHE['supe_updateitems']</script></table>
</div></div>
<!--{/if}-->
<!--/* Discuz 首頁 X-SPACE 熱點導讀模塊結束*/-->
<!--/* Discuz 首頁版塊列表模塊開始*/-->
<!--{loop $catlist $key $cat}-->
<!--{if $cat['forumscount']}-->
<div class="spaceborder spacebottom" style="width: {TABLEWIDTH}; clear: both; margin-top: 5px;">
<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
<tr>
<td colspan="<!--{if $cat['forumcolumns']}-->$cat[forumcolumns] <!--{else}-->7 <!--{/if}-->" class="header" style="padding-left:20px">
<div class="subtable" style="padding: 0px">
<div class="right">
<!--{if $cat['moderators']}-->
<font color="{HEADERTEXT}">{lang forum_category_modedby}: $cat[moderators]</font>
<!--{/if}-->
<a href="###" >
<img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" border="0" alt="" /></a>
</div>
<a href="http://$indexname?gid=$cat%5Bfid%5D">$cat[name]</a>
</div>
</td>
</tr>

<!--/*在非首頁下級論壇橫排的情況下,論壇版塊列表的輸出開始*/-->
<!--{if !$cat['forumcolumns']}-->
<tbody id="category_$cat[fid]" style="$collapse['category_'.$cat[fid]]">
<tr class="category" align="center">
<td width="5%"> </td>
<td width="56%" align="left">{lang forum_name}</td>
<td width="5%">{lang forum_threads}</td>
<td width="5%">{lang forum_posts}</td>
<td width="13%">{lang forum_lastpost}</td>
<td width="16%">{lang forum_moderators}</td>
</tr>