Proyectos de Subversion Moodle

Rev

Rev 1254 | Rev 1256 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1254 Rev 1255
Línea 4859... Línea 4859...
4859
        if ($this->is_blind_marking() && has_capability('mod/assign:viewblinddetails', $this->get_context())) {
4859
        if ($this->is_blind_marking() && has_capability('mod/assign:viewblinddetails', $this->get_context())) {
4860
            $o .= $this->get_renderer()->notification(get_string('blindmarkingenabledwarning', 'assign'), 'notifymessage');
4860
            $o .= $this->get_renderer()->notification(get_string('blindmarkingenabledwarning', 'assign'), 'notifymessage');
4861
        }
4861
        }
Línea 4862... Línea 4862...
4862
 
4862
 
-
 
4863
        // Load and print the table of submissions.
-
 
4864
        $currentgroup = groups_get_activity_group($this->get_course_module(), true);
-
 
4865
        $users = array_keys($this->list_participants($currentgroup, true));
-
 
4866
        if (count($users) != 0 && $this->can_grade()) {
-
 
4867
            // If no enrolled user in a course then don't display the batch operations feature.
-
 
4868
            $assignform = new assign_form('gradingbatchoperationsform', $gradingbatchoperationsform);
-
 
4869
            $o .= $this->get_renderer()->render($assignform);
4863
        // Load and print the table of submissions.
4870
        }
4864
        $assignform = new assign_form(
4871
        $assignform = new assign_form(
4865
            'gradingoptionsform',
4872
            'gradingoptionsform',
4866
            $gradingoptionsform,
4873
            $gradingoptionsform,
4867
            'M.mod_assign.init_grading_options'
4874
            'M.mod_assign.init_grading_options'
Línea 4889... Línea 4896...
4889
            // We need to store the order of uses in the table as the person may wish to grade them.
4896
            // We need to store the order of uses in the table as the person may wish to grade them.
4890
            // This is done based on the row number of the user.
4897
            // This is done based on the row number of the user.
4891
            $useridlist = $gradingtable->get_column_data('userid');
4898
            $useridlist = $gradingtable->get_column_data('userid');
4892
            $SESSION->mod_assign_useridlist[$this->get_useridlist_key()] = $useridlist;
4899
            $SESSION->mod_assign_useridlist[$this->get_useridlist_key()] = $useridlist;
4893
        }
4900
        }
4894
 
-
 
4895
        $currentgroup = groups_get_activity_group($this->get_course_module(), true);
-
 
4896
        $users = array_keys($this->list_participants($currentgroup, true));
-
 
4897
        if (count($users) != 0 && $this->can_grade()) {
-
 
4898
            // If no enrolled user in a course then don't display the batch operations feature.
-
 
4899
            $assignform = new assign_form('gradingbatchoperationsform', $gradingbatchoperationsform);
-
 
4900
            $o .= $this->get_renderer()->render($assignform);
-
 
4901
        }
-
 
4902
        return $o;
4901
        return $o;
4903
    }
4902
    }
Línea 4904... Línea 4903...
4904
 
4903
 
4905
    /**
4904
    /**