ok
Direktori : /home/u243902267/domains/holyhimalayayatra.com/public_html/admin/ |
Current File : /home/u243902267/domains/holyhimalayayatra.com/public_html/admin/invoice.php |
<?php include 'config.php'; $setting_data = $conn->query("SELECT * FROM settings"); $setting = $setting_data->fetch_assoc(); $date=date('Y-m-d H:i:s'); $id=$_GET['id']; $table=$_GET['t']; $sql=$conn->query("SELECT * FROM $table WHERE id=$id"); $table_data=$sql->fetch_assoc(); ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Invoice</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous"> <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.2/html2pdf.bundle.js"></script> <style> @media print { #print{ display: none; } @page { size: A4; margin: 30mm 15mm; } } /*===========================*/ #invoice { border: 3px solid #b9b2b2; } .border { border-color: #cce8cf !important } span, h6 { font-size: 16px !important; font-weight: 700 !important; color: #000000 !important; } p { color: #454242 !important } b { font-weight: bold; } table { font-size: 14px; } .navbar-brand .brand_name { color: #a6ce39!important; font-size: 2rem!important; } a { text-decoration: none; } th,td,tr,table { border: none; } .table td,.table th { border: 2px solid #ebdbdb; } tr { border: 2px solid #ebdbdb!important; } </style> </head> <body class="pt-5 mt-2"> <!-- 05AATFB7096B1ZB --> <div class="container " id="invoice"> <div class=""> <h3 class="text-center font-weight-bold pt-3"> <img src="<?=$setting['logo']; ?>" style="width:13%;"></h3> <table class="table"> <tr> <td><b><?=$setting['brand_name'];?></b> <p> <?=$setting['address'];?></p></td> <td><b>INVOICE NO.</b> <p><?=$table_data['id'];?></p> </td> <td><b>On Dated</b> <p><?php echo $date;?></p></td> </tr> <tr><td colspan="3" class="text-center"><h6>Customer Details</h6></td></tr> <tr> <td> <b>Name</b> <p><?=$table_data['name'];?></p> </td> <td> <b>Email</b> <p><?=$table_data['email'];?></p> </td> <td> <b>Contact</b> <p><?=$table_data['phone'];?></p> </td> </tr> </table> </div> <?php if($table=='bookings'){ ?> <table class="table"> <tr> <th>Service </th> <th>No. Of People</th> <th>No. Of Days</th> <th>Pickup Date</th> <th>Message</th> </tr> <tr> <td><?=$table_data['service'];?></td> <td><?=$table_data['no_of_people'];?></td> <td><?=$table_data['no_days'];?></td> <td><?=$table_data['pickup_date'];?></td> <td><?=$table_data['message'];?></td> </tr> </table> <?php } ?> <?php if($table=='hotel_bookings'){ ?> <table class="table"> <tr> <th>Hotel </th> <th>No. Of Adults </th> <th>No. Of Children</th> <th>Check-in Date</th> <th>Check-in Time</th> <th>Check-out Time</th> <th>Check-out Time</th> <th>Message</th> </tr> <tr> <td><?=$table_data['hotel'];?></td> <td><?=$table_data['adults'];?></td> <td><?=$table_data['child'];?></td> <td><?=$table_data['checkin_date'];?></td> <td><?=$table_data['checkin_time'];?></td> <td><?=$table_data['checkout_time'];?></td> <td><?=$table_data['checkout_time'];?></td> <td><?=$table_data['message'];?></td> </tr> </table> <?php } ?> <?php if($table=='taxi_bookings'){ ?> <table class="table"> <tr> <th>From </th> <th>To</th> <th>Pickup Date</th> <th>Pickup Time</th> </tr> <tr> <td><?=$table_data['from'];?></td> <td><?=$table_data['to'];?></td> <td><?=$table_data['pickup_date'];?></td> <td><?=$table_data['pickup_time'];?></td> </tr> </table> <?php } ?> <table class="table"> <tr> <td rowspan="3"><p>we alsodealinhotel,tour packages,camping,rafting,trekking and homestay.call <?=$setting['contact']; ?> or visit <a href="https://holyhimalayayatra.com/">www.holyhimalayayatra.com</a></p></td> </tr> <tr> <th colspan="2">Declaration:-<br> We declare that this invoice shows the actual price of the goods/service described and that all particulars are true and correct.<br> <small>Terms and conditions as per company policy.</small></th> </tr> </table> <div class="text-center"><b>This is a computer generated invoice no signature required.</b></div> </div> <center class="mb-4 mt-4"> <button onclick="window.print()" id="print" class="btn btn-info px-5">Print</button> </center> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script> </body> </html>