Permalink
Browse files

Move <td> from Adminer::backwardKeysPrint

  • Loading branch information...
1 parent c068206 commit 33aec2c76434717421d9070f537561c678b4d36e @vrana committed Jan 18, 2011
Showing with 15 additions and 15 deletions.
  1. +3 −0 adminer/select.inc.php
  2. +12 −15 editor/include/adminer.inc.php
View
@@ -358,6 +358,9 @@
);
}
}
+ if ($backward_keys) {
+ echo "<td>";
+ }
$adminer->backwardKeysPrint($backward_keys, $rows[$n]);
echo "</tr>\n"; // close to allow white-space: pre
}
@@ -93,22 +93,19 @@ function backwardKeys($table, $tableName) {
}
function backwardKeysPrint($backwardKeys, $row) {
- if ($backwardKeys) {
- echo "<td>";
- foreach ($backwardKeys as $table => $backwardKey) {
- foreach ($backwardKey["keys"] as $cols) {
- $link = ME . 'select=' . urlencode($table);
- $i = 0;
- foreach ($cols as $column => $val) {
- $link .= where_link($i++, $column, $row[$val]);
- }
- echo "<a href='" . h($link) . "'>" . h($backwardKey["name"]) . "</a>";
- $link = ME . 'edit=' . urlencode($table);
- foreach ($cols as $column => $val) {
- $link .= "&set" . urlencode("[" . bracket_escape($column) . "]") . "=" . urlencode($row[$val]);
- }
- echo "<a href='" . h($link) . "' title='" . lang('New item') . "'>+</a> ";
+ foreach ($backwardKeys as $table => $backwardKey) {
+ foreach ($backwardKey["keys"] as $cols) {
+ $link = ME . 'select=' . urlencode($table);
+ $i = 0;
+ foreach ($cols as $column => $val) {
+ $link .= where_link($i++, $column, $row[$val]);
+ }
+ echo "<a href='" . h($link) . "'>" . h($backwardKey["name"]) . "</a>";
+ $link = ME . 'edit=' . urlencode($table);
+ foreach ($cols as $column => $val) {
+ $link .= "&set" . urlencode("[" . bracket_escape($column) . "]") . "=" . urlencode($row[$val]);
}
+ echo "<a href='" . h($link) . "' title='" . lang('New item') . "'>+</a> ";
}
}
}

0 comments on commit 33aec2c

Please sign in to comment.