EVOLUTION-NINJA
Edit File: issue_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> <?php if($indent_p == 'indent_preview') { ?> <span class="close-right" ><a href="<?php echo base_url(); ?>fabric/issue_fabric_grid?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(); ?>fabric/issue_fabric_grid?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(); ?>fabric/issue_fabric_grid?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(); ?>fabric/issue_fabric_grid?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;">Ph: +91(80)41888298</p> <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>DELIVERY NOTE</u></h3> <table style="width:100%;border-spacing:0;"> <tr> <td colspan="10"><b>To,</b></td> <td colspan="2" style="text-align:right;"> </td> </tr> <tr> <td colspan="20" style="padding-left:3%;"><?php if(empty($fetch_address->name)) echo $fetch->dept_name; else echo $fetch_address->name . "<br/>" .$fetch_address->address . "<br/>". $fetch_address->city . "<br/>". $fetch_address->country . "-". $fetch_address->pincode; ?></td> <!--<td colspan="10"><td colspan="10"><?php //if(empty($fetch_address->name)) echo "Deco-Textil" . "<br/>" ."NO 40 4TH CROSS RESIDENCY ROAD". "<br/>". "BANGALORE-560025" . "<br/>". "INDIA "; else echo $fetch_address->name . "<br/>" .$fetch_address->address . "<br/>". $fetch_address->city . "<br/>". $fetch_address->country . "-". $fetch_address->pincode; ?></td>--> <td colspan="2" style="text-align:right;">No. : <?php echo $fetch->work_order; ?></td> </tr> <tr> <td colspan="20"></td> <td colspan="2" style="text-align:right;">Date : <?php echo $fetch->created_at; ?></td> </td> </tr> <tr> <td colspan="10"></td> <td colspan="2" style="text-align:right;"> <?php // echo $fetch->delivery_date; ?></td> </tr> <tr> <td colspan="2" style="padding-top: 1%;"></td> <!--<td colspan="2" style="padding-top: 1%;">INDENT NO.114 DT. 23.05.17</td>--> <td colspan="8"></td> </tr> <tr> <td colspan="12"> <p style="padding-left:5%;padding-top: 1%;">Issue Fabric requirement.</p> </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;">Work Order No.. </th> <th style="text-align:center;">Date </th> <th style="text-align:center;">Type </th> <th style="text-align:center;">From Location </th> <th style="text-align:center;">Created By </th> </tr> <tr style="height:30px;"> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $fetch->work_order; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $fetch->sys_date; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $fetch->finishing_type; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $fetch->vendor_name; ?></td> <td style="text-align:center;text-transform: uppercase !important;"><?php echo $fetch->created_by; ?></td> </tr> </table> </td> </tr> </tbody> </table> <table style="width:100%;border-spacing:0 !important;margin-top: 1%;" cellpadding="5px"> <tr> <th style="text-align:left;">Remarks : <?php echo $fetch->comment; ?> </th> </tr> </table> <table align="center" style="width:100%;border-spacing:0px !important;margin-top:20px;" border="1"> <thead> <tr> <th>SL No.</th> <th>PO# / OSL No.</th> <th>SSL Piece No</th> <th>Supplier Piece No</th> <!--<th>Actual Quantity</th>--> <th>Issued Quantity</th> <th>Article(PRODUCT)</th> <th>Width</th> <th>Shade</th> <!-- //<th>Balanced Quantity</th> <th>Inspected Mtrs</th> <th>Rejected Mtrs</th>--> </tr> </thead> <tbody> <?php $i=1;?> <?php if(isset($getalldata)) { foreach($getalldata as $fetch_data) {?> <tr > <td><?php echo $i; ?></td> <td><?php echo $fetch_data->po_no; ?></td> <td><?php echo $fetch_data->ssl_pc_no; ?></td> <td><?php echo $fetch_data->piece_no; ?></td> <!--<td><?php echo $fetch_data->balanced_mtrs ; ?></td>--> <td><?php echo $fetch_data->issue_stock; ?></td> <td><?php echo $fetch_data->product_name; ?></td> <td><?php echo $fetch_data->width; ?></td> <td><?php echo $fetch_data->shades; ?></td> <!--<td><?php echo $fetch_data->bal_goods; ?></td> <td><?php echo $fetch_data->inspected_mtrs; ?></td> <td><?php echo $fetch_data->rejected_mtrs; ?></td>--> </tr> <?php $i++;} } ?> <tr> <td colspan="8" style="text-align:right;"> Total Issued Quantity : <?php echo $getalldata_stock->issue_stock; ?> </td> </tr> </tbody> </table> <table class="" align="center" style="width:100%;"> <tbody> <tr> <td style="padding-top:15px;"> Issued By (signature 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>