/** * @param string $css_line css for the line * @param string $css_label css for the label * @param string $label_name text contained into the label * @param string $css_text the css class for the input element * @param string $id the id of the element * @param string $name the name of the element * @param string $value the default value for the input field * @param string $alt_name the alt name for the field * @param string $other_param other element for the tag * @param string $other_after 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 a line with the input type="text" element */ public static function getLineFilefield($css_line, $css_label, $label_name, $css_text, $id, $name, $value, $alt_name, $other_param, $other_after, $other_before, $other_afterbefore = '') { $ret = '<div class="' . $css_line . '">' . $other_before . '<p><label class="' . $css_label . '" for="' . $id . '">' . $label_name . '</label></p>'; if ($other_afterbefore) { $ret .= ' ' . $other_afterbefore . ' <span id="upLLoad" style="display:none;">'; } $ret .= Form::getInputFilefield($css_text, $id, $name, $value, $alt_name, $other_param); if ($other_afterbefore) { $ret .= '</span>'; } $ret .= $other_after . '</div>'; return $ret; }