Exemple #1
0
    
    <div class="row more_col month_col report_type_3 display_none">
        <div class="mycol1">
            <?php 
echo $form->labelEx($model, 'year_from');
?>
            <?php 
echo $form->dropDownList($model, 'year_from', MyFormat::getRangeYear(), array("class" => ""));
?>
        </div>
        <div class="mycol2">
            <?php 
echo $form->labelEx($model, 'year_to');
?>
            <?php 
echo $form->dropDownList($model, 'year_to', MyFormat::getRangeYear(), array("class" => ""));
?>
        </div>
    </div>

    <div class="row buttons" style="padding-left: 159px;">
        <?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'label' => Yii::t('translation', 'Show Report'), 'type' => 'null', 'size' => 'small'));
?>
	
        <?php 
// if(isset($_SESSION['REPORT_DATA']['COUNT_TRANS'])):
$cAction = strtolower(Yii::app()->controller->action->id);
$link = Yii::app()->createAbsoluteUrl('admin/FiInvoice/report', array('to_excel' => 1));
if ($cAction == 'report_transaction') {
    $link = Yii::app()->createAbsoluteUrl('admin/FiInvoice/report_transaction', array('to_excel' => 1));