diff options
Diffstat (limited to 'includes/components/planner.inc')
-rw-r--r-- | includes/components/planner.inc | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/includes/components/planner.inc b/includes/components/planner.inc index f005f52..b5fc7a5 100644 --- a/includes/components/planner.inc +++ b/includes/components/planner.inc @@ -482,23 +482,29 @@ </style> <h2>Front planner</h2> + + <div class="alert alert-warning"> + <b>The fronting schedule will be removed on June 15<sup>th</sup>.</b> Due to internal discussion, we have decided to remove the fronting schedule as it is causing a lot of trouble inside the respective systems. Archives will be kept in the database. + </div> + <table id="planner"> <tbody> <?php - day("Yesterday", -1); - day("Today", 0); - day("Tomorrow", 1); - day(date('l j', time() + 86400 * 2), 2); - day(date('l j', time() + 86400 * 3), 3); - day(date('l j', time() + 86400 * 4), 4); - day(date('l j', time() + 86400 * 5), 5); - day(date('l j', time() + 86400 * 6), 6); - day(date('l j', time() + 86400 * 7), 7); - day(date('l j', time() + 86400 * 8), 8); - day(date('l j', time() + 86400 * 9), 9); - day(date('l j', time() + 86400 * 10), 10); - day(date('l j', time() + 86400 * 11), 11); - day(date('l j', time() + 86400 * 12), 12); + + if (time() - 86400 < 1686787200) day("Yesterday", -1); + if (time() < 1686787200) day("Today", 0); + if (time() + 86400 < 1686787200) day("Tomorrow", 1); + if (time() + 86400 * 2 < 1686787200) day(date('l j', time() + 86400 * 2), 2); + if (time() + 86400 * 3 < 1686787200) day(date('l j', time() + 86400 * 3), 3); + if (time() + 86400 * 4 < 1686787200) day(date('l j', time() + 86400 * 4), 4); + if (time() + 86400 * 5 < 1686787200) day(date('l j', time() + 86400 * 5), 5); + if (time() + 86400 * 6 < 1686787200) day(date('l j', time() + 86400 * 6), 6); + if (time() + 86400 * 7 < 1686787200) day(date('l j', time() + 86400 * 7), 7); + if (time() + 86400 * 8 < 1686787200) day(date('l j', time() + 86400 * 8), 8); + if (time() + 86400 * 9 < 1686787200) day(date('l j', time() + 86400 * 9), 9); + if (time() + 86400 * 10 < 1686787200) day(date('l j', time() + 86400 * 10), 10); + if (time() + 86400 * 12 < 1686787200) day(date('l j', time() + 86400 * 11), 11); + if (time() + 86400 * 12 < 1686787200) day(date('l j', time() + 86400 * 12), 12); ?> </tbody> |