EVOLUTION-NINJA
Edit File: transaction_order_confirmation_preview.php
<!DOCTYPE HTML> <html lang="en-Us"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title> Deco-Textil</title> <link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/css/style.min.css');?>"> <link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/css/bootstrap.min.css');?>"> <link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/css/font-awesome.min.css');?>"> <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-3.2.1.min.js');?>"></script> <script src="<?php echo base_url('assets/js/bootstrap.min.js');?>"></script> </head> <body> <button type="button" id="print_booking" style=" margin-left: 87%; margin-top: 1%; padding-top: 2px; padding-bottom: 1px; padding-left: 15px; padding-right: 15px; background: rgb(72,91,127); color: white; font-size: 22px;">Print</button> <span class="close-right" style="float:right;margin-right: 24px;margin-top: 13px;"><a href="<?php echo base_url('marketing/transactions_order_details');?>" style="font-size: 22px;border: 1px solid;padding-bottom: 8px; margin-top: 10%; text-decoration: none; padding-top: 1px; padding-right: 12px; padding-left: 12px;background: rgb(72,91,127);color: white;margin-top:10%;text-decoration:none;">Back</a></span> <div class="mid-work"> <div id="print_report"> <h3 style="text-align:center;margin-top:1%">ORDER CONFIRMATION</h3> <div class="col-sm-6" style="padding-top: 20px;"> <p> <?php echo $address->customerName; ?><br> <?php echo $address->customerAddress; ?><br> </p> </div> <div class="col-sm-6 mid"> <img src="<?php echo base_url('assets/images/1.jpg');?>" class="img-responsive" style="background-color:#485B7F;float:right;width: 170px;margin-right: 12px;"> </div> <table border="1" class="table table-bordered table-striped table-hover table-condensed table-responsive" style="margin-top:10px;"> <tbody> <tr> <td> TERMS OF PAYMENT:   <?php echo $fetch_preview1->paymentTerms; ?><br> </td> <td> DESTINATION:<br> <?php echo $fetch_main2->deliveryPoint; ?> </td> <td> BUYER'S REFERENCE:<br> <?php echo $fetch_preview1->orderNo; ?> </td> <td> ORDER DATE:   <?php echo $fetch_preview1->orderDate; ?> </td> <td> ORDER NO:   <?php echo $fetch_preview1->oslNo; ?> </td> </tr> </tbody> </table> <table border="1" class="table table-bordered table-striped table-hover table-condensed table-responsive" style="margin-top:10px;"> <tbody> <tr> <th>WIDTH/SIZE</th> <th>QUALITY</th> <th>ARTICLE</th> <th>DESIGN</th> <th>DESCRIPTION</th> <th>COLOR</th> <th>SKU NO</th> <th>QUANTITY</th> <th>RATE/UNIT</th> <th>PRICE </th> </tr> <?php $totquantity=0; $totvalue=0; $un=0; foreach($fetch_preview2 as $preview){?> <tr> <td> <?php echo $preview->width; ?> </td> <td> <?php echo $preview->quality; ?> </td> <td> <?php echo $preview->articleNo; ?> </td> <td> <?php echo $preview->design; ?> </td> <td> <?php echo $preview->description; ?> </td> <td> <?php echo $preview->ourShade; ?> </td> <td> <?php echo $preview->skuNo; ?> </td> <td> <?php echo $preview->quantity." ".$preview->unit; ?> </td> <td> <?php echo $preview->unitPrice." ".$fetch_preview1->currency; ?> </td> <td> <?php echo $preview->totalValue." ".$fetch_preview1->currency; ?> </td> </tr> <?php $totquantity=$totquantity+$preview->quantity; $totvalue=$totvalue+$preview->totalValue; $un=$preview->unit; } ?> </tbody> </table border="1" > <div class="mid-1"> <div class="col-sm-6"> <p> <strong> Total Quantity : <?php echo $totquantity." ".$un; ?> </strong> </p> </div> <div class="col-sm-6"> <p style="float: right;"> <strong> TOTAL VALUE : <?php echo $totvalue." ".$fetch_preview1->currency; ?><br> </p> </div> </div> <h3>QUANTITY PLUS OR MINUS 10% ALLOWED</h3> <h3>ALL BANK CHARGES OUTSIDE INDIA ARE TO THE ACCOUNT OF BUYER</h3> <table border="1" class="table table-bordered table-striped table-hover table-condensed table-responsive" style="margin-top:10px;"> <tbody> <tr> <td> DELIVERY DATE:   <?php $newDate1 = date("d-m-Y", strtotime($fetch_preview1->deliveryDate)); echo $newDate1; ?> </td> <td> BUYER'S SIGNATURE </td> <td> SELLERS'S SIGNATURE </td> </tr> </tbody> </table> <p><b>Deco-Textil</b> "SWAN HOUSE" POST BOX 25210.,40 4TH CROSS,RESIDENCY ROAD BANGLORE-560025,INDIA <b><i> Phone:(080)41888298,Fax:(080)25598299</i></b></p> </div> </div> </body> </html> <style> .close-right { text-align:right; } </style> <script> $(document).ready(function() { $("#print_booking").click(function(){ var divToPrint=document.getElementById("print_report"); newWin= window.open(""); newWin.document.write(divToPrint.outerHTML); newWin.print(); newWin.close(); }); }); </script>