J
|
Jane 10/4/2007 |
Hi,
and replace it with this one: { if ($field=="Price" || $field=="Quantity") echo '<input type="text" name="'.$cfield.'" '.GetEditParams($field).' value="'.htmlspecialchars($value).'" onchange="java script: UpdateSum();">'; else echo '<input type="text" name="'.$cfield.'" '.GetEditParams($field).' value="'.htmlspecialchars($value).'">'; }
function UpdateSum() { document.editform.value_Total.value = document.editform.value_UnitPrice.value*document.editform.value_Quantity.value; }
|