";
echo "id';\"> ";
@@ -176,7 +175,7 @@
}
}
workshop_print_assignment_info($workshop);
-
+
// if the student has not yet submitted show the full description
if (!record_exists('workshop_submissions', 'workshopid', $workshop->id, 'userid', $USER->id)) {
print_simple_box(format_text($workshop->description, $workshop->format), 'center');
@@ -184,23 +183,23 @@
print_heading("id&action=showdescription\">".
get_string("showdescription", 'workshop')."");
}
-
+
// in Stage 1? - are there any teacher's submissions? and...
- // ...has student assessed the required number of the teacher's submissions
+ // ...has student assessed the required number of the teacher's submissions
if ($workshop->ntassessments and (!workshop_test_user_assessments($workshop, $USER))) {
- print_heading(get_string("pleaseassesstheseexamplesfromtheteacher", "workshop",
+ print_heading(get_string("pleaseassesstheseexamplesfromtheteacher", "workshop",
$course->teacher));
workshop_list_teacher_submissions($workshop, $USER);
}
// in stage 2? - submit own first attempt
else {
- if ($workshop->ntassessments) {
+ if ($workshop->ntassessments) {
// show assessment of the teacher's examples, there may be feedback from teacher
- print_heading(get_string("yourassessmentsofexamplesfromtheteacher", "workshop",
+ print_heading(get_string("yourassessmentsofexamplesfromtheteacher", "workshop",
$course->teacher));
workshop_list_teacher_submissions($workshop, $USER);
}
- // has user submitted anything yet?
+ // has user submitted anything yet?
if (!workshop_get_user_submissions($workshop, $USER)) {
if ($timenow < $workshop->submissionend) {
// print upload form
@@ -209,7 +208,7 @@
} else {
print_heading(get_string("submissionsnolongerallowed", "workshop"));
}
- }
+ }
// in stage 3? - grade other student's submissions, resubmit and list all submissions
else {
// is self assessment used in this workshop?
@@ -218,7 +217,7 @@
workshop_list_self_assessments($workshop, $USER);
}
// if peer assessments are being done then show some to assess...
- if ($workshop->nsassessments and ($workshop->assessmentstart < $timenow and $workshop->assessmentend > $timenow)) {
+ if ($workshop->nsassessments and ($workshop->assessmentstart < $timenow and $workshop->assessmentend > $timenow)) {
workshop_list_student_submissions($workshop, $USER);
}
// ..and any they have already done (and have gone cold)...
@@ -239,7 +238,7 @@
// list previous submissions
print_heading(get_string("yoursubmissions", "workshop"));
workshop_list_user_submissions($workshop, $USER);
-
+
// are resubmissions allowed and the workshop is in submission/assessment phase?
if ($workshop->resubmit and ($timenow > $workshop->assessmentstart and $timenow < $workshop->submissionend)) {
// see if there are any cold assessments of the last submission
@@ -272,20 +271,20 @@
/****************** submission of example by teacher only***********************/
elseif ($action == 'submitexample') {
-
+
if (!isteacher($course->id)) {
error("Only teachers can look at this page");
}
-
- // list previous submissions from teacher
+
+ // list previous submissions from teacher
workshop_list_user_submissions($workshop, $USER);
-
+
echo "";
-
+
// print upload form
print_heading(get_string("submitexampleassignment", "workshop").":");
workshop_print_upload_form($workshop);
-
+
print_heading("framename}\" href=\"view.php?id=$cm->id\">".get_string("cancel")."");
}
@@ -296,7 +295,7 @@
if (!isteacher($course->id)) {
error("Only teachers can look at this page");
}
-
+
// automatically grade assessments if workshop has examples and/or peer assessments
if ($workshop->gradingstrategy and ($workshop->ntassessments or $workshop->nsassessments)) {
workshop_grade_assessments($workshop);
@@ -307,10 +306,10 @@
$changegroup = isset($_GET['group']) ? $_GET['group'] : -1; // Group change requested?
$groupmode = groupmode($course, $cm); // Groups are being used?
$currentgroup = get_and_set_current_group($course, $groupmode, $changegroup);
-
+
/// Print settings and things in a table across the top
echo '
';
-
+
/// Allow the teacher to change groups (for this session)
if ($groupmode and isteacheredit($course->id)) {
if ($groups = get_records_menu("groups", "courseid", $course->id, "name ASC", "id,name")) {
@@ -322,18 +321,18 @@
/// Print admin links
echo "