First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
$ValidAccess = 2010;
|
||||
require_once("include/globals.php");
|
||||
|
||||
// Start the template and output buffering
|
||||
startTemplate();
|
||||
$noTitle = 'Y';
|
||||
|
||||
|
||||
//
|
||||
// Get the school content for the login page
|
||||
//
|
||||
$content = "";
|
||||
$Pcontent = $content;
|
||||
$studentText = $GlobalText['Students'];
|
||||
$studentLink = $GlobalText['StudentLink'];
|
||||
|
||||
$displayPaymentForm = false;
|
||||
|
||||
|
||||
$current_balance_owing = db_getVal("SELECT sum(total - amount_paid) FROM invoice_header WHERE school_num = $base_school_num AND status = 'Open'");
|
||||
if ($current_balance_owing > 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 .= "-- <a href='?action=inv-print&invoice_num=$record_num&school_num=$school_num' style='color: #ffffff'>View Open Invoice #$invoice_num</a> --<br>";
|
||||
}
|
||||
|
||||
$message = "-- Your School Has a Current Balance Owing of :: $" . number_format($current_balance_owing,2) . " --<br>\n$inv_link";
|
||||
$class = "errorspan";
|
||||
displayStatusMessage($message,$class);
|
||||
echo("<br>\n");
|
||||
include "paypal_form.hotlunches.php";
|
||||
}
|
||||
|
||||
endTemplate();
|
||||
?>
|
||||
Reference in new issue
Block a user