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(); $icon = '<img src="'.$OUTPUT->pix_url('/facetoface/icon') . '" alt=""/>'; // Print delete confirmation page
print_error('confirmsesskeybad', 'error'); } if ($data->bulk_update == 'delete') { // Perform bulk delete action if ($rooms = $DB->get_records('facetoface_room', null, '', 'id')) { $selected = facetoface_get_selected_report_items('room', null, $rooms); foreach ($selected as $item) { $DB->delete_records('facetoface_room', array('id' => $item->id)); } } } facetoface_reset_selected_report_items('room'); redirect($redirectto); } // Display local_js(array( JS_DIALOG, ) ); $PAGE->set_title(get_string('rooms', 'facetoface')); $PAGE->set_heading(''); $PAGE->set_focuscontrol(''); $PAGE->set_cacheable(true); $PAGE->navbar->add(get_string('rooms', 'facetoface')); navigation_node::override_active_url($returnurl);
status FROM {facetoface_notification_tpl} " ); if (!empty($notifications)) { $selected = facetoface_get_selected_report_items('template', null, $notifications); foreach ($selected as $item) { $item->status = $data->bulk_update == 'set_active' ? 1 : 0; $DB->update_record('facetoface_notification_tpl', $item); } } } facetoface_reset_selected_report_items('template'); redirect($redirectto->out()); } // Header local_js(); $str_edit = get_string('edit', 'moodle'); $str_remove = get_string('delete', 'moodle'); $str_activate = get_string('activate', 'facetoface'); $str_deactivate = get_string('deactivate', 'facetoface'); $url = new moodle_url('/admin/settings.php', array('section' => 'modsettingfacetoface'));