Exemplo n.º 1
0
    
    .panel {background-color: #fff;  border: 1px solid transparent;}
    
</style>
<?php 
$form = $this->beginWidget('CActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'post', 'id' => 'dashboarForm'));
?>


<table class="dashItem">
    <td style="vertical-align:top; width:225px;">
        <div id="filterRegion" style="overflow:auto; padding-right:30px">
			<div>
				 <?php 
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());
?>
Exemplo n.º 2
0
 public function reportOptions()
 {
     $report = ReportDefinition::getDefinition('PrintCollection');
     // set options
     return array('type' => array('pdf' => '', 'xml' => '', 'csv' => ''), 'report_type' => ReportType::getReportTypes(), 'default_report_type' => $report->report_type_id, 'report_name' => $this->getReportsByType($report->report_type_id), 'output' => array('print' => '', 'save' => '', 'email' => '', 'view' => ''), 'report' => $report->name, 'filename' => $this->generate_collection_name(TRUE));
 }