Example #1
0
 /**
  * public static function getTextfield( $label_name, $id, $name, $maxlenght, $value, $other_after, $other_before )
  *
  * @param string $label_name 	text contained into the label
  * @param string $id 			the id of the element
  * @param string $name 			the name of the element
  * @param string $maxlenght 	the max number of characters
  * @param string $value 		optional default value for the input field
  * @param string $alt_name 		the alt name for the field
  * @param string $other_after 	optional html code added after the input element
  * @param string $other_before 	html code added before the label element
  * @return string with the html code for the input type="text" element
  */
 public static function getTextfield($label_name, $id, $name, $maxlenght, $value = '', $alt_name = '', $other_after = '', $other_before = '')
 {
     if ($alt_name == '') {
         $alt_name = strip_tags($label_name);
     }
     return Form::getLineTextfield('form_line_l', 'floating', $label_name, 'textfield', $id, $name, $value, $alt_name, $maxlenght, '', $other_after, $other_before);
 }