✏️ 正在编辑: view-protocolos.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/contrato/view-protocolos.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Protocolos</h1> <div id="view-content"> <form action="<?php echo $this->url(array( 'action' => 'liberar-protocolo-pagamento' )); ?>" method="post" onsubmit="return validarChecks(this);"> <table summary="Contratos" class="tablesorter" id="sortedTable"> <thead class="thead-not-repeat"> <tr class="top_list"> <th>N° Protocolo</th> <th>Dt. Pagamento</th> <th>Forma de pagamento</th> <th>Saldo Corretor</th> <th>Valor do protocolo</th> <th></th> <th class="check_control"><input type="checkbox" name="control" value="all" onclick="myOptions.check(this)" /></th> </tr> </thead> <tbody> <?php if( count($this->protocolos) <= 0 ): ?> <tr> <td colspan="16">Nenhum protocolo encontrado.</td> </tr> <?php else: foreach ( $this->protocolos as $contrato ): $taxaTransf = isset($contrato['taxa_transferencia_banco']) && $contrato['descontar_taxa_transf'] == 1 ? $contrato['taxa_transferencia_banco'] : null; $valorComissao = $contrato['total_comissao']; ?> <?php $saldoCorretor = number_format($contrato['valor_credito_corretor'] - $contrato['valor_debito_corretor'], 2, ',', '.'); ?> <tr> <td><a href="javascript:void()" onclick="openWin('<?php echo $this->url(array( 'action' => 'imprimir-protocolo-pagamento', 'protocolo_id' => $contrato['protocolo_pagamento'] )) ?>', 1024, 600, 1)" title="Visualizar" ><?php echo $contrato['protocolo_pagamento'] ?></a></td> <td><?php echo $this->dateFormat($contrato['data_pagamento']); ?></td> <td><?php echo $contrato['forma_pagamento']; ?></td> <td <?php echo $saldoCorretor < 0 ? 'style="color: #a94442"' : 'style="color: #3c763d"' ?>>R$ <?php echo $saldoCorretor; ?></td> <td>R$ <?php echo number_format((float)($valorComissao + $contrato['acrescimo'] - $contrato['desconto'] - $taxaTransf), 2 , ",", "."); ?></td> <td align="center"><a href="javascript:void()" onclick="openWin('<?php echo $this->url(array( 'action' => 'edit-protocolo', 'id' => $contrato['protocolo_pagamento'] )) ?>', 1024, 600, 1)" class="link_edit" title="Editar Protocolo"></a></td> <td align="center"><input type="checkbox" name="protocolos[]" id="checks[]" value="<?php echo $contrato['protocolo_pagamento'] ?>" /></td> </tr> <?php endforeach; endif ?> </tbody> <tfoot> <tr> <td class="negrito">Quantidade: <?php echo count($this->protocolos); ?></td> </tr> </tfoot> </table> <div id="opcoes" class="view-protocolos no-print"> <fieldset class="opcoes-protocolo"> <legend>Ações:</legend> <dd> <input type="submit" class="bt_apply" value="Liberar Pagamento" /> <div class="clear"></div> <input type="button" onclick="window.location = '<?php echo $this->baseUrl(); ?>/financeiro/pagar-comissao/';" value="Novo Pagamento" class="bt_new" /> </dd> </fieldset> <fieldset class="opcoes-protocolo"> <legend>Impressão:</legend> <dt><label>Exibir recibo</label></dt> <dd><select style="min-width: 0; width:auto" name="exibir_recibo"><option value="0">Não</option><option value="1" selected>Sim</option></select></dd> <dt><label>Exibir protocolo</label></dt> <dd><select style="min-width: 0; width:auto" name="exibir_protocolo"><option value="0">Não</option><option value="1" selected>Sim</option></select></dd> <div style="margin: 0 0 10px 0" class="clear"></div> <button type="submit" class="bt_imprimir" value="/financeiro/imprimir-varios-protocolos" onclick="return imprimirProtocolos(this);">Imprimir selecionados</button> </fieldset> </div> </form> <table> <thead class="thead-not-repeat"> <tr class="top_list"> <th>Contrato</th> <th>Motivo</th> </tr> </thead> <tbody> <?php if(count($this->contratos_nao_gerados) > 0): foreach ( $this->contratos_nao_gerados as $contrato ): ?> <tr> <td><?php echo $contrato['numero_contrato']; ?></td> <td><?php echo $contrato['motivo']; ?></td> </tr> <?php endforeach;endif; ?> </tbody> </table> </div>
💾 保存文件
← 返回文件管理器