if ($submission->timemarked) {
echo " <font size=1>".userdate($submission->timemarked)."</font>";
}
- echo "<br><textarea name=\"c$submission->id\" rows=6 cols=60 wrap=virtual>";
+ echo "<br /><textarea name=\"c$submission->id\" rows=6 cols=60 wrap=virtual>";
p($submission->comment);
- echo "</textarea><br>";
+ echo "</textarea><br />";
echo "</td></tr>";
- echo "</table><br clear=ALL>\n";
+ echo "</table><br clear=\"all\" />\n";
}
function assignment_print_feedback($course, $submission, $assignment) {
}
}
- echo "<br>";
+ echo "<br />";
print_table($table);
echo "<center><table border=\"1\" width=\"30%\"><tr>
<td align=\"center\" bgcolor=\"$THEME->cellcontent\">\n";
echo exercise_print_submission_title($exercise, $teachersubmission);
- echo "</td></tr></table><br clear=\"all\">\n";
+ echo "</td></tr></table><br clear=\"all\" />\n";
}
}
else {
echo "<center><table border=\"1\" width=\"30%\"><tr>
<td align=\"center\" bgcolor=\"$THEME->cellcontent\">\n";
echo exercise_print_submission_title($exercise, $submission);
- echo "</td></tr></table><br clear=\"all\">\n";
+ echo "</td></tr></table><br clear=\"all\" />\n";
// only show the grade if grading strategy > 0 and the grade is positive
if ($exercise->gradingstrategy and $assessment->grade >= 0) {
echo "<center><b>".get_string("thegradeis", "exercise").": ".
number_format($assessment->grade * $exercise->grade / 100.0, 2)." (".
- get_string("maximumgrade")." ".number_format($exercise->grade, 0).")</b></center><br clear=\"all\">\n";
+ get_string("maximumgrade")." ".number_format($exercise->grade, 0).")</b></center><br clear=\"all\" />\n";
}
}
error ("Print teacher assessment form: Submission record not found");
}
echo exercise_print_submission_title($exercise, $teachersubmission);
- echo "</td></tr></table><br clear=\"all\">\n";
+ echo "</td></tr></table><br clear=\"all\" />\n";
echo "<center><table border=\"1\" width=\"30%\"><tr>
<td align=\"center\" bgcolor=\"$THEME->cellcontent\">\n";
echo exercise_print_submission_title($exercise, $submission);
- echo "</td></tr></table></center><br clear=\"all\">\n";
+ echo "</td></tr></table></center><br clear=\"all\" />\n";
?>
<form name="assessmentform" method="post" action="assessments.php">
if ($exercise->gradingstrategy and $assessment->grade >= 0) {
echo "<center><b>".get_string("thegradeis", "exercise").": ".
number_format($assessment->grade * $exercise->grade / 100.0, 2)." (".
- get_string("maximumgrade")." ".number_format($exercise->grade, 0).")</b></center><br clear=\"all\">\n";
+ get_string("maximumgrade")." ".number_format($exercise->grade, 0).")</b></center><br clear=\"all\" />\n";
}
echo "<center><table cellpadding=\"2\" border=\"1\">\n";
}
}
}
- echo "</table><br clear=\"all\">\n";
+ echo "</table><br clear=\"all\" />\n";
if ($exercise->showleaguetable) {
exercise_print_league_table($exercise);
echo "<br />\n";
}
}
}
- echo "</table><br clear=\"all\">\n";
+ echo "</table><br clear=\"all\" />\n";
if ($exercise->showleaguetable) {
exercise_print_league_table($exercise);
}
echo "</textarea><br />";
echo "</td></tr>";
}
- echo "</table><br clear=\"all\">\n";
+ echo "</table><br clear=\"all\" />\n";
}
"$stradd");
print_table($table);
echo "<input type=\"hidden\" name=\"id\" value=\"$course->id\" />";
- echo "<center><br><input type=\"submit\" value=\"$strsavechanges\" /> ";
- echo "<br><br><input type=\"submit\" name=\"backtoquiz\" value=\"$strbacktoquiz\" /> ";
+ echo "<center><br /><input type=\"submit\" value=\"$strsavechanges\" /> ";
+ echo "<br /><br /><input type=\"submit\" name=\"backtoquiz\" value=\"$strbacktoquiz\" /> ";
echo "</center>";
echo "</form>";
function deletedatabase($filename) {
if (! $this->fulldelete($filename)) {
- echo "<br>Error: Could not delete: $filename";
+ echo "<br />Error: Could not delete: $filename";
return false;
}
return true;
echo '</form>';
}
- echo "<center><br><br><form method=\"get\" action=\"edit.php\"><input type=\"hidden\" name=\"question\" value=\"$question->id\"/><input type=\"submit\" name=\"backtoquiz\" value=\"$strbacktoquiz\"></form></center>\n";
+ echo "<center><br /><br /><form method=\"get\" action=\"edit.php\"><input type=\"hidden\" name=\"question\" value=\"$question->id\"/><input type=\"submit\" name=\"backtoquiz\" value=\"$strbacktoquiz\"></form></center>\n";
print_footer();
choose_from_menu($gradeoptionsfull, "fraction[]", $answers[$i-1]->fraction, ""); ?>
- <br>
+ <br />
</td>
choose_from_menu($gradeoptions, "fraction[]", $answers[$i-1]->fraction,""); ?>
- <br>
+ <br />
</td>
echo "<input $truechecked type=\"radio\" $readonly $inputname value=\"$true->id\" />$true->answer";
echo "</td><td $falsecorrect>";
echo "<input $falsechecked type=\"radio\" $readonly $inputname value=\"$false->id\" />$false->answer";
- echo "</td></tr></table><br clear=\"all\">";// changed from clear=ALL jm
+ echo "</td></tr></table><br clear=\"all\" />";// changed from clear=ALL jm
if ($quiz->feedback && isset($answers[$nameprefix])
&& $feedback = $answers[$nameprefix]->feedback) {
quiz_print_comment(
choose_from_menu($menu, "answer", "$question->answer", ""); ?>
- <br>
+ <br />
</td>
foreach ($USER->filelist as $file) {
$fullfile = $basedir.$file;
if (! fulldelete($fullfile)) {
- echo "<br>Error: Could not delete: $fullfile";
+ echo "<br />Error: Could not delete: $fullfile";
}
}
clearfilelist();
print_simple_box_start("center");
printfilelist($USER->filelist);
print_simple_box_end();
- echo "<br>";
+ echo "<br />";
echo "<p align=\"center\">".get_string("whattocallzip");
echo "<table><tr><td>";
echo "<form action=\"".$ME."\" method=\"post\" name=\"form\">";
}
}
- echo "<br>";
+ echo "<br />";
print_table($table);
<font size="1">
<?php
helpbutton("summary", get_string("summary"), "scorm", true, true);
- echo "<br \>";
+ echo "<br />";
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
- echo "<br \>";
+ echo "<br />";
helpbutton("text", get_string("helptext"), "moodle", true, true);
?>
</font>
}
//save time of agreement
set_field("workshop_assessments", "timeagreed", $timenow, "id", $assessment->id);
- echo "<centre><b>".get_string("savedok", "workshop")."</b></center><br>\n";
+ echo "<centre><b>".get_string("savedok", "workshop")."</b></center><br />\n";
add_to_log($course->id, "workshop", "agree", "assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id", "$assessment->id");
print_continue("view.php?id=$cm->id");
echo " <td colspan=2 BGCOLOR=\"$THEME->cellheading2\"> </td>\n";
echo "</tr>\n";
}
- echo "</center></table><br>\n";
+ echo "</center></table><br />\n";
echo "<p><center><b>".get_string("gradetable","workshop")."</b></center>\n";
echo "<center><table cellpadding=5 border=1><tr><td ALIGN=\"CENTER\">".
get_string("numberofnegativeresponses", "workshop");
$totalweight += $weight;
}
$rawgrade += ($grade / $maxscore) * $weight;
- // echo "\$key, \$maxscore, \$weight, \$totalweight, \$grade, \$rawgrade : $key, $maxscore, $weight, $totalweight, $grade, $rawgrade<br>";
+ // echo "\$key, \$maxscore, \$weight, \$totalweight, \$grade, \$rawgrade : $key, $maxscore, $weight, $totalweight, $grade, $rawgrade<br />";
}
$grade = 100.0 * ($rawgrade / $totalweight);
break;
set_field("workshop_comments", "timecreated", $timenow, "id", $comment->id);
// ..and kick to comment into life (probably not needed but just in case)
set_field("workshop_comments", "mailed", 0, "id", $comment->id);
- echo "<centre><b>".get_string("savedok", "workshop")."</b></center><br>\n";
+ echo "<centre><b>".get_string("savedok", "workshop")."</b></center><br />\n";
add_to_log($course->id, "workshop", "comment",
"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id", "$comment->id");
set_field("workshop_assessments", "gradinggrade", $form->gradinggrade, "id", $assessment->id);
set_field("workshop_assessments", "timegraded", $timenow, "id", $assessment->id);
set_field("workshop_assessments", "mailed", 0, "id", $assessment->id);
- echo "<centre><b>".get_string("savedok", "workshop")."</b></centre><br>\n";
+ echo "<centre><b>".get_string("savedok", "workshop")."</b></centre><br />\n";
add_to_log($course->id, "workshop", "grade",
"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id", "$assessment->id", "$cm->id");
}
echo "<center><p><b>".get_string("studentsubmissions", "workshop", $course->student).
- "</b></center><br>\n";
+ "</b></center><br />\n";
unset($table);
$table->head = array (get_string("title", "workshop"), get_string("action", "workshop"),
get_string("comment", "workshop"));
}
if (isset($table->data)) {
echo "<p><center><b>".get_string("pleaseassessyoursubmissions", "workshop", $course->student).
- "</b></center><br>\n";
+ "</b></center><br />\n";
print_table($table);
}
}
if (isset($table->data)) {
echo "<p><center><b>".get_string("pleaseassessthesestudentsubmissions", "workshop", $course->student).
- "</b></center><br>\n";
+ "</b></center><br />\n";
print_table($table);
}
else {
- echo "<p><center><b>".get_string("nosubmissionsavailableforassessment", "workshop")."</b></center><br>\n";
+ echo "<p><center><b>".get_string("nosubmissionsavailableforassessment", "workshop")."</b></center><br />\n";
}
}
error ("Workshop_print_assessment: Submission record not found");
}
echo workshop_print_submission_title($workshop, $submission);
- echo "</td></tr></table><br CLEAR=ALL>\n";
+ echo "</td></tr></table><br CLEAR=ALL />\n";
// see if this is a pre-filled assessment for a re-submission...
if ($assessment->resubmission) {
// only show the grade if grading strategy > 0 and the grade is positive
if ($showgrades and $workshop->gradingstrategy and $assessment->grade >= 0) {
echo "<center><b>".get_string("thegradeis", "workshop").": ".number_format($assessment->grade, 2)." (".
- get_string("maximumgrade")." ".number_format($workshop->grade, 0).")</b></center><br CLEAR=ALL>\n";
+ get_string("maximumgrade")." ".number_format($workshop->grade, 0).")</b></center><br CLEAR=ALL />\n";
}
}
echo "<form ENCTYPE=\"multipart/form-data\" METHOD=\"POST\" ACTION=upload.php>";
echo " <input TYPE=hidden NAME=MAX_FILE_SIZE value=\"$workshop->maxbytes\" />";
echo " <input TYPE=hidden NAME=id VALUE=\"$cm->id\" />";
- echo "<b>".get_string("title", "workshop")."</b>: <input NAME=\"title\" TYPE=\"text\" SIZE=\"60\" MAXSIZE=\"100\" /><br><br>\n";
+ echo "<b>".get_string("title", "workshop")."</b>: <input NAME=\"title\" TYPE=\"text\" SIZE=\"60\" MAXSIZE=\"100\" /><br /><br />\n";
echo " <input NAME=\"newfile\" TYPE=\"file\" size=\"50\" />";
echo " <input TYPE=submit NAME=save VALUE=\"".get_string("uploadthisfile")."\" />";
echo "</form>";
</tr>
</table>
-<br>
+<br />
<center>
<input type="hidden" name=course value="<?php p($form->course) ?>" />
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>" />
}
}
}
- echo "</table><br clear=\"all\">\n";
+ echo "</table><br clear=\"all\" />\n";
workshop_print_key($workshop);
if ($workshop->showleaguetable) {
workshop_print_league_table($workshop);
echo "<td align=\"center\">".number_format($gradinggrade + $grade, 1)."</td></tr>\n";
}
}
- echo "</table><br CLEAR=ALL>\n";
+ echo "</table><br CLEAR=ALL />\n";
workshop_print_key($workshop);
if ($workshop->showleaguetable) {
workshop_print_league_table($workshop);