D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
rosario
/
adm
/
app
/
gre
/
Views
/
Cotacao
/
Filename :
VieCtPedidoSimularVerProd.php
back
Copy
<?php if (!defined('URL')) { header("Location: /"); exit(); } //var_dump($this->Dados['listPedidoSimular']); ?> <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 Simulados</h2> </div> <div class="p-2"> <span class="d-none d-md-block"> <?php if (!empty($this->Dados['listPedidoSimular'])) { if ($this->Dados['botao']['vol_pedido']) { // con-ct-pedido-simular-ver/listar/?marca_id=389&cotacao_id=90&sugestao_id=56234 echo "<a href='" . URLADM . "con-ct-pedido-simular-ver/listar/?opcao=V&marca_id={$this->Dados['listPedidoSimular'][0]['marca_id']}&cotacao_id={$this->Dados['listPedidoSimular'][0]['cotacao_id']}&sugestao_id={$this->Dados['listPedidoSimular'][0]['sugestao_id']}' class='btn btn-outline-primary btn-sm'>Voltar</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']['list_pedido']) { echo "<a class='dropdown-item' href='" . URLADM . "con-ct-pedido/listar'>Listar</a>"; } if ($this->Dados['botao']['cad_pedido']) { echo "<a class='dropdown-item' href='" . URLADM . "con-ct-pedido-cadastrar/listar'>Cadastrar</a>"; } ?> </div> </div> </div> </div> <?php if (isset($_SESSION['msg'])) { echo $_SESSION['msg']; unset($_SESSION['msg']); } ?> <?php if (isset($this->Dados['listPedidoSimular'])) { if (empty($this->Dados['listPedidoSimular'])) { ?> <div class="form-row"> <div class="alert alert-danger" role="alert"> Nenhum Pedido encontrado nessa seleção ! <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> </div> <?php } } ?> <hr> <label><?php echo 'Fornecedor: <b>'.$this->Dados['listPedidoSimular'][0]['forn_id'].' - '.$this->Dados['listPedidoSimular'][0]['forn_nome'].'</b>'?></label><br> <label><?php echo 'Marca: <b>'.$this->Dados['listPedidoSimular'][0]['marca_nome']. '</b> - O.L.?: <b>'. $this->Dados['listPedidoSimular'][0]['oli'] .'</b>'?></label><br> <label><?php echo 'Cotação: <b>'.$this->Dados['listPedidoSimular'][0]['cotacao_id'].'</b>'.' Sugestão: <b>'.$this->Dados['listPedidoSimular'][0]['sugestao_id'].'</b>'?></label> <font size="2"> <table id="example-crm" class="datatable-idoso-gre stripe " cellspacing="0" width="100%"> <thead> <tr> <th class="d-none d-sm-table-cell">Cod Interno</th> <th class="d-none d-sm-table-cell">Produto</th> <th class="d-none d-sm-table-cell">Curva</th> <th class="d-none d-sm-table-cell">Qtde</th> <th class="d-none d-sm-table-cell">Preço Desejado</th> <th class="d-none d-sm-table-cell">Menor Preço</th> <th class="d-none d-sm-table-cell">Margem Desejada</th> <th class="d-none d-sm-table-cell">Margem Menor</th> <th class="d-none d-sm-table-cell">Dife Margem</th> <th class="text-center">Mensagem</th> </tr> </thead> <tbody> <?php if (!empty($this->Dados['listPedidoSimular'])) { foreach ($this->Dados['listPedidoSimular'] as $pedido) { extract($pedido); ?> <tr> <td><?php echo $prod_cod; ?></td> <td><?php echo $prod_nome; ?></td> <td><?php echo $curva; ?></td> <td><?php echo $qtde; ?></td> <td><?php echo $preco_desejado; ?></td> <td><?php echo $menor_preco; ?></td> <td><?php echo $margem_desejada.'%'; ?></td> <?php if($dife_desejado < 0) { ?> <td><font color="red"><b><?php echo $margem_menor_preco.'%' ?></b></font></td> <?php }else{ ?> <td><?php echo $margem_menor_preco.'%' ?></td> <?php } ?> <?php if($dife_desejado < 0) { ?> <td><font color="red"><b><?php echo $margem_desejada - $margem_menor_preco.'%' ?></b></font></td> <?php }else{ ?> <td><?php echo ''?></td> <?php } if($curva == 'D' or $curva == 'E' ) { $dife_desejado; if( $dife_desejado < 0 and $ol == 'S') { echo "<td><font color='red'><b>EXCLUIDO</font></b></td>"; }else{ echo "<td></td>"; } } ?> <td class="text-center"> <span class="d-none d-md-block"> </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($curva == 'D' or $curva == 'E') { echo "EXCLUIDO DO PEDIDO"; } ?> <?php if($ol <> ' ') { if ($this->Dados['botao']['vis_pedido']) { echo "<a class='dropdown-item' href='" . URLADM . "con-ct-pedido-simular-ver-prod/listar/?marca_id=$marca_id&forn_id=$forn_id&cotacao_id=$cotacao_id&sugestao_id=$sugestao_id'>Ver Produtos</a>"; } } ?> </div> </div> </td> </tr> <?php } } ?> </tbody> </table> </font> </div> </div> </div> </div> <div class="modal fade" id="visuPedido" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Detalhes do Produto</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <span id="visul_Pedido"></span> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Fechar</button> </div> </div> </div> </div>