Pareces nuevo por aquí. Si quieres participar, ¡pulsa uno de estos botones!
<?= textarea_tag('dir_habitacion', 'title: Direccion de Habitacion del Beneficiario', 'cols: 35', 'rows: 3', 'class: x-form-text x-form-field') ?>
function textarea_tag($configuration){ if(func_num_args()==1){ $value = get_value_from_action($configuration); } else{ $value = get_value_from_action(get_params(func_get_args())); } if(func_num_args()==1){ $configuration = func_get_args(); return "<textarea id='{$configuration[0]}' name='{$configuration[0]}' cols=40 rows=25>$value</textarea>\r\n"; } else { $configuration = get_params(func_get_args()); if(!$configuration['name']) { $configuration['name'] = $configuration[0]; } if(!$configuration['cols']){ $configuration['cols'] = 40; } if(!$configuration['rows']){ $configuration['rows'] = 25; } if(!$configuration['title']){ $configuration['title'] = ""; } if($value===null){ $value = $configuration['value']; } return "<textarea id='{$configuration['name']}' title ='{$configuration['title']}' name='{$configuration['name']}' cols={$configuration['cols']} rows={$configuration['rows']}>$value</textarea>\r\n"; } }