diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php index ff2382cb..4ef7067e 100644 --- a/adminer/include/editing.inc.php +++ b/adminer/include/editing.inc.php @@ -1,4 +1,6 @@ "; } +/** Generate HTML if $options are empty +* @param string +* @param array +* @param string +* @param string +* @param string +* @return string +*/ +function select_input($attrs, $options, $value = "", $onchange = "", $placeholder = "") { + $tag = ($options ? "select" : "input"); + return "<$tag$attrs" . ($options + ? ">