EVOLUTION-NINJA
Edit File: invoice_piece_card.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="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.1/jquery.min.js"></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" > <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"/> <style> table tbody td { // padding: 10px; } </style> <div class="page-content-wrapper"> <div class="page-content"> <div class="content-wrapper"> <section class="content"> <!------------------------------------------ received -----------------------------------> <div class="row" style=" text-align: right;"> <a href="#" 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;text-decoration: none;"> Print </a> <span class="close-right" id="back_button"><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:3px; text-decoration: none; padding-top: 2px;">Back</a></span> </div> <div id="print_report" class="print col-sm-6"> <?php $i=1; foreach($group_package_fetch_invoice as $key=>$pkgg) { foreach($package_fetch_invoice1 as $keyy=>$pkg) { if($pkg->box_id == $pkgg->box_id) { ?> <table class="table table-bordered table-striped table-hover table-condensed table-responsive" style="border-spacing:0px !important;width: 300px !important;float:left;margin-right:15px; margin-bottom: 15px;line-height: 1.2;margin-top:15px;" border="1"> <thead > <tr style=""> <th colspan="2" style="text-align:center;background:#ddd; color:#000;">Piece Card - <?php echo $i; ?> </th> </tr> </thead> <tbody > <tr> <td style="width:150px;">Vendor Name</td> <td><input type="text" id="po_no" name="po_no" class="po_no" style="width:100%; border:transparent;" value="<?php echo 'Deco-Textil'; ?>" readonly="readonly"></td> </tr> <tr> <td>Invoice #</td> <td><input type="text" id="po_no" name="po_no" class="po_no" style="width:100%; border:transparent;" value="<?php echo $fetch->invoice_num; ?>" readonly="readonly"></td> </tr> <tr class="osl_pc"> <td>OSL #</td> <td><input type="text" id="po_no" name="po_no" class="po_no" style="width:100%; border:transparent;" value="<?php echo $pkgg->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 $pkgg->article; ?>" readonly="readonly"></td> </tr> <tr> <td>Design</td> <td><input type="text" id="po_no" name="po_no" class="po_no" style="width:100%; border:transparent;" value="<?php echo $pkgg->design; ?>" readonly="readonly"></td> </tr> <tr> <td>Width </td> <td><input type="text" id="po_no" name="po_no" class="po_no" style="width:100%; border:transparent;" value='<?php echo $pkgg->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 $pkg->shades; ?>"readonly="readonly"></td> </tr> <tr> <td>SSL PC No</td> <td><input type="text" id="po_no" name="po_no" class="po_no" style="width:100%; border:transparent;" value="<?php echo $pkg->ssl_pc_no; ?>" readonly="readonly"></td> </tr> <tr> <td>Units</td> <td><input type="text" id="po_no" name="po_no" class="po_no" style="width:100%; border:transparent;" value="<?php echo $fetch->units; ?>"></td> </tr> <tr> <td>Quantity</td> <td><input type="text" id="po_no" name="po_no" class="po_no" style="width:100%; border:transparent;" value="<?php echo number_format((float)$package_fetch_invoice4[$keyy]->exp_qty, 2, '.', ''); ?>"></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 number_format((float)$package_fetch_invoice5[$keyy]->exp_wt, 2, '.', ''); ?>" readonly="readonly"></td> </tr> </tbody> </table> <?php $i++; } ?> <?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); } $(document).ready(function(){ $("#booking_print").click(function(){ $('#booking_print').hide(); $('#back_button').hide(); //$('table').css({"width": "100%"}); $('.osl_pc').hide(); var divToPrint=document.getElementById("print_report"); window.print(); }); }); </script> <style> .page-content { height: 1082px; } #print_report { width:100%; line-height:1.6; } #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; } } </style>