print_header_simple("$workshop->name", "",
"<a href=\"index.php?id=$course->id\">$strworkshops</a> ->
<a href=\"view.php?id=$cm->id\">$workshop->name</a> -> $strassess",
- "", '<base target="_parent">', true);
+ "", '<base target="_parent" />', true);
// there can be an assessment record (for teacher submissions), if there isn't...
if (!$assessment = get_record("workshop_assessments", "submissionid", $submission->id, "userid",
/// print bottom frame with the submission
- print_header();
+ print_header('', '', '', '', '<base target="_parent" />');
$title = '"'.$submission->title.'" ';
if (isteacher($course->id)) {
$title .= ' '.get_string('by', 'workshop').' '.workshop_fullname($submission->userid, $course->id);
}
- print_footer();
+ print_footer('none');
?>
}
print_heading(get_string('assessmentof', 'workshop',
- "<a href=\"submissions.php?id=$cm->id&action=showsubmission&sid=$submission->id\" target=\"submission\">".
+ "<a href=\"submissions.php?id=$cm->id&action=showsubmission&sid=$submission->id\" target=\"submission\">".
$submission->title.'</a>'));
}
$firstcomment = FALSE;
if (isteacher($workshop->course, $USER->id) and ($comment->userid != $USER->id)) {
echo "<p align=\"right\"><a href=\"assessments.php?action=addcomment&id=$cm->id&aid=$assessment->id\">".
- get_string("reply", "workshop")."</a>\n";
+ get_string("reply", "workshop")."</a></p>\n";
}
elseif (($comment->userid ==$USER->id) and (($timenow - $comment->timecreated) < $CFG->maxeditingtime)) {
echo "<p align=\"right\"><a href=\"assessments.php?action=editcomment&id=$cm->id&cid=$comment->id\">".
echo " | <a href=\"assessments.php?action=agreeassessment&id=$cm->id&aid=$assessment->id\">".
get_string("agreetothisassessment", "workshop")."</a>\n";
}
+ echo '</p>';
}
elseif (($comment->userid != $USER->id) and (($USER->id == $assessment->userid) or
($USER->id == $submission->userid))) {
echo " | <a href=\"assessments.php?action=agreeassessment&id=$cm->id&aid=$assessment->id\">".
get_string("agreetothisassessment", "workshop")."</a>\n";
}
+ echo '</p>';
}
}
- echo "</td></tr>\n";
+ echo '</td></tr>';
}
- echo "</table>\n";
+ echo '</table>';
}
+ echo '</center>';
}
// now print the grading form with the grading grade if any
echo " <td align=\"right\"><p><b>". get_string("feedback").":</b></p></td>\n";
echo " <td>\n";
if ($allowchanges) {
- echo " <textarea name=\"feedback_$i\" rows=\"3\" cols=\"75\" wrap=\"virtual\">\n";
+ echo " <textarea name=\"feedback_$i\" rows=\"3\" cols=\"75\" >\n";
if (isset($grades[$i]->feedback)) {
echo $grades[$i]->feedback;
}
echo " <td align=\"right\"><p><b>". get_string("element","workshop")." $iplus1:</b></p></td>\n";
echo " <td>".format_text($elements[$i]->description);
echo "<p align=\"right\"><font size=\"1\">".get_string("weight", "workshop").": ".
- number_format($WORKSHOP_EWEIGHTS[$elements[$i]->weight], 2)."</font>\n";
+ number_format($WORKSHOP_EWEIGHTS[$elements[$i]->weight], 2)."</font></p>\n";
echo "</td></tr>\n";
if ($showgrades) {
echo "<tr valign=\"top\">\n";
}
}
if ($checked) {
- echo " <input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" checked=\"checked\" /> \n";
+ echo " <input type=\"radio\" name=\"grade[$i]\" value=\"$j\" checked=\"checked\" alt=\"$j\" /> \n";
}
else {
- echo " <input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" /> \n";
+ echo " <input type=\"radio\" name=\"grade[$i]\" value=\"$j\" alt=\"$j\" /> \n";
}
}
echo " <b>$SCALE->end</b></center>\n";
echo " <td align=\"right\"><p><b>". get_string("feedback").":</b></p></td>\n";
echo " <td>\n";
if ($allowchanges) {
- echo " <textarea name=\"feedback_$i\" rows=\"3\" cols=\"75\" wrap=\"virtual\">\n";
+ echo " <textarea name=\"feedback_$i\" rows=\"3\" cols=\"75\" >\n";
if (isset($grades[$i]->feedback)) {
echo $grades[$i]->feedback;
}
}
}
if ($checked) {
- echo " <input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" checked=\"checked\" /> \n";
+ echo " <input type=\"radio\" name=\"grade[$i]\" value=\"$j\" checked=\"checked\" alt=\"$j\" /> \n";
}
else {
- echo " <input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" /> \n";
+ echo " <input type=\"radio\" name=\"grade[$i]\" value=\"$j\" alt=\"$j\" /> \n";
}
}
echo " <b>$SCALE->end</b></center>\n";
echo " <td align=\"right\"><p><b>". get_string("feedback").":</b></p></td>\n";
echo " <td>\n";
if ($allowchanges) {
- echo " <textarea name=\"feedback_$i\" rows=\"3\" cols=\"75\" wrap=\"virtual\">\n";
+ echo " <textarea name=\"feedback_$i\" rows=\"3\" cols=\"75\" >\n";
if (isset($grades[$i]->feedback)) {
echo $grades[$i]->feedback;
}
echo "<tr valign=\"top\">\n";
echo " <td>$iplus1</td><td>".format_text($elements[$i]->description)."</td>\n";
if ($selection == $i) {
- echo " <td align=\"center\"><input type=\"RADIO\" name=\"grade[0]\" value=\"$i\" checked=\"checked\" /></td>\n";
+ echo " <td align=\"center\"><input type=\"radio\" name=\"grade[0]\" value=\"$i\" checked=\"checked\" alt=\"$i\" /></td>\n";
}
else {
- echo " <td align=\"center\"><input type=\"RADIO\" name=\"grade[0]\" value=\"$i\" /></td>\n";
+ echo " <td align=\"center\"><input type=\"radio\" name=\"grade[0]\" value=\"$i\" alt=\"$i\" /></td>\n";
}
echo "<td align=\"center\">{$elements[$i]->maxscore}</td></tr>\n";
}
}
echo "<tr valign=\"top\">\n";
if ($selection == $j) {
- echo " <td align=\"center\"><input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\"
- checked=\"checked\" /></td>\n";
+ echo " <td align=\"center\"><input type=\"radio\" name=\"grade[$i]\" value=\"$j\"
+ checked=\"checked\" alt=\"$j\" /></td>\n";
} else {
- echo " <td align=\"center\"><input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\"
- /></td>\n";
+ echo " <td align=\"center\"><input type=\"radio\" name=\"grade[$i]\" value=\"$j\"
+ alt=\"$j\" /></td>\n";
}
echo "<td>".format_text($rubrics[$j]->description)."</td>\n";
}
echo " <td align=\"right\"><p><b>". get_string("feedback").":</b></p></td>\n";
echo " <td>\n";
if ($allowchanges) {
- echo " <textarea name=\"feedback_$i\" rows=\"3\" cols=\"75\" wrap=\"virtual\">\n";
+ echo " <textarea name=\"feedback_$i\" rows=\"3\" cols=\"75\" >\n";
if (isset($grades[$i]->feedback)) {
echo $grades[$i]->feedback;
}
}
echo " <td>\n";
if ($allowchanges) {
- echo " <textarea name=\"generalcomment\" rows=\"5\" cols=\"75\" wrap=\"virtual\">\n";
+ echo " <textarea name=\"generalcomment\" rows=\"5\" cols=\"75\" >\n";
if (isset($assessment->generalcomment)) {
echo $assessment->generalcomment;
}
get_string("specimenassessmentform", "workshop")."</a>";
// print edit icon
if (isteacheredit($course->id) and $workshop->nelements) {
- echo " <a href=\"assessments.php?id=$cm->id&action=editelements\">".
+ echo " <a href=\"assessments.php?id=$cm->id&action=editelements\">".
"<img src=\"$CFG->pixpath/t/edit.gif\" ".
- 'height="11" width="11" border="0" alt="'.get_string('amendassessmentelements', 'workshop').'"></a>';
+ 'height="11" width="11" border="0" alt="'.get_string('amendassessmentelements', 'workshop').'" /></a>';
}
echo ")<br />";
print_simple_box_end();
if (isteacher($workshop->course, $USER->id)) {
$str .= ' <a title="'.get_string('reassess', 'workshop').
"\" href=\"assess.php?sid=$submission->id\"><img src=\"$CFG->pixpath/t/edit.gif\" ".
- ' height="11" width="11" border="0" alt="'.get_string('reassess', 'workshop').'"></a>';
+ ' height="11" width="11" border="0" alt="'.get_string('reassess', 'workshop').'" /></a>';
$str .= ' <a title="'.get_string('delete', 'workshop').
"\" href=\"assessments.php?action=confirmdelete&wid=$workshop->id&aid=$assessment->id\"><img src=\"$CFG->pixpath/t/delete.gif\" ".
- ' height="11" width="11" border="0" alt="'.get_string('delete', 'workshop').'"></a><br />';
+ ' height="11" width="11" border="0" alt="'.get_string('delete', 'workshop').'" /></a><br />';
}
}
}
if (!$submission->timecreated) { // a "no submission"
return $submission->title;
}
- return "<a name=\"sid=$submission->id\" href=\"submissions.php?id=$cm->id&action=showsubmission&sid=$submission->id\">$submission->title</a>";
+ return "<a name=\"sid_$submission->id\" href=\"submissions.php?id=$cm->id&action=showsubmission&sid=$submission->id\">$submission->title</a>";
}
<input type="hidden" name="id" value="<?php echo $cm->id ?>" />
<input type="hidden" name="sid" value="<?php echo $_REQUEST['sid'] ?>" />
<center>
- <table celpadding="5" border="1">
+ <table cellpadding="5" border="1">
<?php
// now get the comment
<input type="hidden" name="id" value="<?php echo $cm->id ?>" />
<input type="hidden" name="sid" value="<?php echo $_GET['sid'] ?>" />
<center>
- <table celpadding="5" border="1">
+ <table cellpadding="5" border="1">
<?php
echo "<tr valign=\"top\"><td><b>". get_string("title", "workshop").":</b>\n";
echo "<input type=\"text\" name=\"title\" size=\"60\" maxlength=\"100\" value=\"$submission->title\" />\n";
print_footer($course);
-?>
\ No newline at end of file
+?>
echo '</td></tr>';
+ echo '<tr><td>';
workshop_print_assignment_info($workshop);
+ echo '</td></tr>';
/// Print grade tables /////////////////////////////////////////////////
// If not yet assessed, show assess link
if ($teacherassessments == ' ') {
$teacherassessments = '<a href="assess.php?id='.
- $cm->id.'&sid='.$submission->id.'">'.get_string('assess', 'workshop').'</a>';
+ $cm->id.'&sid='.$submission->id.'">'.get_string('assess', 'workshop').'</a>';
}
$title = workshop_print_submission_title($workshop, $submission).
" <a href=\"submissions.php?action=editsubmission&id=$cm->id&sid=$submission->id\">".
"<img src=\"$CFG->pixpath/t/edit.gif\" ".
- 'height="11" width="11" border="0" alt="'.get_string('edit').'"></a>'.
+ 'height="11" width="11" border="0" alt="'.get_string('edit').'" /></a>'.
" <a href=\"submissions.php?action=confirmdelete&id=$cm->id&sid=$submission->id\">".
"<img src=\"$CFG->pixpath/t/delete.gif\" ".
- 'height="11" width="11" border="0" alt="'.get_string('delete', 'workshop').'"></a>';
+ 'height="11" width="11" border="0" alt="'.get_string('delete', 'workshop').'" /></a>';
$table->data[] = array($title, $teacherassessments,
workshop_print_submission_assessments($workshop, $submission, "student"));
}
get_string("submitexampleassignment", "workshop")."</a></b>".
helpbutton("submissionofexamples", get_string("submitexampleassignment", "workshop"), "workshop", true, false, '', true),
' ', ' ');
-
print_table($table);
workshop_print_key($workshop);
}
$data[] = workshop_print_submission_title($workshop, $submission).
" <a href=\"submissions.php?action=adminamendtitle&id=$cm->id&sid=$submission->id\">".
"<img src=\"$CFG->pixpath/t/edit.gif\" ".
- 'height="11" width="11" border="0" alt="'.get_string('amendtitle', 'workshop').'"></a>'.
+ 'height="11" width="11" border="0" alt="'.get_string('amendtitle', 'workshop').'" /></a>'.
" <a href=\"submissions.php?action=confirmdelete&id=$cm->id&sid=$submission->id\">".
"<img src=\"$CFG->pixpath/t/delete.gif\" ".
- 'height="11" width="11" border="0" alt="'.get_string('delete', 'workshop').'"></a>';
+ 'height="11" width="11" border="0" alt="'.get_string('delete', 'workshop').'" /></a>';
$sortdata['title'] = $submission->title;
$data[] = userdate($submission->timecreated, get_string('datestr', 'workshop'));
if (($tmp = workshop_print_submission_assessments($workshop, $submission, "teacher")) == ' ') {
$data[] = '<a href="assess.php?id='.
- $cm->id.'&sid='.$submission->id.'">'.get_string('assess', 'workshop').'</a>';
+ $cm->id.'&sid='.$submission->id.'">'.get_string('assess', 'workshop').'</a>';
$sortdata['tassmnt'] = -1;
} else {
$data[] = $tmp;
} else {
$columnicon = $dir == 'ASC' ? 'down':'up';
}
- $columnicon = " <img src=\"$CFG->pixpath/t/$columnicon.gif\" />";
+ $columnicon = " <img src=\"$CFG->pixpath/t/$columnicon.gif\" alt=\"$columnicon\" />";
}
$$column = "<a href=\"view.php?id=$id&sort=$column&dir=$columndir\">".$string[$column]."</a>$columnicon";
$table->head = array ("$firstname / $lastname", $title, $date, $tassmnt, $ograde);
}
+ echo '<tr><td>';
print_table($table);
+ echo '</td></tr>';
+ echo '<tr><td>';
workshop_print_key($workshop);
+ echo '</td></tr>';
// grading grade analysis
unset($table);
number_format($stats->stddev * $workshop->gradinggrade /100, 1),
number_format($stats->max * $workshop->gradinggrade / 100, 1),
number_format($stats->min* $workshop->gradinggrade / 100, 1));
+ echo '<tr><td>';
print_heading(get_string("gradinggrade", "workshop")." ".get_string("analysis", "workshop"));
print_table($table);
+ echo '</td></tr>';
if ($workshop->showleaguetable and time() > $workshop->assessmentend) {
workshop_print_league_table($workshop);
echo "<p>".get_string("namesnotshowntostudents", "workshop", $course->students)."</p>\n";
}
}
+ echo '</table>';
}
elseif ($action == 'showdescription') {
workshop_print_assignment_info($workshop);
- print_simple_box(format_text($workshop->description, $workshop->format));
+ print_simple_box(format_text($workshop->description, $workshop->format), 'center');
print_continue($_SERVER["HTTP_REFERER"]);
}
error("Fatal Error: Unknown Action: ".$action."\n");
}
+
print_footer($course);
?>
print_header_simple("$workshop->name", "",
"<a href=\"index.php?id=$course->id\">$strworkshops</a> ->
<a href=\"view.php?id=$cm->id\">$workshop->name</a> -> $strassess",
- "", '<base target="_parent">', true);
+ "", '<base target="_parent" />', true);
// show assessment but don't allow changes
workshop_print_assessment($workshop, $assessment, false, $allowcomments);
/// print bottom frame with the submission
- print_header();
+ print_header('', '', '', '', '<base target="_parent" />');
$title = '"'.$submission->title.'" ';
if (isteacher($course->id)) {
$title .= ' '.get_string('by', 'workshop').' '.workshop_fullname($submission->userid, $course->id);
}
print_heading($title);
workshop_print_submission($workshop, $submission);
- print_footer();
+ print_footer('none');
?>