| | 8 | // Previous and next month timestamps |
| | 9 | $next = mktime(0, 0, 0, $month + 1, 1, $year); |
| | 10 | $prev = mktime(0, 0, 0, $month - 1, 1, $year); |
| | 11 | |
| | 12 | // Previous and next month query URIs |
| | 13 | $prev = Router::$current_uri.'?'.http_build_query(array_merge($_GET, array('month' => date('n', $prev), 'year' => date('Y', $prev)))); |
| | 14 | $next = Router::$current_uri.'?'.http_build_query(array_merge($_GET, array('month' => date('n', $next), 'year' => date('Y', $next)))); |
| | 15 | |
| 10 | | <caption><?php echo strftime('%B %Y', mktime(0, 0, 0, $month, 1, $year)) ?></caption> |
| | 18 | <tr class="controls"> |
| | 19 | <td class="prev"><?php echo html::anchor($prev, '«') ?></td> |
| | 20 | <td class="title" colspan="5"><?php echo strftime('%B %Y', mktime(0, 0, 0, $month, 1, $year)) ?></td> |
| | 21 | <td class="next"><?php echo html::anchor($next, '»') ?></td> |
| | 22 | </tr> |