{
$input_error = 1;
display_error(_("The unit of measure code cannot be empty."));
+ set_focus('abbr');
}
if (strlen($_POST['description']) == 0)
{
$input_error = 1;
display_error(_("The unit of measure description cannot be empty."));
+ set_focus('description');
}
if (!is_numeric($_POST['decimals']))
{
$input_error = 1;
display_error(_("The number of decimal places must be integer."));
+ set_focus('decimals');
}
} else
text_row(_("Unit Abbreviation:"), 'abbr', null, 20, 20);
text_row(_("Descriptive Name:"), 'description', null, 40, 40);
-text_row(_("Decimal Places:"), 'decimals', null, 40, 40);
+text_row(_("Decimal Places:"), 'decimals', null, 3, 3);
end_table(1);