EVOLUTION-NINJA
Edit File: po_receipt_preview.php
<?php //include("menu.php"); error_reporting(E_ALL); ?> <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/avinash.min.css" > <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/skin-blue.min.css" > <link rel='shortcut icon' type='image/x-icon' href="<?php echo base_url(); ?>assets/images/samll-big.png"/> <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" ><a href="<?php echo base_url('reports/po_receipt');?>" 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="content-wrapper" id="print_report"> <section class="content"> <div class="print" style="width:100%;"> <h2 style="text-align:center;margin-bottom:0px !important;"><b><span>Deco-Textil</span></b></h2> <p style="text-align:center;margin-bottom:0px !important;">"SWAN HOUSE" NO.40,4th Cross,Residency Road,</p> <p style="text-align:center;margin-bottom:0px !important;">Bangalore - 560025.</p> <h3 style="text-align:center;margin-top:0px !important;"><u>PO YARN - RAW RECEIPT</u></h3> <table class="" align="center" style="width:100%;"> <tbody> <tr> <td width="90%;"> </td> <td> From Date: <?php echo date('d-m-Y',strtotime($from_d)); ?> </td> </tr> <tr> <td colspan="" style="padding-top:15px;"> </td> <td> To Date: <?php echo date('d-m-Y',strtotime($to_d)); ?> </td> </td> </tr> <tr> <td colspan="2" style="padding-top:15px;"> </td> </tr> <tr> <td colspan="2" style="padding-top:15px;tex"> </td> </tr> </tbody> </table> <table align="center" style="width:100%;border-spacing:0px !important;margin-top:20px;" border="1"> <thead> <tr > <th style="text-align:center;">Sl.No.</th> <th style="text-align:center;">PO#</th> <th style="text-align:center;">Vendor Name</th> <th style="text-align:center;">Product Name </th> <th style="width: 10%;">Rec Net Wt</td> <th style="text-align:center;">Lot#</th> <th style="text-align:center;">Bale#</th> <th style="text-align:center;">invoice#</th> <th style="text-align:center;">Rec Date</th> <th style="text-align:center;">Location</th> <th style="text-align:center;">StatusPO#</th> </tr> </thead> <tbody> <?php $i=1;?> <?php if(isset($res)) { foreach($res as $fetch_data) {?> <tr style="height:30px;"> <td><?php echo $i; ?></td> <td><?php echo $fetch_data->po_no; ?></td> <td><?php echo $fetch_data->vendor_name; ?></td> <td><?php echo $fetch_data->product_name; ?></td> <td><?php echo $fetch_data->net_weight; ?></td> <td><?php echo $fetch_data->lot; ?></td> <td><?php echo $fetch_data->bale; ?></td> <td><?php echo $fetch_data->invoice; ?></td> <td><?php echo $fetch_data->rec_date; ?></td> <td><?php echo $fetch_data->consumed_at; ?></td> <td><?php echo $fetch_data->quantity_approval; ?></td> </tr> <?php $i++;} } ?> <tr> <td colspan="17"><b>Total Net Weight : </b> <?php echo number_format((float)$res_net->net_weight, 2, '.', ''); ?> </td> </tr> </tbody> </table> <table class="" style="width:100%;"> <tbody> <tr> <td style="padding-top:15px;"> Received By(signature of the Recipient with seal) : <span style="border-bottom:1px dotted #000;"><?php echo $approved_by; ?></span> </td> </tr> </tbody> </table> </div> </section> </div> </div> </div> <script> $(document).ready(function(){ $("#booking_print").click(function(){ var divToPrint=document.getElementById("print_report"); newWin= window.open(""); newWin.document.write(divToPrint.outerHTML); newWin.print(); newWin.close(); }); }); </script> <!--<script> var divContents = $(".print").html(); newWin= window.open(""); newWin.document.write(divContents); newWin.print(); newWin.close(); </script>--> <style> .content-wrapper{ overflow:auto !important; } </style>