EVOLUTION-NINJA
Edit File: madeups_duty_drawack_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;"> <?php if($indent_p == 'indent_preview') { ?> <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> <?php } else if($indent_p == 'today_preview') { ?> <span class="close-right" ><a href="<?php echo base_url('packing_list/paking_list_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('packing_list/paking_list_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('packing_list/paking_list_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 print" id="print_report" style="padding:0px;"> <table style="width:100%;border-spacing:0;"> <tr> <td colspan="11"></td> <td style="text-align:right;">E-mail : sales@swansilk.com</td> </tr> <tr> <td colspan="11"></td> <td style="text-align:right;">Phone : 080-41888298</td> </tr> <tr> <td colspan="12" style="text-align:center;font-weight:900;font-size:20px;font-style:Akashi;">Deco-Textil</td> </tr> <tr> <td colspan="12" style="text-align:center;">"SWAN HOUSE" No:40, 4th cross, Residency Road, Banglore - 560025. INDIA</td> </tr> <tr> <td colspan="12" style="text-align:center;font-weight:600;text-decoration: underline;">Duty Drawback / Export Incentive</td> </tr> <tr> <td colspan="10"></td> <td colspan="2" style="text-align:right;"> </td> </tr> <tr> <td colspan="10"></td> <td colspan="2" style="text-align:right;"><!--OSL / PO No. : <?php //echo $fetch->osl_no; ?>--><br/> Date : <?php echo date("d-m-Y"); ?></td> </tr> </table> <!------------------------------------------------pkg list--------------------------------------------------------> <div classs="row"> <form class="duty_drawback_bill"> <table border="1" style="width:100%;border-spacing:0;margin-top: 1%;" cellpadding="5px"> <thead> <tr> <th>E Way Bill date</th> <th><input type="text" name="e_way_date" id="datepicker3" value="<?php echo $details_invoce->e_way_date;?>" readonly class="form-control"></th> </tr> <tr> <th>Invoice date</th> <th><input type="text" name="invoice_date" value="<?php echo $details_invoce->sys_date;?>" readonly class="form-control"></th> </tr> <tr> <th>Invoice Num</th> <th><input type="text" name="invoice_num" value="<?php echo $details_invoce->invoice_num;?>" readonly class="invoice_date form-control"><input type="hidden" name="invoice_no" value="<?php echo $details_invoce->invoice;?>" class=" form-control"></th> </tr> <tr> <th>Custromer name</th> <th><input type="text" name="customer_name" readonly value="<?php echo $details_invoce->customer_name;?>" class=" form-control"></th> </tr> <tr> <th>Invoice value</th> <th><input type="text" readonly id = "invoice_value" name="invoice_value" value="<?php echo $details_invoce->total_value;?>" class=" invoice_value form-control"></th> </tr> <tr> <th>Currency</th> <input type="hidden" name="id" readonly value="<?php echo $_GET['id']; ?>" class="form-control"> <th><input type="text" name="currency" readonly value="<?php if(!empty($invoice_currency->currency)){ echo $invoice_currency->currency; } ?>" class="form-control"></th> </tr> <tr> <th>FC Value in US $</th> <th><input type="number" id = "fc_value" name="fc_value" value="<?php echo $details_invoce->fc_value;?>" class="inr_value form-control" readonly></th> </tr> <tr> <th>ETD Date</th> <th><input type="text" id="datepicker1" name="edt_date" value="<?php echo $details_invoce->edt_date;?>" readonly class="form-control" required="required"></th> </tr> <tr> <th>Shipping Bill Date</th> <th><input type="text" id="datepicker" name="bill_date" value="<?php echo $details_invoce->shipping_bill_date;?>" readonly class="form-control" required="required"></th> </tr> <tr> <th>Shipping Bill #</th> <th><input type="text" name="bill_num" value="<?php echo $details_invoce->shipping_bill_num;?>" class="form-control" onkeypress="if ( isNaN(this.value + String.fromCharCode(event.keyCode) )) return false;" readonly ></th> </tr> <tr> <th>Port Code</th> <th><input type="text" value="<?php echo $details_invoce->shipping_port_code;?>" name="port_code" class="form-control" readonly></th> </tr> <tr> <th>Export Under</th> <th><input type="text" value="<?php echo $details_invoce->expor_under;?>" name="export_under" class="form-control" readonly></th> </tr> <tr> <th>Duty Drawback Amount</th> <th><input type="number" step="0.01" value="<?php echo $details_invoce->drawack_amount;?>" name="drawack_amount" class="form-control"></th> </tr> <tr> <th>Duty Drawback Date</th> <th><input type="text" value="<?php echo $details_invoce->drawback_credit_date;?>" name="drawback_credit_date" class="form-control" id = "datepicker4"></th> </tr> <tr> <th>Export Incentive Amount</th> <th><input type="number" step="0.01" value="<?php echo $details_invoce->export_incentive;?>" name="export_incentive" class="form-control" ></th> </tr> <tr> <th>Export Incentive Credit Date</th> <th><input type="text" value="<?php echo $details_invoce->incentive_credit_date;?>" name="incentive_credit_date" class="form-control" id = "datepicker5" ></th> </tr> <tr> <th>Created By</th> <?php $id=$this->session->userdata('logged_in');$data['approved_by']=$id['username'];?> <th><input type="text" name="invoice_date" value="<?php echo $data['approved_by'];?>" readonly class="form-control"></th> </tr> </thead> </table> </div> <br> <center><button class="btn btn-success btn-lg" type="Submit" 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></center> </form> </div> </div> <!--- content-wrapper ----> <!------------- content-wrapper END -----------------------------------------------------------------------------------------------------> </div> <!----- wrapper ------> </div> <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/jquery-ui.css" > <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-1.7.1.min.js');?>"></script> <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-ui.js');?>"></script> <script> $('#datepicker').datepicker({ changeMonth:true, changeYear:true, yearRange: "2000:2030", // dateFormat: 'yy-mm-dd' dateFormat: 'dd-mm-yy' }); function change_rate(){ var rate = $('#rate').val(); //alert(rate); var customs_x_rate = $('#customs_x_rate').val(); //alert(customs_x_rate); var c_currency = (customs_x_rate/rate); $('#cross_currecy').val(c_currency.toFixed(2)); var invoice_value = $('#invoice_value').val(); var fc = (invoice_value/c_currency) $('#fc_value').val(fc.toFixed(2)); } $('#datepicker1').datepicker({ changeMonth:true, changeYear:true, yearRange: "2000:2030", // dateFormat: 'yy-mm-dd' dateFormat: 'dd-mm-yy' }); $('#datepicker3').datepicker({ changeMonth:true, changeYear:true, yearRange: "2000:2030", // dateFormat: 'yy-mm-dd' dateFormat: 'dd-mm-yy' }); $('#datepicker4').datepicker({ changeMonth:true, changeYear:true, yearRange: "2000:2030", // dateFormat: 'yy-mm-dd' dateFormat: 'dd-mm-yy' }); $('#datepicker5').datepicker({ changeMonth:true, changeYear:true, yearRange: "2000:2030", // dateFormat: 'yy-mm-dd' dateFormat: 'dd-mm-yy' }); </script> <script> $(".customs_x_rate").focusout(function(){ var customs_x_rate=$('.customs_x_rate').val(); var invoice_value=$('.invoice_value').val(); var final=parseFloat(invoice_value)*parseFloat(customs_x_rate); var n = final.toFixed(4); $('.inr_value').val(n); }); $('.duty_drawback_bill').submit(function(e){ e.preventDefault(); $(".submit").attr('disabled', 'disabled'); $(".submit").text("Submitting..."); formdata = new FormData($(this)[0]); $.ajax({ type : 'post', url : '<?php echo site_url('packing_list/madeups_update_duty_drawback_bill_details');?>', data : formdata, contentType: false, processData: false, success:function(response){ response=jQuery.parseJSON(response); console.log(response); if(response.result==1) { alert(response.message); $(".submit").text("Submit"); $(".submit").removeAttr('disabled'); } else { alert(response.message); $(".submit").text("Submit"); $(".submit").removeAttr('disabled'); } } }); }); $(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> <style> .content-wrapper{ overflow:auto !important; } input[readonly] { background-color: #eee; } </style>