✏️ 正在编辑: exibir-movimentacoes.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/diario-rota/exibir-movimentacoes.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Exibição de Movimentação</h1> <?php if($this->lancamentos['tipo_diario'] == 1): ?> <table> <thead> <tr class="top_list"> <th>Data</th> <th>Cidade</th> <th>Uf</th> <th>Km do veículo</th> <th>Valor Abastecimento</th> <th>Remover</th> <th>Anexo</th> </tr> </thead> <tbody> <?php $valor = 0; $valor += $this->lancamentos['valor']; ?> <tr> <td><?php echo $this->dateFormat($this->lancamentos['data']); ?></td> <td><?php echo $this->lancamentos['cidade']; ?></td> <td><?php echo $this->lancamentos['uf']; ?></td> <td><?php echo $this->lancamentos['km_veiculo']; ?></td> <td class="valor negrito">R$ <?php echo number_format($this->lancamentos['valor'],2,',','.'); ?></td> <td align="center"> <?php if($this->lancamentos['status'] == 'ABERTO') : ?> <a href="<?php echo $this->url(array( 'action' => 'excluir-movimentacoes', 'id' => $this->lancamentos['id'],'rota_id' => $this->lancamentos['rota_id'])); ?>" class="link_remove"></a> <?php endif;?> </td> <td align="center"> <?php if (!empty($this->lancamentos['anexo'])) : ?> <a style="text-decoration: none;" href="#" class="glyphicon-reg glyphicon-reg-picture" onclick="window.open('<?php echo $this->linkDocumentacao($this->lancamentos['anexo'], 'diario-rota', 'download-anexo'); ?>');" title="Visualizar Anexo"></a> <?php endif; ?> </td> </tr> </tbody> </table> <br> <?php endif; ?> <?php if($this->lancamentos['tipo_diario'] == 2): ?> <table> <thead> <tr class="top_list"> <th>Data</th> <th>Cidade</th> <th>Uf</th> <th>Hotel/Pousada</th> <th>Valor Hospedagem</th> <th>Remover</th> <th>Anexo</th> </tr> </thead> <tbody> <?php $valor = 0; ?> <?php $valor += $this->lancamentos['valor']; ?> <tr> <td><?php echo $this->dateFormat($this->lancamentos['data']); ?></td> <td><?php echo $this->lancamentos['cidade']; ?></td> <td><?php echo $this->lancamentos['uf']; ?></td> <td><?php echo $this->lancamentos['hospedagem']; ?></td> <td class="valor negrito">R$ <?php echo number_format($this->lancamentos['valor'],2,',','.'); ?></td> <td align="center"> <?php if($this->lancamentos['status'] == 'ABERTO'): ?> <a href="<?php echo $this->url(array( 'action' => 'excluir-movimentacoes', 'id' => $this->lancamentos['id'],'rota_id' => $this->lancamentos['rota_id'])); ?>" class="link_remove"></a> <?php endif;?> </td> <td align="center"> <a style="text-decoration: none;" href="#" class="glyphicon-reg glyphicon-reg-picture" onclick="window.open('<?php echo $this->linkDocumentacao($this->lancamentos['anexo'], 'diario-rota', 'download-anexo'); ?>' );" title="Visualizar <?php echo $this->lancamentos['anexo'] ?>"></a> </td> </tr> </tbody> <tfoot> <tr> <td class="negrito">Total:</td> <td></td> <td></td> <td></td> <td class="valor negrito">R$ <?php echo number_format(($valor), 2, ',', '.'); ?></td> </tr> </tfoot> </table> <?php endif; ?> <?php if($this->lancamentos['tipo_diario'] == 3): ?> <table> <thead> <tr class="top_list"> <th>Data</th> <th>Cidade</th> <th>Uf</th> <th>Restaurante</th> <th>Refeição</th> <th>Valor Refeição</th> <th>Remover</th> <th>Anexo</th> </tr> </thead> <tbody> <?php $valor = 0; $refeicao = null; ?> <?php $valor += $this->lancamentos['valor']; ?> <?php switch($this->lancamentos['refeicao']): case '1': $refeicao = 'Café'; break; case '2': $refeicao = 'Almoço'; break; case '3': $refeicao = 'Jantar'; break; endswitch; ?> <tr> <td><?php echo $this->dateFormat($this->lancamentos['data']); ?></td> <td><?php echo $this->lancamentos['cidade']; ?></td> <td><?php echo $this->lancamentos['uf']; ?></td> <td><?php echo $this->lancamentos['nome_restaurante']; ?></td> <td><?php echo $refeicao; ?></td> <td class="valor negrito">R$ <?php echo number_format($this->lancamentos['valor'],2,',','.'); ?></td> <td align="center"> <?php if($this->lancamentos['status'] == 'ABERTO'): ?> <a href="<?php echo $this->url(array( 'action' => 'excluir-movimentacoes', 'id' => $this->lancamentos['id'],'rota_id' => $this->lancamentos['rota_id'])); ?>" class="link_remove"></a> <?php endif;?> </td> <td align="center"> <a style="text-decoration: none;" href="#" class="glyphicon-reg glyphicon-reg-picture" onclick="window.open('<?php echo $this->linkDocumentacao($this->lancamentos['anexo'], 'diario-rota', 'download-anexo'); ?>' );" title="Visualizar <?php echo $this->lancamentos['anexo'] ?>"></a> </td> </tr> </tbody> <tfoot> <tr> <td class="negrito">Total:</td> <td></td> <td></td> <td></td> <td class="valor negrito">R$ <?php echo number_format(($valor), 2, ',', '.'); ?></td> </tr> </tfoot> </table> <?php endif; ?> <?php if($this->lancamentos['tipo_diario'] == 4): ?> <table> <thead> <tr class="top_list"> <th>Data</th> <th>Corretor</th> <th>Cidade</th> <th>Uf</th> <th>Resumo da Visita</th> <th>Remover</th> <th>Anexo</th> </tr> </thead> <tbody> <tr> <?php $model = new Model_Corretor(); $corretor = $model->exibir($this->lancamentos['corretor_id']); ?> <td><?php echo $this->dateFormat($this->lancamentos['data']); ?></td> <td><?php echo $corretor->nome; ?></td> <td><?php echo $this->lancamentos['cidade']; ?></td> <td><?php echo $this->lancamentos['uf']; ?></td> <td><?php echo $this->lancamentos['resumo_visita']; ?></td> <td align="center"> <?php if($this->lancamentos['status'] == 'ABERTO'): ?> <a href="<?php echo $this->url(array( 'action' => 'excluir-movimentacoes', 'id' => $this->lancamentos['id'],'rota_id' => $this->lancamentos['rota_id'])); ?>" class="link_remove"></a> <?php endif;?> </td> <td align="center"> <a style="text-decoration: none;" href="#" class="glyphicon-reg glyphicon-reg-picture" onclick="window.open('<?php echo $this->linkDocumentacao($this->lancamentos['anexo'], 'diario-rota', 'download-anexo'); ?>' );" title="Visualizar <?php echo $this->lancamentos['anexo'] ?>"></a> </td> </tr> </tbody> <tfoot> <tr> <td class="negrito">Total:</td> <td></td> <td></td> <td></td> <td></td> </tr> </tfoot> </table> <?php endif; ?> <?php if($this->lancamentos['tipo_diario'] == 5): ?> <table> <thead> <tr class="top_list"> <th>Data</th> <th>Cidade</th> <th>Uf</th> <th>Valor</th> <th>Motivo do gasto</th> <th>Remover</th> <th>Anexo</th> </tr> </thead> <tbody> <?php $valor = 0; ?> <?php $valor += $this->lancamentos['valor']; ?> <tr> <td><?php echo $this->dateFormat($this->lancamentos['data']); ?></td> <td><?php echo $this->lancamentos['cidade']; ?></td> <td><?php echo $this->lancamentos['uf']; ?></td> <td class="valor negrito">R$ <?php echo number_format($this->lancamentos['valor'],2,',','.'); ?></td> <td><?php echo $this->lancamentos['motivo_gasto']; ?></td> <td align="center"> <?php if($this->lancamentos['status'] == 'ABERTO'): ?> <a href="<?php echo $this->url(array( 'action' => 'excluir-movimentacoes', 'id' => $this->lancamentos['id'],'rota_id' => $this->lancamentos['rota_id'])); ?>" class="link_remove"></a> <?php endif;?> </td> <td align="center"> <a style="text-decoration: none;" href="#" class="glyphicon-reg glyphicon-reg-picture" onclick="window.open('<?php echo $this->linkDocumentacao($this->lancamentos['anexo'], 'diario-rota', 'download-anexo'); ?>' );" title="Visualizar <?php echo $this->lancamentos['anexo'] ?>"></a> </td> </tr> </tbody> <tfoot> <tr> <td class="negrito">Total:</td> <td></td> <td></td> <td class="valor negrito">R$ <?php echo number_format(($valor), 2, ',', '.'); ?></td> <td></td> </tr> </tfoot> </table> <?php endif; ?> <button id="btn_back" class="bt_back" onclick="window.close()" type="button" name="btn_back">Voltar</button>
💾 保存文件
← 返回文件管理器