//if(($price-$costPrice)-$costPrice/2 > ($beforePrice-$beforeCostPrice)-$beforeCostPrice/2){ ?> <span class="green"><i class="fa fa-caret-up"></i></span> <?php //}elseif(($price-$costPrice)-$costPrice/2 < ($beforePrice-$beforeCostPrice)-$beforeCostPrice/2){ ?> <span class="red"><i class="fa fa-caret-down"></i></span> <?php //}else{} ?> </td>--> </tr> <?php $cnt++; } $expRealize = $balance->getExpBalance($dates); $sumCostPrice = $sumCostPrice + $expRealize; $sumRealized = $sumRealized + $expRealize; ?> <tr> <td><?php echo $cnt++; ?> </td> <td>Внутренний расход</td> <td></td> <td><?php echo number_format($expRealize, 0, ',', ' '); ?> <?php echo CHtml::link('<i class="icon-eye-open"></i>', '0|Внутренний расход|other', array('class' => 'view'));