EVOLUTION-NINJA
Edit File: fabric_co.php
<div class="page-content-wrapper"> <div class="page-content"> <div class="row" style="text-align: right;"> <button class="btn btn-success btn-lg" onclick="goods_details()" type="button" id="" 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;">Submit </button> <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('packing_list/paking_list_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></div> <div style="width:800px;" id="print_report"> <div class="first_div" style="display:table;"> <div class="second_div" style="display:table-cell;width:50%;"> <div style="padding:10px;height: 140px;" class=""> <p class="co_det" style="margin:0;">1. Goods consigned from (Exporter's business name, address, country):</p> <p class="">DECO TEXTIL, 40, 4TH CROSS,<br> RESIDENCY ROAD,<br> BANGALORE - 560 025. INDIA.</p> </div> <div class="co_consigee third_div" style="padding:10px;height: 150px;"> <p style="margin:0;" class="co_det">2. Goods consigned to (Consignee's name, address, country):</p> <input type="hidden" id="refer_id" value="<?php echo $fetch->id; ?>" > <textarea class="consignee_textarea" style="width:100%;margin-top:30px;padding-left:20px;" cols="100" rows="5"><?php echo $fetch->consignee; ?></textarea> </div> <div style="padding:10px;height: 180px;"> <p style="margin:0;" class="co_det">3. Means of transport and route (as far as known):</p> <textarea class="co_transport_textarea" style="width:100%;margin-top:15px;padding-left:20px;" name="co_transport" id="co_transport" cols="100" rows="5"><?php if($fetch->co_transport == '') { } else { echo $fetch->co_transport; } ?></textarea> </div> </div> <div class="" style="display:table-cell;width:50%;"> <div style="padding:10px;" class="co_det"> <p style="margin:0;">Certificate No.</p> </div> <div style="text-align:center; border-top:1px solid #000;border-bottom:1px solid #000;padding:10px;" class="co_det"> <h3 style="margin-top:5px;margin-bottom:5px;">CERTIFICATE OF ORIGIN</h3> <h4 style="margin-top:5px;margin-bottom:5px;">(NON PREFERENTIAL)<br> (Combined declaration and certificate)<br>(Issued in India)</h4> <h3 style="margin-top:5px;margin-bottom:5px;">TEXTILES COMMITTEE</h3> <p style="margin-top:5px;margin-bottom:5px;">(Government of India, Ministry of Textiles)</p> <h4 style="margin-top:5px;margin-bottom:5px;">HEAD OFFICE</h4> <p style="margin-top:5px;margin-bottom:5px;">P.Balu Road, Prabhadevi, Mumbai-400 025.<br> Tel. No. 91-22-66527600-606 Fax: 91-22-66527611<br> Website: www.textilescommittee.gov.in</p> </div> <div style="padding:10px;" class="co_det"> <p style="margin:0;">4. For Official use</p> </div> </div> </div> <div> <table border="0" style="border-collapse: collapse;width:100%;"> <tr style="height:60px;"> <td class="co_det hide_td_border" style="width:10%;text-align:center;padding:5px;">5. Item number</td> <td class="co_det hide_td_border" style="width:15%;text-align:center;padding:5px;">6. Marks and Nos. of Packages</td> <td class="co_det hide_td_border" style="width:25%;text-align:center;padding:5px;">7. Number and kind of Packages, description of goods</td> <td class="co_det hide_td_border" style="width:15%;text-align:center;padding:5px;">8. Origin Criteria</td> <td class="co_det hide_td_border" style="width:20%;text-align:center;padding:5px;">9. Gross weight or other quantity</td> <td class="co_det hide_td_border" style="width:15%;text-align:center;padding:5px;">10. No. and date of invoices</td> </tr> <tr class="invoice_tr"> <td class="hide_td_border" style="padding:5px 5px 5px 30px;"><?PHP ECHO '1'; ?></td> <td class="hide_td_border" style="padding:5px 5px 5px 30px;"><?php echo $fetch->invoice_num . '/' . '1-' . $count_package_fetch_invoice ?></td> <td class="hide_td_border" style="padding:5px 5px 5px 30px;"><?php echo $fetch->card_board; ?><br/><br/> <?php echo $fetch->weight_first_details; ?><br/><br/> <textarea style="width:100%;" name="co_details" id="co_details" col="5"><?php if($fetch->co_details == '') { } else { echo $fetch->co_details; } ?></textarea><br/><br/><?php echo $fetch->sq_mtrs . 'SQ.MTRS.'; ?> </td> <td class="hide_td_border" style="padding:5px 5px 5px 160px;text-align:center;"><?php echo 'INDIAN ORIGIN'; ?></td> <td class="hide_td_border" style="padding:5px 5px 5px 20px;text-align:center;"><?php echo number_format((float)$package_fetch_invoice9->exp_qty, 2, '.', '') . ' ' . $fetch->units; ?><br/><br/><textarea style="width:100%;" name="co_qty" id="co_qty" col="5"><?php if($fetch->co_qty == '') { } else { echo $fetch->co_qty; } ?></textarea></td> <td class="hide_td_border" style="padding:5px 5px 5px 5px;"><?php echo $fetch->invoice_num; ?> <br/> <?php echo $fetch->invoice_date; ?><br/><br/><textarea style="width:100%;" name="co_invoice" id="co_invoice" col="5"><?php if($fetch->co_invoice == '') { } else { echo $fetch->co_invoice; } ?></textarea></td> </tr> </table> </div> <div class="fourth_div" style="width:100%;display:table;"> <div class="fifth_div" style="display:table-cell;width:50%;padding:10px;"> <p class="co_det" style="margin:0px;">11. Certification:</p> <p class="co_det" style="margin:0px;">It is hereby certified, on the basis of control carried out, that the declaration by the exporter is correct.</p> <p class="co_det" style="padding-top: 162px;"><span>Place & Date</span> <span style="float:right;">Signature & stamp of authorized signatory</span></p> </div> <div style="display:table-cell;width:50%;padding:10px;"> <div style="height: 200px;"> <p style="margin:0px;" class="co_det">12. Declaration by the Exporters:</p> <p style="margin:0px;height:50px;" class="co_det">The undersigned hereby declares that the above details and statements are correct; that all the goods were produced in India and that they comply with the origin requiremets for exports to</p> </div> <p style="padding:10px 0px;"><?php echo $fetch->country . ' ' ; ?>(Importing Country)</p> <div style="height: 70px;"> <p style="padding:10px 0px;" class="co_det">BANGALORE</p> </div> <?php echo date('d-m-Y'); ?> <p class="co_det"><span>Place & Date</span> <span style="float:right;">Signature & stamp of authorized signatory</span></p> </div> </div> </div> </div> </div> <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-3.2.1.min.js');?>"></script> <script src="<?php echo base_url('assets/js/bootstrap.min.js');?>"></script> <script src="<?php echo base_url(); ?>assets/js/sweetalert.min.js" type="text/javascript"></script> <link href="<?php echo base_url(); ?>assets/css/sweetalert.min.css" rel="stylesheet" type="text/css" > <script> $(document).ready(function(){ $("#booking_print").click(function(){ $("textarea").css({"resize": "none"}); $("textarea").css({"border": "none"}); $(".co_det").hide(); $(".co_div").css({"height": "300px !important"}); $(".co_consigee").css({"margin-top": "300px !important"}); $(".consignee_textarea").css({"padding-top": "100px !important"}); $(".co_transport_textarea").css({"padding-top": "100px !important"}); $(".invoice_tr").css({"padding-top": "300px !important"}); var divToPrint=document.getElementById("print_report"); newWin= window.open(""); newWin.document.write(divToPrint.outerHTML); newWin.print(); newWin.close(); }); }); function goods_details() { var co_details=$('#co_details').val(); var co_qty=$('#co_qty').val(); var co_invoice=$('#co_invoice').val(); var co_transport=$('#co_transport').val(); var refer_id=$('#refer_id').val(); //alert(co_details); $.ajax({ url:"<?php echo base_url('packing_list/add_co_data');?>", type:"POST", data:{'co_details':co_details,'co_qty':co_qty,'co_invoice':co_invoice,'co_transport':co_transport,'refer_id':refer_id}, async:false, success:function(data) { swal({ title: "Added Sucessfully", text: "", }); } }); } </script> <style> .first_div { border-top:1px solid #000;border-left:1px solid #000;border-right:1px solid #000; } .second_div { border-right:1px solid #000; } .third_div { border-top:1px solid #000;border-bottom:1px solid #000; } .fourth_div { border-bottom:1px solid #000;border-left:1px solid #000;border-right:1px solid #000; } .fifth_div { border-right:1px solid #000; } .hide_td_border { border: 1px solid #000; } </style>