D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso
/
adm
/
app
/
cpgre
/
Views
/
Intercorrencia
/
Filename :
listarIntercorJs.php
back
Copy
<?php if (!defined('URL')) { header("Location: /"); exit(); } //var_dump($this->Dados['listIntercor'] ); ?> <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['listIntercor'] 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 $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_intercor']) { if($adms_sit_id == 1) { echo "<a href='" . URLADM . "cadastrar-intercorrencia/cad-intercor/?id=$id' class='btn btn-outline-success btn-sm'>Cadastrar</a>"; } } if ($this->Dados['botao']['lis_intercor']) { echo "<a href='" . URLADM . "listar-intercorrencia/listar/?id=$id' class='btn btn-outline-info btn-sm'>Listar</a> "; } if ($this->Dados['botao']['imp_intercor']) { echo "<a target='_blank' href='" . URLADM . "imprime-intercorrencia/listar/?id=$id' class='btn btn-outline-primary btn-sm'>Imprimir</a> "; } ?> </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_intercor']) { echo "<button type='button' class='btn btn-outline-primary btn-sm view_data' id='".$id."'>Visualizar</button> "; } ?> </div> </div> </td> </tr> <?php } ?> </tbody> </table> <?php echo $this->Dados['paginacao']; ?> </div>