✏️ 正在编辑: ficha-corretor.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/corretor/ficha-corretor.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<style> div.content-graph{ float:none; margin: 0 auto; } div#chart > div > div { width: auto !important; } #chart svg{ margin: 10px auto; display: block; max-width: 100%; } .dados-corretor tr, .dados-corretor td{ background-color: transparent !important; } div#chart_producao{ width: 1200px; float: none; } div#chart_rank_produtos{ margin-left: 10px; } </style> <h1 class="tit_local" > Raio-x do Corretor</h1> <div id="filter"> <?php echo $this->form; echo $this->inicialize_js; echo $this->output_js_gchart; echo $this->output_js_gchart_convenios; ?> </div> <div id="view-content"> <?php if ($this->corretor): $corretor = $this->corretor; $grupoComissao = new Model_GrupoComissao(); $grupoComissao = $corretor['grupo_comissao'] ? $grupoComissao->exibir($corretor['grupo_comissao']) : null; ?> <fieldset style="width:96%; padding-right: 35px;"> <legend style="background-color: #ccc; border-radius: 4px; width: auto; font-size: 12px; font-weight: bold; padding: 5px;"> Informações </legend> <table class="dados-corretor"> <tr> <td width="200">Empresa:</td> <td><?= $corretor['empresa'] ?> </td> </tr> <tr> <td width="200">Agente:</td> <td><?= $corretor['nome'] ?> </td> </tr> <tr> <td width="200">Endereço:</td> <td><?= "{$corretor['endereco']}, {$corretor['cidade']}, {$corretor['uf']}" ?></td> </tr> <tr> <td width="200">Fone:</td> <td><?= $corretor['celular'] ?></td> </tr> <tr> <td width="200">Parceiro desde:</td> <td><?= $this->dateFormat($corretor['data_cadastro']) ?></td> </tr> <tr> <td width="200">Grupo de comissão:</td> <td><?php echo $grupoComissao ? $this->escape($grupoComissao->descricao) : ''; ?></td> </tr> <!-- <tr> <td width="200">Qtd. Físicos não entregues:</td> <td><?= $this->qntFisicosNaoEntregues ?> </td> </tr> <tr> <td width="200">Qtd. Físicos não entregues e pagos:</td> <td><?= $this->qntFisicosNaoEntreguesPagos ?> </td> </tr> <tr> <td width="250" ">Contratos com pendência de doc:</td> <td><?= $this->qntFisicosPendenciaDoc ?> </td> </tr> <tr> <td width="200">Contratos com cobrança banco:</td> <td><?= $this->qntFisicosCobrancaBanco ?> </td> </tr> <tr> <td width="200">Bloqueado por pendência:</td> <td><?= $this->qntFisicosBloqueadosPorPendencia ?> </td> </tr> --> <tr> <td width="200">Comissão a receber:</td> <td>R$ <?= number_format($this->comissaoReceber, 2, ',', '.') ?> </td> </tr> <tr> <td width="200">Saldo devedor:</td> <td>R$ <?= number_format($this->saldoDevedor, 2, ',', '.') ?> </td> </tr> <tr> <td width="200">Qtd. de fraudes:</td> <td><?= $this->fraudes ?> </td> </tr> </table> </fieldset> <?php endif; ?> <h1 class="tit_local" style="margin-top: 20px"> Produção dos últimos 12 meses</h1> <table> <thead> <tr class="top_list"> <th width="1"> Data Emissão</th> <?php if ($this->producaoUltimosMeses): foreach ($this->producaoUltimosMeses as $value): ?> <th> <?= $value['liberacao'] ?></th> <?php endforeach; ?> <th> Média</th> <?php endif; ?> </tr> </thead> <tr> <th> Valor(R$)</th> <?php if ($this->producaoUltimosMeses): $media = 0; foreach ($this->producaoUltimosMeses as $value): $media += isset($value['valor']) ? $value['valor'] : 0; ?> <td> <?= isset($value['valor']) ? number_format($value['valor'], 2, ',', '.') : '0,00' ?></td> <?php endforeach; ?> <td> <?= number_format($media / 12, 2, ',', '.') ?></td> <?php endif; ?> </tr> <tr> <th>Contratos x Pendentes</th> <?php if ($this->producaoUltimosMeses): $pendente = 0; $contatos = 0; foreach ($this->producaoUltimosMeses as $value): $contatos += isset($value['contratos']) ? $value['contratos'] : 0; $pendente += isset($value['pendencia']) ? $value['pendencia'] : 0 ?> <td> <?= isset($value['contratos']) ? $value['contratos'] : 0 ?>/<?= isset($value['pendencia']) ? $value['pendencia'] : 0 ?></td> <?php endforeach; ?> <?= "<td>" . "-" . "</td>" ?> <?php endif; ?> </td> </tr> <tr> <th>Pendencia(%)</th> <?php if ($this->producaoUltimosMeses): $pendenciaMedia = 0; foreach ($this->producaoUltimosMeses as $value): if (isset($value['pendencia']) && $value['pendencia'] > 0 && isset($value['contratos']) && $value['contratos'] > 0) { $pendenciaMedia += ($value['pendencia'] / $value['contratos'] * 100); echo "<td>" . number_format(($value['pendencia'] / $value['contratos'] * 100), 2, ',', '.') . '% </td>'; } else { echo '<td>0,00</td>'; } endforeach; echo "<td>" . "-" . '</td>'; endif; ?> </tr> <tbody></tbody> </table> <div class="content-graph" style="width: 1200px;"> <div id="chart_producao"></div> </div> <div class="container" style="width: 90%; height: 350px; margin: auto; margin-top: 10px"> <div> <div id="chart_convenio" style="width: 15%;height: 200px;float: left; margin: auto"></div> <div id="chart_rank_produtos" style="margin-left: 58%;height: 200px;"></div> </div> </div> </div>
💾 保存文件
← 返回文件管理器