From 61fcecaab3281d018836fd34867557387be7e4dc Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 30 Jun 2010 17:09:08 +0200 Subject: [PATCH] Don't wrap indexes table --- adminer/indexes.inc.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/adminer/indexes.inc.php b/adminer/indexes.inc.php index c7767e5d..6a4de6af 100644 --- a/adminer/indexes.inc.php +++ b/adminer/indexes.inc.php @@ -72,18 +72,19 @@ if ($_POST) { ?>
- +
" . html_select("indexes[$j][type]", array(-1 => "") + $index_types, $index["type"], ($j == count($row["indexes"]) - 1 ? "indexesAddRow(this);" : 1)) . "\n"; + echo "
" . html_select("indexes[$j][type]", array(-1 => "") + $index_types, $index["type"], ($j == count($row["indexes"]) ? "indexesAddRow(this);" : 1)) . ""; ksort($index["columns"]); - foreach ($index["columns"] as $i => $column) { + $i = 1; + foreach ($index["columns"] as $column) { echo "" . html_select("indexes[$j][columns][$i]", array(-1 => "") + $fields, $column, ($i == count($index["columns"]) ? "indexesAddColumn(this);" : 1)); - echo " \n"; //! hide for non-MySQL drivers, add ASC|DESC + echo " "; //! hide for non-MySQL drivers, add ASC|DESC + $i++; } - echo "\n"; $j++; } ?>