From ff756591c9d7b104dc975a965f31c15dc4bc3aec Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 5 Dec 2022 12:27:21 -0500 Subject: [PATCH] Rough in html_input --- web/includes/functions.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/includes/functions.php b/web/includes/functions.php index 8a2f4210b..493dafacc 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -2218,6 +2218,16 @@ function array_recursive_diff($aArray1, $aArray2) { return $aReturn; } +function html_input($name, $type='text', $value='', $options=array()) { + $html = '$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 = '';