params['label'] ) { $out .= '
'; $out .= ''; $out .= '
'; } $out .= ' params['type'] . '" '; if ( $this -> params['id'] ) $out .= 'id="' . $this -> params['id'] . '" '; if ( $this -> params['class'] or $this -> params['label'] ) { if ( $this -> params['label'] ) $out .= 'class="' . $this -> params['class'] . ' form-control" '; else if ( $this -> params['class'] ) $out .= 'class="' . $this -> params['class'] . '" '; } $out .= 'name="' . $this -> params['name'] . '" '; $out .= 'value="' . $this -> secureHTML( $this -> params['value'] ) . '" '; if ( $this -> params['style'] ) $out .= 'style="' . $this -> params['style'] . '" '; if ( $this -> params['js'] ) $out .= 'onchange="' . htmlspecialchars( $this -> params['js'] ) . '" '; if ( $this -> params['js_key'] ) $out .= 'onkeyup="' . htmlspecialchars( $this -> params['js_key'] ) . '" '; if ( $this -> params['readonly'] ) $out .= 'readonly="readonly" '; if ( $this -> params['autocomplete'] == 'off' ) $out .= 'autocomplete="off" '; if ( is_array( $this -> params['params'] ) and count( $this -> params['params'] ) ) foreach ( $this -> params['params'] as $key => $val ) $out .= $key . '="' . $val . '" '; $out .= ' />'; if ( $this -> params['label'] ) { $out .= '
'; $out .= '
'; } echo $out;