mirror of
https://github.com/vrana/adminer.git
synced 2025-08-14 10:34:01 +02:00
Select original value
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@767 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -43,7 +43,7 @@ function input($name, $field, $value) {
|
||||
if ($field["null"] || isset($_GET["default"])) {
|
||||
array_unshift($options, "NULL");
|
||||
}
|
||||
echo (count($options) > 1 || isset($_GET["select"]) ? '<select name="function[' . $name . ']">' . (isset($_GET["select"]) ? '<option value="orig">' . lang('original') . '</option>' : '') . optionlist($options, (isset($value) ? (string) $_POST["function"][$name] : null)) . '</select>' : " ") . '</td><td>';
|
||||
echo (count($options) > 1 || isset($_GET["select"]) ? '<select name="function[' . $name . ']">' . (isset($_GET["select"]) ? '<option value="orig">' . lang('original') . '</option>' : '') . optionlist($options, ($value === false ? null : (isset($value) ? (string) $_POST["function"][$name] : 'NULL'))) . '</select>' : " ") . '</td><td>';
|
||||
if ($field["type"] == "set") { //! 64 bits
|
||||
preg_match_all("~'((?:[^']+|'')*)'~", $field["length"], $matches);
|
||||
foreach ($matches[1] as $i => $val) {
|
||||
|
Reference in New Issue
Block a user