diff --git a/db.inc.php b/db.inc.php index 50f378fe..7683b25a 100644 --- a/db.inc.php +++ b/db.inc.php @@ -1,23 +1,29 @@ num_rows) { } else { echo "
\n"; echo "\n"; - echo '\n"; + echo '\n"; while ($row = $result->fetch_assoc()) { + $name = $row["Name"]; table_comment($row); - echo ''; + echo ''; if (isset($row["Rows"])) { - echo '"; + echo '"; 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 ''; + echo ''; } echo ""; } else { - echo ''; + echo ''; } echo "\n"; }
' . lang('Table') . '' . lang('Engine') . '' . lang('Collation') . '' . lang('Data Length') . '' . lang('Index Length') . '' . lang('Data Free') . '' . lang('Auto Increment') . '' . lang('Rows') . '' . lang('Comment') . "
' . lang('Table') . '' . lang('Engine') . '' . lang('Collation') . '' . lang('Data Length') . '' . lang('Index Length') . '' . lang('Data Free') . '' . lang('Auto Increment') . '' . lang('Rows') . '' . lang('Comment') . "
' . htmlspecialchars($row["Name"]) . "$row[Engine]$row[Collation]' . htmlspecialchars($name) . "$row[Engine]$row[Collation]' . (strlen($row[$key]) ? '' . ($key == "Rows" && $row["Engine"] == "InnoDB" && $val ? lang('~ %s', $val) : $val) . '' : ' ') . '' . (strlen($row[$key]) ? '' . ($key == "Rows" && $row["Engine"] == "InnoDB" && $val ? lang('~ %s', $val) : $val) . '' : ' ') . '" . (strlen(trim($row["Comment"])) ? htmlspecialchars($row["Comment"]) : " ") . "' . htmlspecialchars($row["Name"]) . '' . lang('View') . '' . htmlspecialchars($name) . '' . lang('View') . '