\n$schedule_name - $curr_mtitle"; 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"; // // If classes have been selected then display the students from those classes // if (isset($naction) && $naction == 'verify') { ?>
::
   
 
   
   
 




0 && count($selected_items) > 0) { ?> $total) $amount_paid = $total; // Calculate new order total $order_total = $order_subtotal; if ($disc > 0 && $order_subtotal > $disc) $order_total = $order_subtotal - $disc; $change_amount = $total - $order_total; $order_subtotal = number_format($order_subtotal,2); $order_total = number_format($order_total,2); $amount_paid = number_format($amount_paid,2); // Log the change in order total if ($change_amount > 0) { $user_num = intval(db_getVal("SELECT user_num FROM people WHERE school_num = $base_school_num AND record_num = $pnum")); $entered_time = time(); $trx_time = date("Y-m-d H:i:s",$entered_time); $totals = calcOrderTotal($order_num,$schedule_num,'Y'); $logmsg = 'Order Items Deleted'; $additional_note = "#$order_num - Previous Order Total: $currencySymbol" . $total . " => New Order Total: $currencySymbol" . $totals['order_total']; $lognote = db_escape_string("#$order_num - $curr_mtitle: $currencySymbol" . number_format($change_amount,2) . '
' . $additional_note); $query = "INSERT INTO user_account " . "(school_num,user_num,schedule_num,transaction_datetime,transaction_type,note,transaction_amount,transaction_fee,payment_method,payment_reference,order_payments,deleted,entered_time,transaction_status) " . "VALUES ($school_num,$user_num,$schedule_num,'$trx_time','TRX Note','$logmsg - $lognote',0,0,NULL,'',NULL,'N',$entered_time,'Closed')"; db_query($query); $rnum = db_insert_id(); db_query("UPDATE user_account SET additional_note = '" . db_escape_string($additional_note) . "' WHERE record_num = $rnum"); logOrderChange($order_num, "ORDER ITEM DELETED", "hotlunch.order_deletion.php"); // Get person's name $name = db_getVal("SELECT concat(first_name,' ',last_name) FROM people WHERE record_num = $pnum"); $class = 'data-odd'; if ($i % 2) $class = 'data-even'; $count++; ?>



Menu Date:

0) $classes[] = "class_$class_num"; $class = 'data-even'; if ($count % 2) $class = 'data-odd'; $count++; ?> 0) { ?> 0) $classes[] = "class_$class_num"; ?> 0) { ?> 0) { $class = 'data-even'; if ($count % 2) $class = 'data-odd'; $count++; $classes[] = "class_$class_num"; ?>
::
() ::  
() ::  
() ::
:: ") ?>