✏️ 正在编辑: solicitacao-recurso.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/relatorio/solicitacao-recurso.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Relatório de Solicitações de Recurso</h1> <div id="filter"> <?php echo $this->form; ?> <div class="clear"></div> </div> <div id="view-content"> <table class="relatorio"> <thead> <tr class="top_list"> <th>Nº Solic.</th> <th>Data Solic.</th> <th>Empresa</th> <th>Solicitante</th> <th>Valor</th> <th>Valor Pagamento</th> <th>Solicitação</th> <th>Usuário Aprovação</th> <th>Data Aprovação</th> <th>Usuário Pagamento</th> <th>Data Pagamento</th> <th>Usuário Reprovação</th> <th>Data Reprovação</th> </tr> </thead> <tbody> <?php if( count($this->solicitacoes) <= 0 ): ?> <tr> <td colspan="15">Nenhum resultado a ser exibido.</td> </tr> <?php else: ?> <?php $totalValor = 0; $totalValorPago = 0; $qtd = 0; ?> <?php foreach ( $this->solicitacoes as $recurso ): ?> <?php $qtd++; $totalValor += $recurso['valor']; $totalValorPago += $recurso['valor_pago']; $solicitante = $recurso['tipo_usuario'] == 'supervisor' ? $recurso['supervisor'] : ($recurso['tipo_usuario'] == 'gerente' ? $recurso['gerente'] : $recurso['usuario']) ?> <tr> <td><?php echo $recurso['id']; ?></td> <td><?php echo $this->dateFormat($recurso['data_solicitacao']); ?></td> <td><?php echo $recurso['empresa']; ?></td> <td><?php echo $solicitante; ?></td> <td class="valor"><span>R$</span><?php echo number_format($recurso['valor'],2,',','.'); ?></td> <td class="valor"><span>R$</span><?php echo number_format($recurso['valor_pago'],2,',','.'); ?></td> <td><?php echo $recurso['tipo_pagamento']; ?></td> <td><?php echo $recurso['usuario_aprovacao_nome']; ?></td> <td><?php echo $this->dateFormat($recurso['data_aprovacao']); ?></td> <td><?php echo $recurso['usuario_pagamento_nome']; ?></td> <td><?php echo $this->dateFormat($recurso['data_pagamento']); ?></td> <td><?php echo $recurso['usuario_cancelamento_nome']; ?></td> <td><?php echo $this->dateFormat($recurso['data_cancelamento']); ?></td> </tr> <?php endforeach; ?> <?php endif; ?> </tbody> <?php if(count($this->solicitacoes) > 0): ?> <tfoot> <tr> <td class="negrito">Total: <?php echo $qtd ?></td> <td></td> <td></td> <td></td> <td class="valor"> <span>R$</span> <?php echo number_format($totalValor, 2, ',', '.'); ?> </td> <td class="valor"> <span>R$</span> <?php echo number_format($totalValorPago, 2, ',', '.'); ?> </td> </tr> </tfoot> <?php endif; ?> </table> </div>
💾 保存文件
← 返回文件管理器