/** * @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 $value the default value for the input field * @param string $alt_name the alt name for the field * @param string $maxlenght the max number of characters * @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 getLinePassword($css_line, $css_label, $label_name, $css_text, $id, $name, $alt_name, $maxlenght, $other_param, $other_after, $other_before, $value = '') { return '<div class="' . $css_line . '">' . $other_before . '<p><label class="' . $css_label . '" for="' . $id . '">' . $label_name . '</label></p>' . Form::getInputPassword($css_text, $id, $name, $alt_name, $maxlenght, $other_param, $value) . $other_after . '</div>'; }