public function show() { $val = ''; if (parent::get_value()) { $val = 'checked="checked'; } print '<p><input type="checkbox" name="' . parent::get_name() . '" ' . $val . '" ' . parent::get_required() . ' ' . parent::get_readonly() . ' ' . parent::get_disabled() . ' ' . parent::get_parameters() . ' />' . parent::get_label() . '</p>'; }
public function show() { print '<label>' . parent::get_label() . '</label>'; print '<select name="' . parent::get_name() . '" class="campo campo-entrada">'; foreach ($this->options as $key => $value) { print '<option value="' . $key . '"' . ($this->selected[$key] ? ' selected="selected"' : '') . '>' . $value . '</option>'; } print '</select>'; }
public function show() { print '<label>' . parent::get_label() . '</label>'; print '<textarea name="' . parent::get_name() . '" class="campo campo-texto-grande ui-widget-content ui-corner-all" ' . parent::get_required() . ' ' . parent::get_readonly() . '>' . $this->text . '</textarea>'; }