From 328c7a74cf97d5b2429b51f361a6702e232463b0 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Thu, 11 Jun 2009 17:19:06 +0000 Subject: [PATCH] Move and drop views git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@671 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- db.inc.php | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) 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') . '