<!--<?php
include_once PrintEot('left');
if (empty($action)){print <<<EOT
-->
<div class="admin_info mb10">
    <h3 class="h1"><b>提示信息</b></h3>
    <div class="legend">修復表 : 此操作可修復數據庫在進行查詢，刪除，更新等操作時產生的錯誤<br />優化表 : 此操作可優化數據庫表結構，以獲得更好的數據庫運行效率</div>
</div>
<form action="$basename&" method=post>
<h2 class="h1">數據庫優化</h2>
<div class="admin_table mb10">
    <table width="100%" align=center cellspacing="0" cellpadding="0">
    <tr class="tr2 vt td_bgB">
        <td width="30">ID</td>
        <td>數據庫表</td>
        <td width="30">選擇</td>
    </tr>
<!--
EOT;
$id=0;
foreach($pwdb as $key => $value){
if($tabledb[$key]!='pw_online'){
$id++;print <<<EOT
-->
    <tr class="tr1 vt">
        <td class="td2">$id</td>
        <td class="td2">$value</td>
        <td class="td2"><input type="checkbox" name="tabledb[]" value="$tabledb[$key]"></td>
    </tr>
<!--
EOT;
}}print <<<EOT
-->
    </table>
</div>
<div class="mb10 tac">
	<input type="radio" name="action" value="repair"> 修復表
	<input type="radio" name="action" value="optimize" checked> 優化表
    <span class="bt"><span><button type="button" name="chkall" onclick="CheckAll(this.form)">全 選</button></span></span>
    <span class="btn"><span><button type="submit" name="delete">提 交</button></span></span>
</div>
</form>
<form action="$basename&" method=post>
<h2 class="h1">非phpwind數據庫表 (站點插件或其他系統的數據庫表)</h2>
<div class="admin_table mb10">
    <table width="100%" align=center cellspacing="0" cellpadding="0">
    <tr  class="tr2 vt td_bgB">
        <td width="30">ID</td>
        <td>數據庫表</td>
        <td width="30">選擇</td>
    </tr>
<!--
EOT;
$id=0;
foreach($otherdb as $value){
$id++;print <<<EOT
-->
    <tr class="tr1 vt">
        <td class="td2">$id</td>
        <td class="td2">$value</td>
        <td class="td2"><input type="checkbox" name="tabledb[]" value="$value"></td>
    </tr>
<!--
EOT;
}print <<<EOT
-->
    </table>
</div>
<div class="mb10 tac">
	<input type="radio" name="action" value="repair"> 修復表
	<input type="radio" name="action" value="optimize" checked> 優化表
    <span class="bt"><span><button type="button" name="chkall" onclick="CheckAll(this.form)">全 選</button></span></span>
    <span class="btn"><span><button type="submit" name="delete">提 交</button></span></span>
</div>
</form>
<!--
EOT;
} else{print <<<EOT
-->
<h2 class="h1"><b>數據庫優化信息</b></h2>
<div class="admin_table mb10">
    <table width="100%" cellspacing="0" cellpadding="0">
        <tr class="tr2 vt td_bgB">
            <td>數據庫表</td>
            <td>操作</td>
            <td>信息</td>
        </tr>
<!--
EOT;
foreach($msgdb as $msg){
print <<<EOT
-->
        <tr class="tr1 vt">
            <td class="td2">$msg[Table]</td>
            <td class="td2">$msg[Op]</td>
            <td class="td2">$msg[Msg_type]:$msg[Msg_text]</td>
        </tr>
<!--
EOT;
}print <<<EOT
-->
    </table>
</div>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>-->