|
@@ -254,7 +254,7 @@ class Form
|
|
|
* @param string $value Value to show/edit
|
|
|
* @param string $htmlname DIV ID (field name)
|
|
|
* @param int $condition Condition to edit
|
|
|
- * @param string $inputType Type of input ('numeric', 'datepicker', 'textarea:rows:cols', 'ckeditor:dolibarr_zzz:width:height:?:1:rows:cols', 'select:xxx')
|
|
|
+ * @param string $inputType Type of input ('string', 'numeric', 'datepicker', 'textarea:rows:cols', 'ckeditor:dolibarr_zzz:width:height:?:1:rows:cols', 'select:xxx')
|
|
|
* @param string $editvalue When in edit mode, use this value as $value instead of value
|
|
|
* @param object $extObject External object
|
|
|
* @param mixed $custommsg String or Array of custom messages : eg array('success' => 'MyMessage', 'error' => 'MyMessage')
|
|
@@ -299,6 +299,7 @@ class Form
|
|
|
$inputType=$tmp[0];
|
|
|
if (! empty($tmp[1])) $inputOption=$tmp[1];
|
|
|
if (! empty($tmp[2])) $savemethod=$tmp[2];
|
|
|
+ $out.= '<input id="width_'.$htmlname.'" value="'.$inputOption.'" type="hidden"/>'."\n";
|
|
|
}
|
|
|
else if ((preg_match('/^datepicker/',$inputType)) || (preg_match('/^datehourpicker/',$inputType)))
|
|
|
{
|
|
@@ -363,7 +364,6 @@ class Form
|
|
|
$out.= '<input id="textarea_'.$htmlname.'_rows" value="'.$rows.'" type="hidden"/>'."\n";
|
|
|
$out.= '<input id="textarea_'.$htmlname.'_cols" value="'.$cols.'" type="hidden"/>'."\n";
|
|
|
}
|
|
|
-
|
|
|
$out.= '<span id="viewval_'.$htmlname.'" class="viewval_'.$inputType.($button_only ? ' inactive' : ' active').'">'.$value.'</span>'."\n";
|
|
|
$out.= '<span id="editval_'.$htmlname.'" class="editval_'.$inputType.($button_only ? ' inactive' : ' active').' hideobject">'.(! empty($editvalue) ? $editvalue : $value).'</span>'."\n";
|
|
|
}
|