\n";
echo '| '.number_format_i18n($no).' | '."\n";
echo "$tablestatus->Name | \n";
echo ''.number_format_i18n($tablestatus->Rows).' | '."\n";
echo ''.wpo_format_size($tablestatus->Data_length).' | '."\n";
echo ''.wpo_format_size($tablestatus->Index_length).' | '."\n";;
echo ''.$tablestatus->Engine.' | '."\n";;
//echo ''.wpo_format_size($tablestatus->Data_free).' | '."\n";
if ($tablestatus->Engine != 'InnoDB'){
echo '';
if (isset($_POST["optimize-db"])) {
if($tablestatus->Data_free>0){
echo '';
echo wpo_format_size($tablestatus->Data_free);
echo '';
}
else {
echo '';
echo wpo_format_size($tablestatus->Data_free);
echo '';
}
}
else {
if($tablestatus->Data_free>0){
echo '';
echo wpo_format_size($tablestatus->Data_free);
echo '';
}
else {
echo '';
echo wpo_format_size($tablestatus->Data_free);
echo '';
}
}
echo ' | '."\n";
}
else {
echo '';
echo '';
echo '-';
echo '';
echo ' | '."\n";
}
$row_usage += $tablestatus->Rows;
$data_usage += $tablestatus->Data_length;
$index_usage += $tablestatus->Index_length;
if ($tablestatus->Engine != 'InnoDB'){
$overhead_usage += $tablestatus->Data_free;
$total_gain += $tablestatus->Data_free;
} else {
$overhead_usage += 0;
$total_gain += 0;
}
echo '
'."\n";
}
echo '