D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso
/
adm
/
app
/
cpgre
/
Views
/
CBO
/
Filename :
listarCboJs.php
back
Copy
<?php if (!defined('URL')) { header("Location: /"); exit(); } //echo $this->Dados['paginacao']; //var_dump($this->Dados['botao']); ?> <div class="table-responsive"> <table class="table table-striped table-hover table-bordered"> <thead> <tr> <th>ID</th> <th>Descrição</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['listCbo'] as $cbo) { extract($cbo); // var_dump($cbo);cbo.classif ?> <tr> <th><?php echo $id; ?></th> <td> <?php echo $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']['vis_cbo']) { echo "<a href='" . URLADM . "ver-cbo/ver-cbo/$id' class='btn btn-outline-primary btn-sm'>Visualizar</a> "; } */ if ($this->Dados['botao']['vis_cbo']) { echo "<button type='button' class='btn btn-outline-primary btn-sm view_data' id='".$id."'>Visualizar</button> "; } if ($this->Dados['botao']['edit_cbo']) { echo "<a href='" . URLADM . "editar-cbo/edit-cbo/$id' class='btn btn-outline-warning btn-sm'>Editar</a> "; } if ($this->Dados['botao']['del_cbo']) { echo "<a href='" . URLADM . "apagar-cbo/apagar-cbo/$id' class='btn btn-outline-danger btn-sm' data-confirm='Tem certeza de que deseja excluir o item selecionado?'>Apagar</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_cbo']) { echo "<a class='dropdown-item' href='" . URLADM . "ver-cbo/ver-cbo/$id'>Visualizar</a>"; }*/ if ($this->Dados['botao']['vis_cbo']) { echo "<button type='button' class='btn btn-outline-primary btn-sm view_data' id='".$id."'>Visualizar</button> "; } ?> </div> </div> </td> </tr> <?php } ?> </tbody> </table> </div>