'mode' => 'date', 'options'=>array( 'showAnim'=>'fold', // 'show' (the default), 'slideDown', 'fadeIn', 'fold' 'showButtonPanel'=>false, 'changeYear'=>true, 'changeMonth'=>true, 'dateFormat'=>'dd/mm/yy', ), ) ); echo "</div></div>" ; ?> </div> <div class="row"> <?php echo $form->label($model, 'documentonro'); ?> <?php echo $form->textFieldControlGroup($model,'documentonro',array('size'=>10,'maxlength'=>10)); ?> </div> <div class="row"> <?php echo $form->label($model, 'iddocumentotipo'); ?> <?php echo $form->dropDownListControlGroup($model, 'iddocumentotipo0', CHtml::listData(Documentotipo::model()->findAll(array('order'=>'nombre')),'iddocumentotipo', 'nombre'), array('prompt' => 'No corresponde')); ?> </div> <div class="row buttons"> <?php echo CHtml::submitButton(Yii::t('app', 'Search')); ?> </div> <?php $this->endWidget(); ?> </div><!-- search-form -->
'value' => $model->isNewRecord ? null : $model->nacimiento, 'mode' => 'date', 'options' => array( 'showAnim' => 'fold', // 'show' (the default), 'slideDown', 'fadeIn', 'fold' 'showButtonPanel' => false, 'changeYear' => true, 'changeMonth' => true, 'dateFormat' => 'dd/mm/yy', ), ) ); echo "</div></div>"; ?> <div class="control-group"> <?php echo $form->dropDownList($model, 'iddocumentotipo', CHtml::listData(Documentotipo::model()->findAll(array('order' => 'nombre')), 'iddocumentotipo', 'abreviatura'), array('style' => 'margin-left:20px;width:70px;')); ?> <?php echo $form->labelEx($model, 'documentonro', $htmlOptions = array("class" => 'control-label ')); echo $form->textField($model, 'documentonro', array('size' => 10, 'maxlength' => 10, 'style' => 'margin-left:20px;')); ?> </div> <?php echo "<div class='control-group' style='margin:27px 0 40px 180px;'>"; echo TbHtml::checkBox('borrarconyuge', false, array('label' => 'Eliminar datos cónyuge')); echo "</div>"; echo "</fieldset>"; ?>
), array( 'name' => 'nombre', 'value' => 'isset($data->nombre)?$data->nombre:""', 'filter' => false, ), array( 'name' => 'nacimiento', 'value' => 'Yii::app()->dateFormatter->format("dd/MM/y",strtotime($data->nacimiento))', 'filter' => false, ), array( 'name' => 'documentonro', 'value' => 'isset($data->documentonro)?$data->documentonro:""', 'filter' => false, ), array( 'name' => 'iddocumentotipo', 'value' => 'isset($data->iddocumentotipo0->nombre)?$data->iddocumentotipo0->nombre:""', 'filter' => CHtml::listData(Documentotipo::model()->findAll(array('order'=>'nombre')),'iddocumentotipo','nombre'), ), array( 'class' => 'CButtonColumn', 'viewButtonImageUrl' => Yii::app()->baseUrl . '/css/gridviewstyle/images/' . 'gr-view.png', 'updateButtonImageUrl' => Yii::app()->baseUrl . '/css/gridviewstyle/images/' . 'gr-update.png', 'deleteButtonImageUrl' => Yii::app()->baseUrl . '/css/gridviewstyle/images/' . 'gr-delete.png', 'header' => Yii::t('app', 'Actions'), ), ), ));