✏️ 正在编辑: painel.phtml
路径:
/srv/systems_dir/yuppiecred-bkp/application/views/scripts/callcenter-relatorios/painel.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Callcenter - Visão Geral</h1> <div id="filter"> <?php echo $this->form; ?> <div class="clear"></div> </div> <div id="painel"> <div class="column"> <div class="box"> <h2>Atendimentos por Operador</h2> <div class="container-box"> <table> <thead> <tr class="top_list"> <th>Operador</th> <th>Quantidade de Atendimentos</th> <th>Campanha</th> <th></th> </tr> </thead> <tbody> <?php $qtd = 0; if( count($this->atendimentos) > 0 ): foreach ( $this->atendimentos as $atendimento ): ?> <?php $qtd += $atendimento['qtd_atendimentos']; ?> <tr> <td><?php echo $atendimento['corretor']; ?></td> <td align="center"><?php echo $atendimento['qtd_atendimentos']; ?></td> <td align="center"> <?php if(isset($atendimento['nome_campanha'])){ echo $atendimento['nome_campanha']; } ?> </td> <td><a href="javascript:void()" onclick="openWin('<?php $urlOptions = array( 'action' => 'detalhar-operador-campanha', 'campanha_id' => $atendimento['campanha_id'], 'usuario' => $atendimento['usuario_ultimo_atendimento'] ); if ($this->form->data_inicial->getValue()) { $dataInicial = new Zend_Date($this->form->data_inicial->getValue(), 'dd/MM/yyyy'); $urlOptions['data_inicial'] = $dataInicial->get('yyyy-MM-dd'); } if ($this->form->data_final->getValue()) { $dataFinal = new Zend_Date($this->form->data_final->getValue(), 'dd/MM/yyyy'); $urlOptions['data_final'] = $dataFinal->get('yyyy-MM-dd'); } echo $this->url($urlOptions); ?>', 950, 600, 1)" title="Detalhar" class="link_view" ></a></td> </tr> <?php endforeach; endif; ?> </tbody> <tfoot> <tr> <td>Total:</td> <td align="center"><?php echo $qtd; ?></td> <td></td> <td></td> </tr> </tfoot> </table> </div> </div> <div class="box"> <h2>Clientes Em Atendimento</h2> <div class="container-box"> <table> <thead> <tr class="top_list"> <th>Cliente</th> <th>CPF</th> <th>Operador</th> <th>Iniciado em</th> <th>Campanha</th> <th></th> </tr> </thead> <tbody> <?php if( count($this->em_atendimento) > 0 ): foreach ( $this->em_atendimento as $atendimento ): ?> <tr> <td><?php echo $atendimento['nome']; ?></td> <td><?php echo String_Refatorar::resetCpf($atendimento['cpf']); ?></td> <td><?php echo $atendimento['corretor']; ?></td> <td><?php echo $this->dateHourFormat($atendimento['data_ultimo_atendimento']); ?></td> <td align="center"><?php echo $atendimento['nome_campanha']; ?></td> <td><a href="<?php echo $this->url([ 'controller' => 'callcenter-base', 'action' => 'reset-cliente', 'campanha_id' => $atendimento['campanha_id'], 'cliente_id' => $atendimento['id'], null, true]); ?>" title="Resetar Cliente" class="link_apply" ></a></td> </tr> <?php endforeach; endif;?> </tbody> <tfoot> <tr> <td>Total: <?php echo count($this->em_atendimento); ?></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> </tfoot> </table> </div> </div> </div> <div class="column"> <div class="box"> <h2>Atendimentos por Status</h2> <div class="container-box"> <table> <thead> <tr class="top_list"> <th>Status</th> <th>Quantidade de Atendimentos</th> </tr> </thead> <tbody> <?php $qtd = 0; if( count($this->atendimentos_status) > 0 ): foreach ( $this->atendimentos_status as $atendimento ): ?> <?php $qtd += $atendimento['qtd_atendimentos']; ?> <tr> <td><?php echo $atendimento['status_atendimento']; ?></td> <td align="center"><?php echo $atendimento['qtd_atendimentos']; ?></td> </tr> <?php endforeach; endif; ?> </tbody> <tfoot> <tr> <td>Total:</td> <td align="center"><?php echo $qtd; ?></td> </tr> </tfoot> </table> </div> </div> <div class="box"> <h2>Clientes por Campanha</h2> <div class="container-box"> <table> <thead> <tr class="top_list"> <th>Campanha</th> <th>Quantidade de clientes</th> </tr> </thead> <tbody> <?php $qtd = 0; if( count($this->qtde_clientes) > 0 ): foreach ( $this->qtde_clientes as $campanha ): $qtd += $campanha['qtd_clientes'];?> <tr> <td><?php echo $campanha['campanha_nome']; ?></td> <td align="center"><?php echo $campanha['qtd_clientes']; ?></td> </tr> <?php endforeach; endif; ?> </tbody> <tfoot> <tr> <td>Total:</td> <td align="center"><?php echo $qtd; ?></td> </tr> </tfoot> </table> </div> </div> </div> </div>
💾 保存文件
← 返回文件管理器