<?php
$this->breadcrumbs=array(
	'Aporte Voluntario Diferidos'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List AporteVoluntarioDiferido','url'=>array('index')),
	array('label'=>'Create AporteVoluntarioDiferido','url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('aporte-voluntario-diferido-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1 style="text-align:center;">Aporte Voluntario Diferidos</h1>

<!--<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>-->
<?php  echo CHtml::link('Regresar', Yii::app()->createUrl('/aportes/datosTxtIntegrado/adminAE'),array('class'=>'btn btn-danger')); ?>
<?php /* echo CHtml::link('Advanced Search','#',array('class'=>'search-button btn')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); */?>
<!--</div> search-form -->

<?php $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'aporte-voluntario-diferido-grid',
	'dataProvider'=>($modelDatosTxt)?$model->searchD($modelDatosTxt->id):$model->search(),
	'filter'=>$model,
	'columns'=>array(
//		'id',
		'cedula',
		'monto',
//		'area',
                array(
                    'name'=>'area',
                    'value'=>'$data->getArea()',
                    'filter'=>CHtml::activeDropDownList($model,'area',
                            CHtml::listData(Unidad::model()->findAll('blnborrado=FALSE'),'idunidad','descripcion'),
                            array('prompt'=>'SELECCIONE')
                            )
                ),
                array(
                    'name'=>'id_estatus_avd',
                    'value'=>'$data->idEstatusAvd->nombre_estatus',
                    'filter'=>CHtml::activeDropDownList($model,'id_estatus_avd',
                            CHtml::listData(EstatusAporteVoluntarioDiferido::model()->findAll('blnborrado=FALSE'),'id','nombre_estatus'),
                            array('prompt'=>'SELECCIONE')
                            )
                ),
//		'id_txt',
//                array(
//                    'name'=>'blnborrado',
//                    'value'=>'($data->blnborrado)?"SI":"NO"',
//                    'filter'=>CHtml::activeDropDownList($model,'blnborrado',
//                            array(1=>'SI',0=>'NO'),
//                            array('prompt'=>'SELECCIONE')
//                            )
//                ),

		array(
			'class'=>'bootstrap.widgets.TbButtonColumn',
                        'header'=>"Acción",
                        'template' => '{update}',
//                        'buttons'=>array(
//                                 
//                        
//                            
//                            
//                        ),
		),
	),
)); ?>
