} ?> </tbody> </table> <script> $('#activityfees tfoot td').html('<?php echo $ATC_Finance->currency_format(ATC_SETTING_FINANCE_MONEYFORMAT, $total); ?> '); </script> <?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 { $cadetsriskingsignout = $ATC->get_cadets_risking_sign_off(); if (count($cadetsriskingsignout)) { ?> <h2> Cadets risking being signed out (BETA - might not be accurate)</h2> <table class="tablesorter" id="cadetsriskingsignout"> <thead> <tr> <th> Rank </th> <th> Name </th> <th> Parade nights missed </th> </tr> </thead> <tbody> <?php foreach ($cadetsriskingsignout as $obj) { echo '<tr>';