0) {
// Format school_year value
if (date("m",time()) < '12') {
$cYr = date("Y",time());
$nYr = $cYr + 1;
}
else {
$cYr = date("Y",time()) + 1;
$nYr = $cYr + 1;
}
$open_invoices = db_query("SELECT record_num FROM invoice_header WHERE school_num = $school_num AND status = 'Open' ORDER BY record_num");
$inv_link = "";
while ($row = db_fetch_assoc($open_invoices)) {
$invoice_num = sprintf("%06d",$row['record_num'] + 500);
$record_num = $row['record_num'];
$inv_link .= "-- View Open Invoice #$invoice_num --
";
}
$message = "-- Your School Has a Current Balance Owing of :: $" . number_format($current_balance_owing,2) . " --
\n$inv_link";
$class = "errorspan";
displayStatusMessage($message,$class);
echo("
\n");
include "paypal_form.hotlunches.php";
}
endTemplate();
?>