Jump to content

auto display maximum dozen after input maximum lot


newphpcoder
 Share

Recommended Posts

Hi..Now I used onclick to display the computed max doz, now I want it to auto compute after I input numbers in max lot. Is it possible?What code?here is my whole code:

<html><head><title>Parameter Settings</title><link rel="stylesheet" type="text/css" href="kanban.css" /><script type="text/javascript">//=========auto compute Total  Max=====//function autocalearn(oText){if (isNaN(oText.value)) //filter input{alert('Numbers only!');oText.value = '';}var field, val, oForm = oText.form, Total_max_lot = a = 0;for (a; a < arguments.length; ++a) //loop through text elements{field = arguments[a];val = parseFloat(field.value); //get valueif (!isNaN(val)) //number?{Total_max_lot += val; //accumulate}}																				oForm.Total_max_lot.value = Total_max_lot.toFixed(2); //out } </script><script type="text/javascript">//=========auto compute Total  bch=====//function autobch(oText){if (isNaN(oText.value)) //filter input{alert('Numbers only!');oText.value = '';}var field, val, oForm = oText.form, Total_bch_wt = a = 0;for (a; a < arguments.length; ++a) //loop through text elements{field = arguments[a];val = parseFloat(field.value); //get valueif (!isNaN(val)) //number?{Total_bch_wt += val; //accumulate}}																				oForm.Total_bch_wt.value = Total_bch_wt.toFixed(2); //out }</script><script type="text/javascript">//=========auto compute Total  plug=====//function plug(oText){if (isNaN(oText.value)) //filter input{alert('Numbers only!');oText.value = '';}var field, val, oForm = oText.form, Total_plug_wt = a = 0;for (a; a < arguments.length; ++a) //loop through text elements{field = arguments[a];val = parseFloat(field.value); //get valueif (!isNaN(val)) //number?{Total_plug_wt += val; //accumulate}}																				oForm.Total_plug_wt.value = Total_plug_wt.toFixed(2); //out }</script><script type="text/javascript">//============Auto compute Total Min Lot========//function autocalmin(oText){if (isNaN(oText.value)) //filter input{alert('Numbers only!');oText.value = '';}var field, val, oForm = oText.form, Total_min_lot = a = 0;for (a; a < arguments.length; ++a) //loop through text elements{field = arguments[a];val = parseFloat(field.value); //get valueif (!isNaN(val)) //number?{Total_min_lot += val; //accumulate}}												oForm.Total_min_lot.value = Total_min_lot.toFixed(2); //out }</script><script type="text/javascript">//Auto convert to Doz and auto compute total max doz=====////function doz(oText){     var P28_max_lot = document.getElementById("P28_max_lot").value;    var P28_bch_wt = document.getElementById("P28_bch_wt").value;    var P28_plug_wt = document.getElementById("P28_plug_wt").value;    var P28_max_convert = (parseFloat(P28_max_lot) * ((parseFloat(P28_bch_wt))* parseFloat(1000)) / parseFloat(P28_plug_wt) / parseFloat(12));	    if( !isNaN(P28_max_convert) ){      var P28_max_doz = document.getElementById("P28_max_doz").value = P28_max_convert.toFixed(2);    }       var P30_max_lot = document.getElementById("P30_max_lot").value;    var P30_bch_wt = document.getElementById("P30_bch_wt").value;    var P30_plug_wt = document.getElementById("P30_plug_wt").value;    var P30_max_convert = (parseFloat(P30_max_lot) * ((parseFloat(P30_bch_wt))* parseFloat(1000)) / parseFloat(P30_plug_wt) / parseFloat(12));    if( !isNaN(P30_max_convert) ){      var P30_max_doz = document.getElementById("P30_max_doz").value = P30_max_convert.toFixed(2);    }       var P32_max_lot = document.getElementById("P32_max_lot").value;    var P32_bch_wt = document.getElementById("P32_bch_wt").value;    var P32_plug_wt = document.getElementById("P32_plug_wt").value;    var P32_max_convert = (parseFloat(P32_max_lot) * ((parseFloat(P32_bch_wt))* parseFloat(1000)) / parseFloat(P32_plug_wt) / parseFloat(12));    if( !isNaN(P32_max_convert) ){    var P32_max_doz = document.getElementById("P32_max_doz").value = P32_max_convert.toFixed(2);    }	       var P33_max_lot = document.getElementById("P33_max_lot").value;    var P33_bch_wt = document.getElementById("P33_bch_wt").value;    var P33_plug_wt = document.getElementById("P33_plug_wt").value;    var P33_max_convert = (parseFloat(P33_max_lot) * ((parseFloat(P33_bch_wt))* parseFloat(1000)) / parseFloat(P33_plug_wt) / parseFloat(12));     if( !isNaN(P33_max_convert) ){    var P33_max_doz = document.getElementById("P33_max_doz").value = P33_max_convert.toFixed(2);    }       var P35_max_lot = document.getElementById("P35_max_lot").value;    var P35_bch_wt = document.getElementById("P35_bch_wt").value;    var P35_plug_wt = document.getElementById("P35_plug_wt").value;    var P35_max_convert = (parseFloat(P35_max_lot) * ((parseFloat(P35_bch_wt))* parseFloat(1000)) / parseFloat(P35_plug_wt) / parseFloat(12));       if( !isNaN(P35_max_convert) ){    var P35_max_doz = document.getElementById("P35_max_doz").value = P35_max_convert.toFixed(2);    }       var P35M_max_lot = document.getElementById("P35M_max_lot").value;    var P35M_bch_wt = document.getElementById("P35M_bch_wt").value;    var P35M_plug_wt = document.getElementById("P35M_plug_wt").value;    var P35M_max_convert = (parseFloat(P35M_max_lot) * ((parseFloat(P35M_bch_wt))* parseFloat(1000)) / parseFloat(P35M_plug_wt) / parseFloat(12));    if( !isNaN(P35M_max_convert) ){    var P35M_max_doz = document.getElementById("P35M_max_doz").value = P35M_max_convert.toFixed(2);    }       var P35W_max_lot = document.getElementById("P35W_max_lot").value;     var P35W_bch_wt = document.getElementById("P35W_bch_wt").value;    var P35W_plug_wt = document.getElementById("P35W_plug_wt").value;    var P35W_max_convert = (parseFloat(P35W_max_lot) * ((parseFloat(P35W_bch_wt))* parseFloat(1000)) / parseFloat(P35W_plug_wt) / parseFloat(12));    if( !isNaN(P35W_max_convert) ){    var P35W_max_doz = document.getElementById("P35W_max_doz").value = P35W_max_convert.toFixed(2);    }       var P38_max_lot = document.getElementById("P38_max_lot").value;    var P38_bch_wt = document.getElementById("P38_bch_wt").value;    var P38_plug_wt = document.getElementById("P38_plug_wt").value;    var P38_max_convert = (parseFloat(P38_max_lot) * ((parseFloat(P38_bch_wt))* parseFloat(1000)) / parseFloat(P38_plug_wt) / parseFloat(12));    if( !isNaN(P38_max_convert) ){    var P38_max_doz = document.getElementById("P38_max_doz").value = P38_max_convert.toFixed(2);    }       var P41_max_lot = document.getElementById("P41_max_lot").value;    var P41_bch_wt = document.getElementById("P41_bch_wt").value;    var P41_plug_wt = document.getElementById("P41_plug_wt").value;    var P41_max_convert = (parseFloat(P41_max_lot) * ((parseFloat(P41_bch_wt))* parseFloat(1000)) / parseFloat(P41_plug_wt) / parseFloat(12));    if( !isNaN(P41_max_convert) ){    var P41_max_doz = document.getElementById("P41_max_doz").value = P41_max_convert.toFixed(2);    }       var P42_max_lot = document.getElementById("P42_max_lot").value;    var P42_bch_wt = document.getElementById("P42_bch_wt").value;    var P42_plug_wt = document.getElementById("P42_plug_wt").value;    var P42_max_convert = (parseFloat(P42_max_lot) * ((parseFloat(P42_bch_wt))* parseFloat(1000)) / parseFloat(P42_plug_wt) / parseFloat(12));    if( !isNaN(P42_max_convert) ){    var P42_max_doz = document.getElementById("P42_max_doz").value = P42_max_convert.toFixed(2);    }       var P43_max_lot = document.getElementById("P43_max_lot").value;    var P43_bch_wt = document.getElementById("P43_bch_wt").value;    var P43_plug_wt = document.getElementById("P43_plug_wt").value;    var P43_max_convert = (parseFloat(P43_max_lot) * ((parseFloat(P43_bch_wt))* parseFloat(1000)) / parseFloat(P43_plug_wt) / parseFloat(12));    if( !isNaN(P43_max_convert) ){    var P43_max_doz = document.getElementById("P43_max_doz").value = P43_max_convert.toFixed(2);	       }       var P46_max_lot = document.getElementById("P46_max_lot").value;    var P46_bch_wt = document.getElementById("P46_bch_wt").value;    var P46_plug_wt = document.getElementById("P46_plug_wt").value;    var P46_max_convert = (parseFloat(P46_max_lot) * ((parseFloat(P46_bch_wt))* parseFloat(1000)) / parseFloat(P46_plug_wt) / parseFloat(12));      if( !isNaN(P46_max_convert) ){    var P46_max_doz = document.getElementById("P46_max_doz").value = P46_max_convert.toFixed(2);    }       var P47_max_lot = document.getElementById("P47_max_lot").value;    var P47_bch_wt = document.getElementById("P47_bch_wt").value;    var P47_plug_wt = document.getElementById("P47_plug_wt").value;    var P47_max_convert = (parseFloat(P47_max_lot) * ((parseFloat(P47_bch_wt))* parseFloat(1000)) / parseFloat(P47_plug_wt) / parseFloat(12));       if( !isNaN(P47_max_convert) ){    var P47_max_doz = document.getElementById("P47_max_doz").value = P47_max_convert.toFixed(2);      }   if (isNaN(oText.value)) //filter input{//alert('Numbers only!');oText.value = '';}var field, val, oForm = oText.form, Total_max_doz = a = 0;for (a; a < arguments.length; ++a) //loop through text elements{field = arguments[a];val = parseFloat(field.value); //get value   if (!isNaN(val)) //number?{Total_max_doz += val; //accumulate}}oForm.Total_max_doz.value = Total_max_doz.toFixed(2); //out}</script></head> <?php$con = mysql_connect('localhost', 'root','');mysql_select_db("mes", $con);?><body><form name="loading_kanban" action="" method="post" onSubmit="return false"><div id="fieldset_PS"><table><th>Compounds</th><th>Batch Wt.</th><th>UoM</th><th>Plug Wt.</th><th>UoM</th><th>Max</th><th>UoM</th><th>Max</th><th>UoM</th><th>Min</th><th>UoM</th><th>Min</th><th>UoM</th><tr><td><input type="text" name="P28" id="P28" value="P28"></td><td><input type="text" name="P28_bch_wt" id="P28_bch_wt" value="<?php echo $P28_bch_wt; ?>" onKeyUp="return autobch(this, P30_bch_wt, P32_bch_wt, P33_bch_wt, P35_bch_wt, P35M_bch_wt, P35W_bch_wt, P38_bch_wt, P41_bch_wt, P42_bch_wt, P43_bch_wt, P46_bch_wt, P47_bch_wt)"></td><td><input type="text" name="P28_bch_uom" id="P28_bch_uom" value="Kg"></td><td><input type="text" name="P28_plug_wt" id="P28_plug_wt"  value="<?php echo $P28_plug_wt;?>" onKeyUp="return plug(this, P30_plug_wt, P32_plug_wt, P33_plug_wt, P35_plug_wt, P35M_plug_wt, P35W_plug_wt, P38_plug_wt, P41_plug_wt, P42_plug_wt, P43_plug_wt, P46_plug_wt, P47_plug_wt)"></td><td><input type="text" name="P28_plug_uom" id="P28_plug_uom" value="g" ></td><td><input type="text" name="P28_max_lot" id="P28_max_lot" value="<?php echo $P28_max_lot; ?>" onKeyUp="return autocalearn(this, P30_max_lot, P32_max_lot, P33_max_lot, P35_max_lot, P35M_max_lot, P35W_max_lot, P38_max_lot, P41_max_lot, P42_max_lot, P43_max_lot, P46_max_lot, P47_max_lot)"></td><td><input type="text" name="P28_max_lot_uom" id="P28_max_lot_uom" value="Lot" ></td><td><b><input type="text" name="P28_max_doz" id="P28_max_doz" value="<?php echo $P28_max_doz;?>" onClick="return doz(this, P30_max_doz, P32_max_doz, P33_max_doz, P35_max_doz, P35M_max_doz, P35W_max_doz, P38_max_doz, P41_max_doz, P42_max_doz, P43_max_doz, P46_max_doz, P47_max_doz)"></b></td><td><input type="text" name="P28_max_doz_uom" id="P28_max_doz_uom" value="Doz"></td></tr><tr><td><input type="text" name="P30" id="P30" value="P30" ></td><td><input type="text" name="P30_bch_wt" id="P30_bch_wt" value="<?php echo $P30_bch_wt;?>" onKeyUp="return autobch(this, P28_bch_wt, P32_bch_wt, P33_bch_wt, P35_bch_wt, P35M_bch_wt, P35W_bch_wt, P38_bch_wt, P41_bch_wt, P42_bch_wt, P43_bch_wt, P46_bch_wt, P47_bch_wt)"></td><td><input type="text" name="P30_bch_uom" id="P30_bch_uom" value="Kg" ></td><td><input type="text" name="P30_plug_wt" id="P30_plug_wt" size="8" value="<?php echo $P30_plug_wt; ?>" onKeyUp="return plug(this, P28_plug_wt, P32_plug_wt, P33_plug_wt, P35_plug_wt, P35M_plug_wt, P35W_plug_wt, P38_plug_wt, P41_plug_wt, P42_plug_wt, P43_plug_wt, P46_plug_wt, P47_plug_wt)"></td><td><input type="text" name="P30_plug_uom" id="P30_plug_uom" value="g"></td><td><input type="text" name="P30_max_lot" id="P30_max_lot" value="<?php echo $P30_max_lot;?>" onKeyUp="return autocalearn(this, P28_max_lot, P32_max_lot, P33_max_lot, P35_max_lot, P35M_max_lot, P35W_max_lot, P38_max_lot, P41_max_lot, P42_max_lot, P43_max_lot, P46_max_lot, P47_max_lot)"></td><td><input type="text" name="P30_max_lot_uom" id="P30_max_lot_uom" value="Lot"></td><td><b><input type="text" name="P30_max_doz" id="P30_max_doz" value="<?php echo $P30_max_doz; ?>" onClick="return doz(this, P28_max_doz, P32_max_doz, P33_max_doz, P35_max_doz, P35M_max_doz, P35W_max_doz, P38_max_doz, P41_max_doz, P42_max_doz, P43_max_doz, P46_max_doz, P47_max_doz)"></b></td><td><input type="text" name="P30_max_doz_uom" id="P30_max_doz_uom" value="Doz"></td></tr>   <tr><td><input type="text" name="P32" id="P32" value="P32"></td><td><input type="text" name="P32_bch_wt" id="P32_bch_wt" value="<?php echo $P32_bch_wt ;?>" onKeyUp="return autobch(this, P28_bch_wt, P30_bch_wt, P33_bch_wt, P35_bch_wt, P35M_bch_wt, P35W_bch_wt, P38_bch_wt, P41_bch_wt, P42_bch_wt, P43_bch_wt, P46_bch_wt, P47_bch_wt)"></td><td><input type="text" name="P32_bch_uom" id="P32_bch_uom" value="Kg"></td><td><input type="text" name="P32_plug_wt" id="P32_plug_wt" value="<?php echo $P32_plug_wt; ?>" onKeyUp="return plug(this, P28_plug_wt, P30_plug_wt, P33_plug_wt, P35_plug_wt, P35M_plug_wt, P35W_plug_wt, P38_plug_wt, P41_plug_wt, P42_plug_wt, P43_plug_wt, P46_plug_wt, P47_plug_wt)"></td><td><input type="text" name="P32_plug_uom" id="P32_plug_uom" value="g"></td><td><input type="text" name="P32_max_lot" id="P32_max_lot" value="<?php echo $P32_max_lot ;?>" onKeyUp="return autocalearn(this, P28_max_lot, P30_max_lot, P33_max_lot, P35_max_lot, P35M_max_lot, P35W_max_lot, P38_max_lot, P41_max_lot, P42_max_lot, P43_max_lot, P46_max_lot, P47_max_lot)"></td><td><input type="text" name="P32_max_lot_uom" id="P32_max_lot_uom" value="Lot"></td><td><b><input type="text" name="P32_max_doz" id="P32_max_doz" value="<?php echo $P32_max_doz; ?>" onClick="return doz(this, P28_max_doz, P30_max_doz, P33_max_doz, P35_max_doz, P35M_max_doz, P35W_max_doz, P38_max_doz, P41_max_doz, P42_max_doz, P43_max_doz, P46_max_doz, P47_max_doz)"></b></td><td><input type="text" name="P32_max_doz_uom" id="P32_max_doz_uom" value="Doz"></td></tr>  <tr><td><input type="text" name="P33" id="P33" value="P33"></td><td><input type="text" name="P33_bch_wt" id="P33_bch_wt" value="<?php echo $P33_bch_wt; ?>" onKeyUp="return autobch(this, P28_bch_wt, P30_bch_wt, P32_bch_wt, P35_bch_wt, P35M_bch_wt, P35W_bch_wt, P38_bch_wt, P41_bch_wt, P42_bch_wt, P43_bch_wt, P46_bch_wt, P47_bch_wt)"></td><td><input type="text" name="P33_bch_uom" id="P33_bch_uom" value="Kg"></td><td><input type="text" name="P33_plug_wt" id="P33_plug_wt" value="<?php echo $P33_plug_wt; ?>" onKeyUp="return plug(this, P28_plug_wt, P30_plug_wt, P32_plug_wt, P35_plug_wt, P35M_plug_wt, P35W_plug_wt, P38_plug_wt, P41_plug_wt, P42_plug_wt, P43_plug_wt, P46_plug_wt, P47_plug_wt)"></td><td><input type="text" name="P33_plug_uom" id="P33_plug_uom" value="g"></td><td><input type="text" name="P33_max_lot" id="P33_max_lot" value="<?php echo $P33_max_lot; ?>" onKeyUp="return autocalearn(this, P28_max_lot, P30_max_lot, P32_max_lot, P35_max_lot, P35M_max_lot, P35W_max_lot, P38_max_lot, P41_max_lot, P42_max_lot, P43_max_lot, P46_max_lot, P47_max_lot)"></td><td><input type="text" name="P33_max_lot_uom" id="P33_max_lot_uom" value="Lot"></td><td><b><input type="text" name="P33_max_doz" id="P33_max_doz" value="<?php echo $P33_max_doz; ?>" onClick="return doz(this, P28_max_doz, P30_max_doz, P32_max_doz, P35_max_doz, P35M_max_doz, P35W_max_doz, P38_max_doz, P41_max_doz, P42_max_doz, P43_max_doz, P46_max_doz, P47_max_doz)"></b></td><td><input type="text" name="P33_max_doz_uom" id="P33_max_doz_uom" value="Doz"></td></tr> <tr><td><input type="text" name="P35" id="P35" value="P35"></td><td><input type="text" name="P35_bch_wt" id="P35_bch_wt" value="<?php echo $P35_bch_wt; ?>" onKeyUp="return autobch(this, P28_bch_wt, P30_bch_wt, P32_bch_wt, P33_bch_wt, P35M_bch_wt, P35W_bch_wt, P38_bch_wt, P41_bch_wt, P42_bch_wt, P43_bch_wt, P46_bch_wt, P47_bch_wt)"></td><td><input type="text" name="P35_bch_uom" id="P35_bch_uom" value="Kg"></td><td><input type="text" name="P35_plug_wt" id="P35_plug_wt" value="<?php echo $P35_plug_wt; ?>" onKeyUp="return plug(this, P28_plug_wt, P30_plug_wt, P32_plug_wt, P33_plug_wt, P35M_plug_wt, P35W_plug_wt, P38_plug_wt, P41_plug_wt, P42_plug_wt, P43_plug_wt, P46_plug_wt, P47_plug_wt)"></td><td><input type="text" name="P35_plug_uom" id="P35_plug_uom" value="g"></td><td><input type="text" name="P35_max_lot" id="P35_max_lot" value="<?php echo $P35_max_lot; ?>" onKeyUp="return autocalearn(this, P28_max_lot, P30_max_lot, P32_max_lot, P33_max_lot, P35M_max_lot, P35W_max_lot, P38_max_lot, P41_max_lot, P42_max_lot, P43_max_lot, P46_max_lot, P47_max_lot)"></td><td><input type="text" name="P35_max_lot_uom" id="P35_max_lot_uom" value="Lot"></td><td><b><input type="text" name="P35_max_doz" id="P35_max_doz" value="<?php echo $P35_max_doz; ?>" onClick="return doz(this, P28_max_doz, P30_max_doz, P32_max_doz, P33_max_doz,P35M_max_doz, P35W_max_doz, P38_max_doz, P41_max_doz, P42_max_doz, P43_max_doz, P46_max_doz, P47_max_doz)"></b></td><td><input type="text" name="P35_max_doz_uom" id="P35_max_doz_uom" value="Doz" ></td></tr> <tr><td><input type="text" name="P35M" id="P35M" value="P35M" ></td><td><input type="text" name="P35M_bch_wt" id="P35M_bch_wt" value="<?php echo $P35M_bch_wt; ?>" onKeyUp="return autobch(this, P28_bch_wt, P30_bch_wt, P32_bch_wt, P33_bch_wt, P35_bch_wt, P35W_bch_wt, P38_bch_wt, P41_bch_wt, P42_bch_wt, P43_bch_wt, P46_bch_wt, P47_bch_wt)"></td><td><input type="text" name="P35M_bch_uom" id="P35M_bch_uom" value="Kg"></td><td><input type="text" name="P35M_plug_wt" id="P35M_plug_wt" value="<?php echo $P35M_plug_wt; ?>" onKeyUp="return plug(this, P28_plug_wt, P30_plug_wt, P32_plug_wt, P33_plug_wt,P35_plug_wt, P35W_plug_wt, P38_plug_wt, P41_plug_wt, P42_plug_wt, P43_plug_wt, P46_plug_wt, P47_plug_wt)"></td><td><input type="text" name="P35M_plug_uom" id="P35M_plug_uom" value="g"></td><td><input type="text" name="P35M_max_lot" id="P35M_max_lot" value="<?php echo $P35M_max_lot; ?>" onKeyUp="return autocalearn(this, P28_max_lot, P30_max_lot, P32_max_lot, P33_max_lot, P35_max_lot, P35W_max_lot, P38_max_lot, P41_max_lot, P42_max_lot, P43_max_lot, P46_max_lot, P47_max_lot)"></td><td><input type="text" name="P35M_max_lot_uom" id="P35M_max_lot_uom" value="Lot"></td><td><b><input type="text" name="P35M_max_doz" id="P35M_max_doz" value="<?php echo $P35M_max_doz; ?>" size="12" readonly="readonly" onClick="return doz(this, P28_max_doz, P30_max_doz, P32_max_doz, P33_max_doz,P35_max_doz, P35W_max_doz, P38_max_doz, P41_max_doz, P42_max_doz, P43_max_doz, P46_max_doz, P47_max_doz)"></b></td><td><input type="text" name="P35M_max_doz_uom" id="P35M_max_doz_uom" value="Doz"></td></tr> <tr><td><input type="text" name="P35W" id="P35W" value="P35W"></td><td><input type="text" name="P35W_bch_wt" id="P35W_bch_wt" value="<?php echo $P35W_bch_wt; ?>" onKeyUp="return autobch(this, P28_bch_wt, P30_bch_wt, P32_bch_wt, P33_bch_wt, P35_bch_wt, P35M_bch_wt, P38_bch_wt, P41_bch_wt, P42_bch_wt, P43_bch_wt, P46_bch_wt, P47_bch_wt)"></td><td><input type="text" name="P35W_bch_uom" id="P35W_bch_uom" value="Kg" ></td><td><input type="text" name="P35W_plug_wt" id="P35W_plug_wt" value="<?php echo $P35W_plug_wt; ?>" onKeyUp="return plug(this, P28_plug_wt, P30_plug_wt, P32_plug_wt, P33_plug_wt, P35_plug_wt, P35M_plug_wt, P38_plug_wt, P41_plug_wt, P42_plug_wt, P43_plug_wt, P46_plug_wt, P47_plug_wt)"></td><td><input type="text" name="P35W_plug_uom" id="P35W_plug_uom" value="g" ></td><td><input type="text" name="P35W_max_lot" id="P35W_max_lot" value="<?php echo $P35W_max_lot; ?>" onKeyUp="return autocalearn(this, P28_max_lot, P30_max_lot, P32_max_lot, P33_max_lot, P35_max_lot, P35M_max_lot, P38_max_lot, P41_max_lot, P42_max_lot, P43_max_lot, P46_max_lot, P47_max_lot)"></td><td><input type="text" name="P35W_max_lot_uom" id="P35W_max_lot_uom" value="Lot" ></td><td><b><input type="text" name="P35W_max_doz" id="P35W_max_doz" value="<?php echo $P35W_max_doz; ?>" onClick="return doz(this, P28_max_doz, P30_max_doz, P32_max_doz, P33_max_doz,P35_max_doz, P35M_max_doz, P38_max_doz, P41_max_doz, P42_max_doz, P43_max_doz, P46_max_doz, P47_max_doz)"></b></td><td><input type="text" name="P35W_max_doz_uom" id="P35W_max_doz_uom" value="Doz"></td></tr> <tr><td><input type="text" name="P38" id="P38" value="P38"></td><td><input type="text" name="P38_bch_wt" id="P38_bch_wt" value="<?php echo $P38_bch_wt; ?>" onKeyUp="return autobch(this, P28_bch_wt, P30_bch_wt, P32_bch_wt, P33_bch_wt, P35_bch_wt, P35M_bch_wt, P35W_bch_wt, P42_bch_wt, P43_bch_wt, P46_bch_wt, P47_bch_wt)"></td><td><input type="text" name="P38_bch_uom" id="P38_bch_uom" value="Kg" ></td><td><input type="text" name="P38_plug_wt" id="P38_plug_wt" value="<?php echo $P38_plug_wt; ?>" onKeyUp="return plug(this, P28_plug_wt, P30_plug_wt, P32_plug_wt, P33_plug_wt,P35_plug_wt, P35M_plug_wt, P35W_plug_wt, P41_plug_wt, P42_plug_wt, P43_plug_wt, P46_plug_wt, P47_plug_wt)"></td><td><input type="text" name="P38_plug_uom" id="P38_plug_uom" value="g"></td><td><input type="text" name="P38_max_lot" id="P38_max_lot"  value="<?php echo $P38_max_lot; ?>"  onKeyUp="return autocalearn(this, P28_max_lot, P30_max_lot, P32_max_lot, P33_max_lot, P35_max_lot, P35M_max_lot, P35W_max_lot, P42_max_lot, P43_max_lot, P46_max_lot, P47_max_lot)"></td><td><input type="text" name="P38_max_lot_uom" id="P38_max_lot_uom" value="Lot" ></td><td><b><input type="text" name="P38_max_doz" id="P38_max_doz" value="<?php echo $P38_max_doz; ?>" onClick="return doz(this, P28_max_doz, P30_max_doz, P32_max_doz, P33_max_doz,P35_max_doz, P35M_max_doz, P35W_max_doz, P41_max_doz, P42_max_doz, P43_max_doz, P46_max_doz, P47_max_doz)"></b></td><td><input type="text" name="P38_max_doz_uom" id="P38_max_doz_uom" value="Doz"></td></tr> <tr><td><input type="text" name="P41" id="P41" value="P41"></td><td><input type="text" name="P41_bch_wt" id="P41_bch_wt" value="<?php echo $P41_bch_wt; ?>" onKeyUp="return autobch(this, P28_bch_wt, P30_bch_wt, P32_bch_wt, P33_bch_wt, P35_bch_wt, P35M_bch_wt, P35W_bch_wt, P38_bch_wt, P42_bch_wt, P43_bch_wt, P46_bch_wt, P47_bch_wt)"></td><td><input type="text" name="P41_bch_uom" id="P41_bch_uom" value="Kg" > </td><td><input type="text" name="P41_plug_wt" id="P41_plug_wt" value="<?php echo $P41_plug_wt; ?>" onKeyUp="return plug(this, P28_plug_wt, P30_plug_wt, P32_plug_wt, P33_plug_wt, P35_plug_wt, P35M_plug_wt, P35W_plug_wt, P38_plug_wt, P42_plug_wt, P43_plug_wt, P46_plug_wt, P47_plug_wt)"></td><td><input type="text" name="P41_plug_uom" id="P41_plug_uom" value="g" ></td><td><input type="text" name="P41_max_lot" id="P41_max_lot" value="<?php echo $P41_max_lot; ?>" onKeyUp="return autocalearn(this, P28_max_lot, P30_max_lot, P32_max_lot, P33_max_lot, P35_max_lot, P35M_max_lot, P35W_max_lot, P38_max_lot, P42_max_lot, P43_max_lot, P46_max_lot, P47_max_lot)"></td><td><input type="text" name="P41_max_lot_uom" id="P41_max_lot_uom" value="Lot"> </td><td><b><input type="text" name="P41_max_doz" id="P41_max_doz" value="<?php echo $P41_max_doz; ?>" onClick="return doz(this, P28_max_doz, P30_max_doz, P32_max_doz, P33_max_doz,P35_max_doz, P35M_max_doz, P35W_max_doz, P38_max_doz, P42_max_doz, P43_max_doz, P46_max_doz, P47_max_doz)"><b></td><td><input type="text" name="P41_max_doz_uom" id="P41_max_doz_uom" value="Doz"></td></tr> <tr><td><input type="text" name="P42" id="P42" value="P42"></td><td><input type="text" name="P42_bch_wt" id="P42_bch_wt" value="<?php echo $P42_bch_wt; ?>" onKeyUp="return autobch(this, P28_bch_wt, P30_bch_wt, P32_bch_wt, P33_bch_wt, P35_bch_wt, P35M_bch_wt, P35W_bch_wt, P38_bch_wt, P41_bch_wt, P43_bch_wt, P46_bch_wt, P47_bch_wt)"></td><td><input type="text" name="P42_bch_uom" id="P42_bch_uom" value="Kg" ></td><td><input type="text" name="P42_plug_wt" id="P42_plug_wt" value="<?php echo $P42_plug_wt; ?>" onKeyUp="return plug(this, P28_plug_wt, P30_plug_wt, P32_plug_wt, P33_plug_wt, P35_plug_wt, P35M_plug_wt, P35W_plug_wt, P38_plug_wt, P41_plug_wt, P43_plug_wt, P46_plug_wt, P47_plug_wt)"></td><td><input type="text" name="P42_plug_uom" id="P42_plug_uom" value="g"></td><td><input type="text" name="P42_max_lot" id="P42_max_lot" value="<?php echo $P42_max_lot; ?>" onKeyUp="return autocalearn(this, P28_max_lot, P30_max_lot, P32_max_lot, P33_max_lot, P35_max_lot, P35M_max_lot, P35W_max_lot, P38_max_lot, P41_max_lot, P43_max_lot, P46_max_lot, P47_max_lot)"></td><td><input type="text" name="P42_max_lot_uom" id="P42_max_lot_uom" value="Lot" ></td><td><b><input type="text" name="P42_max_doz" id="P42_max_doz" value="<?php echo $P42_max_doz; ?>" onClick="return doz(this, P28_max_doz, P30_max_doz, P32_max_doz, P33_max_doz,P35_max_doz, P35M_max_doz, P35W_max_doz, P38_max_doz, P41_max_doz, P43_max_doz, P46_max_doz, P47_max_doz)"></b></td><td><input type="text" name="P42_max_doz_uom" id="P42_max_doz_uom" value="Doz"></td></tr> <tr><td><input type="text" name="P43" id="P43" value="P43" ></td><td><input type="text" name="P43_bch_wt" id="P43_bch_wt" value="<?php echo $P43_bch_wt; ?>" onKeyUp="return autobch(this, P28_bch_wt, P30_bch_wt, P32_bch_wt, P33_bch_wt, P35_bch_wt, P35M_bch_wt, P35W_bch_wt, P38_bch_wt, P41_bch_wt, P42_bch_wt, P46_bch_wt, P47_bch_wt)"></td><td><input type="text" name="P43_bch_uom" id="P43_bch_uom" value="Kg"></td><td><input type="text" name="P43_plug_wt" id="P43_plug_wt" value="<?php echo $P43_plug_wt; ?>" onKeyUp="return plug(this, P28_plug_wt, P30_plug_wt, P32_plug_wt, P33_plug_wt,P35_plug_wt, P35M_plug_wt, P35W_plug_wt, P38_plug_wt, P41_plug_wt, P42_plug_wt, P46_plug_wt, P47_plug_wt)"></td><td><input type="text" name="P43_plug_uom" id="P43_plug_uom" value="g" ></td><td><input type="text" name="P43_max_lot" id="P43_max_lot" value="<?php echo $P43_max_lot; ?>" onKeyUp="return autocalearn(this, P28_max_lot, P30_max_lot, P32_max_lot, P33_max_lot, P35_max_lot, P35M_max_lot, P35W_max_lot, P38_max_lot, P41_max_lot, P42_max_lot, P46_max_lot, P47_max_lot)"></td><td><input type="text" name="P43_max_lot_uom" id="P43_max_lot_uom" value="Lot"></td><td><b><input type="text" name="P43_max_doz" id="P43_max_doz" value="<?php echo $P43_max_doz; ?>" onClick="return doz(this, P28_max_doz, P30_max_doz, P32_max_doz, P33_max_doz,P35_max_doz, P35M_max_doz, P35W_max_doz, P38_max_doz, P41_max_doz, P42_max_doz, P46_max_doz, P47_max_doz)"></b></td><td><input type="text" name="P43_max_doz_uom" id="P43_max_doz_uom" value="Doz"></td></tr> 								 <tr><td><input type="text" name="P46" id="P46" value="P46"></td><td><input type="text" name="P46_bch_wt" id="P46_bch_wt" value="<?php echo $P46_bch_wt; ?>" onKeyUp="return autobch(this, P28_bch_wt, P30_bch_wt, P32_bch_wt, P33_bch_wt, P35_bch_wt, P35M_bch_wt, P35W_bch_wt, P38_bch_wt, P41_bch_wt, P42_bch_wt, P43_bch_wt, P47_bch_wt)"></td><td><input type="text" name="P46_bch_uom" id="P46_bch_uom" value="Kg"></td><td><input type="text" name="P46_plug_wt" id="P46_plug_wt"  value="<?php echo $P46_plug_wt; ?>" onKeyUp="return plug(this, P28_plug_wt, P30_plug_wt, P32_plug_wt, P33_plug_wt, P35_plug_wt, P35M_plug_wt, P35W_plug_wt, P38_plug_wt, P41_plug_wt, P42_plug_wt, P43_plug_wt, P47_plug_wt)"></td><td><input type="text" name="P46_plug_uom" id="P46_plug_uom" value="g" ></td><td><input type="text" name="P46_max_lot" id="P46_max_lot" value="<?php echo $P46_max_lot; ?>" onKeyUp="return autocalearn(this, P28_max_lot, P30_max_lot, P32_max_lot, P33_max_lot, P35_max_lot, P35M_max_lot, P35W_max_lot, P38_max_lot, P41_max_lot, P42_max_lot, P43_max_lot, P47_max_lot)"></td><td><input type="text" name="P46_max_lot_uom" id="P46_max_lot_uom" value="Lot"></td><td><b><input type="text" name="P46_max_doz" id="P46_max_doz"  value="<?php echo $P46_max_doz; ?>" onClick="return doz(this, P28_max_doz, P30_max_doz, P32_max_doz, P33_max_doz,P35_max_doz, P35M_max_doz, P35W_max_doz, P38_max_doz, P41_max_doz, P42_max_doz, P43_max_doz, P47_max_doz)"></b></td><td><input type="text" name="P46_max_doz_uom" id="P46_max_doz_uom" value="Doz"></td></tr> <tr><td><input type="text" name="P47" id="P47" value="P47"></td><td><input type="text" name="P47_bch_wt" id="P47_bch_wt" value="<?php echo $P47_bch_wt; ?>" onKeyUp="return autobch(this, P28_bch_wt, P30_bch_wt, P32_bch_wt, P33_bch_wt, P35_bch_wt, P35M_bch_wt, P35W_bch_wt, P38_bch_wt, P41_bch_wt, P42_bch_wt, P43_bch_wt, P46_bch_wt)"></td><td><input type="text" name="P47_bch_uom" id="P47_bch_uom" value="Kg"></td><td><input type="text" name="P47_plug_wt" id="P47_plug_wt" value="<?php echo $P47_plug_wt; ?>" onKeyUp="return plug(this, P28_plug_wt, P30_plug_wt, P32_plug_wt, P33_plug_wt,P35_plug_wt, P35M_plug_wt, P35W_plug_wt, P38_plug_wt, P41_plug_wt, P42_plug_wt, P43_plug_wt, P46_plug_wt)"></td><td><input type="text" name="P47_plug_uom" id="P47_plug_uom" value="g"></td><td><input type="text" name="P47_max_lot" id="P47_max_lot" value="<?php echo $P47_max_lot; ?>" onKeyUp="return autocalearn(this, P28_max_lot, P30_max_lot, P32_max_lot, P33_max_lot, P35_max_lot, P35M_max_lot, P35W_max_lot, P38_max_lot, P41_max_lot, P42_max_lot, P43_max_lot, P46_max_lot)"></td><td><input type="text" name="P47_max_lot_uom" id="P47_max_lot_uom" value="Lot"></td><td><b><input type="text" name="P47_max_doz" id="P47_max_doz" value="<?php echo $P47_max_doz; ?>" onClick="return doz(this, P28_max_doz, P30_max_doz, P32_max_doz, P33_max_doz,P35_max_doz, P35M_max_doz, P35W_max_doz, P38_max_doz, P41_max_doz, P42_max_doz, P43_max_doz, P46_max_doz)"></b></td><td><input type="text" name="P47_max_doz_uom" id="P47_max_doz_uom" value="Doz"></td></tr> <tr><td><input type="text" name="Total" id="Total" value="Total"></td><td><input type="text" name="Total_bch_wt" id="Total_bch_wt" value="<?php echo $Total_bch_wt; ?>"></td><td><input type="text" name="Total_bch_uom" id="Total_bch_uom" value="Kg"></td><td><input type="text" name="Total_plug_wt" id="Total_plug_wt" value="<?php echo $Total_plug_wt; ?>" ></td><td><input type="text" name="Total_plug_uom" id="Total_plug_uom" value="g"></td><td><input type="text" name="Total_max_lot" id="Total_max_lot" value="<?php echo $Total_max_lot; ?>" ></td><td><input type="text" name="Total_max_lot_uom" id="Total_max_lot_uom" value="Lot" ></td><td><b><input type="text" name="Total_max_doz" id="Total_max_doz" value="<?php echo $Total_max_doz; ?>" ></b></td><td><input type="text" name="Total_max_doz_uom" id="Total_max_doz_uom" value="Doz" ></td></tr> </table></div></form></body></html>

I attach my sample form.Thank you so muhc

post-42557-0-06459000-1334548150_thumb.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...