' . checkbox((isset($row["Rows"]) ? "tables[]" : "views[]"), $name, in_array($name, $tables_views, true), "", "formUncheck('check-all');");
@@ -58,6 +59,7 @@ if (!$table_status) {
foreach (array("Data_length" => "create", "Index_length" => "indexes", "Data_free" => "edit", "Auto_increment" => "create", "Rows" => "select") as $key => $link) {
$val = number_format($row[$key], 0, '.', lang(','));
echo ' | ' . ($row[$key] != "" ? '' . str_replace(" ", " ", ($key == "Rows" && $row["Engine"] == "InnoDB" && $val ? lang('~ %s', $val) : $val)) . '' : ' ');
+ $sums[$link] += ($row["Engine"] != "InnoDB" || $link != "edit" ? $row[$key] : 0);
}
echo " | " . nbsp($row["Comment"]);
} else {
@@ -66,6 +68,12 @@ if (!$table_status) {
echo ' | ';
}
}
+ echo " |
| " . lang('%d in total', count($table_status));
+ echo " | " . $connection->result($connection->query("SELECT @@storage_engine"));
+ echo " | " . db_collation(DB, collations());
+ foreach (array("create", "indexes", "edit") as $val) {
+ echo " | " . number_format($sums[$val], 0, '.', lang(','));
+ }
echo " |
---|