EVOLUTION-NINJA
Edit File: fabric_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/fabric_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 if(empty($prpose_details)){ } else { 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 $goods_id->vendor_name; ?></span> </td> </tr> <tr> <td colspan="2" style="padding-top:15px;"> PO No. : <span style="border-bottom:1px dotted #000;"><?php echo $goods_id->po_no; ?></span> </td> </tr> </tbody> </table> <table align="center" style="width:1000px;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# / DTL No.</th> <th style="text-align:center;">DTL Piece No</th> <th style="text-align:center;">Supplier Piece No</th> <th style="text-align:center;">Article(PRODUCT)</th> <th style="text-align:center;">Width</th> <th style="text-align:center;">Design</th> <th style="text-align:center;">Shade</th> <th style="text-align:center;">Received Weight</th> <th style="text-align:center;">Actual Quantity</th> <th style="text-align:center;">Rejected Mtrs</th> <th style="text-align:center;">Variance Mtrs</th> <th style="text-align:center;">Location</th> <th style="text-align:center;">Remark</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 style="text-transform: uppercase !important;"><?php echo $details->po_no; ?></td> <td style="text-transform: uppercase !important;"><?php echo $details->ssl_pc_no; ?></td> <td style="text-transform: uppercase !important;"><?php echo $details->piece_no; ?></td> <td style="text-transform: uppercase !important;"><?php echo $details->product_name; ?></td> <td style="text-transform: uppercase !important;"><?php echo $details->width; ?></td> <td style="text-transform: uppercase !important;"><?php echo $details->design; ?></td> <td style="text-transform: uppercase !important;"><?php echo $details->shades; ?></td> <td style="text-transform: uppercase !important;"><?php echo $details->rec_weight; ?></td> <td style="text-transform: uppercase !important;"><?php echo $details->balanced_mtrs; ?></td> <td style="text-transform: uppercase !important;"><?php echo $details->rejected_mtrs; ?></td> <td style="text-transform: uppercase !important;"><?php echo $details->variance_mtrs; ?></td> <td style="text-transform: uppercase !important;"><?php echo $details->consumed_at; ?></td> <td style="text-transform: uppercase !important;"><?php echo $details->remarks; ?></td> <td><?php echo $details->rec_by; ?></td> </tr> <?php $i++;} ?> </tbody> </table> <?php if(empty($inspection_qc_details)) { } else {?> <br/><br/> <b> Inspection QC Details </b> <table align="center" style="width:1000px;border-spacing:0px !important;margin-top:20px;" border="1"> <thead> <tr > <th style="text-align:center;">DEFECTS</th> <th style="text-align:center;">End Out / Floats</th> <th style="text-align:center;">Stack / Tight Ends</th> <th style="text-align:center;">Starting Mark / Color Variation</th> <th style="text-align:center;">Weft Bars</th> <th style="text-align:center;">Tight Pick</th> <th style="text-align:center;">Oil Mark / Stains</th> <th style="text-align:center;">Contamination</th> <th style="text-align:center;">Holes/Damage</th> <th style="text-align:center;">Wrinkles/Crease</th> <th style="text-align:center;">Others</th> <th style="text-align:center;" >Sub Total </th> </tr> </thead> <tbody> <tr style="height:30px;"> <td><?php echo '1'; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->end_float1; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->stack_tight1; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->starting_m1; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->weft_bars1; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->tight_pack1; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->oil_mark1; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->contamination1; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->holes1; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->wrinkles1; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->others1; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->sub_total1; ?></td> </tr> <tr style="height:30px;"> <td><?php echo '2'; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->end_float2; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->stack_tight2; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->starting_m2; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->weft_bars2; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->tight_pack2; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->oil_mark2; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->contamination2; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->holes2; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->wrinkles2; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->others2; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->sub_total2; ?></td> </tr> <tr style="height:30px;"> <td><?php echo '3'; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->end_float3; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->stack_tight3; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->starting_m3; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->weft_bars3; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->tight_pack3; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->oil_mark3; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->contamination3; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->holes3; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->wrinkles3; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->others3; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->sub_total3; ?></td> </tr> <tr style="height:30px;"> <td><?php echo '4'; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->end_float4; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->stack_tight4; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->starting_m4; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->weft_bars4; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->tight_pack4; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->oil_mark4; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->contamination4; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->holes4; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->wrinkles4; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->others4; ?></td> <td style="text-transform: uppercase !important;"><?php echo $inspection_qc_details->sub_total4; ?></td> </tr> <tr > <th colspan="12" >Total : <?php echo $inspection_qc_details->main_total; ?></th> </tr> <tr > <th colspan="12" >Points / 100 Sq. Yards : <?php echo $inspection_qc_details->points; ?></th> </tr> </tbody> </table> <?php } ?> <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> <!--<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>