Skip to content
Browse files

Don't wrap indexes table

  • Loading branch information...
1 parent 5a11c99 commit 61fcecaab3281d018836fd34867557387be7e4dc @vrana committed Jun 30, 2010
Showing with 7 additions and 6 deletions.
  1. +7 −6 adminer/indexes.inc.php
View
13 adminer/indexes.inc.php
@@ -72,18 +72,19 @@
?>
<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++;
}
?>

0 comments on commit 61fceca

Please sign in to comment.
Something went wrong with that request. Please try again.