EVOLUTION-NINJA
Edit File: yarn_twist_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('stock_history_details/yarn_stock_details');?>" 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:900px;"> <h2 style="text-align:center;padding-left:299px;margin-bottom:0px !important;"><b><span>Deco-Textil</span></b><span style="padding-left:170px;font-size:14px !important;">Ph: +91(80)41888298</span></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>GOODS RECEIVED NOTE</u></h3> <table class="" align="center" style="width:900px;"> <tbody> <tr> <td width="700px;"> Unit / Branch /Department : <span style="border-bottom:1px dotted #000;"><?php echo $prpose_details->department; ?> </span> </td> <td> </td> </tr> <tr> <td></td> <td> Date: <span style="border-bottom:1px dotted #000;"><?php echo date("d-m-Y"); ?></span> </td> </tr> <tr> <td colspan="2" style="padding-top:15px;"> Received the following goods from M/s : <span style="border-bottom:1px dotted #000;"><?php echo $prpose_details->vendor_name; ?></span> </td> </tr> <tr> <td colspan="2" style="padding-top:15px;"> PO No. : <span style="border-bottom:1px dotted #000;"><?php echo $prpose_details->po_no; ?></span> </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;">Purpose</th> <!-- <th style="text-align:center;">Width</th>--> <th style="text-align:center;">Yarn Details</th> <th style="text-align:center;">Yarn Denier</th> <th style="text-align:center;">Yarn Specification</th> <?php if($prpose_details->product_type != 'Yarn - Raw'){?> <th style="text-align:center;">Shade</th> <?php } ?> <th style="text-align:center;">Lot</th> <th style="text-align:center;">Bale</th> <th style="text-align:center;">Issue Gross Weight</th> <th style="text-align:center;">Issue Net Weight</th> <th style="text-align:center;">Location</th> <th style="text-align:center;">Received By</th> </tr> </thead> <tbody> <?php $i=1;?> <?php if(isset($details)) { ?> <tr style="height:30px;"> <td><?php echo $i; ?></td> <td><?php echo $details->purpose; ?></td> <td style="text-transform: uppercase !important;"><?php echo $details->yarnname; ?></td> <td><?php echo $details->yarndenier; ?></td> <td><?php echo $details->yarnspecification; ?></td> <?php if($prpose_details->product_type != 'Yarn - Raw'){?> <td><?php echo $details->shades; ?></td> <?php } ?> <td><?php echo $details->lot; ?></td> <td><?php echo $details->bale; ?></td> <td><?php echo $details->issue_gross_weight; ?></td> <td><?php echo $details->issue_net_weight; ?></td> <td><?php echo $details->consumed_at; ?></td> <td><?php echo $details->rec_by; ?></td> </tr> <?php $i++; } ?> </tbody> </table> <table class="" align="center" style="width:900px;"> <tbody> <tr> <td width="700px;" 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>