<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<div class="nav3 mb10">
    <ul class="cc">
<!--
EOT;
empty($mode) && $mode = 'bbs';
foreach($db_modes as $key => $value){
if($value['ifopen'] && !in_array($key,$unSeoset)){
$current_menu = $key == $mode ? 'class="current"' : '';
print <<<EOT
-->
        <li $current_menu><a href="$basename&mode=$key">$value[m_name]</a></li>
<!--
EOT;
}}print <<<EOT
-->
	 	<li><a href="$basename&mode=sitemap">網站地圖</a></li>
    </ul>
</div>
<div class="admin_info mb10">
	<h2 class="h1">論壇SEO優化設置</h2>
    <div class="legend">
        <ol>
            <li>網頁SEO優化設置規則︰</li>
            <li>網站名稱:{wzmc}（應用範圍︰所有位置）</li>
            <li>版塊名稱:{bkmc}（應用範圍︰除首頁以外）</li>
            <li>帖子分類名稱:{flmc}（應用範圍︰除首頁以外）</li>
            <li>帖子名稱:{tzmc}（應用範圍︰帖子閱讀頁和文章頁）</li>
            <li>tag名稱:{tmc}（應用範圍︰帖子閱讀頁和文章頁）</li>
            <li>文章概要:{wzgy}（應用範圍︰帖子閱讀頁）</li>
            <li>以上標簽（必須包含大括號"{}"）可以通過添加在下面來優化頁面SEO設置，多個標簽之間可以用半角連字符"-"、半角","或半角空格隔開。留空為默認SEO設置，如果標簽不再應用範圍內則不顯示此標簽</li>
        </ol>
    </div>
</div>
<form action="$basename" method="post" >
<input type="hidden" name="action" value="update" />
<input type="hidden" name="mode" value="$mode">
<h2 class="h1">首頁</h2>
<div class="admin_table mb10">
    <table width="100%" cellspacing="0" cellpadding="0">
        <tr class="tr1 vt">
            <td class="td1">Title </td>
            <td class="td2"><input type="text" class="input input_wb" name="seoset[title][index]" value="{$db_seoset[title][index]}"  maxlength="250" /></td>
            <td></td>
        </tr>
        <tr class="tr1 vt">
            <td class="td1">Meta Description </td>
            <td class="td2"><input type="text" class="input input_wb" name="seoset[metaDescription][index]" value="{$db_seoset[metaDescription][index]}"  maxlength="250" /></td>
            <td></td>
        </tr>
        <tr class="tr1 vt">
            <td class="td1">Meta Keywords </td>
            <td class="td2"><input type="text" class="input input_wb" name="seoset[metaKeywords][index]" value="{$db_seoset[metaKeywords][index]}"  maxlength="250" /></td>
            <td></td>
        </tr>
    </table>
</div>
<h2 class="h1">
	帖子列表頁
	<span class="bt2 linka"><span><button type="button" name="openfordetail" onclick="cateopen('bbs',null)">展開詳細設置</button></span></span>
</h2>
<div class="admin_table mb10">
    <table width="100%" cellspacing="0" cellpadding="0">
        <tr class="tr1 vt">
            <td class="td1">Title︰</td>
            <td class="td2"><input type="text" class="input input_wb" name="seoset[title][thread]" value="{$db_seoset[title][thread]}" maxlength="250"  /></td>
            <td></td>
        </tr>
        <tr class="tr1 vt">
            <td class="td1">Meta Description︰</td>
            <td class="td2"><input type="text" class="input input_wb" name="seoset[metaDescription][thread]" value="{$db_seoset[metaDescription][thread]}" maxlength="250" /></td>
            <td></td>
        </tr>
        <tr class="tr1 vt">
            <td class="td1">Meta Keywords︰</td>
            <td class="td2"><input type="text" class="input input_wb" name="seoset[metaKeywords][thread]" value="{$db_seoset[metaKeywords][thread]}" maxlength="250" /></td>
            <td></td>
        </tr>
	</table>
	<table width="100%" cellspacing="0" cellpadding="0" id="cate_bbs" style="display: none; table-layout:fixed;">
<!--
EOT;
foreach($categorys as $key => $cate){
$_key = 'bbs_thread_'.$cate[fid];
print <<<EOT
-->
        <tbody>
        <tr class="tr1 vt">
            <td class="td1"><i class="expand expand_a" onclick='cateopen($cate[fid],this)' ></i>$cate[name]</td>
            <td class="td2">&nbsp;</td>
        </tr>
        </tbody>
        <tbody id="cate_$cate[fid]" style="display: none">
<!--
EOT;
foreach($forumList[$cate['fid']] as $forum){
$_key = 'bbs_thread_'.$forum[fid];
print <<<EOT
-->
        <tr class="tr2 td_bgB">
            <td class="s5" colspan="2">{$forum[name]}</td>
        </tr>	
        <tr class="tr1 vt">
            <td class="td1">{$forum[limage1]}Title︰</td>
            <td class="td2"><input type="text" class="input input_wb" name="forums[$forum[fid]][title]" value="$forum[title]" maxlength="250" /></td>
        </tr>
        <tr class="tr1 vt">
            <td class="td1">{$forum[limage1]}Meta Description︰</td>
            <td class="td2"><input type="text" class="input input_wb" name="forums[$forum[fid]][descrip]" value="$forum[metadescrip]" maxlength="250"/></td>
        </tr>
        <tr class="tr1 vt">
            <td class="td1">{$forum[limage1]}Meta Keywords︰</td>
            <td class="td2"><input type="text" class="input input_wb" name="forums[$forum[fid]][keywords]" value="$forum[keywords]" maxlength="250"/></td>
        </tr>
<!--
EOT;
}print <<<EOT
-->
        </tbody>
<!--
EOT;
}print <<<EOT
-->
	</table>
</div>
<h2 class="h1">帖子閱讀頁</h2>
<div class="admin_table mb10">
	<table width="100%" cellspacing="0" cellpadding="0">
        <tr class="tr1 vt">
            <td class="td1">Title︰</td>
            <td class="td2"><input type="text" class="input input_wb" name="seoset[title][read]" value="{$db_seoset[title][read]}"  maxlength="250" /></td>
            <td></td>
        </tr>
        <tr class="tr1 vt">
            <td class="td1">Meta Description︰</td>
            <td class="td2"><input type="text" class="input input_wb" name="seoset[metaDescription][read]" value="{$db_seoset[metaDescription][read]}"  maxlength="250" /></td>
            <td></td>
        </tr>
        <tr class="tr1 vt">
            <td class="td1">Meta Keywords︰</td>
            <td class="td2"><input type="text" class="input input_wb" name="seoset[metaKeywords][read]" value="{$db_seoset[metaKeywords][read]}"  maxlength="250" /></td>
            <td></td>
        </tr>
	</table>
</div>
<div class="tac mb10">
	<span class="btn"><span><button type="submit">提 交</button></span></span>
</div>
</form>
<script type="text/javascript">
function cateopen(id,obj) {
	var o = getObj('cate_' + id);
	if (o == null) return;
	if (o.style.display == 'none') {
		o.style.display = '';
		if (obj != null) obj.className = 'expand expand_b';
	} else {
		o.style.display = 'none';
		if (obj != null) obj.className = 'expand expand_a';
	}
}
</script>
<!--
EOT;
include_once PrintEot('adminbottom');
?>-->