✏️ 正在编辑: tabela-geral-corretor.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/relatorio/tabela-geral-corretor.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Análise de Desempenho do Corretor</h1> <div id="filter"> <?php echo $this->form; ?> <div class="clear"></div> </div> <div id="view-content"> <table class="relatorio" border=1 style="border-color:silver; border-style: 1px;"> <thead> <tr class="top_list"> <th style="text-align:center">Corretor</th> <th style="text-align:center">Total de Produção <?php echo $this->form->mes_ano->getValue(); ?></th> <th style="text-align:center">Total de Produção <?php echo $this->form->mes_ano->getValue() ? (new Zend_Date($this->form->mes_ano->getValue(), "MM/yyyy"))->subMonth(1)->get('MM/yyyy') : ""; ?></th> <?php if (Yuppie_Auth::getIdentity()->grupo != 'Supervisor'): ?> <th style="text-align:center">Rentabilidade</th> <th style="text-align:center">Lucratividade</th> <?php endif; ?> <th style="text-align:center">Percentual Representativo</th> <th style="text-align:center">Qtd. Contratos Produzidos</th> <th style="text-align:center">Última Visita</th> </tr> </thead> <tbody> <?php if( count($this->paginator) <= 0 ): ?> <tr> <td colspan="15">Nenhum resultado a ser exibido.</td> </tr> <?php else: ?> <?php $totalProduzido = 0; $totalProduzidoAnterior = 0; $totalRentabilidade = 0; $qtd = 0; ?> <?php foreach ( $this->paginator as $key => $registro ): ?> <?php $qtd++; $totalProduzido += $registro['total_producao']; $totalProduzidoAnterior += $registro['producao_mes_anterior']; $totalLucratividade += ($registro['total_contratos_rentabilidade']-$registro['total_contratos_comissao_corretor']); $totalRentabilidade += $registro['total_contratos_rentabilidade']; ?> <tr> <td><?php echo $registro['nome']; ?></td> <td class="valor"><span>R$ </span><?php echo number_format($registro['total_producao'], 2, ',', '.'); ?> <?php echo $registro['total_producao'] > $registro['producao_mes_anterior'] ? "<i class='glyphicon-reg glyphicon-reg-up_arrow' style='color: green' title='Produção acima do mês anterior'></i>" : "<i class='glyphicon-reg glyphicon-reg-down_arrow' style='color: red' title='Produção abaixo do mês anterior'></i>" ?></td> <td class="valor"><span>R$ </span><?php echo number_format($registro['producao_mes_anterior'], 2, ',', '.'); ?></td> <?php if (Yuppie_Auth::getIdentity()->grupo != 'Supervisor'): ?> <td class="valor"><span>R$ </span><?php echo number_format($registro['total_contratos_rentabilidade'], 2, ',', '.'); ?></td> <td class="valor"><span>R$ </span><?php echo number_format($registro['total_contratos_rentabilidade']-$registro['total_contratos_comissao_corretor'], 2, ',', '.'); ?></td> <?php endif; ?> <td class="valor"><?php echo number_format($registro['percentual_representativo'], 2, ',', '.'); ?> (%)</td> <td class="valor"><?php echo $registro['total_contratos_produzidos']; ?></td> <td class="valor"><?php echo $this->dateFormat((new Model_Corretor())->getUltimaVisitaRota($key)); ?></td> </tr> <?php endforeach; ?> <?php endif; ?> </tbody> <?php if( count($this->paginator) > 0 ): ?> <tfoot> <tr> <td class="negrito">Total: <?php echo $qtd ?></td> <td class="valor"> <span>R$</span> <?php echo number_format($totalProduzido, 2, ',', '.'); ?> </td> <td class="valor"> <span>R$</span> <?php echo number_format($totalProduzidoAnterior, 2, ',', '.'); ?> </td> <td class="valor"> <span>R$</span> <?php echo number_format($totalRentabilidade, 2, ',', '.'); ?> </td> <td class="valor"> <span>R$</span> <?php echo number_format($totalLucratividade, 2, ',', '.'); ?> </td> <td colspan="3"></td> </tr> </tfoot> <?php endif; ?> </table> <p> </p> <h2 class="tit_local">Corretores sem produção</h2> <?php if(!empty($this->sem_producao['periodo_sem_producao'])): ?> <table class="relatorio"> <thead> <tr class="top_list"> <th>ID</th> <th>Corretor</th> </tr> </thead> <tbody> <?php foreach ($this->sem_producao['periodo_sem_producao'] as $semProducao): ?> <tr> <td><?php echo $semProducao['corretor_id']; ?></td> <td><?php echo $semProducao['nome']; ?></td> </tr> <?php endforeach;?> </tbody> </table> <?php endif; ?> </div>
💾 保存文件
← 返回文件管理器