D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso
/
adm
/
app
/
cpgre
/
Views
/
Tabela_Preco
/
Filename :
listarPrecoJs.php
back
Copy
<?php if (!defined('URL')) { header("Location: /"); exit(); } //var_dump($this->Dados['listPreco']); ?> <div class="d-flex"> <?php if (($this->Dados['listPreco'])) { ?> <div class="p-2"> <a target="_blank" title="Imprime toda Tabela de Preços da Filial" href="<?php echo URLADM . 'imprime-preco-prod/listar/?gre_filial_id=' . $this->Dados['listPreco'][0]['gre_filial_id'] ; ?>" class="btn btn-outline-success btn-sm">Imprimir Tabela Filial</a> </a> </div> <?php } ?> </div> <font size="2"> <div class="table-responsive"> <table class="table table-striped table-hover table-bordered"> <thead> <tr> <th>Departamento</th> <th>Cod.Prod</th> <th>Produto</th> <th>Preço de Venda</th> <th>Situação</th> <th class="text-center">Ações</th> </tr> </thead> <tbody> <?php foreach ($this->Dados['listPreco'] as $preco) { extract($preco); // var_dump($preco); ?> <tr> <td><?php echo $depto_nome; ?></td> <td> <?php echo $id; ?> </td> <td><?php echo $prod_nome; ?></td> <td align="center"><?php echo 'R$ '.$preco_venda_m; ?></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_preco']) { echo "<button type='button' class='btn btn-outline-primary btn-sm view_data' id='".$id."'. '&filial_id='".$gre_filial_id."'>Visualizar</button> "; } if ($this->Dados['botao']['edit_preco']) { echo "<a href='" . URLADM . "editar-preco/edit-preco/?produto_id=$id&filial_id=$gre_filial_id' class='btn btn-outline-warning btn-sm'>Editar</a> "; } if ($this->Dados['botao']['del_preco']) { echo "<a href='" . URLADM . "apagar-preco/apagar-preco/$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_preco']) { echo "<button type='button' class='btn btn-outline-primary btn-sm view_data' id='".$id."'>Visualizar</button> "; } ?> </div> </div> </td> </tr> <?php } ?> </tbody> </table> </font> <?php echo $this->Dados['paginacao']; ?> </div>