\n$schedule_name"; include "hotlunch_reports.menu.php"; echo("
\n"); if (array_key_exists('naction',$_GET)) $naction = $_GET['naction']; if (array_key_exists('naction',$_POST)) $naction = $_POST['naction']; $school_num = $school_record['record_num']; include "form.messages.php"; $orders = db_query("SELECT hloh.*,p.first_name,p.last_name FROM hotlunch_order_header AS hloh, people AS p " . "WHERE hloh.school_num = $school_num " . "AND p.school_num = $base_school_num " . "AND p.record_num = hloh.ordered_by_num " . "AND hloh.schedule_num = $schedule_num " . "ORDER BY last_name, first_name"); $numOrders = db_num_rows($orders); if ($numOrders == 0) { $error_message = getLanguageText('ERRORMSG-NO-ORDERS-FOUND'); $action = 'schedule-reports'; $naction = ''; header("Location: /?action=$action&naction=$naction$headerArgs&form_message=" . urlencode($form_message) . "&error_message=" . urlencode($error_message)); exit(); } echo("

" . getLanguageText('TEXT-ORDERS') . ": $numOrders

"); ?> $status"; $order_num = "$onum"; } $order_num = "$order_num"; $class = 'data-odd'; if ($count % 2) $class = 'data-even'; $count++; ?>