"; //echo $specificselected."
"; //convert to lb if newSweight entered in kg mode if ($wunit == "kg") { $newSweight = $newSweight * 2.20462; } include ("cfg.php"); //get model weights $sql = "SELECT * FROM models ORDER BY `order` ASC"; $models = read($sql); $models_ct = $y; if ($model == "1") { //get weight for [select] model $sql = "SELECT `weight` FROM models WHERE `order` = '".$model."'"; $weightx = read($sql); } else { //get weight for [select] model $sql = "SELECT `weight` FROM models WHERE `name` = '".$model."'"; $weightx = read($sql); } //but if someone puts in their own weight use that if ($newSweight != "") { $currentSweight = $newSweight; $specificselected = "selected"; } elseif ($model == "other") { $newSweight = $passspecifiedweight; $specificselected = "selected"; $currentSweight = $newSweight; } else { $currentSweight = $weightx[0][weight]; } //get categories $sql = "SELECT * FROM category WHERE `status` = 2 ORDER BY `order` ASC"; $info = read($sql); $info_ct = $y; ?> $value ) { if ($c[$key] == "on" ) { $sql = "SELECT `weight`,`type` FROM items WHERE `id` = $key"; $res = read( $sql ); if ( $res[0][type] == 1 ) { $itemstock_ct++; $weight1 = $weight1 + $res[0][weight]; } else { $itemaftermarket_ct++; $weight2 = $weight2 + $res[0][weight]; } } } $endweight = ($currentSweight - $weight1) + $weight2; $sql = "SELECT count(`id`) FROM items"; $itemcount = read( $sql ); $sql = "SELECT count(`id`) FROM items WHERE `type` = 1"; $itemcount1 = read( $sql ); $sql = "SELECT count(`id`) FROM items WHERE `type` = 2"; $itemcount2 = read( $sql ); ?>

start weight using: alternative:
No. of items removed /
No. of items added /
No. of items changed 0 /
total weight removed 0.00
total weight added 0.00
overall weight difference 0) echo "+"; ?>0.00
% difference 0) echo "+"; echo $percent; ?>%
end weight 0.00
units lb
kg



$value ) { if ($c[$items[$item][id]] == "on") { $checked = "checked"; $linecolor = "s"; } else { $checked = ""; $linecolor = ""; } } ?>
name weight notes