From: Janusz Dobrowolski Date: Fri, 17 Apr 2015 12:54:33 +0000 (+0200) Subject: Added text_input() helper. X-Git-Tag: v2.4.2~19^2~193 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=5ac9ea61baac0cf298b07317051da51e781645b7;p=fa-stable.git Added text_input() helper. --- diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index ef8b9cac..bdb7e945 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -504,6 +504,16 @@ function label_row($label, $value, $params="", $params2="", $leftfill=0, $id=nul echo "\n"; } +function text_input($name, $value=null, $size='', $max='', $title='', $params='') +{ + if ($value === null) + $value = get_post($name); + + return ""; +} + //----------------------------------------------------------------------------------- function text_cells($label, $name, $value=null, $size="", $max="", $title=false, @@ -516,11 +526,7 @@ function text_cells($label, $name, $value=null, $size="", $max="", $title=false, label_cell($label, $labparams); echo ""; - if ($value === null) - $value = get_post($name); - echo ""; + echo text_input($name, $value, $size, $max, $title, $inparams); if ($post_label != "") echo " " . $post_label;