<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<? if($goodresults && is_array($goodresults) && count($goodresults) > 0) { ?>
    <div class="space">
        <div class="subtitle">数据库维护</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <? foreach($goodresults as $result) { ?>
            <tr>
                <td width="10%"><?=$result['do']?></td>
                <td width="80%"><?=$result['table']?></td>
                <td width="10%"><?=$result['result']?></td>
            </tr>
            <? } ?>
        </table>
    </div>
<? } else { ?>
<form method="post" action="admincp.php?action=<?=$action?>&file=<?=$file?>&op=<?=$op?>&">
    <div class="space">
        <div class="subtitle">数据库维护</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="5%"><input type="checkbox" name="maintenance[]" value="check" checked="check" /></td>
                <td width="90%">检查表</td>
            </tr>
            <tr>
                <td width="5%"><input type="checkbox" name="maintenance[]" value="repair" checked="check" /></td>
                <td width="90%">修复表</td>
            </tr>
            <tr>
                <td width="5%"><input type="checkbox" name="maintenance[]" value="analyze" checked="check" /></td>
                <td width="90%">分析表</td>
            </tr>
            <tr>
                <td width="5%"><input type="checkbox" name="maintenance[]" value="optimize" checked="check" /></td>
                <td width="90%">优化表</td>
            </tr>
        </table>
        <br /><center><input type="submit" name="toolssubmit" value=" 提交 " class="btn" /></center>
    </div>
</form>
<? } ?>
</div>