✏️ 正在编辑: index.phtml
路径:
/srv/systems_dir/yuppiecred-bkp/application/views/scripts/solicitacao-recurso/index.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Solicitações de Recurso</h1> <div id="filter"> <?php echo $this->form; ?> <div class="clear"></div> </div> <div id="view-content"> <?php if( $this->paginator ): ?> <?php $modelRota = new Model_Rota(); ?> <form action="<?php echo $this->url(array('action' => 'selecionar-acao')); ?>" method="post" onsubmit="validarChecks(this)"> <table summary="Solicitações" class="selecionar"> <thead> <tr class="top_list"> <th>Nº Solic.</th> <th>Data Solic.</th> <th>Empresa</th> <th>Valor</th> <th>Solicitação</th> <th>Favorecido</th> <th>Banco</th> <th>Agência</th> <th>Conta</th> <th>Tipo de conta</th> <th>Prazo</th> <th>Dias em Aberto</th> <th colspan="6"></th> <th class="check_control"><input type="checkbox" name="control" id="control" value="all" onclick="myOptions.check(this)" /></th> </tr> </thead> <tbody> <?php if( count($this->paginator) <= 0 ): ?> <tr> <td colspan="16">Nenhuma solicitação encontrada.</td> </tr> <?php else: $qtd = 0; $valorTotal = 0; foreach ( $this->paginator as $recurso ): ?> <?php $total = $modelRota->getTotalValores($recurso['rota_id'])?> <?php $qtd++; $valorTotal += $recurso['valor']; $empresa = $recurso->findParentRow("Model_DbTable_Empresa"); $banco = $recurso->findParentRow("Model_DbTable_Banco"); $usuarioAprovacao = $recurso->findParentRow("Model_DbTable_Usuario"); ?> <tr class="<?php echo $this->solicitacaoRecursoCores($recurso); ?>"> <td><?php echo $recurso['id'] ?></td> <td><?php echo $this->dateFormat($recurso['data_solicitacao']) ?></td> <td><?php echo $empresa['nome'] ?></td> <td class="valor_negrito">R$ <?php echo number_format($recurso['valor'],2,',','.') ?></td> <td><?php echo $recurso['tipo_pagamento'] ?></td> <td><?php echo $recurso['favorecido'] ?></td> <td><?php echo $banco['nome'] ?></td> <td><?php echo $recurso['agencia'] ?></td> <td><?php echo $recurso['conta'] ?></td> <td><?php echo $recurso['tipo_conta'] ?></td> <td><?php echo $this->dateFormat($recurso['prazo']) ?></td> <td><?php echo $this->recursoDiasAberto($recurso['data_solicitacao']); ?></td> <td align="center"><a href="<?php echo $this->url(array( 'action' => 'save', 'id' => $recurso['id'] )) ?>" class="link_edit"></a></td> <?php if($recurso['usuario_aprovacao'] || $recurso['usuario_cancelamento']): ?> <td></td> <td></td> <?php else: ?> <td align="center"><a style="text-decoration: blink; color: black!important" href="<?php echo $this->url(array('action' => 'aprovar-solicitacao', 'id' => $recurso['id'])); ?>" class="glyphicon-reg glyphicon-reg-thumbs_up" id="confirm_item" title="Aprovar solicitação"></a></td> <td align="center"><a style="text-decoration: blink; color: black!important" href="<?php echo $this->url(array('action' => 'reprovar-solicitacao', 'id' => $recurso['id'])); ?>" class="glyphicon-reg glyphicon-reg-thumbs_down" id="confirm_item" title="Reprovar solicitação"></a></td> <?php endif;?> <td align="center"><a href="#" style="cursor: default;" class="<?php echo $recurso['valor'] > $total['total_valores'] ? 'link_alert' : 'link_apply' ?>" id="" title="<?php echo $recurso['valor'] > $total['total_valores'] ? 'Valor da solicitação acima do valor total da rota' : 'Valor da solicitação dentro dos valores da rota.' ?>"></a></td> <td align="center"><a style="text-decoration: blink; color: black!important" href="<?php echo $this->url(array( 'action' => 'reset', 'id' => $recurso['id'] )) ?>" class="glyphicon-reg glyphicon-reg-undo" id="confirm_item" title="Resetar"></a></td> <td align="center"><a href="<?php echo $this->url(array( 'action' => 'delete', 'id' => $recurso['id'] )) ?>" class="link_remove"></a></td> <td align="center"><input type="checkbox" name="solicitacoes[]" id="checks[]" value="<?php echo $recurso['id'] ?>" /></td> </tr> <?php endforeach; endif ?> </tbody> <tfoot> <tr> <?php if(count($this->paginator) > 0): ?> <td class="negrito" colspan="2">Quantidade: <?php echo $qtd; ?></td> <?php endif; ?> <td></td> </tr> <tr> <td colspan="3"> <select name="acao" id="acao"> <option value=""></option> <option value="AprovarSolicitacao">Aprovar Selecionados</option> <option value="ReprovarSolicitacao">Reprovar Selecionados</option> <option value="ExcluirSelecionados">Excluir Selecionados</option> </select> <input type="submit" value="Ok" /> </td> </tr> </tfoot> </table> <ul class="legenda"> <li style="width:160px !important;">Legenda:</li> <li style="width:160px!important" class="bg_verde"><i class="glyphicon-reg glyphicon-reg-thumbs_up"></i> (Aprovar Solicitação)</li> <li style="width:160px!important" class="bg_vermelho"><i class="glyphicon-reg glyphicon-reg-thumbs_down"></i> (Reprovar Solicitação)</li> <li style="width:160px!important" class=""><i class="glyphicon-reg glyphicon-reg-undo"></i> (Retira aprovação ou reprovação)</li> <li style="width:160px!important" class="clear"></li> </ul> </form> <?php endif; ?> </div>
💾 保存文件
← 返回文件管理器