Example #1
0
 /**
  * public static function getDatefield( $label_name, $id, $name, $value = '', $date_format = FALSE, $sel_time = FALSE, $alt_name = '', $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 $date_format 	optional string with the date format selected
  * @param bool	 $sel_time 		optional if true will show also the time selector
  * @param string $alt_name 		optional with the alt value
  * @param string $other_after 	optional html code added after the input element
  * @param string $other_before 	optional html code added before the label element
  *
  * @return string with the html code for the input type="text" with a calendar
  */
 public static function getDatefield($label_name, $id, $name, $value = '', $date_format = FALSE, $sel_time = FALSE, $alt_name = '', $other_after = '', $other_before = '', $other_param = '')
 {
     $regset = Format::instance();
     if ($date_format == false) {
         $date_format = $regset->date_token;
     }
     if ($alt_name == '') {
         $alt_name = strip_tags($label_name);
     }
     return Form::getLineDatefield('form_line_l', 'floating', $label_name, 'textfield', $id, $name, $value, $date_format, $alt_name, $other_param, $other_after, $other_before);
 }