mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-24 22:47:06 -04:00
Rough in html_input
This commit is contained in:
@@ -2218,6 +2218,16 @@ function array_recursive_diff($aArray1, $aArray2) {
|
||||
return $aReturn;
|
||||
}
|
||||
|
||||
function html_input($name, $type='text', $value='', $options=array()) {
|
||||
$html = '<input ';
|
||||
$attributes = [];
|
||||
foreach (array_keys(array_merge($options,['name'=>$name, 'value'=>$value, 'type'=>$type])) as $k) {
|
||||
$attributes[] = $k.'="'.$options[$k].'"';
|
||||
}
|
||||
$html .= join(' ', $attributes);
|
||||
$html .= '/>';
|
||||
}
|
||||
|
||||
function html_radio($name, $values, $selected=null, $options=array(), $attrs=array()) {
|
||||
|
||||
$html = '';
|
||||
|
||||
Reference in New Issue
Block a user