<?php
/* @var $this RelatorioCancelamentosController */
/* @var $model RelatorioCancelamentos */
/* @var $form CActiveForm */
$years = [];
$range = range(2019, date('Y'));

foreach($range as $ano) {
	$years[$ano] = $ano;
}
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>


	<div class="row">
		<?php echo $form->label($model,'RCC_MES'); ?>
		<?php
	        echo $form->dropDownList($model, 'RCC_MES', Util::getMeses(), array(
	            'prompt' => 'Todos',
	            'class' => 'form-control'
	        ));
	    ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'RCC_ANO'); ?>
		<?php
	        echo $form->dropDownList($model, 'RCC_ANO', $years, array(
	            'prompt' => 'Todos',
	            'class' => 'form-control'
	        ));
	    ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'RCC_CNPJ'); ?>
		<?php echo $form->textField($model,'RCC_CNPJ',array('size'=>20,'maxlength'=>20)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'RCC_RAZAO'); ?>
		<?php echo $form->textField($model,'RCC_RAZAO',array('size'=>60,'maxlength'=>200)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'RCC_EMPRESA'); ?>
		<?php echo $form->textField($model,'RCC_EMPRESA',array('size'=>60,'maxlength'=>100)); ?>
	</div>

	<div class="row buttons">
		<?php echo FaHtml::searchButton();?>
	</div>

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

</div><!-- search-form -->