Move <td> from Adminer::backwardKeysPrint
This commit is contained in:
parent
c0682062ca
commit
33aec2c764
|
@ -358,6 +358,9 @@ if (!$columns) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($backward_keys) {
|
||||||
|
echo "<td>";
|
||||||
|
}
|
||||||
$adminer->backwardKeysPrint($backward_keys, $rows[$n]);
|
$adminer->backwardKeysPrint($backward_keys, $rows[$n]);
|
||||||
echo "</tr>\n"; // close to allow white-space: pre
|
echo "</tr>\n"; // close to allow white-space: pre
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,8 +93,6 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
||||||
}
|
}
|
||||||
|
|
||||||
function backwardKeysPrint($backwardKeys, $row) {
|
function backwardKeysPrint($backwardKeys, $row) {
|
||||||
if ($backwardKeys) {
|
|
||||||
echo "<td>";
|
|
||||||
foreach ($backwardKeys as $table => $backwardKey) {
|
foreach ($backwardKeys as $table => $backwardKey) {
|
||||||
foreach ($backwardKey["keys"] as $cols) {
|
foreach ($backwardKey["keys"] as $cols) {
|
||||||
$link = ME . 'select=' . urlencode($table);
|
$link = ME . 'select=' . urlencode($table);
|
||||||
|
@ -111,7 +109,6 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
function selectQuery($query) {
|
function selectQuery($query) {
|
||||||
return "<!--\n" . str_replace("--", "--><!-- ", $query) . "\n-->\n";
|
return "<!--\n" . str_replace("--", "--><!-- ", $query) . "\n-->\n";
|
||||||
|
|
Loading…
Reference in a new issue