EVOLUTION-NINJA
Edit File: nd_madeups_preview.php
<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <title>Example</title> <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> <script type="text/javascript" src="<?php echo base_url('jquery-2.2.4.min.js');?>"></script> <script src="<?php echo base_url('bootstrap.min.js');?>"></script> <div class="page-content-wrapper"> <div class="page-content"> <div class="row" style=" text-align: right;"> <button class="btn btn-success btn-lg" type="button" id="booking_print" style=" padding-top: 2px; padding-bottom: 3px; padding-left: 15px; padding-right: 15px; background: rgb(72,91,127); color: white; border: initial !important; font-size: 22px;">Print </button> <span class="close-right" id="back_button"><a href="<?php echo base_url('packing_list/madeups_list_data?prop_id=1');?>" style="font-size: 22px;border: 1px solid;padding-left: 15px;padding-right: 15px;background: rgb(72,91,127);color: white;padding-bottom: 7px;text-decoration:none;">Back</a></span> </div> <div class="negative" id="print_report"> <div class="container"> <div class="table-responsive"> <h3>NEGATIVE DECLARATION</h3> <p>We declare that the articles described below and coveredby he invoice or entry to which this declaration related are not subject to section 204, Agricultural acr of 1956, as amended (7 USC 1854 ) and the information set forth in this declaration is corect and true to the best of our information, knowledge and belief</p> <table class="table table-bordered"> <thead> <tr> <th>MARKS OR IDENTIFICATION NUMBERS</th> <th>DESCRIPTION OF ARTICLES AND QUANTITY</th> <th>COUNTRY OF ORIGIN</th> </tr> </thead> <tbody> <tr> </tr> <tr> <td><br/><br/><?php echo $fetch->invoice . '/' . '1-' . $count_package_fetch_invoice ?></td> <td><?php echo $fetch->weight_first_details; ?><br/><br/>TOTAL : <?php echo number_format((float)$package_fetch_invoice9->exp_qty, 2, '.', '') . ' ' . $fetch->units; ?></td> <td><br/><br/>INDIA</td> </tr> <tr> <td style="border-right: transparent;">PLACE: BANGALORE <br> DATE: <?php echo $fetch->invoice_date; ?></td> <td style="border-left: transparent;border-right: transparent;"></td> <td style="border-left: transparent;">For Deco-Textil <br><br><br><br> <span style="padding-top:20px;">Authorised Signatory</span></td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <style> .negative { text-align:center; } .table-bordered>thead>tr>th { text-align: center; } </style> <script> $(document).ready(function(){ $("#booking_print").click(function(){ $('#booking_print').toggle(); $('#back_button').toggle(); var divToPrint=document.getElementById("print_report"); window.print(); }); }); </script>