D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso
/
adm
/
app
/
gre
/
Views
/
Acomodacao_Contratada
/
Filename :
verAcomodacaoContratada.php
back
Copy
<?php if (!defined('URL')) { header("Location: /"); exit(); } //var_dump($this->Dados['botao']); ?> <div class="content p-1"> <div class="list-group-item"> <div class="d-flex"> <div class="mr-auto p-2"> <h2 class="display-4 titulo">Histórico de Acomodações Contratadas</h2> </div> <?php if ($this->Dados['botao']['cad_acomo_contr']) { ?> <a href="<?php echo URLADM . 'cadastrar-acomodacao-contratada/cad-acomo-contr/?id= '.$this->Dados['dadosAcomoContr'][0]['gre_residente_id']. '&idf= '.$this->Dados['dadosAcomoContr'][0]['gre_filial_id']; ?>"> <div class="p-2"> <button class="btn btn-outline-success btn-sm"> Cadastrar Nova </button> </div> </a> <?php } ?> <?php if ($this->Dados['botao']['list_acomo_contr']) { ?> <a href="<?php echo URLADM . 'acomodacao-contratada/listar'?>"> <div class="p-2"> <button class="btn btn-outline-info btn-sm"> Voltar </button> </div> </a> <?php } ?> </div> <?php if (empty($this->Dados['dadosAcomoContr'][0])) { ?> <div class="alert alert-danger" role="alert"> Nenhum Acomodação encontrada! <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <?php } if (isset($_SESSION['msg'])) { echo $_SESSION['msg']; unset($_SESSION['msg']); } ?> <div class="table-responsive"> <table class="table table-striped table-hover table-bordered"> <thead> <tr> <th>Data Inclusão</th> <th>Ala</th> <th class="d-none d-sm-table-cell">Acomodação</th> <th class="d-none d-sm-table-cell">Preço</th> <th class="d-none d-lg-table-cell">Situação</th> </tr> </thead> <tbody> <?php foreach ($this->Dados['dadosAcomoContr'] as $acomoContr) { extract($acomoContr); // var_dump($acomoContr); ?> <tr> <th><?php echo date('d/m/Y H:i', strtotime($created)); ?></th> <td> <?php echo $alas_nome; ?> </td> <td> <?php echo $tipoacomo_nome.' / '.$acomo_nome; ?> </td> <td> <?php echo number_format($preco_acomodacao,2,',','.'); ?> </td> <td class="d-none d-lg-table-cell"> <span class="badge badge-<?php echo $cor_cr; ?>"><?php echo $nome_sit; ?></span> </td> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div>