Exemplo n.º 1
0
 $street = $fw->clean_input($_POST['street']);
 $city = $fw->clean_input($_POST['city']);
 $state = $fw->clean_input($_POST['state']);
 $zipcode = $fw->clean_input($_POST['zipcode']);
 $indicator_tag = $fw->clean_input($_POST['indicator_tag']);
 $indicator_manu = $fw->clean_input($_POST['indicator_manu']);
 $indicator_model = $fw->clean_input($_POST['indicator_model']);
 $indicator_serial = $fw->clean_input($_POST['indicator_serial']);
 $scale_manu = $fw->clean_input($_POST['scale_manu']);
 $scale_model = $fw->clean_input($_POST['scale_model']);
 $scale_serial = $fw->clean_input($_POST['scale_serial']);
 $scale_capacity = $fw->clean_input($_POST['scale_capacity']);
 $scale_divisions = $fw->clean_input($_POST['scale_divisions']);
 $units = $fw->clean_input($_POST['units']);
 $date = $fw->getDate();
 $old = $fw->getScalePure($scale_id);
 $comments = "";
 if ($old) {
     if (stripslashes($companyname) != $old['companyname']) {
         $comments .= "Changed customer name from " . $old['companyname'] . " to " . $companyname . " <br />\n";
     }
     if (stripslashes($street) != $old['street']) {
         $comments .= "Changed customer street from " . $old['street'] . " to " . $street . " <br />\n";
     }
     if (stripslashes($city) != $old['city']) {
         $comments .= "Changed customer city from " . $old['city'] . " to " . $city . " <br />\n";
     }
     if (stripslashes($state) != $old['state']) {
         $comments .= "Changed customer state from " . $old['state'] . " to " . $state . " <br />\n";
     }
     if (stripslashes($zipcode) != $old['zipcode']) {