<% &main::checkPermissions("","APPROVE"); $screenTitle = "Approve Additions"; $events_db = new DBFile($main::events_db); $schedule_db = new DBFile($main::schedule_db); $events = &Event::search( $events_db, $schedule_db, '', {'approved'=>'0'}); #$events = $events_db->getRecords( {'approved'=>'0'} ); %> Calendar Administration : <%= $screenTitle %> ">

The following events are pending approval: <% $total = 0; foreach $e (@$events) { $total++; $id = $e->{'details'}->{'id'}; $title = $e->{'details'}->{'title'}; $desc = $e->{'details'}->{'description'}; $author = $e->{'details'}->{'author_name'}." (".$e->{'details'}->{'author_id'}.")"; %> <% } %> <% if ($total==0) { %> <% } else { %> <% } %>
Action Details

Title: <%=$title%>
Description: <%=$desc%>
Author: <%=$author%>
ID: <%= $id%>
Schedule: <%= &Event::getScheduleDescription($e->{'schedule'}) %>
No Events Pending Approval