mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Print first function if only one
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1073 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -445,7 +445,7 @@ function input($field, $value, $function) {
|
|||||||
$first++;
|
$first++;
|
||||||
}
|
}
|
||||||
$onchange = ($first ? " onchange=\"var f = this.form['function[" . addcslashes($name, "\r\n'\\") . "]']; if ($first > f.selectedIndex) f.selectedIndex = $first;\"" : "");
|
$onchange = ($first ? " onchange=\"var f = this.form['function[" . addcslashes($name, "\r\n'\\") . "]']; if ($first > f.selectedIndex) f.selectedIndex = $first;\"" : "");
|
||||||
echo (count($functions) > 1 ? "<select name='function[$name]'>" . optionlist($functions, !isset($function) || in_array($function, $functions) ? $function : "") . "</select>" : nbsp($functions[0])) . '<td>';
|
echo (count($functions) > 1 ? "<select name='function[$name]'>" . optionlist($functions, !isset($function) || in_array($function, $functions) ? $function : "") . "</select>" : nbsp(reset($functions))) . '<td>';
|
||||||
$input = $adminer->editInput($_GET["edit"], $field, " name='fields[$name]'$onchange", $value); // usage in call is without a table
|
$input = $adminer->editInput($_GET["edit"], $field, " name='fields[$name]'$onchange", $value); // usage in call is without a table
|
||||||
if (strlen($input)) {
|
if (strlen($input)) {
|
||||||
echo $input;
|
echo $input;
|
||||||
|
Reference in New Issue
Block a user