diff --git a/index.php b/index.php index 34e851f5..dc19619f 100644 --- a/index.php +++ b/index.php @@ -157,15 +157,11 @@ if (isset($_GET["download"])) { echo "
' . lang('Table') . ' | ' . lang('Engine') . ' | ' . lang('Collation') . ' | ' . lang('Data Length') . ' | ' . lang('Index Length') . ' | ' . lang('Data Free') . ' | ' . lang('Auto Increment') . ' | ' . lang('Rows') . " | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
'; - if (isset($row["Rows"])) { - echo ' | ' . htmlspecialchars($row["Name"]) . " | $row[Engine] | $row[Collation]"; - $row["count"] = $mysql->result($mysql->query("SELECT COUNT(*) FROM " . idf_escape($row["Name"]))); - foreach (array("Data_length", "Index_length", "Data_free", "Auto_increment", "count") as $val) { - echo ' | ' . (strlen($row[$val]) ? number_format($row[$val], 0, '.', lang(',')) : ' '); - } - } else { - echo ' | ' . htmlspecialchars($row["Name"]) . ' | ' . lang('View'); + echo ' | |||||||
' . (isset($row["Rows"]) ? ' | ' . htmlspecialchars($row["Name"]) . " | $row[Engine] | $row[Collation]" : ' | ' . htmlspecialchars($row["Name"]) . ' | ' . lang('View')); + $row["count"] = $mysql->result($mysql->query("SELECT COUNT(*) FROM " . idf_escape($row["Name"]))); + foreach ((isset($row["Rows"]) ? array("Data_length" => "create", "Index_length" => "indexes", "Data_free" => "", "Auto_increment" => "", "count" => "select") : array("count" => "select")) as $key => $link) { + $num = (strlen($row[$key]) ? number_format($row[$key], 0, '.', lang(',')) : ' '); + echo ' | ' . ($link ? '' . "$num" : $num); } echo " |