Metadatos de la encuesta

beginWidget('bootstrap.widgets.TbActiveForm', array( 'id' => 'bases-encuestas-form', 'enableAjaxValidation' => false, 'method' => 'post', 'type' => '', 'htmlOptions' => array( 'enctype' => 'multipart/form-data' ) )); ?> Campos con * son requeridos
errorSummary($model, 'Opps!!!', null, array('class' => 'alert alert-error')); ?>
textFieldRow($model, 'encuesta', array('class' => 'form-control', 'maxlength' => 150)); ?>
textFieldRow($model, 'autor', array('class' => 'form-control', 'maxlength' => 255)); ?>

Si hay más de un autor separar los nombres con comas.

textFieldRow($model, 'fecha', array('class' => 'form-control datepicker')); ?>
textFieldRow($model, 'enlace_original', array('class' => 'form-control', 'maxlength' => 255)); ?>
textAreaRow($model, 'resumen', array('rows' => 6, 'cols' => 50, 'class' => 'form-control')); ?>
textAreaRow($model, 'licencia_uso', array('rows' => 6, 'cols' => 50, 'class' => 'form-control')); ?>
textAreaRow($model, 'citacion', array('rows' => 6, 'cols' => 50, 'class' => 'form-control')); ?>
textAreaRow($model, 'alcance', array('rows' => 6, 'cols' => 50, 'class' => 'form-control')); ?>
textFieldRow($model, 'otros', array('class' => 'form-control', 'maxlength' => 255)); ?>

Agregar archivos

¡Advertencia! Las bases de datos que contengan más de 1000 columnas serán recortadas a 1000.


funciones->listaTipoArchivos(); $cont = 0; $i = 0; $total = count($tipos); $txt_arch = ''; foreach ($tipos as $id => $nombre) { $id_label = substr($nombre, 0, 2); if ($cont == 0) { echo '
'; } if (isset($modelBA) && !empty($modelBA)) { if (array_key_exists($id, $modelBA)) { $txt_arch = '

Ya cuenta con el archivo ' . $modelBA[$id] . '

'; } else { $txt_arch = ''; } } if ($id_label == "Ba") { echo '
' . '' . '' . $txt_arch . '' . '
'; } else { if ($id_label == 'Ge') { echo '
' . '' . '' . $txt_arch . '' . '
'; } else { if ($id_label == 'Zi') { echo '
' . '' . '' . $txt_arch . '' . '
'; } else { echo '
' . '' . '' . $txt_arch . '' . '
'; } } } echo ''; $cont++; $i++; if ($cont == 2 || $i == $total) { echo '
'; $cont = 0; } } ?>
widget('bootstrap.widgets.TbButton', array( 'buttonType' => 'submit', 'type' => 'primary', 'htmlOptions' => array('class' => 'btn btn-default'), 'label' => $model->isNewRecord ? 'Crear' : 'Guardar', )); ?> widget('bootstrap.widgets.TbButton', array( 'buttonType' => 'reset', 'htmlOptions' => array('class' => 'btn btn-default'), 'label' => 'Borrar', )); ?>
endWidget(); ?>
clientScript; $cs->registerScript('plugin_ck', '$(document).ready(function() { CKEDITOR.replace( "BasesEncuestas_resumen", { toolbar: "Full", height: 200, }); CKEDITOR.replace( "BasesEncuestas_licencia_uso", { toolbar: "Basic", height: 200, }); });', CClientScript::POS_END); ?>