<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>
	
	<br>
	<?php echo "Busqueda por fecha estatus inicial" ?>
	<?php echo $form->labelEx($model,'inicial_desde'); ?>
	<?php
                $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                    'model' => $model,
                    'attribute' => 'inicial_desde',
                    'value' => $model->inicial_desde,
                    //'language' => 'es',
                    'htmlOptions' => array('readonly' => false, 'style' => 'width:140px'),
                    //additional javascript options for the date picker plugin
                    'options' => array(
                        'autoSize' => true,
                        'defaultDate' => $model->inicial_desde,
                        //'dateFormat'=>'yy-m-d',
                        'dateFormat' => 'dd-mm-yy',
                        'yearRange' => "1900:+nn",
                        'maxDate'=>'0d',
//                            'maxDate'=>$model->fechafin(),
                        /*'buttonImage' => Yii::app()->baseUrl . '/images/calendar.png',
                        'buttonImageOnly' => true,
                        'showOn' => 'button',
                        'buttonText' => 'Fecha referencia',*/
                        'selectOtherMonths' => true,
                        'showAnim' => 'slide',
                        'showButtonPanel' => true,
                        'showOtherMonths' => true,
                        'changeMonth' => 'true',
                        'changeYear' => 'true',
                    ),
                ));
                ?> 


	<?php echo $form->labelEx($model,'inicial_hasta'); ?>
	<?php
                $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                    'model' => $model,
                    'attribute' => 'inicial_hasta',
                    'value' => $model->inicial_hasta,
                    //'language' => 'es',
                    'htmlOptions' => array('readonly' => false, 'style' => 'width:140px'),
                    //additional javascript options for the date picker plugin
                    'options' => array(
                        'autoSize' => true,
                        'defaultDate' => $model->inicial_hasta,
                        //'dateFormat'=>'yy-m-d',
                        'dateFormat' => 'dd-mm-yy',
                        'yearRange' => "1900:+nn",
                        'maxDate'=>'0d',
//                            'maxDate'=>$model->fechafin(),
                        /*'buttonImage' => Yii::app()->baseUrl . '/images/calendar.png',
                        'buttonImageOnly' => true,
                        'buttonText' => 'Fecha referencia',
                        'showOn' => 'button',*/
                        'showButtonPanel' => true,
                        'showAnim' => 'slide',
                        'selectOtherMonths' => true,
                        'showOtherMonths' => true,
                        'changeMonth' => 'true',
                        'changeYear' => 'true',
                    ),
                ));
                ?>
	
	<?php /*echo $form->textFieldRow($model,'id',array('class'=>'span5')); ?>

	<?php echo $form->textAreaRow($model,'nombre_archivo',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?>

	<?php echo $form->textAreaRow($model,'descripcion',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?>

	<?php echo $form->textFieldRow($model,'fecha_registro',array('class'=>'span5')); ?>

	<?php echo $form->textFieldRow($model,'total_aportes',array('class'=>'span5','maxlength'=>20)); ?>

	<?php echo $form->textFieldRow($model,'cant_aportantes',array('class'=>'span5')); ?>

	<?php echo $form->textFieldRow($model,'fecha_aporte',array('class'=>'span5')); ?>

	<?php echo $form->textFieldRow($model,'id_usuario',array('class'=>'span5')); */?>

	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>'Search',
		)); ?>
	</div>

<?php $this->endWidget(); ?>
