Línea 20... |
Línea 20... |
20 |
* @author Andreas Grabs
|
20 |
* @author Andreas Grabs
|
21 |
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
21 |
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
22 |
* @package mod_feedback
|
22 |
* @package mod_feedback
|
23 |
*/
|
23 |
*/
|
Línea -... |
Línea 24... |
- |
|
24 |
|
- |
|
25 |
use mod_feedback\manager;
|
24 |
|
26 |
|
25 |
require_once("../../config.php");
|
27 |
require_once("../../config.php");
|
26 |
require_once("lib.php");
|
28 |
require_once("lib.php");
|
Línea 27... |
Línea 29... |
27 |
require_once($CFG->libdir.'/tablelib.php');
|
29 |
require_once($CFG->libdir.'/tablelib.php');
|
Línea 35... |
Línea 37... |
35 |
$format = optional_param('format', FORMAT_MOODLE, PARAM_INT);
|
37 |
$format = optional_param('format', FORMAT_MOODLE, PARAM_INT);
|
36 |
$messageuser = optional_param_array('messageuser', false, PARAM_INT);
|
38 |
$messageuser = optional_param_array('messageuser', false, PARAM_INT);
|
37 |
$action = optional_param('action', '', PARAM_ALPHA);
|
39 |
$action = optional_param('action', '', PARAM_ALPHA);
|
38 |
$perpage = optional_param('perpage', FEEDBACK_DEFAULT_PAGE_COUNT, PARAM_INT); // how many per page
|
40 |
$perpage = optional_param('perpage', FEEDBACK_DEFAULT_PAGE_COUNT, PARAM_INT); // how many per page
|
39 |
$showall = optional_param('showall', false, PARAM_INT); // should we show all users
|
41 |
$showall = optional_param('showall', false, PARAM_INT); // should we show all users
|
40 |
// $SESSION->feedback->current_tab = $do_show;
|
- |
|
41 |
$current_tab = 'nonrespondents';
|
- |
|
Línea 42... |
Línea 42... |
42 |
|
42 |
|
43 |
////////////////////////////////////////////////////////
|
43 |
////////////////////////////////////////////////////////
|
44 |
//get the objects
|
44 |
//get the objects
|
Línea 153... |
Línea 153... |
153 |
echo $OUTPUT->header();
|
153 |
echo $OUTPUT->header();
|
Línea 154... |
Línea 154... |
154 |
|
154 |
|
155 |
/** @var \mod_feedback\output\renderer $renderer */
|
155 |
/** @var \mod_feedback\output\renderer $renderer */
|
156 |
$renderer = $PAGE->get_renderer('mod_feedback');
|
156 |
$renderer = $PAGE->get_renderer('mod_feedback');
|
- |
|
157 |
echo $renderer->main_action_bar($actionbar);
|
- |
|
158 |
if (!manager::can_see_others_in_groups($cm)) {
|
- |
|
159 |
// The user is not in a group so show message and exit.
|
- |
|
160 |
echo $OUTPUT->notification(get_string('notingroup'));
|
- |
|
161 |
echo $OUTPUT->footer();
|
157 |
echo $renderer->main_action_bar($actionbar);
|
162 |
exit();
|
158 |
|
163 |
}
|
159 |
/// Print the main part of the page
|
164 |
/// Print the main part of the page
|
160 |
///////////////////////////////////////////////////////////////////////////
|
165 |
///////////////////////////////////////////////////////////////////////////
|
161 |
///////////////////////////////////////////////////////////////////////////
|
166 |
///////////////////////////////////////////////////////////////////////////
|
Línea 262... |
Línea 267... |
262 |
//selections to bulk messaging
|
267 |
//selections to bulk messaging
|
263 |
if ($canbulkmessaging) {
|
268 |
if ($canbulkmessaging) {
|
264 |
$checkbox = new \core\output\checkbox_toggleall('feedback-non-respondents', false, [
|
269 |
$checkbox = new \core\output\checkbox_toggleall('feedback-non-respondents', false, [
|
265 |
'id' => 'messageuser-' . $student->id,
|
270 |
'id' => 'messageuser-' . $student->id,
|
266 |
'name' => 'messageuser[]',
|
271 |
'name' => 'messageuser[]',
|
267 |
'classes' => 'mr-1',
|
272 |
'classes' => 'me-1',
|
268 |
'value' => $student->id,
|
273 |
'value' => $student->id,
|
269 |
'label' => get_string('includeuserinrecipientslist', 'mod_feedback', fullname($student)),
|
274 |
'label' => get_string('includeuserinrecipientslist', 'mod_feedback', fullname($student)),
|
270 |
'labelclasses' => 'accesshide',
|
275 |
'labelclasses' => 'accesshide',
|
271 |
]);
|
276 |
]);
|
272 |
$data[] = $OUTPUT->render($checkbox);
|
277 |
$data[] = $OUTPUT->render($checkbox);
|