Skip to content
Snippets Groups Projects
Commit 613f20de authored by Tim Steiner's avatar Tim Steiner
Browse files

Show monthly report starting on the 16th of the given month.

parent 657f84ea
No related branches found
Tags
No related merge requests found
...@@ -5,9 +5,10 @@ ...@@ -5,9 +5,10 @@
$now = new Zend_Date(); $now = new Zend_Date();
$endYear = $now->get(Zend_Date::YEAR); $endYear = $now->get(Zend_Date::YEAR);
$endMonth = $now->get(Zend_Date::MONTH); $endMonth = $now->get(Zend_Date::MONTH);
$endDay = $now->get(Zend_Date::DAY);
$month = 9; $month = 9;
$year = 2007; $year = 2007;
while ($year < $endYear || $month < $endMonth) { while ($year < $endYear || ($month < $endMonth || ($month == $endMonth && $endDay > 15))) {
?> ?>
<li> <li>
<a href="/Reports/ApprovedCourses/<?php echo $year; ?>/<?php echo $month; ?>"> <a href="/Reports/ApprovedCourses/<?php echo $year; ?>/<?php echo $month; ?>">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment