Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
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");
Línea 26... Línea 28...
26
require_once("lib.php");
28
require_once("lib.php");
27
 
29
 
Línea 83... Línea 85...
83
    redirect(new moodle_url($baseurl, ['courseid' => $data->courseid]));
85
    redirect(new moodle_url($baseurl, ['courseid' => $data->courseid]));
84
}
86
}
85
// Print the page header.
87
// Print the page header.
86
navigation_node::override_active_url($baseurl);
88
navigation_node::override_active_url($baseurl);
87
$PAGE->set_heading($course->fullname);
89
$PAGE->set_heading($course->fullname);
-
 
90
 
-
 
91
/** @var \mod_feedback\output\renderer $renderer */
88
$PAGE->set_title($feedback->name);
92
$renderer = $PAGE->get_renderer('mod_feedback');
-
 
93
$renderer->set_title(
-
 
94
        [format_string($feedback->name), format_string($course->fullname)],
-
 
95
        get_string('responses', 'feedback')
-
 
96
);
-
 
97
 
89
$PAGE->activityheader->set_attrs([
98
$PAGE->activityheader->set_attrs([
90
    'hidecompletion' => true,
99
    'hidecompletion' => true,
91
    'description' => ''
100
    'description' => ''
92
]);
101
]);
93
$PAGE->add_body_class('limitedwidth');
-
 
94
echo $OUTPUT->header();
-
 
Línea 95... Línea -...
95
 
-
 
96
/** @var \mod_feedback\output\renderer $renderer */
102
 
97
$renderer = $PAGE->get_renderer('mod_feedback');
103
echo $OUTPUT->header();
98
echo $renderer->main_action_bar($actionbar);
104
echo $renderer->main_action_bar($actionbar);
Línea 99... Línea -...
99
echo $OUTPUT->heading(get_string('show_entries', 'mod_feedback'), 3);
-
 
100
 
-
 
101
$current_tab = 'showentries';
105
echo $OUTPUT->heading(get_string('show_entries', 'mod_feedback'), 3);
102
 
106
 
103
/// Print the main part of the page
107
/// Print the main part of the page
104
///////////////////////////////////////////////////////////////////////////
108
///////////////////////////////////////////////////////////////////////////
Línea 148... Línea 152...
148
 
152
 
149
} else {
153
} else {
150
    // Print the list of responses.
154
    // Print the list of responses.
Línea -... Línea 155...
-
 
155
    $courseselectform->display();
-
 
156
 
-
 
157
    if (!manager::can_see_others_in_groups($feedbackstructure->get_cm())) {
-
 
158
        echo $OUTPUT->notification(get_string('notingroup'));
-
 
159
        echo $OUTPUT->footer();
151
    $courseselectform->display();
160
        exit();
152
 
161
    }
153
    // Show non-anonymous responses (always retrieve them even if current feedback is anonymous).
162
    // Show non-anonymous responses (always retrieve them even if current feedback is anonymous).
154
    $totalrows = $responsestable->get_total_responses_count();
163
    $totalrows = $responsestable->get_total_responses_count();
155
    if (!$feedbackstructure->is_anonymous() || $totalrows) {
164
    if (!$feedbackstructure->is_anonymous() || $totalrows) {