echo ' <td>' . $obj->display_name . '</td>'; echo ' <td>' . date(ATC_SETTING_DATE_OUTPUT, strtotime($obj->joined_date)) . '</td>'; echo ' <td>' . ((int) date('Y') - (int) date('Y', strtotime($obj->joined_date))) . '</td>'; echo '</tr>'; } ?> </tbody> </table> <?php } } } catch (ATCExceptionInsufficientPermissions $e) { // We just don't show the error if it was a permission issue, that's fine, we don't know who's logged in, after all } try { $missingnok = $ATC->get_cadet_without_nok(); if (count($missingnok)) { ?> <h2> Cadets missing Next of Kin records </h2> <table class="tablesorter"> <thead> <tr> <th> Rank </th> <th> Name </th> </tr> </thead> <tbody> <?php foreach ($missingnok as $obj) { echo '<tr>'; echo ' <td>' . $obj->rank . '</td>';