D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso
/
adm
/
app
/
cpgre
/
Views
/
Inventario_Residente
/
Filename :
listarResidEstJs.php
back
Copy
<?php if (!defined('URL')) { header("Location: /"); exit(); } ?> <div class="table-responsive"> <table class="table table-striped table-hover table-bordered"> <thead> <tr> <th>ID</th> <th>Residente</th> <th class="d-none d-lg-table-cell">Situação</th> <th class="text-center">Ações</th> </tr> </thead> <tbody> <?php foreach ($this->Dados['listResidEst'] as $resid) { extract($resid); // var_dump($resid);resid.classif ?> <tr> <th><?php echo $id; ?></th> <!-- <td> <?php echo preg_replace("/(\d{3})(\d{3})(\d{3})(\d{2})/", "\$1.\$2.\$3-\$4", $resid_cpf); ?> </td> --> <td> <?php echo utf8_encode($resid_nome); ?> </td> <td class="d-none d-lg-table-cell"> <span class="badge badge-<?php echo $cor_cr; ?>"><?php echo $nome_sit; ?></span> </td> <td class="text-center"> <span class="d-none d-md-block"> <?php if ($this->Dados['botao']['cad_resid_est']) { echo "<a href='" . URLADM . "listar-estoque-residente/list-est-resid/?id=$id' class='btn btn-outline-info btn-sm'>Listar</a> "; } /* if ($this->Dados['botao']['vis_resid_lanc']) { echo "<button type='button' class='btn btn-outline-primary btn-sm view_data' id='".$id."'>Visualizar</button> "; } */ ?> </span> <div class="dropdown d-block d-md-none"> <button class="btn btn-primary dropdown-toggle btn-sm" type="button" id="acoesListar" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Ações </button> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="acoesListar"> <?php /* if ($this->Dados['botao']['vis_resid_lanc']) { echo "<a class='dropdown-item' href='" . URLADM . "ver-resid-lanc/ver-resid-lanc/$id'>Visualizar</a>"; }*/ if ($this->Dados['botao']['vis_est_resid']) { echo "<button type='button' class='btn btn-outline-primary btn-sm view_data' id='".$id."'>Visualizar</button> "; } if ($this->Dados['botao']['del_resid_lanc']) { echo "<a href='" . URLADM . "apaga-estoque-residente/apagar-est-resid/$id' class='btn btn-outline-danger btn-sm' data-confirm='Tem certeza de que deseja excluir o item selecionado?'>Apagar</a> "; } ?> </div> </div> </td> </tr> <?php } ?> </tbody> </table> <?php echo $this->Dados['paginacao']; ?> </div>