EVOLUTION-NINJA
Edit File: planned_article_details_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> <?php if($indent_p == 'indent_preview') { ?> <span class="close-right" ><a href="<?php echo base_url(); ?>planning/planned_article_details?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> <?php } else if($indent_p == 'today_preview') { ?> <span class="close-right" ><a href="<?php echo base_url(); ?>planning/planned_article_details?prop_id=2" 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> <?php } else if($indent_p == 'monthly_preview') { ?> <span class="close-right" ><a href="<?php echo base_url(); ?>planning/planned_article_details?prop_id=3" 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> <?php } else if($indent_p == 'year_preview') { ?> <span class="close-right" ><a href="<?php echo base_url(); ?>planning/planned_article_details?prop_id=4" 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> <?php } ?> </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>Planning Article Details</u></h3> <table style="width:100%;border-spacing:0;"> <tr> <td colspan="20"></td> <td colspan="2" style="text-align:right;">Ph: +91(80)41888298 </td> </tr> </table> <table style="width:100%;border-spacing:0 !important;margin-top: 1%;" cellpadding="5px"> <tr> <td colspan="2" style="padding-top:15px;tex"> <table border="1" style="width:100%;border-spacing:0 !important;"> <tr> <th style="text-align:center;">Article </th> <th style="text-align:center;">Loom Width </th> <th style="text-align:center;"> Reed </th> <th style="text-align:center;">Warp Total Ends </th> <th style="text-align:center;"> Warp Yarn </th> <th style="text-align:center;">Warp Denier </th> <th style="text-align:center;"> Warp Specification </th> <th style="text-align:center;">Weft Yarn</th> <th style="text-align:center;">Weft Denier </th> <th style="text-align:center;">Weft Specification</th> <th style="text-align:center;">Weft Picks</th> </tr> <?php foreach($res as $result) { ?> <tr style="height:30px;"> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->articleNo; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->loomWidth; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->reed; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->warpTotalEnds; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->Warp_Quality; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->Warp_Denier; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->Warp_Specification; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->Weft_Quality; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->Weft_Denier; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->Weft_Specification; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->weftPicks; ?></td> </tr> <?php } ?> </table> </td> </tr> </tbody> </table> <table class="" align="center" 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> <!--<tr> <td colspan="2" style="padding-top:15px;"> Entered into Stock Register by........................................................................................................................................................................... </td> </tr> <tr> <td colspan="2" style="padding-top:15px;"> Stock Reg Folio No............................................................................................................................................................................................. </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>