✏️ 正在编辑: editar-lancamento.phtml
路径:
/srv/systems_dir/yuppiecred-bkp/application/views/scripts/diario-rota/editar-lancamento.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Editar Lançamento</h1> <div id="view-content"> <?php echo $this->form; ?> </div> <div id="view-content"> <?php if( $this->lancamentos ): ?> <form id="editar_diario_supervisor" method="post" onsubmit="return validarChecks(this)"> <table> <thead> <tr class="top_list"> <th>Data</th> <th>Descrição</th> <th>Valor</th> <th>Rota</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->lancamentos) <= 0 ): ?> <tr> <td colspan="4" align="center">Nenhum lançamento encontrado.</td> </tr> <?php else: foreach ( $this->lancamentos as $rota ): ?> <?php $diario = $rota->findParentRow("Model_DbTable_DiarioRota"); ?> <?php $rotas = Core_Combos::getRotasSupervisorOptions(); ?> <tr> <input type="hidden" name='data_retorno' value="<?php echo $diario['data_retorno'] ?>"/> <input type="hidden" name='data_saida' value="<?php echo $diario['data_saida'] ?>"/> <input type="hidden" name='supervisor_id' value="<?php echo $rota['supervisor_id'] ?>"/> <input type="hidden" name='diario_rota_id' value="<?php echo $rota['diario_rota_id'] ?>"/> <td><input type="text" name='data_viagem[<?php echo $rota['diario_tipo_id'] ?>]' value="<?php echo $this->dateFormat($rota['data_vencimento']) ?>" onkeypress="mascara(this, data)" class="hasDatepicker"/></td> <td><input type="text" name='descricao[<?php echo $rota['diario_tipo_id'] ?>]' style="width: 200px;" value="<?php echo $rota['descricao'] ?>"/></td> <td><input type="text" name='valor[<?php echo $rota['diario_tipo_id'] ?>]' value="<?php echo number_format($rota['valor'], 2, ',', '.') ?>" onkeypress="mascara(this, mvalor)"/></td> <td> <select name="rota_id[<?php echo $rota['diario_tipo_id'] ?>]" style="width: 200px;"> <?php foreach ( $rotas as $id => $r ): ?> <?php if($rota['rota_id'] == $id): ?> <option value="<?php echo $id ?>" selected="true"><?php echo $r; ?></option> <?php else:?> <option value="<?php echo $id ?>"><?php echo $r; ?></option> <?php endif;?> <?php endforeach; ?> </select> </td> <td align="center"><input type="checkbox" name="lancamentos[<?php echo $rota['diario_tipo_id'] ?>]" id="checks[]" value="<?php echo $rota['id'] ?>" /></td> </tr> <?php endforeach; endif ?> </tbody> <tfoot> <tr> <td colspan="3"> <select name="acao" id="acao"> <option value=""></option> <option value="editar-itens">Editar</option> <option value="excluir-itens">Excluir Selecionados</option> </select> <input type="submit" value="Ok" /> </td> </tr> </tfoot> </table> </form> <?php endif; ?> </div> <input type="button" onclick="window.close()" value="Fechar Janela" class="btn"/>
💾 保存文件
← 返回文件管理器