require_once 'includes/classes/FormForceSignup.php';
    $formForceSignup = new FormForceSignup($event['id']);
    if ($formForceSignup->validate()) {
        $formForceSignup->process();
    }
}
require_once 'includes/widgets/header.php';
if (!Session::hasPriv('VIEW_SIGNUP_COMMENTS')) {
    require_once 'includes/widgets/sidebar.php';
}
if (Session::isLoggedIn()) {
    $notifications = array();
    checkNotificationNotGuarenteedSeats($notifications);
    $tpl->assign('notifications', $notifications);
}
$signups = Events::getSignupsForEvent($id, $event['signups']);
$tpl->assign('event', $event);
$tpl->assign('signups', $signups);
$tpl->assign('signupLinks', signupLinks($event['id'], $event['signups'], null));
$tpl->assign('signupStatistics', getSignupStatistics($signups));
$tpl->display('eventOverview.tpl');
if (Session::hasPriv('FORCE_SIGNUP')) {
    $tpl->assignForm($formForceSignup);
}
if (Session::hasPriv('EVENT_FINANCE_OVERVIEW')) {
    $tpl->assign('eventFinanceOverview', Events::getSignupFinances($event['id']));
}
$tpl->assign('privViewAttendance', Session::hasPriv('VIEW_ATTENDANCE_COUNTS'));
$tpl->assign('privViewSignupComments', Session::hasPriv('VIEW_SIGNUP_COMMENTS'));
$tpl->display('signupsList.tpl');
if (Session::hasPriv('VIEW_SIGNUP_COMMENTS')) {
Exemple #2
0
<?php

require_once 'includes/widgets/header.php';
require_once 'includes/widgets/sidebar.php';
require_once 'includes/classes/Events.php';
require_once 'includes/classes/Galleries.php';
$nextEvent = Events::nextEvent();
$tpl->assign('nextEvent', $nextEvent);
$tpl->assign('signups', getSignupStatistics(Events::getSignupsForEvent($nextEvent['id'])));
$tpl->display('home.tpl');
require_once 'includes/widgets/footer.php';
<?php

require_once 'jsonCommon.php';
require_once 'libAllure/Sanitizer.php';
header('Content-Type: application/json');
use libAllure\Sanitizer;
$id = Sanitizer::getInstance()->filterUint('id');
$signups = Events::getSignupsForEvent($id);
echo json_encode(getSignupStatistics($signups));