<?php require_once 'lib/path.php'; $action = param('action', 'none'); $do = param('do', 'none'); if ($do == 'none') { echo '<h1>Imperial Republic Year Update</h1>'; } if ($action == 'none') { $page = intparam('page', 1); $prev = $page - 1; $next = $page + 1; $count = Year::getTotalYears(); ?> <table class="table table-hover"> <tr> <th>Year</th> <th>Updated</th> <th></th> </tr> <?php foreach (Year::getYears($page) as $year) { ?> <tr> <td> <?php echo $year->getFullYear(); ?> <?php if ($year->isCurrent()) { echo '(Current)';