✏️ 正在编辑: visualizar-extrato-corretor.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/contrato/visualizar-extrato-corretor.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Extrato Corretor</h1> <div id="view-content"> <table> <thead> <tr class="top_list"><th class="negrito" colspan="5">Lançamentos</th></tr> <tr class="top_list"> <th>Data</th> <th>Descrição</th> <th>Obs</th> <th>Valor</th> <th>C/D</th> </tr> </thead> <tbody> <?php $creditos = 0; $debitos = 0; ?> <?php if( count($this->lancamentos) <= 0 ): ?> <tr> <td colspan="5">Nenhum resultado a ser exibido.</td> </tr> <?php else: foreach($this->lancamentos as $lancamento): ?> <tr> <td><?php echo $this->dateFormat($lancamento['data_pagamento']); ?></td> <td><?php echo $lancamento['descricao']; ?></td> <td><?php echo $lancamento['obs']; ?></td> <td class="valor <?php echo substr($lancamento['tipo'], 0, 1) == 'C' ? "receita" : "despesa" ; ?>"><?php echo number_format($lancamento['valor_pago'], 2, ',', '.'); ?></td> <td align="center"><?php echo substr($lancamento['tipo'], 0, 1); ?></td> </tr> <?php if(substr($lancamento['tipo'], 0, 1) == 'C'){ $creditos += $lancamento['valor_pago']; } ?> <?php if(substr($lancamento['tipo'], 0, 1) == 'D'){ $debitos += $lancamento['valor_pago']; } ?> <?php endforeach; endif;?> </tbody> <tfoot> <tr class="top_list"> <td class="negrito">Saldo:</td> <td></td> <td></td> <td class="valor negrito"><?php echo number_format(($creditos-$debitos), 2, ',', '.'); ?></td> <td></td> </tr> </tfoot> </table> <br> <table> <thead> <tr class="top_list"> <th class="negrito" colspan="3">Resumo</th> </tr> <tr class="top_list"> <th>Créditos</th> <th>Débitos</th> <th>Saldo do corretor</th> </tr> </thead> <tbody> <tr> <td class="valor negrito receita">R$ <?php echo number_format($creditos, 2, ',', '.'); ?></td> <td class="valor negrito despesa">R$ <?php echo number_format($debitos, 2, ',', '.'); ?></td> <td class="valor negrito">R$ <?php echo number_format($creditos - $debitos, 2, ',', '.'); ?></td> </tr> </tbody> </table> <br> <button id="btn_back" class="bt_back" onclick="window.close()" type="button" name="btn_back">Voltar</button> </div>
💾 保存文件
← 返回文件管理器