<!--<?php
include_once PrintEot('left');
if(empty($action)){print <<<EOT
-->
<ul class="nav3">
<li><a href="#" class="two">友情鏈接管理</a></li>
<li><a href="$basename&action=add">添加友情鏈接</a></li>
</ul>
<div class="c"></div>
<h3><b>提示信息</b></h3>
<div class="tr5">
 友情鏈接添加說明︰<br> 1、特殊鏈接(顯示順序<0，每行顯示一個)<br> 2、普通連接(顯示順序>=0)
</div>
<form method="post" action="$basename&">
<h2><select style="float:right;margin-top:.3em;" onchange="window.location=('$basename&state='+this.value);"><option>狀態</option><option value="1" $state_1>已審</option><option value="0" $state_0>未審</option></select></h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3 s3"  align="center">
		<td width="5%">ID</td>
		<td width="20%">論壇名稱</td>
		<td width="6%">順序</td>
		<td width="30%">論壇URL</td>
		<td width="*">論壇說明</td>
		<td width="5%">狀態</td>
		<td width="5%" class="tal">編輯</td>
		<td width="4%"></td>
	</tr>
<!--
EOT;
foreach($threaddb as $key=> $thread){
$key++;
$state=$thread[ifcheck] ? '已審' : '<font color="red">未審</font>';
print <<<EOT
-->
	<tr class="tr3" align="center">
		<td>$key</td>
		<td><a href="$basename&action=edit&sid=$thread[sid]">$thread[name]</a></td>
		<td>$thread[threadorder]</td>
		<td>$thread[url]</td>
		<td>$thread[descrip]</td>
		<td>{$state}</td>
		<td><a class="fourm-two" href="$basename&action=edit&sid=$thread[sid]" title="編輯"><span class="edit"></span></a></td>
		<td><input type='checkbox' name='deiaid[]' value="$thread[sid]"></td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<input name=action type=hidden value="del">
<br><center><input class="btn" type="button" name="chkall" value="全 選" onclick="CheckAll(this.form)"> <input class="btn" type="submit" name="delete" value="刪 除"> <input type="submit" class="btn" name="unpass" value="未 審"> <input class="btn" type="submit" name="pass" value="審 核"></center><br/></form>
<!--
EOT;
}elseif($action=='add' || $action=='edit'){print <<<EOT
-->
<ul class="nav3">
<li><a href="$basename">友情鏈接管理</a></li>
<!--
EOT;
if($action=='edit'){ print <<<EOT
-->
<li><a href="$basename&action=add">添加友情鏈接</a></li>
<li><a href="#" class="two">編輯友情鏈接</a></li>
<!--
EOT;
}else{ print <<<EOT
-->
<li><a href="#" class="two">添加友情鏈接</a></li>
<!--
EOT;
} print <<<EOT
-->
</ul>
<div class="c"></div>
<h3><b>提示信息</b></h3>
<div class="tr5">
 友情鏈接添加說明︰<br> 1、特殊鏈接(顯示順序<0，每行顯示一個)<br> 2、普通連接(顯示順序>=0)
</div>
<form action="$basename" method=POST>
<input type=hidden name="action" value=$action>
<input type=hidden name="step" value=2>
<input type=hidden name="sid" value=$sid>
<h2><b>友情鏈接</b></h2>
<table cellspacing="0" cellpadding="0" width="100%">
<tr class="tr3"><td width=20%>論壇名稱</td>
<td><input type="text" class="input" name="name" size=30 value='$name'></td></tr>
<tr class="tr3"><td width=20%>顯示順序(默認為0)</td>
<td><input type="text" class="input" name="threadorder" value='$threadorder' size="30"></td></tr>
<tr class="tr3"><td>論壇URL</td>
<td><input type="text" class="input" name="url" value='$url' size="30"></td></tr>
<tr class="tr3"><td>論壇主人</td>
<td><input type="text" class="input" name="username" value='$username' size="30"></td></tr>
<tr class="tr3"><td>論壇說明</td>
<td><input type="text" class="input" name="descrip" value='$descrip' size="30"></td></tr>
<tr class="tr3"><td>論壇LOGO<br>[設置文字鏈接請留空]</td>
<td><input type="text" class="input" name="logo" value='$logo' size="30"></td></tr>
<tr class="tr3"><td>狀態</td>
<td><input type="radio" name="ifcheck" $ifcheck_Y value="1"> 已審 <input type="radio" name="ifcheck" $ifcheck_N value="0"> 未審 </td></tr>
</table><br>
<center><input type="submit" class="btn" value="提 交"></center><br/></form>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>-->