mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +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:
@@ -39,8 +39,11 @@ class Adminer {
|
||||
return h(strlen($field["comment"]) ? $field["comment"] : $field["field"]);
|
||||
}
|
||||
|
||||
function selectLinks($tableStatus) {
|
||||
return "";
|
||||
function selectLinks($tableStatus, $set = "") {
|
||||
$TABLE = $tableStatus["Name"];
|
||||
if (isset($set)) {
|
||||
echo '<p><a href="' . h(ME . 'edit=' . urlencode($TABLE) . $set) . '">' . lang('New item') . "</a>\n";
|
||||
}
|
||||
}
|
||||
|
||||
function backwardKeys($table) {
|
||||
@@ -356,7 +359,6 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5
|
||||
<a href="http://www.adminer.org/editor/#download" id="version"><?php echo (version_compare($VERSION, $_COOKIE["adminer_version"]) < 0 ? h($_COOKIE["adminer_version"]) : ""); ?></a>
|
||||
</h1>
|
||||
<?php
|
||||
echo (isset($_COOKIE["adminer_version"]) ? "" : "<script type='text/javascript'>verify_version();</script>\n");
|
||||
if ($missing != "auth") {
|
||||
?>
|
||||
<form action="" method="post">
|
||||
|
Reference in New Issue
Block a user