Esempio n. 1
0
               'SELECT
                    id,
                    status
                FROM
                    {facetoface_notification}
                WHERE
                    facetofaceid = ?',
                array($facetoface->id));

        if (!empty($notifications)) {
            $selected = facetoface_get_selected_report_items('notification', $update, $notifications);

            foreach ($selected as $item) {
                $notification = new facetoface_notification(array('id' => $item->id), true);
                $notification->status = $data->bulk_update == 'set_active' ? 1 : 0;
                $notification->update();
            }
        }
    }

    facetoface_reset_selected_report_items('notification', $update);
    redirect($redirectto);
}

$streditinga = get_string('editinga', 'moodle', 'facetoface');
$strmodulenameplural = get_string('modulenameplural', 'facetoface');

$PAGE->set_pagelayout('standard');
$PAGE->set_title($streditinga);
$PAGE->set_heading('');
echo $OUTPUT->header();