mirror of
https://github.com/vrana/adminer.git
synced 2025-08-14 10:34:01 +02:00
Display select SQL edit form inline
This commit is contained in:
@@ -164,8 +164,12 @@ username.form['auth[driver]'].onchange();
|
||||
* @return string
|
||||
*/
|
||||
function selectQuery($query) {
|
||||
global $jush;
|
||||
return "<p><a href='" . h(remove_from_uri("page")) . "&page=last' title='" . lang('Last page') . "'>>></a> <code class='jush-$jush'>" . h(str_replace("\n", " ", $query)) . "</code> <a href='" . h(ME) . "sql=" . urlencode($query) . "'>" . lang('Edit') . "</a></p>\n"; // </p> - required for IE9 inline edit
|
||||
global $jush, $token;
|
||||
return "<form action='" . h(ME) . "sql=' method='post'><p>"
|
||||
. "<a href='" . h(remove_from_uri("page")) . "&page=last' title='" . lang('Last page') . "'>>></a> <span>"
|
||||
. "<code class='jush-$jush'>" . h(str_replace("\n", " ", $query)) . "</code>"
|
||||
. " <a href='" . h(ME) . "sql=" . urlencode($query) . "' onclick=\"return !selectEditSql(this.parentNode, '" . lang('Execute') . "');\">" . lang('Edit') . "</a>"
|
||||
. "</span><input type='hidden' name='token' value='$token'></p></form>\n"; // </p> - required for IE9 inline edit
|
||||
}
|
||||
|
||||
/** Description of a row in a table
|
||||
|
Reference in New Issue
Block a user