D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
rosario
/
adm
/
app
/
gre
/
Views
/
Cotacao
/
Filename :
VieCtNegociaProdutoVer.php
back
Copy
<?php // VIEW - Listar Filials if (!defined('URL')) { header("Location: /"); exit(); } //var_dump($this->Dados['listProduto']); ?> <div class="content p-1"> <div class="list-group-item"> <div class="d-flex"> <div class="mr-auto p-2"> <h2 class="display-4 titulo">Produtos a Negociar</h2> </div> <?php if ($this->Dados['botao']['vol_negocia']) { ?> <a href="<?php echo URLADM . '/con-ct-negocia/listar?opcao=V&data='. $this->Dados['listProduto'][0]['data_cotacao']; ?>"> <div class="p-2"> <button class="btn btn-outline-success btn-sm"> Voltar </button> </div> </a> <?php } ?> </div> <?php if (empty($this->Dados['listProduto'])) { ?> <div class="alert alert-danger" role="alert"> Nenhum Produto encontrado! <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <?php } if (isset($_SESSION['msg'])) { echo $_SESSION['msg']; unset($_SESSION['msg']); } ?> <font size="2"> <div class="form-row"> <label><?php echo 'Tipo de Resposta: <b>'.$this->Dados['listProduto'][0]['nome_resposta'].'</b>' ?></label> </div> <div class="form-row"> <div class="col-md"> <table id="example-crm" class="datatable-idoso-gre stripe " cellspacing="0" width="100%"> <thead> <tr> <th class="d-none d-lg-table-cell">Marca</th> <th class="d-none d-lg-table-cell">Produto</th> <th class="d-none d-lg-table-cell">Curva</th> <th class="d-none d-lg-table-cell">Qtde</th> <th class="d-none d-lg-table-cell">Menor Preço</th> <th class="d-none d-lg-table-cell">Margem Cotado</th> <th class="d-none d-lg-table-cell">Tenho Preço</th> <th class="d-none d-lg-table-cell">Margem Desejada</th> <th class="d-none d-lg-table-cell">Diferença</th> </tr> </thead> <tbody> <?php // echo '<pre>'; // var_dump($this->Dados['dadosProduto']); // echo '</pre>'; foreach ($this->Dados['listProduto'] as $filial) { extract($filial); ?> <tr> <td><?php echo $marca_nome; ?></td> <td><?php echo $prod_cod.' - '.$prod_nome; ?></td> <td align="center"><?php echo $curva; ?></td> <td align="center"><?php echo $qtde; ?></td> <td align="center"><?php echo $menor_preco; ?></td> <td align="center"><?php echo $margem_cotado.'%'; ?></td> <td align="center"><?php echo $tenho_preco; ?></td> <td align="center"><?php echo $margem_desejada.'%'; ?></td> <td align="center"><font color="blue"><b><?php echo $dife; ?></b></font></td> </tr> <?php } ?> </tbody> </table> </div> </div> </font> </div> </div>