foreach ($missingnok as $obj) { echo '<tr>'; echo ' <td>' . $obj->rank . '</td>'; echo ' <td><a href="personnel.php?id=' . $obj->personnel_id . '">' . $obj->display_name . '</a></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 { $missinginvoices = $ATC_Finance->get_missing_invoices(); if (count($missinginvoices)) { ?> <h2> Cadets missing term invoices for attendance </h2> <table class="tablesorter" id="missinginvoices"> <thead> <tr> <th rowspan="2"> Rank </th> <th rowspan="2"> Name </th> <th colspan="2"> Term </th> </tr> <tr> <th> Start date </th> <th> End date </th> </thead> <tbody>
echo 'Caught exception: ', $e->getMessage(), "\n"; } catch (ATCException $e) { header("HTTP/1.0 400 Bad Request"); echo 'Caught exception: ', $e->getMessage(), "\n"; } catch (Exception $e) { header("HTTP/1.0 500 Internal Server Error"); echo 'Caught exception: ', $e->getMessage(), "\n"; } exit; } $ATC->gui_output_page_header('Finance'); if (!$ATC->user_has_permission(ATC_PERMISSION_FINANCE_VIEW)) { throw new ATCExceptionInsufficientPermissions("Insufficient rights to view this page"); } try { $missinginvoices = $ATC->get_missing_invoices(); if (count($missinginvoices)) { ?> <h2> Cadets missing term invoices for attendance </h2> <table class="tablesorter" id="missinginvoices"> <thead> <tr> <th rowspan="2"> Rank </th> <th rowspan="2"> Name </th> <th colspan="2"> Term </th> </tr> <tr> <th> Start date </th> <th> End date </th> </thead> <tbody>