D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
crsys_ant
/
adm
/
app
/
gre
/
Views
/
Moeda
/
Filename :
VieListarMoeda.php
back
Copy
<?php if (!defined('URL')) { header("Location: /"); exit(); } //var_dump($this->Dados['botao']); ?> <div class="content"> <div class="list-group-item"> <div class="d-flex align-items-center justify-content-between"> <div class="mr-auto p-2"> <h2 class="display-4 titulo">Listar Moedas</h2> </div> <?php if ($this->Dados['botao']['cad_moeda']) { ?> <a href="<?php echo URLADM . 'moeda-cadastrar/cad-moeda'; ?>"> <div class="p-2"> <button class="btn btn-outline-success btn-sm"> Cadastrar </button> </div> </a> <?php } ?> </div> <?php if (empty($this->Dados['listMoeda'])) { ?> <div class='alert alert-success alert-dismissible fade show' role='alert'> Nenhum Moeda encontrada! <button type='button' class='btn-close' data-bs-dismiss='alert' aria-label='Close'> </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" style="width: calc(100% - 400px) !important; margin-left: 30px !important;" > <thead class="text-center"> <tr> <th class="d-none d-lg-table-cell">ID</th> <th>Data</th> <th>Dolar</th> <th class="d-none d-lg-table-cell">Euro</th> <th>Situação</th> <th width="300px" class="text-center">Ações</th> </tr> </thead> <tbody> <?php $qnt_linhas_exe = 1; foreach ($this->Dados['listMoeda'] as $moeda) { extract($moeda); ?> <tr> <th class="d-none d-lg-table-cell text-center"><?php echo $id; ?></th> <td class="text-center"><?php echo $data; ?></td> <td class="text-center"><?php echo 'R$ '.$dolar; ?></td> <td class="d-none d-lg-table-cell text-center"><?php echo 'R$ '.$euro; ?></td> <td class="text-center"> <span class="badge bg-<?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_moeda']) { echo "<a href='" . URLADM . "moeda-ver/ver-moeda/$id' class='btn btn-outline-primary btn-sm'>Visualizar</a> "; } if ($this->Dados['botao']['edit_moeda']) { echo "<a href='" . URLADM . "moeda-editar/edit-moeda/$id' class='btn btn-outline-warning btn-sm'>Editar</a> "; } if ($this->Dados['botao']['apagar_moeda']) { echo "<a href='#' class='btn btn-outline-danger btn-sm' onclick='confirmarExclusao(\"" . URLADM . "moeda-apagar/apagar-moeda/$id\", \"$data\")'>Apagar</a>"; } ?> </span> <div class="dropdown d-block d-md-none"> <button class="btn btn-primary dropdown-toggle btn-sm" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false"> Ações </button> <div class="dropdown-menu dropdown-menu-left" aria-labelledby="dropdownMenuLink"> <?php if ($this->Dados['botao']['vis_moeda']) { echo "<a class='dropdown-item' href='" . URLADM . "moeda-ver/ver-moeda/$id'>Visualizar</a>"; } if ($this->Dados['botao']['edit_moeda']) { echo "<a class='dropdown-item' href='" . URLADM . "moeda-editar/edit-moeda/$id'>Editar</a>"; } if ($this->Dados['botao']['apagar_moeda']) { echo "<a href='#' style='text-decoration: none !important;' class='dropdown-item' onclick='confirmarExclusao(\"" . URLADM . "moeda-apagar/apagar-moeda/$id\", \"$data\")'>Apagar</a>"; } ?> </div> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div>