EVOLUTION-NINJA
Edit File: planned_Shade_details_page.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(); ?>exported_fabric/fabric_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(); ?>exported_fabric/fabric_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(); ?>exported_fabric/fabric_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(); ?>exported_fabric/fabric_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 Shade 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;">Type(Warp/Weft) </th> <th style="text-align:center;">OSL # </th> <th style="text-align:center;"> Article No. </th> <th style="text-align:center;">SSL Shade </th> <th style="text-align:center;"> Warp/Weft Quality </th> <th style="text-align:center;">Warp/Weft Spec </th> <th style="text-align:center;"> Warp/Weft Denier </th> <th style="text-align:center;">Warp/Weft Color</th> <th style="text-align:center;"> Warp/Weft Code </th> <th style="text-align:center;">Warp/Weft Wt </th> <th style="text-align:center;">Dyeing Date</th> <th style="text-align:center;"> weavingDate </th> </tr> <?php foreach($result as $result) { ?> <tr style="height:30px;"> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->type; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->oslNo; ?></td> <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->shadeName; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->Quality; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->Specification; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->Denier; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->Color; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->Code; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $result->Dyed_Wt; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo date("d-m-Y", strtotime($result->dyeingDate)); ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo date("d-m-Y", strtotime($result->weavingDate)); ?></td> </tr> <?php } ?> <?php foreach($qua_result as $res) { ?> <tr > <tr> <?php } ?> </table> </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;">Quality </th> <th style="text-align:center;">Specification</th> <th style="text-align:center;">Denier</th> <th style="text-align:center;">Total Wt </th> </tr> </thead> <tbody> <?php foreach($qua_result as $res) { ?> <tr > <td style="text-align:center;"><?php echo $res->Quality; ?></td> <td style="text-align:center;"><?php echo $res->Specification; ?></td> <td style="text-align:center;"><?php echo $res->Denier; ?></td> <td style="text-align:center;"><?php echo number_format((float)$res->Dyed_Wt, 4, '.', ''); ?></td> </tr> <?php } ?> </tbody> </table> <table align="center" style="width:100%;border-spacing:0px !important;margin-top:20px;" border="1"> <thead> <tr> <th style="text-align:center;">Warp/Weft </th> <th style="text-align:center;"> Warp/Weft Quality </th> <th style="text-align:center;">Warp/Weft Spec </th> <th style="text-align:center;"> Warp/Weft Denier </th> <th style="text-align:center;"> Warp/Weft Color </th> <th style="text-align:center;">Warp/Weft Code</th> <th style="text-align:center;">Total Wt</th> </tr> </thead> <tbody> <?php foreach($qua_total as $res) { ?> <tr > <td style="text-align:center;"><?php echo $res->type; ?></td> <td style="text-align:center;"><?php echo $res->Quality; ?></td> <td style="text-align:center;"><?php echo $res->Specification; ?></td> <td style="text-align:center;"><?php echo $res->Denier; ?></td> <td style="text-align:center;"><?php echo $res->Color; ?></td> <td style="text-align:center;"><?php echo $res->Code; ?></td> <td style="text-align:center;"><?php echo number_format((float)$res->Dyed_Wt, 4, '.', ''); ?></td> </tr> <?php } ?> </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>