\n");
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
include "form.messages.php";
return;
}
// Setup default values on insert
if ($naction == 'add') {
$initTableName = $CurrentTable;
$tarray = initializeTableArray($initTableName);
extract($tarray, EXTR_OVERWRITE);
$menu_group = 'Any';
$order_quantity = 1;
$discount_percentage = 0.0;
$discount_amount = 0;
}
// Check for a current menu group
$currentGroup = db_getVal("SELECT distinct menu_group FROM hotlunch_schedules_discounts WHERE school_num = $school_num AND schedule_num = $schedule_num");
?>