1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 01:24:17 +02:00

Display table links above table structure

Move body_load back to <body onload>

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1119 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-09-20 07:31:46 +00:00
parent d3227c963f
commit f2ed2379bd
6 changed files with 28 additions and 26 deletions

View File

@@ -122,7 +122,7 @@ if ($_POST && !$error) {
$table_name = $adminer->tableName($table_status);
page_header(lang('Select') . ": $table_name", $error);
echo "<p>";
$set = null;
if (isset($rights["insert"])) {
$set = "";
foreach ((array) $_GET["where"] as $val) {
@@ -132,9 +132,8 @@ if (isset($rights["insert"])) {
$set .= "&set" . urlencode("[" . bracket_escape($val["col"]) . "]") . "=" . urlencode($val["val"]);
}
}
echo '<a href="' . h(ME . 'edit=' . urlencode($TABLE) . $set) . '">' . lang('New item') . '</a> ';
}
echo $adminer->selectLinks($table_status);
$adminer->selectLinks($table_status, $set);
if (!$columns) {
echo "<p class='error'>" . lang('Unable to select the table') . ($fields ? "" : ": " . h($dbh->error)) . ".\n";