Пример #1
0
    echo $OUTPUT->container_start('f2f-attendees-table');
}


/**
 * Print attendees (if user able to view)
 */
if ($show_table) {
    // Get list of attendees

    switch ($action) {
        case 'cancellations':
            if ($cancellations) {
                $rows = $cancellations;
            } else {
                $rows = facetoface_get_cancellations($session->id);
            }
            break;

        case 'waitlist':
            $rows = facetoface_get_attendees($session->id, array(MDL_F2F_STATUS_WAITLISTED));
            break;

        case 'takeattendance':
            $rows = facetoface_get_attendees($session->id, array(MDL_F2F_STATUS_BOOKED, MDL_F2F_STATUS_NO_SHOW,
                MDL_F2F_STATUS_PARTIALLY_ATTENDED, MDL_F2F_STATUS_FULLY_ATTENDED));
            break;

        case 'attendees':
            if ($attendees) {
                $rows = $attendees;
Пример #2
0
// Get some language strings
$strsearch = get_string('search');
$strshowall = get_string('showall', 'moodle', '');
$strsearchresults = get_string('searchresults');
$strfacetofaces = get_string('modulenameplural', 'facetoface');
$strfacetoface = get_string('modulename', 'facetoface');

// Set wait-list
$waitlist = $session->datetimeknown ? 0 : 1;

// Set removed users
$removed = $removedusers ? explode(',', $removedusers) : array();

// Get facetoface cancellations and add them to the removed attendees list
if (!$removed) {
    $removed = array_keys(facetoface_get_cancellations($s));
}

// Setup attendees array
if ($clear) {
    if ($session->datetimeknown) {
        $attendees = facetoface_get_attendees($session->id, array(MDL_F2F_STATUS_BOOKED, MDL_F2F_STATUS_NO_SHOW,
            MDL_F2F_STATUS_PARTIALLY_ATTENDED, MDL_F2F_STATUS_FULLY_ATTENDED));
    } else {
        $attendees = facetoface_get_attendees($session->id, array(MDL_F2F_STATUS_WAITLISTED, MDL_F2F_STATUS_BOOKED, MDL_F2F_STATUS_NO_SHOW,
            MDL_F2F_STATUS_PARTIALLY_ATTENDED, MDL_F2F_STATUS_FULLY_ATTENDED));
    }
} else {
    if ($attendees) {
        $attendee_array = explode(',', $attendees);
       list($attendeesin, $params) = $DB->get_in_or_equal($attendee_array);