mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
New plugin: Configure menu table links
This commit is contained in:
@@ -100,10 +100,10 @@ function html_select(string $name, array $options, ?string $value = "", string $
|
||||
/** Generate HTML radio list
|
||||
* @param string[] $options
|
||||
*/
|
||||
function html_radios(string $name, array $options, ?string $value = ""): string {
|
||||
function html_radios(string $name, array $options, ?string $value = "", string $separator = ""): string {
|
||||
$return = "";
|
||||
foreach ($options as $key => $val) {
|
||||
$return .= "<label><input type='radio' name='" . h($name) . "' value='" . h($key) . "'" . ($key == $value ? " checked" : "") . ">" . h($val) . "</label>";
|
||||
$return .= "<label><input type='radio' name='" . h($name) . "' value='" . h($key) . "'" . ($key == $value ? " checked" : "") . ">" . h($val) . "</label>$separator";
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user