Ejemplo n.º 1
0
echo $form->labelEx($filter, 'reportTypeId');
echo CHtml::activeDropDownList($filter, 'reportTypeId', ReportType::getReportTypes());
?>
			</div>
			<div>
				<?php 
echo $form->labelEx($filter, 'dim2ID');
echo CHtml::activeDropDownList($filter, 'dim2ID', array(0 => " "));
?>
 
				
			</div>
			<div>
			    <?php 
echo $form->labelEx($filter, 'reportFormatId');
echo CHtml::activeDropDownList($filter, 'reportFormatId', ReportFormat::getReportFormats());
?>
 
			</div>
			<div>
				<?php 
echo CHtml::activeLabel($filter, 'fromDate');
$this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $filter, 'attribute' => 'fromDate', 'name' => 'fromDate', 'options' => array('changeMonth' => 'true', 'changeYear' => 'true', 'showButtonPanel' => 'true')));
?>
			</div>
			<div>
				 <?php 
echo CHtml::activeLabel($filter, 'toDate');
$this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $filter, 'attribute' => 'toDate', 'name' => 'toDate', 'options' => array('changeMonth' => 'true', 'changeYear' => 'true', 'showButtonPanel' => 'true')));
?>
 
 public static function getReportFormats()
 {
     return array(ReportFormat::chart => ReportFormat::getFormatDescriptionByFormatID(ReportFormat::chart), ReportFormat::rawData => ReportFormat::getFormatDescriptionByFormatID(ReportFormat::rawData));
 }