✏️ 正在编辑: _oportunidades-beneficios.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/callcenter/_oportunidades-beneficios.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php $style = ''; $count = 1; ?> <?php $nsLogin = new Zend_Session_Namespace(); $type = $nsLogin->acl->isAllowed(Yuppie_Auth::getIdentity()->grupo, 'simulador-credito') ? 'text' : 'hidden'; ?> <?php foreach ( $this->beneficios as $beneficio ) : ?> <?php if($beneficio['margem_livre'] != 0.00): if($beneficio['cessado']): $beneficio['situacao'] = "CESSADO"; endif; if($beneficio['bloq_emp']): $style = "background-color: #FFE9E9"; endif; ?> <tr style="<?php echo $style; ?>"> <input type="hidden" name="id" value="<?php echo $beneficio['id'] ?>"> <input type="hidden" name="cpf_cliente" value="<?php echo $beneficio['cpf_cliente'] ?>"> <input type="hidden" name="data_consulta" value="<?php echo $beneficio['data_consulta'] ?>"> <input type="hidden" name="origem" value="<?php echo $beneficio['origem'] ?>"> <td class="selecionar beneficio"> <?php echo $beneficio['beneficio']; ?> </td> <td> R$ <?php echo number_format($beneficio['margem_livre'], 2, ',', '.'); ?> </td> <td>R$ <input type="text" class="input_parcela" name="parcela" id="parcela" onkeypress="mascara(this, mvalor)" value="<?php echo number_format($beneficio['margem_livre'], 2, ',', '.'); ?>" size="7"> </td> <td> <select name="fatores" class="fatores_options"> <?php if(!empty($this->fatoresNovo)): ?> <?php foreach($this->fatoresNovo as $fator): ?> <option value='<?php echo $fator['id']; ?>'><?php echo "{$fator['banco']} - {$fator['tabela']} - {$fator['prazo']}"; ?></option> <?php endforeach; ?> <?php endif; ?> </select> </td> <?php $liquido = 0; if($beneficio['margem_livre'] !== 0.00 && !empty($this->fatoresNovo)){ $liquido = $beneficio['margem_livre'] / $this->fatoresNovo[0]['fator']; } ?> <td class="value">R$ <input type="text" class="input_valor_liquido" name="valor_liquido" value="<?php echo number_format($liquido, 2, ',', '.'); ?>" id="valor_liquido" onkeypress="mascara(this, mvalor);" size="10" /> </td> <?php $comissao = 0; $bonus = 0; $percentualComissaoNovo = 0.00 . "%"; if(!empty($this->fatoresNovo[0])): $percentualComissaoNovo = number_format($this->fatoresNovo[0]['comissao'], 2, ',', '.') . "%"; $comissao = ($liquido * $this->fatoresNovo[0]['comissao']) / 100; if(!empty($this->fatoresNovo[0]['bonus']) && $this->fatoresNovo[0]['bonus'] != '0.00'): $bonus = ($liquido * $this->fatoresNovo[0]['bonus'])/100; endif; endif; ?> <td colspan="2" class="value">R$ <input type="<?php echo $type; ?>" class="input_comissao" disabled name="comissao" value="<?php echo number_format($comissao, 2, ',', '.') . " (" . $percentualComissaoNovo . ")"; ?>" id="comissao" size="15" /> </td> <td style="text-align: right; padding-right: 20px;" class="no-print"> <button class="bt_money" onclick="simularEmprestimo(this, 'novo')">Simular</button> <?php if ($nsLogin->acl->isAllowed(Yuppie_Auth::getIdentity()->grupo, 'callcenter', 'enviar-oportunidade')): ?> <button class="send" id="enviar-oportunidade-novo" >Enviar</button> <input type="hidden" name="simulado" id="simulado" value="1" /> <?php endif; ?> <button class="bt_new_contrato" title="Digitar Proposta" onclick="digitarProposta(this, 'novo')">Digitar</button> </td> <td align="center"><input type="checkbox" class="check-oportunidade" name="novo[]" id="checks[]" value="<?php echo $liquido; ?>" /></td> </tr> <?php $count++; endif; ?> <?php if($beneficio['margem_bens_duraveis'] != 0.00): if($beneficio['cessado']): $beneficio['situacao'] = "CESSADO"; endif; if($beneficio['bloq_emp']): $style = "background-color: #FFE9E9"; endif; ?> <tr style="<?php echo $style; ?>"> <input type="hidden" name="id" value="<?php echo $beneficio['id'] ?>"> <input type="hidden" name="cpf_cliente" value="<?php echo $beneficio['cpf_cliente'] ?>"> <input type="hidden" name="data_consulta" value="<?php echo $beneficio['data_consulta'] ?>"> <input type="hidden" name="origem" value="<?php echo $beneficio['origem'] ?>"> <td class="selecionar beneficio"> <?php echo $beneficio['beneficio']; ?> </td> <td> R$ <?php echo number_format($beneficio['margem_bens_duraveis'], 2, ',', '.'); ?> </td> <td>R$ <input type="text" class="input_parcela" name="parcela" id="parcela" onkeypress="mascara(this, mvalor)" value="<?php echo number_format($beneficio['margem_bens_duraveis'], 2, ',', '.'); ?>" size="7"> </td> <td> <select name="fatores" class="fatores_options"> <?php if(!empty($this->fatoresNovo)): ?> <?php foreach($this->fatoresNovo as $fator): ?> <option value='<?php echo $fator['id']; ?>'><?php echo "{$fator['banco']} - {$fator['tabela']} - {$fator['prazo']}"; ?></option> <?php endforeach; ?> <?php endif; ?> </select> </td> <?php $liquido = 0; if($beneficio['margem_bens_duraveis'] !== 0.00 && !empty($this->fatoresNovo)){ $liquido = $beneficio['margem_bens_duraveis'] / $this->fatoresNovo[0]['fator']; } ?> <td class="value">R$ <input type="text" disabled class="input_valor_liquido" name="valor_liquido" value="<?php echo number_format($liquido, 2, ',', '.'); ?>" id="valor_liquido" size="10" /> </td> <?php $comissao = 0; $bonus = 0; $percentualComissaoNovo = 0.00 . "%"; if(!empty($this->fatoresNovo[0])): $percentualComissaoNovo = number_format($this->fatoresNovo[0]['comissao'], 2, ',', '.') . "%"; $comissao = ($liquido * $this->fatoresNovo[0]['comissao']) / 100; if(!empty($this->fatoresNovo[0]['bonus']) && $this->fatoresNovo[0]['bonus'] != '0.00'): $bonus = ($liquido * $this->fatoresNovo[0]['bonus'])/100; endif; endif; ?> <td colspan="2" class="value">R$ <input type="<?php echo $type; ?>" class="input_comissao" disabled name="comissao" value="<?php echo number_format($comissao, 2, ',', '.') . " (" . $percentualComissaoNovo . ")"; ?>" id="comissao" size="15" /> </td> <td style="text-align: right; padding-right: 20px;" class="no-print"> <button class="bt_money" onclick="simularEmprestimo(this, 'novo')">Simular</button> <?php if ($nsLogin->acl->isAllowed(Yuppie_Auth::getIdentity()->grupo, 'callcenter', 'enviar-oportunidade')): ?> <button class="send" id="enviar-oportunidade-novo">Enviar</button> <?php endif; ?> <button class="bt_new_contrato" title="Digitar Proposta" onclick="digitarProposta(this, 'novo')">Digitar</button> </td> <td align="center"><input type="checkbox" class="check-oportunidade" name="novo[]" id="checks[]" value="<?php echo $liquido; ?>" /></td> </tr> <?php $count++; endif; ?> <?php if($beneficio['margem_cartao'] != 0.00): if($beneficio['cessado']): $beneficio['situacao'] = "CESSADO"; endif; if($beneficio['bloq_emp']): $style = "background-color: #FFE9E9"; endif; ?> <tr style="<?php echo $style; ?>"> <input type="hidden" name="id" value="<?php echo $beneficio['id'] ?>"> <input type="hidden" name="cpf_cliente" value="<?php echo $beneficio['cpf_cliente'] ?>"> <input type="hidden" name="data_consulta" value="<?php echo $beneficio['data_consulta'] ?>"> <input type="hidden" name="origem" value="<?php echo $beneficio['origem'] ?>"> <td class="selecionar beneficio"> <?php echo $beneficio['beneficio']; ?> </td> <td> R$ <?php echo number_format($beneficio['margem_cartao'], 2, ',', '.'); ?> </td> <td>R$ <input type="text" class="input_parcela" name="parcela" id="parcela" onkeypress="mascara(this, mvalor)" value="<?php echo number_format($beneficio['margem_cartao'], 2, ',', '.'); ?>" size="7"> </td> <td> <select name="fatores" class="fatores_options"> <?php if(!empty($this->fatoresCartao)): ?> <?php foreach($this->fatoresCartao as $fator): ?> <option value='<?php echo $fator['id']; ?>'><?php echo "{$fator['banco']} - {$fator['tabela']} - {$fator['prazo']}"; ?></option> <?php endforeach; ?> <?php endif; ?> </select> </td> <?php $liquido = 0; if($beneficio['margem_cartao'] !== 0.00 && !empty($this->fatoresCartao)){ $liquido = ($beneficio['margem_cartao'] * $this->fatoresCartao[0]['fator'] * $this->fatoresCartao[0]['limite_saque'] / 100); } ?> <td class="value">R$ <input type="text" class="input_valor_liquido" name="valor_liquido" value="<?php echo number_format($liquido, 2, ',', '.'); ?>" id="valor_liquido" onkeypress="mascara(this, mvalor);" size="10" /> </td> <?php $comissao = 0; $bonus = 0; $percentualComissaoCartao = 0.00 . "%"; if(!empty($this->fatoresCartao[0])): $percentualComissaoCartao = number_format($this->fatoresCartao[0]['comissao'], 2, ',', '.') . "%"; $comissao = ($liquido * $this->fatoresCartao[0]['comissao']) / 100; if(!empty($this->fatoresCartao[0]['bonus']) && $this->fatoresCartao[0]['bonus'] != '0.00'): $bonus = ($liquido * $this->fatoresCartao[0]['bonus'])/100; endif; endif; ?> <td colspan="2" class="value">R$ <input type="<?php echo $type; ?>" class="input_comissao" disabled name="comissao" value="<?php echo number_format($comissao, 2, ',', '.') . " (" . $percentualComissaoCartao . ")"; ?>" id="comissao" size="15" /> </td> <td style="text-align: right; padding-right: 20px;" class="no-print"> <button class="bt_money" onclick="simularEmprestimo(this, 'cartao')">Simular</button> <?php if ($nsLogin->acl->isAllowed(Yuppie_Auth::getIdentity()->grupo, 'callcenter', 'enviar-oportunidade')): ?> <button class="send" id="enviar-oportunidade-cartao" >Enviar</button> <input type="hidden" name="simulado" id="simulado" value="1" /> <?php endif; ?> <button class="bt_new_contrato" title="Digitar Proposta" onclick="digitarProposta(this, 'cartao')">Digitar</button> </td> <td align="center"><input type="checkbox" class="check-oportunidade" name="cartao[]" id="checks[]" value="<?php echo $liquido; ?>" /></td> </tr> <?php $count++; endif; ?> <?php endforeach;?>
💾 保存文件
← 返回文件管理器