10) { $expiry_message = "Warning: Access to the Application Will Expire in " . number_format($days_left) . " days"; $class = "success"; } if ($days_left <= 10 && $days_left >= 0) { $dtext = ($days_left != 1) ? "Days" : "Day"; if ($days_left > 0) $expiry_message = "Warning: Application Access Will Expire in " . number_format($days_left) . " $dtext"; else $expiry_message = "Warning: Application Access Will Expire Today. Contact Support Immediately if You Wish to Continue."; $class = "error"; } if ($days_left < 0) { $days_left = 15 + $days_left; $expiry_message = "Warning: Application Access Has Expired. You Will Have Access to the Application for a $days_left Day Grace Period"; $class = "error"; } // Determine if there is a balance owing $current_balance_owing = db_getVal("SELECT sum(total - amount_paid) FROM invoice_header WHERE school_num = $base_school_num AND status = 'Open'"); if (strlen($expiry_message) || $current_balance_owing > 0) { ?>
| Your School Has a Current Balance Owing of :: |
|
|