Added new field to input text. (Transactional maps develop)
This commit is contained in:
parent
a6f546c8d8
commit
defdd619ba
|
@ -1071,7 +1071,7 @@ function html_print_input_password ($name, $value, $alt = '',
|
|||
*
|
||||
* @return string HTML code if return parameter is true.
|
||||
*/
|
||||
function html_print_input_text ($name, $value, $alt = '', $size = 50, $maxlength = 255, $return = false, $disabled = false, $required = false, $function = "", $class = "") {
|
||||
function html_print_input_text ($name, $value, $alt = '', $size = 50, $maxlength = 255, $return = false, $disabled = false, $required = false, $function = "", $class = "", $onChange ="") {
|
||||
if ($maxlength == 0)
|
||||
$maxlength = 255;
|
||||
|
||||
|
@ -1083,6 +1083,9 @@ function html_print_input_text ($name, $value, $alt = '', $size = 50, $maxlength
|
|||
$attr['required'] = 'required';
|
||||
if ($class != '')
|
||||
$attr['class'] = $class;
|
||||
if ($onChange != '') {
|
||||
$attr['onchange'] = $onChange;
|
||||
}
|
||||
|
||||
return html_print_input_text_extended ($name, $value, 'text-'.$name, $alt, $size, $maxlength, $disabled, '', $attr, $return, false, $function);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue