]> git.joonet.de Git - adminer.git/commitdiff
Don't wrap indexes table
authorJakub Vrana <jakub@vrana.cz>
Wed, 30 Jun 2010 15:09:08 +0000 (17:09 +0200)
committerJakub Vrana <jakub@vrana.cz>
Thu, 1 Jul 2010 07:59:18 +0000 (09:59 +0200)
adminer/indexes.inc.php

index c7767e5d29e446b9eed4bd89bcec9f271ac7bdce..6a4de6afd84c45cb780284e9f5c5518087ea688f 100644 (file)
@@ -72,18 +72,19 @@ if ($_POST) {
 ?>
 
 <form action="" method="post">
-<table cellspacing="0">
+<table cellspacing="0" class="nowrap">
 <thead><tr><th><?php echo lang('Index Type'); ?><th><?php echo lang('Column (length)'); ?></thead>
 <?php
-$j = 0;
+$j = 1;
 foreach ($row["indexes"] as $index) {
-       echo "<tr><td>" . html_select("indexes[$j][type]", array(-1 => "") + $index_types, $index["type"], ($j == count($row["indexes"]) - 1 ? "indexesAddRow(this);" : 1)) . "<td>\n";
+       echo "<tr><td>" . html_select("indexes[$j][type]", array(-1 => "") + $index_types, $index["type"], ($j == count($row["indexes"]) ? "indexesAddRow(this);" : 1)) . "<td>";
        ksort($index["columns"]);
-       foreach ($index["columns"] as $i => $column) {
+       $i = 1;
+       foreach ($index["columns"] as $column) {
                echo "<span>" . html_select("indexes[$j][columns][$i]", array(-1 => "") + $fields, $column, ($i == count($index["columns"]) ? "indexesAddColumn(this);" : 1));
-               echo "<input name='indexes[$j][lengths][$i]' size='2' value='" . h($index["lengths"][$i]) . "'> </span>\n"; //! hide for non-MySQL drivers, add ASC|DESC
+               echo "<input name='indexes[$j][lengths][$i]' size='2' value='" . h($index["lengths"][$i]) . "'> </span>"; //! hide for non-MySQL drivers, add ASC|DESC
+               $i++;
        }
-       echo "\n";
        $j++;
 }
 ?>