<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
    <div class="space">
        <div class="subtitle"><?=$_VERSION['name']?> 数据表信息</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr class="altbg1">
                <td width="20%">数据表名称</td>
                <td width="20%">创建时间</td>
                <td width="20%">最后更新时间</td>
                <td width="10%">记录数</td>
                <td width="10%">数据</td>
                <td width="10%">索引</td>
                <td width="10%">碎片</td>
            </tr>
            <? if($mudder_table_info) { foreach($mudder_table_info as $info) { ?>
            <tr>
                <td><?=$info['Name']?></td>
                <td><?=$info['Create_time']?></td>
                <td><?=$info['Check_time']?></td>
                <td><?=$info['Rows']?></td>
                <td><?=sizeunit($info['Data_length'])?></td>
                <td><?=sizeunit($info['Index_length'])?></td>
                <td><?=sizeunit($info['Data_free'])?></td>
            </tr>
            <? } ?>
            <tr class="altbg2">
                <td><strong>合计:</strong>&nbsp;<?=count($mudder_table_info)?>个表</td>
                <td></td>
                <td></td>
                <td><?=$mudder_rows_total?></td>
                <td><?=sizeunit($mudder_Data_length)?></td>
                <td><?=sizeunit($mudder_Index_length)?></td>
                <td><?=sizeunit($mudder_Data_free)?></td>
            </tr>
            <? } ?>
        </table>
    </div>
    <div class="space">
        <div class="subtitle">其他 数据表信息</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr class="altbg1">
                <td width="20%">数据表名称</td>
                <td width="20%">创建时间</td>
                <td width="20%">最后更新时间</td>
                <td width="10%">记录数</td>
                <td width="10%">数据</td>
                <td width="10%">索引</td>
                <td width="10%">碎片</td>
            </tr>
            <? if($other_table_info) { foreach($other_table_info as $info) { ?>
            <tr>
                <td><?=$info['Name']?></td>
                <td><?=$info['Create_time']?></td>
                <td><?=$info['Check_time']?></td>
                <td><?=$info['Rows']?></td>
                <td><?=sizeunit($info['Data_length'])?></td>
                <td><?=sizeunit($info['Index_length'])?></td>
                <td><?=sizeunit($info['Data_free'])?></td>
            </tr>
            <? } ?>
            <tr class="altbg2">
                <td><strong>合计:</strong>&nbsp;<?=count($other_table_info)?>个表</td>
                <td></td>
                <td></td>
                <td><?=$other_rows_total?></td>
                <td><?=sizeunit($other_Data_length)?></td>
                <td><?=sizeunit($other_Index_length)?></td>
                <td><?=sizeunit($other_Data_free)?></td>
            </tr>
            <? } else { ?>
            <tr >
                <td colspan="7">没有其他数据表</td>
            </tr>
            <? } ?>
        </table>
    </div>
</div>