✏️ 正在编辑: analise-horizontal.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/relatorio/analise-horizontal.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Análise Horizontal</h1> <div id="filter"> <?php echo $this->form; ?> <div class="clear"></div> </div> <div id="view-content"> <?php if($this->periodos): ?> <table> <thead> <tr class="top_list"> <th>Categoria</th> <?php foreach($this->periodos as $mes): ?> <th><?php echo $mes; ?></th> <?php endforeach; ?> </tr> </thead> <?php if( count($this->categorias) > 0 ): ?> <tbody> <?php $totalGeral = array(); foreach($this->categorias as $key => $categoria): ?> <tr> <td><?php echo $key; ?> - <?php echo $categoria; ?></td> <?php foreach($this->periodos as $mes): ?> <td class="valor"> <?php $valorTotal = 0; if ($this->despesas[$key][$mes]): $valorTotal = $this->despesas[$key][$mes]['valor_total']; if (!isset($totalGeral[$mes])) $totalGeral[$mes] = 0; $totalGeral[$mes] += $valorTotal; endif; echo $valorTotal ? '<span>R$ </span>' . number_format($valorTotal, 2, ',', '.') : '-'; ?> </td> <?php endforeach; ?> </tr> <?php endforeach; ?> </tbody> <tfoot> <tr> <td class="negrito">Total:</td> <?php foreach($this->periodos as $mes): ?> <td class="valor negrito"> <?php echo isset($totalGeral[$mes]) ? '<span>R$ </span>' . number_format($totalGeral[$mes], 2, ',', '.') : '-'; ?> </td> <?php endforeach; ?> </tr> </tfoot> <?php endif; ?> </table> <?php endif; ?> </div>
💾 保存文件
← 返回文件管理器