$path_to_root = "../..";
include($path_to_root . "/includes/session.inc");
-page(_("Units of Measure"));
+page(_($help_context = "Units of Measure"));
include_once($path_to_root . "/includes/ui.inc");
display_error(_("The unit of measure code cannot be empty."));
set_focus('abbr');
}
+ if (strlen(db_escape($_POST['abbr']))>(20+2))
+ {
+ $input_error = 1;
+ display_error(_("The unit of measure code is too long."));
+ set_focus('abbr');
+ }
if (strlen($_POST['description']) == 0)
{
$input_error = 1;
$result = get_all_item_units(check_value('show_inactive'));
start_form();
-start_table("$table_style width=40%");
+start_table(TABLESTYLE, "width=40%");
$th = array(_('Unit'), _('Description'), _('Decimals'), "", "");
inactive_control_column($th);
//----------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != '')
{