} else { ?> <td colspan="3" align="center"> <?php echo $strInUse . "\n"; ?> </td> <?php } echo "\n"; ?> </tr> <?php } // Show Summary list($sum_formated, $unit) = format_byte_down($sum_size, 3, 1); echo "\n"; ?> <tr bgcolor="<?php echo $cfgThBgcolor; ?> "> <td align="center"> <b><?php echo sprintf($strTables, number_format($num_tables, 0, $number_decimal_separator, $number_thousands_separator)); ?> </b> </td> <td colspan="6" align="center"> <b><?php echo $strSum;
// Gets some sizes $mergetable = FALSE; if (isset($showtable['Type']) && $showtable['Type'] == 'MRG_MyISAM') { $mergetable = TRUE; } list($data_size, $data_unit) = format_byte_down($showtable['Data_length']); if ($mergetable == FALSE) { list($index_size, $index_unit) = format_byte_down($showtable['Index_length']); } if (isset($showtable['Data_free']) && $showtable['Data_free'] > 0) { list($free_size, $free_unit) = format_byte_down($showtable['Data_free']); } list($effect_size, $effect_unit) = format_byte_down($showtable['Data_length'] + $showtable['Index_length'] - $showtable['Data_free']); list($tot_size, $tot_unit) = format_byte_down($showtable['Data_length'] + $showtable['Index_length']); if (isset($showtable['Rows']) && $showtable['Rows'] > 0) { list($avg_size, $avg_unit) = format_byte_down(($showtable['Data_length'] + $showtable['Index_length']) / $showtable['Rows'], 6, 1); } // Displays them if ($index_count > 0) { echo ' <td width="20"> </td>' . "\n"; } ?> <!-- Space usage --> <td valign="top"> <?php echo $strSpaceUsage . ' :' . "\n"; ?> <a name="showusage"></a> <table border="<?php echo $cfgBorder;
<img src="./images/asc_order.gif" border="0" width="7" height="7" alt="ASC" /> </th> </tr> <?php echo "\n"; arsort($results_array); $display_max = 20; $j = 0; if (count($results_array) < $display_max) { $display_max = count($results_array); } reset($results_array); while ((list($key, $val) = each($results_array)) && $j < $display_max) { $j++; $bgcolor = $j % 2 ? $cfgBgcolorOne : $cfgBgcolorTwo; list($disp_val, $unit) = format_byte_down($val, 3, 1); echo ' <tr bgcolor="' . $bgcolor . '">' . "\n"; echo ' <td align="right"> ' . $j . ' </td>' . "\n"; echo ' <td> ' . urlencode($key) . ' </td>' . "\n"; echo ' <td align="right"> <b>' . $disp_val . ' ' . $unit . '<b> </td>' . "\n"; echo ' </tr>' . "\n"; } ?> </table> </td> </tr> </table> <?php } else { echo "\n";