����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 3.137.159.3 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/muebles/pos11/core/app/view/ |
Upload File : |
<?php // $symbol = ConfigurationData::getByPreffix("currency")->val; $iva_name = ConfigurationData::getByPreffix("imp-name")->val; $iva_val = ConfigurationData::getByPreffix("imp-val")->val; ?> <section class="content"> <div class="row"> <div class="col-md-12"> <h1>Apartado</h1> <p><b>Buscar producto por nombre o por codigo:</b></p> <form id="searchp"> <div class="row"> <div class="col-md-6"> <input type="hidden" name="view" value="newapart"> <input type="text" id="product_code" name="product" class="form-control"> </div> <div class="col-md-3"> <button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-search"></i> Buscar</button> </div> </div> </form> <div id="show_search_results"></div> <script> //jQuery.noConflict(); $(document).ready(function(){ $("#searchp").on("submit",function(e){ e.preventDefault(); $.get("./?action=searchproduct3",$("#searchp").serialize(),function(data){ $("#show_search_results").html(data); }); $("#product_code").val(""); }); }); </script> <?php if(isset($_SESSION["errors"])):?> <h2>Errores</h2> <p></p> <table class="table table-bordered table-hover"> <tr class="danger"> <th>Codigo</th> <th>Producto</th> <th>Mensaje</th> </tr> <?php foreach ($_SESSION["errors"] as $error): $product = ProductData::getById($error["product_id"]); ?> <tr class="danger"> <td><?php echo $product->id; ?></td> <td><?php echo $product->name; ?></td> <td><b><?php echo $error["message"]; ?></b></td> </tr> <?php endforeach; ?> </table> <?php unset($_SESSION["errors"]); endif; ?> <!--- Carrito de compras :) --> <?php if(isset($_SESSION["cotization"])): $total = 0; ?> <h2>Lista de venta</h2> <div class="box box-primary"> <table class="table table-bordered table-hover"> <thead> <th style="width:30px;">Codigo</th> <th style="width:30px;">Cantidad</th> <th style="width:30px;">Unidad</th> <th>Producto</th> <th style="width:30px;">Precio Unitario</th> <th style="width:30px;">Precio Total</th> <th ></th> </thead> <?php foreach($_SESSION["cotization"] as $p): $product = ProductData::getById($p["product_id"]); ?> <tr > <td><?php echo $product->id; ?></td> <td ><?php echo $p["q"]; ?></td> <td><?php echo $product->unit; ?></td> <td><?php echo $product->name; ?></td> <td><b>$ <?php echo number_format($product->price_out,2,".",","); ?></b></td> <td><b>$ <?php $pt = $product->price_out*$p["q"]; $total +=$pt; echo number_format($pt,2,".",","); ?></b></td> <td style="width:30px;"><a href="index.php?view=clearcart&product_id=<?php echo $product->id; ?>" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> Cancelar</a></td> </tr> <?php endforeach; ?> </table> </div> <form method="post" class="form-horizontal" id="processsell" action="index.php?action=saveapart"> <h2>Resumen</h2> <input type="hidden" name="total" value="<?php echo $total; ?>" class="form-control" placeholder="Total"> <div class="clearfix"></div> <br> <div class="row"> <div class="col-md-6 col-md-offset-6"> <div class="box box-primary"> <table class="table table-bordered"> <tr> <td><p>Subtotal</p></td> <td><p><b>$ <?php echo number_format($total*(1 - ($iva_val/100) ),2,'.',','); ?></b></p></td> </tr> <tr> <td><p><?php echo $iva_name." (".$iva_val."%) ";?></p></td> <td><p><b>$ <?php echo number_format($total*($iva_val/100),2,'.',','); ?></b></p></td> </tr> <tr> <td><p>Total</p></td> <td><p><b>$ <?php echo number_format($total,2,'.',','); ?></b></p></td> </tr> </table> </div> <div class="form-group"> <div class="col-lg-offset-2 col-lg-10"> <div class="checkbox"> <label> <input name="is_oficial" type="hidden" value="1"> </label> </div> </div> </div> <div class="form-group"> <div class="col-lg-offset-2 col-lg-10"> <div class="checkbox"> <label> <a href="index.php?view=clearcart" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> Cancelar</a> <button class="btn btn-success"><i class="glyphicon glyphicon-send"></i> Guardar Apartado</button> </label> </div> </div> </div> </form> </div> </div> <?php endif; ?> </div> </section>