D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
rosario
/
adm
/
app
/
gre
/
Views
/
Layout
/
Filename :
VieLayoutListaVariosQr.php
back
Copy
<?php if (!defined('URL')) { header("Location: /"); exit(); } //var_dump($this->Dados['listQr']); ?> <style> ul, ol, li { list-style: none; } .image { width: 24%; height: 150px; display: inline-block; margin-bottom: 10px; padding: 5px; } .image button { margin-top: 10px; margin-bottom: 5rem; } .image { max-width:3000px; max-height:250px; width: auto; height: auto; } .image:active { max-width:800px; max-height:700px; position: absolute; left: 25%; top: 10%; width: auto; height: auto; } </style> <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">Imprime Etiquetas QR</h2> </div> </div><hr> <?php if (empty($this->Dados['listQr'])) { ?> <div class="alert alert-danger" role="alert"> Nenhuma Foto encontrada para essa Filial! <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']); } ?> <form method="POST" action="" target="_blank" enctype="multipart/form-data"> <div class="form-row"> <div class="form-group col-md-5"> <label><?php echo 'Filial: <b>'. $this->Dados['listQr'][0]['filial_nome'].'</b>'?></label> </div> </div><hr> <input name="filial_id" type="hidden" value="<?php echo $this->Dados['listQr'][0]['filial_id']?>"> <div class="form-row"> <div> <input name="ImprQr" type="submit" class="btn btn-warning" value="Gerar"> </div> <div class="form-group col-md-0.5"></div> </div> <p></p> <div class="card"> <!-- Default panel contents --> <div class="card-body"> <h5 class="card-title">Itens do pedido</h5> <!-- Table --> <table class="table table-striped"> <thead> <tr> <th>#</th> <th>Secão</th> <th>Grupo</th> <th>Subgrupo</th> <th>Imagem</th> <th></th> </tr> </thead> <?php if(!empty($this->Dados['listQr'])) { $i = 0; foreach ($this->Dados['listQr'] as $layout) { extract($layout); ?> <tbody> <!-- On rows --> <tr> <td><?php echo $id ?></td> <!-- <input type="text" name="qntd[<?php echo $id; ?>]" value=""> </td> --> <td><?php echo $secao_nome; ?></td> <td><?php echo $grupo_nome; ?></td> <td><?php echo $subgrupo_nome; ?></td> <td class="image"> <?php if (!empty($imagem)) { echo "<img src='" . URLADM . "assets/imagens/layout/" . $filial_id . "/" . $imagem . "' witdh='50' height='50'>"; } else { echo "<img src='" . URLADM . "assets/imagens/layout/icone_usuario.png' witdh='50' height='50'>"; } ?> </td> <td><?php echo $imagem; ?></td> <input type="hidden" name="imagens[<?php echo $id ?>]" value="<?php echo URLADM; ?>assets/imagens/layout/<?php echo $filial_id ."/". $imagem; ?>"> <td><input type="checkbox" name="imprimir[<?php echo $id ?>]" checked></td> <!-- <td> <input name="Myarray[]" type="checkbox" checked> </td> --> </tr> </div> </div> <?php $i = $i + 1; } } ?> </tbody> </table> </form> </div> </form>