✏️ 正在编辑: contratos-recuperar.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/relatorio/contratos-recuperar.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Contratos para recuperar</h1> <div id="filter"> <?php echo $this->form; ?> </div> <div id="view-content"> <table> <thead> <tr class="top_list"> <th>Corretor</th> <th>Nº Contrato</th> <th>Cliente</th> <th>Cpf Cliente</th> <th>Banco</th> <th>Status da proposta</th> <th>OBS</th> <th>Solução</th> <th>Situação</th> <th>Resposta</th> <th></th> <th></th> </tr> </thead> <tbody> <?php if(count($this->producao) > 0): foreach ( $this->producao as $contrato ): $resposta = $contrato['resposta']; $resolvido = !empty($contrato['data_hora_resolvido']) && $contrato['data_hora_resolvido'] != '0000-00-00 00:00:00'; ?> <tr> <td><?= $contrato['corretor']; ?></td> <td><?= $contrato['numero_contrato']; ?></td> <td><?= $contrato['cliente']; ?></td> <td class="cpf"><?= $contrato['cpf_cliente']; ?></td> <td><?= $contrato['banco']; ?></td> <td><?= $contrato['status_proposta']; ?></td> <td><?= $contrato['obs']; ?></td> <td><?php echo $contrato['descricao'] ?></td> <?php if( (Yuppie_Auth::getIdentity()->grupo == 'Corretor' || !empty(Yuppie_Auth::getIdentity()->corretor_id))): ?> <td><?= $resolvido ? "Resolvido" : "Não resolvido"; ?></td> <td> <?php if($resposta == 0): ?> <button onclick="location.href='<?= $this->url(array('controller' => 'contrato', 'action' => 'responder-contratos-recuperar', 'resposta' => 1, 'id' => $contrato['id'])); ?>'" name="Resposta" class="bt_apply">Aceitar</button> <button onclick="location.href='<?= $this->url(array('controller' => 'contrato', 'action' => 'responder-contratos-recuperar', 'resposta' => -1, 'id' => $contrato['id'])); ?>'" name="Resposta" class="bt_delete">Recusar</button> <?php else: ?> <?= $resposta == 0 ? "Sem resposta" : ($resposta == -1 ? "Recusado" : "Aceito"); ?> <?php endif; ?> </td> <td></td> <td></td> <?php else: ?> <td><?php if($resolvido): ?> Resolvido <?php elseif($resposta == 0) : ?> Aguardando resposta do parceiro <?php else: ?> Não resolvido <?php endif; ?> </td> <td><?= $resposta == 0 ? "Sem resposta" : ($resposta == -1 ? "Recusado" : "Aceito"); ?></td> <td align="center"> <?php if(!$resolvido && $resposta): ?> <a href="<?php echo $this->url(array( 'controller' => 'contrato', 'action' => 'resolver-contratos-recuperar', 'id' => $contrato['id'] )) ?>" class="link_apply"></a> <?php endif; ?> </td> <td align="center"> <a href="<?php echo $this->url(array( 'controller' => 'contrato', 'action' => 'excluir-contratos-recuperar', 'id' => $contrato['id'] )) ?>" class="link_remove"></a> </td> <?php endif; ?> </tr> <?php endforeach; else: ?> <tr> <td colspan="12">Nenhum contrato a recuperar.</td> </tr> <?php endif;?> <tfoot> <tr> <td><?= count($this->producao) ? "Quantidade: ". count($this->producao) : ''; ?></td> </tr> </tfoot> </tbody> </table> </div>
💾 保存文件
← 返回文件管理器