.
*/
include("./include/include.php");
require_once(FILESYSTEMROOTPATH."jc/include/classes/DefaultLayout.php");
$layout = new DefaultLayout("JC_MANAGE");
$layout->init();
$AttendanceStatisticsService = $GLOBALS['ClassFactory']->getAttendanceStatisticsService();
$layout->echoln('
Agora Attendance Overview
');
$aegeeWGs=$AttendanceStatisticsService->aegeeWGsTotal();
$antennae=$AttendanceStatisticsService->antennaeTotal();
$antennaeComing = $AttendanceStatisticsService->antennaeComing();
$antennaeRegistered = $AttendanceStatisticsService->antennaeRegistered();
$antennaeStillHere = $AttendanceStatisticsService->antennaeStillHere();
$delegatesComing = $AttendanceStatisticsService->delegatesComing();
$delegatesRegistered = $AttendanceStatisticsService->delegatesRegistered();
$delegatesDeparted = $AttendanceStatisticsService->delegatesDeparted();
$voting_rights=$antennae+$aegeeWGs;
$quorum=($voting_rights%2==0?$voting_rights/2:($voting_rights+1)/2);
$quorumMissing=$quorum-$antennaeRegistered;
//quorum
$layout->echoln('
Agora Quorum
|
Has the quorum been reached?
|
'.( $quorumMissing>0 ? "NO" : "YES" ).'
|
Antennae + AEGEE WGs of the AEGEE Network:
|
'.$voting_rights.'
|
Agora Quorum:
|
'.$quorum.'
|
');
//antennae
$layout->echoln('
AEGEE Antennae
|
Expected:
|
'.$antennaeComing.'
|
Registered:
|
'.$antennaeRegistered.'
|
Remaining to be registered:
|
'.($antennaeComing-$antennaeRegistered).'
|
Departed:
|
'.($antennaeRegistered-$antennaeStillHere).'
|
Still around:
|
'.$antennaeStillHere.'
|
');
//delegates
$layout->echoln('
Delegates of AEGEE Antennae & AEGEE WGs
|
Expected:
|
'.$delegatesComing.'
|
Registered:
|
'.$delegatesRegistered.'
|
Remaining to be registered:
|
'.($delegatesComing-$delegatesRegistered).'
|
Departed:
|
'.$delegatesDeparted.'
|
Still around:
|
'.($delegatesRegistered-$delegatesDeparted).'
|
');
$layout->page_footer();
?>