EVOLUTION-NINJA
Edit File: fabric_piece_card_preview.php
<?php //include("menu.php"); error_reporting(E_ALL); ?> <script> $( document ).ready(function() { var i=$('#ins_mtrs').val(); var w=$('#width_val').val(); var suffix = w.match(/\d+/); // alert(suffix); var t=parseFloat(parseFloat(23*3600)) / (parseFloat(i * 9.14) * parseFloat(suffix / 2.54)); $('#price').val(t.toFixed(2)); }); </script> <script src="<?php echo base_url(); ?>assets/js/EAN_UPC.min.js"></script> <script src="<?php echo base_url(); ?>assets/js/CODE128.min.js"></script> <script src="<?php echo base_url(); ?>assets/js/JsBarcode.min.js"></script> <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/avinash.min.css" > <div class="page-content-wrapper"> <div class="page-content"> <div class="content-wrapper"> <section class="content"> <!------------------------------------------ received -----------------------------------> <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('new_stores/fabric_inspaection_history');?>" 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 id="print_report" class="print col-sm-12"> <?php if(isset($result)) { foreach($result as $key=>$fetch_goods_data) { ?> <div class="table-responsive"> <table class="table table-bordered table-striped table-hover table-condensed table-responsive" style="border-spacing:0px !important;width: 500px !important;float:left;margin-right:15px; margin-bottom: 15px;" border="1"> <thead > <tr style=""> <th colspan="2" style="text-align:center;background:#ddd; color:#000;">Piece Card After inspection</th> </tr> </thead> <tbody > <tr> <td style="width:200px;">Unit/Vendor Name</td> <td><input type="text" id="po_no" name="po_no" class="po_no"style="width:100%; border:transparent;" value="<?php echo $fetch_goods_data->vendor_name; ?>" readonly="readonly"></td> </tr> <tr> <td>PO# / OSL#</td> <td><input type="text" id="po_no" name="po_no" class="po_no"style="width:100%; border:transparent;" value="<?php echo $fetch_goods_data->po_no; ?>" readonly="readonly"></td> </tr> <tr> <td>Article /Product</td> <td><input type="text" id="po_no" name="po_no" class="po_no"style="width:100%; border:transparent;" value="<?php echo $fetch_goods_data->product_name; ?>" readonly="readonly"></td> </tr> <tr> <td>Width CMS</td> <td><input type="text" id="po_no" name="po_no" class="po_no"style="width:100%; border:transparent;" value="<?php echo $fetch_goods_data->width; ?>"readonly="readonly"></td> </tr> <tr> <td>Shade</td> <td><input type="text" id="po_no" name="po_no" class="po_no"style="width:100%; border:transparent;" value="<?php echo $fetch_goods_data->shades; ?>"readonly="readonly"></td> </tr> <tr> <td>Design</td> <td><input type="text" style="width:100%; border:transparent;" value="<?php echo $fetch_goods_data->design; ?>"></td> </tr> <tr> <td>DTL PC NO</td> <td><input type="text" id="po_no" name="po_no" class="po_no"style="width:100%; border:transparent;" value="<?php echo $fetch_goods_data->ssl_pc_no; ?>" readonly="readonly"></td> </tr> <tr> <td>Length in Mtrs</td> <td><input type="text" id="po_no" name="po_no" class="po_no"style="width:100%; border:transparent;" value="<?php echo $fetch_goods_data->inspected_mtrs; ?>" readonly="readonly"></td> </tr> <tr> <td>Weight</td> <td><input type="text" id="po_no" name="po_no" class="po_no"style="width:100%; border:transparent;" value="<?php echo $fetch_goods_data->rec_weight; ?>" readonly="readonly"></td> </tr> <!-- <tr> <td>Weight Per Mtrs</td> <td><input type="text" id="po_no" name="po_no" class="po_no"style="width:100%; border:transparent;" value="<?php echo $fetch_goods_data->rec_weight; ?>"></td> </tr>--> <tr> <td>Weight Per Mtrs</td> <td><input type="text" id="po_no" name="po_no" class="po_no"style="width:100%; border:transparent;" value="<?php echo number_format($weight_mtrs[$key], 2, '.', ''); ?>" readonly="readonly"></td> </tr> <tr> <td>Remarks</td> <td><input type="text" id="po_no" name="po_no" class="po_no"style="width:100%; border:transparent;" value="<?php echo $fetch_goods_data->remarks; ?>" readonly="readonly"></td> </tr> <tr> <td colspan="2" style="text-align:center;" ><img id="barcode_rec" class="barcode_rec" bar_attr="<?php echo $fetch_goods_data->ssl_pc_no; ?>" /></br><?php echo $fetch_goods_data->ssl_pc_no; ?></td> </tr> </tbody> </table> </div> <!-- col-sm-6----> <?php } } ?> </div><!-- print----> </section> </div> </div> </div> <link href="<?php echo base_url('assets/css/sweetalert2.min.css');?>" rel="stylesheet"/> <script src="<?php echo base_url('assets/js/sweetalert2.min.js');?>"></script> <link rel="stylesheet" href="<?php echo base_url('assets/css/code_jquery.min.css');?>"> <script src="<?php echo base_url('assets/js/jquery-ui.min.js'); ?>" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.min.css'); ?>" /> <script> $('.transfer_modal_application').submit(function(e){ e.preventDefault(); // alert('asda'); formdata = new FormData($(this)[0]); $.ajax({ type : 'post', url:"<?php echo base_url('new_stores/barcode_submit');?>", data : formdata, contentType: false, processData: false, success:function(response) { var obj = jQuery.parseJSON(response); $("#thebutton").text("Submitted"); $('#thebutton').attr('disabled',true); $("input[type=radio]").attr('disabled', false); } }); }); </script> <script> $('.barcode_rec').each(function() { var test = $(this).attr('bar_attr'); var $this = $(this); //alert(test); $this.JsBarcode(test,{width:1,height:25}); }); //$(document).ready(function(){ // $(".barcode_rec").JsBarcode("<?php echo $fetch_goods_data->ssl_pc_no; ?>",{width:1,height:25}); //}); </script> <script> function total_first_cal(i) { var sum = 0; $("input[class *= 'first']").each(function(){ sum += +$(this).val(); }); var s=sum * 1; $(".1st_sub_total").val(s); var sum_val = 0; $("input[class *= 'sub_total_num']").each(function(){ sum_val += +$(this).val(); }); $(".total_val").val(sum_val); } function total_sec_cal(i) { var sum = 0; $("input[class *= 'sec']").each(function(){ sum += +$(this).val(); }); var s=sum * 2; $(".2nd_sub_total").val(s); var sum_val = 0; $("input[class *= 'sub_total_num']").each(function(){ sum_val += +$(this).val(); }); $(".total_val").val(sum_val); } function total_third_cal(i) { var sum = 0; $("input[class *= 'third']").each(function(){ sum += +$(this).val(); }); var s=sum * 3; $(".3rd_sub_total").val(s); var sum_val = 0; $("input[class *= 'sub_total_num']").each(function(){ sum_val += +$(this).val(); }); $(".total_val").val(sum_val); } function total_fourth_cal(i) { var sum = 0; $("input[class *= 'fourth']").each(function(){ sum += +$(this).val(); }); var s=sum * 4; $(".4th_sub_total").val(s); var sum_val = 0; $("input[class *= 'sub_total_num']").each(function(){ sum_val += +$(this).val(); }); $(".total_val").val(sum_val); } $("#booking_print").click(function(){ var divToPrint=document.getElementById("print_report"); newWin= window.open(""); newWin.document.write(divToPrint.outerHTML); newWin.print(); newWin.close(); }); </script> <style> .page-content { height: 1082px; } #print_report { width:100%; } #print_report2 { width:700px; } #print_report1 { width:700px; } @media only screen and (min-width:320px) and (max-width:640px) { #print_report { width:100%; } #print_report1 { width:100%; } } @media (min-width: 992px){ .page-content-wrapper { float: left; width: 100%; background: white !important; } } .page-content{ overflow-y: scroll !important; } </style>