else $('#non_attendees ol.dragdrop').append('<li personnel_id="'+person.personnel_id+'" data-personnel_id="'+person.personnel_id+'">'+person.rank+' '+person.lastname+', '+person.firstname+'</li>'); } }); <?php echo $ATC->user_has_permission(ATC_PERMISSION_ACTIVITIES_EDIT) ? '$("#attendees ol.dragdrop,#non_attendees ol.dragdrop").sortable({ connectWith: ".dragdrop.attendees" }).disableSelection();' : ''; ?> </script> <?php exit; } $ATC->gui_output_page_header('Activities'); $activities = $ATC->get_activities(); ?> <a href="?action=icallinks" class="button external ical"> Load this calendar into my device </a> <form name="activitylist" id="activitylist" method="POST" style="clear:right;"> <input type="hidden" name="activitylist" value="1" /> <table class="tablesorter"> <thead> <tr> <th rowspan="2"> Activity </th> <th rowspan="2"> Officer In Charge </th> <th rowspan="2"> 2<sup>nd</sup> Contact </th> <th colspan="2"> Date </th> <th colspan="2"> Attendance </th> <td>
} catch (ATCExceptionDBError $e) { header("HTTP/1.0 500 Internal Server Error"); echo 'Caught exception: ', $e->getMessage(), "\n"; } catch (ATCExceptionDBConn $e) { header("HTTP/1.0 500 Internal Server Error"); 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>