closed <input /> <br /> <hr />

This commit is contained in:
gustav_delius
2004-09-12 14:41:49 +00:00
parent 4f5dc6645d
commit a9ef4a630a
131 changed files with 2463 additions and 1820 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
<tr>
<td colspan=3 align=center>
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>
+7 -7
View File
@@ -265,9 +265,9 @@ function assignment_cron () {
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->".
"<a href=\"$CFG->wwwroot/mod/assignment/index.php?id=$course->id\">$strassignments</a> ->".
"<a href=\"$CFG->wwwroot/mod/assignment/view.php?id=$mod->id\">$submission->name</a></font></p>";
$posthtml .= "<hr><font face=\"sans-serif\">";
$posthtml .= "<hr /><font face=\"sans-serif\">";
$posthtml .= "<p>".get_string("assignmentmailhtml", "assignment", $assignmentinfo)."</p>";
$posthtml .= "</font><hr>";
$posthtml .= "</font><hr />";
} else {
$posthtml = "";
}
@@ -682,10 +682,10 @@ function assignment_print_upload_form($assignment) {
echo "<DIV ALIGN=CENTER>";
echo "<FORM ENCTYPE=\"multipart/form-data\" METHOD=\"POST\" ACTION=\"upload.php?id=$assignment->id\">";
echo " <INPUT TYPE=hidden NAME=MAX_FILE_SIZE value=\"$assignment->maxbytes\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=\"$assignment->id\">";
echo " <INPUT NAME=\"newfile\" TYPE=\"file\" size=\"50\">";
echo " <INPUT TYPE=submit NAME=save VALUE=\"".get_string("uploadthisfile")."\">";
echo " <INPUT TYPE=hidden NAME=MAX_FILE_SIZE value=\"$assignment->maxbytes\" />";
echo " <INPUT TYPE=hidden NAME=id VALUE=\"$assignment->id\" />";
echo " <INPUT NAME=\"newfile\" TYPE=\"file\" size=\"50\" />";
echo " <INPUT TYPE=submit NAME=save VALUE=\"".get_string("uploadthisfile")."\" />";
echo "</FORM>";
echo "</DIV>";
}
@@ -782,7 +782,7 @@ function assignment_print_recent_mod_activity($activity, $course, $detail=false)
echo "<img src=\"$CFG->pixpath/f/$file->icon\" height=16 width=16 border=0 alt=\"file\">";
echo "&nbsp;<a target=\"uploadedfile\" HREF=\"$CFG->wwwroot/$file->url\">$file->name</A>";
}
echo "<br>";
echo "<br />";
}
echo "<a href=\"$CFG->wwwroot/user/view.php?id="
. $activity->user->userid . "&course=$course\">"
+1 -1
View File
@@ -30,7 +30,7 @@
<tr valign="top">
<td align=right><p><b><?php print_string("assignmentname", "assignment") ?>:</b></p></td>
<td>
<input type="text" name="name" size=60 value="<?php p($form->name) ?>">
<input type="text" name="name" size=60 value="<?php p($form->name) ?>" />
</td>
</tr>
<tr valign="top">
+3 -3
View File
@@ -62,7 +62,7 @@
$newid = insert_record ("assignment",$assignment);
//Do some output
echo "<ul><li>".get_string("modulename","assignment")." \"".$assignment->name."\"<br>";
echo "<ul><li>".get_string("modulename","assignment")." \"".$assignment->name."\"<br />";
backup_flush(300);
if ($newid) {
@@ -140,7 +140,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -296,7 +296,7 @@
}
break;
default:
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br>"; //Debug
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br />"; //Debug
break;
}
+2 -2
View File
@@ -111,8 +111,8 @@
// Make sure that we aren't overwriting any recent feedback from other teachers. (see bug #324)
if ($timewas < $submission->timemarked && (!empty($submission->grade)) && (!empty($submission->comment))) {
notify(get_string("failedupdatefeedback", "assignment", fullname($users[$submission->userid]))
. "<br>" . get_string("grade") . ": $newsubmission->grade"
. "<br>" . get_string("feedback", "assignment") . ": $newsubmission->comment\n");
. "<br />" . get_string("grade") . ": $newsubmission->grade"
. "<br />" . get_string("feedback", "assignment") . ": $newsubmission->comment\n");
} else { //print out old feedback and grade
if (empty($submission->timemodified)) { // eg for offline assignments
$newsubmission->timemodified = $timenow;
+1 -1
View File
@@ -86,7 +86,7 @@
echo "<br />";
}
} else if ($assignment->grade > 0) {
echo "<b>".get_string("maximumgrade")."</b>: $assignment->grade<br>";
echo "<b>".get_string("maximumgrade")."</b>: $assignment->grade<br />";
}
echo "<br />";
+12 -12
View File
@@ -166,8 +166,8 @@ $form->hours = isset($CFG->attendance_default_hours)?$CFG->attendance_default_ho
?>
<FORM name="form" method="post" action="<?php echo $ME ?>">
<CENTER>
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
<INPUT type="submit" name="cancel" value="<?php print_string("cancel") ?>">
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
<INPUT type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
<TABLE cellpadding=5>
<TR valign=top>
@@ -263,17 +263,17 @@ for ($i=0;$i<=100;$i++){ $opt2[$i] = $i; } ?>
</TABLE>
<!-- These hidden variables are always the same -->
<INPUT type="hidden" name=course value="<?php p($form->course) ?>">
<INPUT type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
<INPUT type="hidden" name=section value="<?php p($form->section) ?>">
<INPUT type="hidden" name=module value="<?php p($form->module) ?>">
<INPUT type="hidden" name=modulename value="<?php p($form->modulename) ?>">
<INPUT type="hidden" name=instance value="<?php p($form->instance) ?>">
<INPUT type="hidden" name=mode value="<?php p($form->mode) ?>">
<INPUT type="hidden" name=numsections value="<?php p($course->numsections) ?>">
<INPUT type="hidden" name=course value="<?php p($form->course) ?>" />
<INPUT type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>" />
<INPUT type="hidden" name=section value="<?php p($form->section) ?>" />
<INPUT type="hidden" name=module value="<?php p($form->module) ?>" />
<INPUT type="hidden" name=modulename value="<?php p($form->modulename) ?>" />
<INPUT type="hidden" name=instance value="<?php p($form->instance) ?>" />
<INPUT type="hidden" name=mode value="<?php p($form->mode) ?>" />
<INPUT type="hidden" name=numsections value="<?php p($course->numsections) ?>" />
<BR />
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
<INPUT type="submit" name="cancel" value="<?php print_string("cancel") ?>">
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
<INPUT type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
</CENTER>
</FORM>
+9 -9
View File
@@ -200,18 +200,18 @@ if ($form->hours >1) {
} // if ($form->id)
?>
<!-- These hidden variables are always the same -->
<INPUT type="hidden" name=course value="<?php p($form->course) ?>">
<INPUT type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
<INPUT type="hidden" name=section value="<?php p($form->section) ?>">
<INPUT type="hidden" name=module value="<?php p($form->module) ?>">
<INPUT type="hidden" name=modulename value="<?php p($form->modulename) ?>">
<INPUT type="hidden" name=instance value="<?php p($form->instance) ?>">
<INPUT type="hidden" name=mode value="<?php p($form->mode) ?>">
<INPUT type="hidden" name=course value="<?php p($form->course) ?>" />
<INPUT type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>" />
<INPUT type="hidden" name=section value="<?php p($form->section) ?>" />
<INPUT type="hidden" name=module value="<?php p($form->module) ?>" />
<INPUT type="hidden" name=modulename value="<?php p($form->modulename) ?>" />
<INPUT type="hidden" name=instance value="<?php p($form->instance) ?>" />
<INPUT type="hidden" name=mode value="<?php p($form->mode) ?>" />
<BR />
<?php
echo "<a href=\"../mod/attendance/add.php?id=".$form->course . "&section=".$form->section ."\">" . get_string("addmultiple","attendance") . "</a><br /><br />";
?>
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
<INPUT type="submit" name="cancel" value="<?php print_string("cancel") ?>">
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
<INPUT type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
</CENTER>
</FORM>
+2 -2
View File
@@ -54,7 +54,7 @@
$newid = insert_record ("attendance",$attendance);
//Do some output
echo "<ul><li>".get_string("modulename","attendance")." \"".$attendance->name."\"<br>";
echo "<ul><li>".get_string("modulename","attendance")." \"".$attendance->name."\"<br />";
backup_flush(300);
if ($newid) {
@@ -121,7 +121,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
+11 -11
View File
@@ -111,8 +111,8 @@ if (empty($form->id)) {
?>
<FORM name="form" method="post" action="<?php echo "$CFG->wwwroot/course/mod.php"; ?>">
<CENTER>
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
<INPUT type="submit" name="cancel" value="<?php print_string("cancel") ?>">
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
<INPUT type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
<?php // if we're modifying an existing instance of attendance instead
// of creating a new one
@@ -204,19 +204,19 @@ if ($form->hours >1) {
} // if ($form->id)
?>
<!-- These hidden variables are always the same -->
<INPUT type="hidden" name=course value="<?php p($form->course) ?>">
<INPUT type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
<INPUT type="hidden" name=section value="<?php p($form->section) ?>">
<INPUT type="hidden" name=module value="<?php p($form->module) ?>">
<INPUT type="hidden" name=modulename value="<?php p($form->modulename) ?>">
<INPUT type="hidden" name=instance value="<?php p($form->instance) ?>">
<INPUT type="hidden" name=mode value="<?php p($form->mode) ?>">
<INPUT type="hidden" name=course value="<?php p($form->course) ?>" />
<INPUT type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>" />
<INPUT type="hidden" name=section value="<?php p($form->section) ?>" />
<INPUT type="hidden" name=module value="<?php p($form->module) ?>" />
<INPUT type="hidden" name=modulename value="<?php p($form->modulename) ?>" />
<INPUT type="hidden" name=instance value="<?php p($form->instance) ?>" />
<INPUT type="hidden" name=mode value="<?php p($form->mode) ?>" />
<BR />
<?php
echo "<a href=\"../mod/attendance/add.php?id=".$form->course . "&section=".$form->section ."\">Add multiple rolls</a><br /><br />";
?>
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
<INPUT type="submit" name="cancel" value="<?php print_string("cancel") ?>">
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
<INPUT type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
</CENTER>
</FORM>
+1 -1
View File
@@ -96,7 +96,7 @@ if ($arsc_my = arsc_getdatafromsid($arsc_sid))
echo "<a href=\"../version_".$arsc_my["version"]."/index.php?arsc_sid=".$arsc_my["sid"]."&arsc_lastid=".$arsc_lastid."&arsc_pretext=".urlencode("/msg ".$arsc_a["user"]." ")."\">".$arsc_opstring.$arsc_a["user"]."</a>\n";
}
}
echo "<br>";
echo "<br />";
$arsc_result = mysql_query("SELECT * from arsc_room_$arsc_room WHERE timeid > '$arsc_lastid' ORDER BY timeid DESC");
while ($arsc_a = mysql_fetch_array($arsc_result))
{
+3 -3
View File
@@ -52,7 +52,7 @@
$newid = insert_record ("chat",$chat);
//Do some output
echo "<ul><li>".get_string("modulename","chat")." \"".$chat->name."\"<br>";
echo "<ul><li>".get_string("modulename","chat")." \"".$chat->name."\"<br />";
backup_flush(300);
if ($newid) {
@@ -126,7 +126,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -180,7 +180,7 @@
$status = true;
break;
default:
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br>"; //Debug
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br />"; //Debug
break;
}
+3 -3
View File
@@ -78,7 +78,7 @@
$newid = insert_record ("choice",$choice);
//Do some output
echo "<ul><li>".get_string("modulename","choice")." \"".$choice->name."\"<br>";
echo "<ul><li>".get_string("modulename","choice")." \"".$choice->name."\"<br />";
backup_flush(300);
if ($newid) {
@@ -144,7 +144,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -228,7 +228,7 @@
$status = true;
break;
default:
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br>"; //Debug
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br />"; //Debug
break;
}
+3 -3
View File
@@ -105,16 +105,16 @@
foreach ($choice->answer as $key => $answer) {
if ($answer) {
echo "<TD ALIGN=CENTER>";
echo "<INPUT type=radio name=answer value=\"$key\" ".$answerchecked[$key].">";
echo "<INPUT type=radio name=answer value=\"$key\" ".$answerchecked[$key]." />";
p($answer);
echo "</TD>";
}
}
echo "</TR></TABLE>";
echo "<INPUT type=hidden name=id value=\"$cm->id\">";
echo "<INPUT type=hidden name=id value=\"$cm->id\" />";
if (isstudent($course->id) or isteacher($course->id, 0, false)) {
echo "<INPUT type=submit value=\"".get_string("savemychoice","choice")."\">";
echo "<INPUT type=submit value=\"".get_string("savemychoice","choice")."\" />";
} else {
print_string('havetologin', 'choice');
}
+1 -1
View File
@@ -92,7 +92,7 @@ function dialogue_cron () {
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->".
"<a href=\"$CFG->wwwroot/mod/dialogue/index.php?id=$course->id\">dialogues</a> ->".
"<a href=\"$CFG->wwwroot/mod/dialogue/view.php?id=$cm->id\">$dialogue->name</a></font></p>";
$posthtml .= "<hr><font face=\"sans-serif\">";
$posthtml .= "<hr /><font face=\"sans-serif\">";
$posthtml .= "<p>".get_string("dialoguemailhtml", "dialogue", $dialogueinfo)."</p>";
$posthtml .= "</font><hr />";
} else {
+3 -3
View File
@@ -57,7 +57,7 @@
$newid = insert_record ("dialogue",$dialogue);
//Do some output
echo "<ul><li>".get_string("modulename","dialogue")." \"".$dialogue->name."\"<br>";
echo "<ul><li>".get_string("modulename","dialogue")." \"".$dialogue->name."\"<br />";
backup_flush(300);
if ($newid) {
@@ -134,7 +134,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -202,7 +202,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
+1 -1
View File
@@ -95,7 +95,7 @@
number_format($exercise->gradinggrade * $assessment->gradinggrade / 100, 0), "");
echo "</td></tr>\n";
echo "<tr><td colspan=\"2\" align=\"center\">";
echo "<INPUT TYPE=submit VALUE=\"".get_string("amend", "exercise")."\">\n";
echo "<INPUT TYPE=submit VALUE=\"".get_string("amend", "exercise")."\" />\n";
echo "</td></tr>\n";
echo "</table>\n";
echo "</CENTER>";
+34 -34
View File
@@ -1568,11 +1568,11 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
// FORM is needed for Mozilla browsers, else radio bttons are not checked
?>
<form name="assessmentform" method="post" action="assessments.php">
<INPUT TYPE="hidden" NAME="id" VALUE="<?PHP echo $cm->id ?>">
<input type="hidden" name="aid" value="<?PHP echo $assessment->id ?>">
<input type="hidden" name="action" value="updateassessment">
<input type="hidden" name="resubmit" value="0">
<input type="hidden" name="returnto" value="<?PHP echo $returnto ?>">
<INPUT TYPE="hidden" NAME="id" VALUE="<?PHP echo $cm->id ?>" />
<input type="hidden" name="aid" value="<?PHP echo $assessment->id ?>" />
<input type="hidden" name="action" value="updateassessment" />
<input type="hidden" name="resubmit" value="0" />
<input type="hidden" name="returnto" value="<?PHP echo $returnto ?>" />
<?PHP
if ($assessment) {
if (!$assessmentowner = get_record("user", "id", $assessment->userid)) {
@@ -1687,10 +1687,10 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
}
}
if ($checked) {
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED> &nbsp;&nbsp;&nbsp;\n";
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED=\"checked\" /> &nbsp;&nbsp;&nbsp;\n";
}
else {
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\"> &nbsp;&nbsp;&nbsp;\n";
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" /> &nbsp;&nbsp;&nbsp;\n";
}
}
echo "&nbsp;&nbsp;&nbsp;<B>$SCALE->end</B></CENTER>\n";
@@ -1768,10 +1768,10 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
}
}
if ($checked) {
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED> &nbsp;&nbsp;&nbsp;\n";
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED=\"checked\" /> &nbsp;&nbsp;&nbsp;\n";
}
else {
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\"> &nbsp;&nbsp;&nbsp;\n";
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" /> &nbsp;&nbsp;&nbsp;\n";
}
}
echo "&nbsp;&nbsp;&nbsp;<B>$SCALE->end</B></CENTER>\n";
@@ -1873,10 +1873,10 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
echo " <TD>$iplus1</TD><TD>".text_to_html($elements[$i]->description)."</TD>\n";
if ($selection == $i) {
echo " <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[0]\" VALUE=\"$i\" CHECKED></TD>\n";
echo " <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[0]\" VALUE=\"$i\" CHECKED=\"checked\" /></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\" /></TD>\n";
}
echo "<TD align=center>{$elements[$i]->maxscore}</TD></TR>\n";
}
@@ -1930,9 +1930,9 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
echo "<TR valign=top>\n";
if ($selection == $j) {
echo " <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED></TD>\n";
echo " <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED=\"checked\" /></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\" /></TD>\n";
}
echo "<TD>".text_to_html($rubrics[$j]->description)."</TD>\n";
}
@@ -2047,7 +2047,7 @@ function exercise_print_assessments_by_user_for_admin($exercise, $user) {
get_string("amend", "exercise")." ".get_string("gradeforstudentsassessment","exercise",
$course->student)."</a>\n";
echo " | <a href=\"assessments.php?action=adminconfirmdelete&id=$cm->id&aid=$assessment->id\">".
get_string("delete", "exercise")."</a></p><hr>\n";
get_string("delete", "exercise")."</a></p><hr />\n";
}
}
}
@@ -2071,7 +2071,7 @@ function exercise_print_assessments_for_admin($exercise, $submission) {
echo "<p><center><b>".get_string("assessmentby", "exercise", fullname($user))."</b></center></p>\n";
exercise_print_assessment_form($exercise, $assessment);
echo "<p align=\"right\"><a href=\"assessments.php?action=adminconfirmdelete&id=$cm->id&aid=$assessment->id\">".
get_string("delete", "exercise")."</a></p><hr>\n";
get_string("delete", "exercise")."</a></p><hr />\n";
}
}
}
@@ -2367,12 +2367,12 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
?>
<form name="assessmentform" method="post" action="assessments.php">
<INPUT TYPE="hidden" NAME="id" VALUE="<?PHP echo $cm->id ?>">
<input type="hidden" name="said" value="<?PHP echo $assessment->id ?>">
<input type="hidden" name="sid" value="<?PHP echo $submission->id ?>">
<input type="hidden" name="action" value="updateteacherassessment">
<input type="hidden" name="resubmit" value="0">
<input type="hidden" name="returnto" value="<?PHP echo $returnto ?>">
<INPUT TYPE="hidden" NAME="id" VALUE="<?PHP echo $cm->id ?>" />
<input type="hidden" name="said" value="<?PHP echo $assessment->id ?>" />
<input type="hidden" name="sid" value="<?PHP echo $submission->id ?>" />
<input type="hidden" name="action" value="updateteacherassessment" />
<input type="hidden" name="resubmit" value="0" />
<input type="hidden" name="returnto" value="<?PHP echo $returnto ?>" />
<?PHP
// now print a normal assessment form based on the student's assessment for this submission
@@ -2482,10 +2482,10 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
}
}
if ($checked) {
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED> &nbsp;&nbsp;&nbsp;\n";
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED=\"checked\" /> &nbsp;&nbsp;&nbsp;\n";
}
else {
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\"> &nbsp;&nbsp;&nbsp;\n";
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" /> &nbsp;&nbsp;&nbsp;\n";
}
}
echo "&nbsp;&nbsp;&nbsp;<B>$SCALE->end</B></CENTER>\n";
@@ -2561,10 +2561,10 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
}
}
if ($checked) {
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED> &nbsp;&nbsp;&nbsp;\n";
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED=\"checked\" /> &nbsp;&nbsp;&nbsp;\n";
}
else {
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\"> &nbsp;&nbsp;&nbsp;\n";
echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" /> &nbsp;&nbsp;&nbsp;\n";
}
}
echo "&nbsp;&nbsp;&nbsp;<B>$SCALE->end</B></CENTER>\n";
@@ -2662,10 +2662,10 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
echo "<TR valign=top>\n";
echo " <TD>$iplus1</TD><TD>".text_to_html($elements[$i]->description)."</TD>\n";
if ($selection == $i) {
echo " <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[0]\" VALUE=\"$i\" CHECKED></TD>\n";
echo " <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[0]\" VALUE=\"$i\" CHECKED=\"checked\" /></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\" /></TD>\n";
}
echo "<TD align=center>{$elements[$i]->maxscore}</TD></TR>\n";
}
@@ -2715,9 +2715,9 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
}
echo "<TR valign=top>\n";
if ($selection == $j) {
echo " <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED></TD>\n";
echo " <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED=\"checked\" /></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\" /></TD>\n";
}
echo "<TD>".text_to_html($rubrics[$j]->description)."</TD>\n";
}
@@ -2865,11 +2865,11 @@ function exercise_print_upload_form($exercise) {
echo "<DIV ALIGN=CENTER>";
echo "<FORM ENCTYPE=\"multipart/form-data\" METHOD=\"POST\" ACTION=upload.php>";
echo " <INPUT TYPE=hidden NAME=MAX_FILE_SIZE value=\"$exercise->maxbytes\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=\"$cm->id\">";
echo "<b>".get_string("title", "exercise")."</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 " <INPUT TYPE=hidden NAME=MAX_FILE_SIZE value=\"$exercise->maxbytes\" />";
echo " <INPUT TYPE=hidden NAME=id VALUE=\"$cm->id\" />";
echo "<b>".get_string("title", "exercise")."</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 " (".get_string("maximumupload").": ".display_size($exercise->maxbytes).")\n";
echo "</FORM>";
echo "</DIV>";
+6 -6
View File
@@ -75,7 +75,7 @@
$newid = insert_record ("exercise",$exercise);
//Do some output
echo "<ul><li>".get_string("modulename","exercise")." \"".$exercise->name."\"<br>";
echo "<ul><li>".get_string("modulename","exercise")." \"".$exercise->name."\"<br />";
backup_flush(300);
if ($newid) {
@@ -132,7 +132,7 @@
if (($i+1) % 10 == 0) {
echo ".";
if (($i+1) % 200 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -180,7 +180,7 @@
if (($i+1) % 10 == 0) {
echo ".";
if (($i+1) % 200 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -239,7 +239,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -311,7 +311,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -366,7 +366,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
+4 -4
View File
@@ -720,7 +720,7 @@ function forum_print_recent_activity($course, $isteacher, $timestart) {
}
$date = userdate($post->modified, $strftimerecent);
$fullname = fullname($post, $isteacher);
echo "<p $teacheronly><font size=1>$date - $fullname<br>";
echo "<p $teacheronly><font size=1>$date - $fullname<br />";
echo "\"<a href=\"$CFG->wwwroot/mod/forum/$log->url\">";
if (!empty($CFG->filterall)) {
$post->subject = filter_text("<nolink>$post->subject</nolink>", $course->id);
@@ -1825,7 +1825,7 @@ function forum_print_search_form($course, $search="", $return=false, $type="") {
$output = "<table border=0 cellpadding=10 cellspacing=0><tr><td align=center>";
$output .= "<form name=search action=\"$CFG->wwwroot/mod/forum/search.php\">";
$output .= "<font size=\"-1\">";
$output .= "<input name=search type=text size=15 value=\"$search\"><br>";
$output .= "<input name=search type=text size=15 value=\"$search\"><br />";
$output .= "<input value=\"".get_string("searchforums", "forum")."\" type=submit>";
$output .= "</font>";
$output .= "<input name=id type=hidden value=\"$course->id\">";
@@ -2527,7 +2527,7 @@ function forum_print_latest_discussions($forum_id=0, $forum_numdiscussions=5,
$link = false;
}
forum_print_post($discussion, $forum->course, $ownpost, $reply=0, $link, $assessed=false);
echo "<br>\n";
echo "<br />\n";
break;
}
}
@@ -2809,7 +2809,7 @@ function forum_print_recent_mod_activity($activity, $course, $detail=false) {
echo $activity->content->subject;
echo "</a>$closeformat";
echo "<br><font size=\"2\">";
echo "<br /><font size=\"2\">";
echo "<a href=\"$CFG->wwwroot/user/view.php?id=" . $activity->user->userid . "&course=" . "$course\">"
. $activity->user->fullname . "</a>";
echo " - " . userdate($activity->timestamp) . "</font></td></tr>";
+16 -16
View File
@@ -90,7 +90,7 @@
}
//Do some output
echo "<ul><li>".get_string("modulename","forum")." \"".$forum->name."\"<br>";
echo "<ul><li>".get_string("modulename","forum")." \"".$forum->name."\"<br />";
backup_flush(300);
if ($newid) {
@@ -158,7 +158,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -232,7 +232,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -263,7 +263,7 @@
$temp_discussion->userid = $discussion->userid;
//Update discussion (only firstpost and userid will be changed)
$status = update_record("forum_discussions",$temp_discussion);
//echo "Updated firstpost ".$old_firstpost." to ".$temp_discussion->firstpost."<br>"; //Debug
//echo "Updated firstpost ".$old_firstpost." to ".$temp_discussion->firstpost."<br />"; //Debug
} else {
$status = false;
}
@@ -319,7 +319,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -363,7 +363,7 @@
//Create temp post record
$temp_post->id = $post->id;
$temp_post->parent = $post->parent;
//echo "Updated parent ".$old_parent." to ".$temp_post->parent."<br>"; //Debug
//echo "Updated parent ".$old_parent." to ".$temp_post->parent."<br />"; //Debug
//Update post (only parent will be changed)
$status = update_record("forum_posts",$temp_post);
}
@@ -466,7 +466,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -652,7 +652,7 @@
$status = true;
break;
default:
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br>"; //Debug
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br />"; //Debug
break;
}
@@ -865,14 +865,14 @@
$post->message = addslashes($result);
$status = update_record("forum_posts",$post);
if ($CFG->debug>7) {
echo "<br><hr>".$content."<br>changed to</br>".$result."<hr><br>";
echo "<br /><hr />".$content."<br />changed to<br />".$result."<hr /><br />";
}
}
//Do some output
if (($i+1) % 5 == 0) {
echo ".";
if (($i+1) % 100 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -900,14 +900,14 @@
$forum->intro = addslashes($result);
$status = update_record("forum",$forum);
if ($CFG->debug>7) {
echo "<br><hr>".$content."<br>changed to</br>".$result."<hr><br>";
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
}
}
//Do some output
if (($i+1) % 5 == 0) {
echo ".";
if (($i+1) % 100 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -936,14 +936,14 @@
$resource->alltext = addslashes($result);
$status = update_record("resource",$resource);
if ($CFG->debug>7) {
echo "<br><hr>".$content."<br>changed to</br>".$result."<hr><br>";
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
}
}
//Do some output
if (($i+1) % 5 == 0) {
echo ".";
if (($i+1) % 100 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -971,14 +971,14 @@
$resource->summary = addslashes($result);
$status = update_record("resource",$resource);
if ($CFG->debug>7) {
echo "<br><hr>".$content."<br>changed to</br>".$result."<hr><br>";
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
}
}
//Do some output
if (($i+1) % 5 == 0) {
echo ".";
if (($i+1) % 100 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
+2 -2
View File
@@ -1,7 +1,7 @@
<form name="subscriberform" id="subscriberform" method="post" action="subscribers.php">
<input type="hidden" name="previoussearch" value="<?php echo $previoussearch ?>">
<input type="hidden" name="id" value="<?php echo $id?>">
<input type="hidden" name="previoussearch" value="<?php echo $previoussearch ?>" />
<input type="hidden" name="id" value="<?php echo $id?>" />
<table align="center" border="0" cellpadding="5" cellspacing="0">
<tr>
<td valign="top">
+7 -7
View File
@@ -32,7 +32,7 @@
<?php
if ($usehtmleditor) { /// Trying this out for a while
print_string('formathtml');
echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'">';
echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'" />';
} else {
if (!isset($form->format)) {
$form->format = $defaultformat;
@@ -48,16 +48,16 @@
<p align=center>
<?php
if (isset($comment->id)) {
echo "<input type=\"hidden\" name=cid value=\"$comment->id\">";
echo "<input type=\"hidden\" name=cid value=\"$comment->id\" />";
}
?>
<input type="hidden" name=id value="<?php p($cm->id) ?>">
<input type="hidden" name=eid value="<?php p($entry->id) ?>">
<input type="hidden" name=action value="<?php p($action) ?>">
<input type="hidden" name=id value="<?php p($cm->id) ?>" />
<input type="hidden" name=eid value="<?php p($entry->id) ?>" />
<input type="hidden" name=action value="<?php p($action) ?>" />
<input type="hidden" name=confirm value="1">
<input type="submit" value="<?php print_string("savechanges") ?>">
<input type="reset" value="<?php print_string("revert") ?>">
<input type="submit" value="<?php print_string("savechanges") ?>" />
<input type="reset" value="<?php print_string("revert") ?>" />
</P>
</td>
</tr>
+8 -8
View File
@@ -99,16 +99,16 @@
glossary_print_comment($course, $cm, $glossary, $entry, $comment);
print_simple_box_start("center","40%", "#FFBBBB");
echo "<center><br>" . get_string("areyousuredeletecomment","glossary");
echo "<center><br />" . get_string("areyousuredeletecomment","glossary");
?>
<form name="form" method="post" action="comment.php">
<input type="hidden" name=id value="<?php p($id) ?>">
<input type="hidden" name=eid value="<?php p($eid) ?>">
<input type="hidden" name=cid value="<?php p($cid) ?>">
<input type="hidden" name=action value="delete">
<input type="hidden" name=confirm value="1">
<input type="submit" value=" <?php print_string("yes")?> ">
<input type=button value=" <?php print_string("no")?> " onclick="javascript:history.go(-1);">
<input type="hidden" name=id value="<?php p($id) ?>" />
<input type="hidden" name=eid value="<?php p($eid) ?>" />
<input type="hidden" name=cid value="<?php p($cid) ?>" />
<input type="hidden" name=action value="delete" />
<input type="hidden" name=confirm value="1" />
<input type="submit" value=" <?php print_string("yes")?> " />
<input type=button value=" <?php print_string("no")?> " onclick="javascript:history.go(-1);" />
</form>
</center>
+2 -2
View File
@@ -11,7 +11,7 @@
<tr valign=top>
<td align=right><p>glossary_entbypage:</td>
<td>
<input name=glossary_entbypage type=text size=3 value="<?php p(isset($CFG->glossary_entbypage) ? $CFG->glossary_entbypage : 10) ?>">
<input name=glossary_entbypage type=text size=3 value="<?php p(isset($CFG->glossary_entbypage) ? $CFG->glossary_entbypage : 10) ?>" />
</td>
<td>
<?php print_string("entbypage", "glossary") ?>
@@ -261,7 +261,7 @@
</tr>
<tr>
<td colspan=3 align=center>
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>
+20 -20
View File
@@ -17,14 +17,14 @@ if (isset($errors)) {
<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td width="150" align=right><p><b><?php echo get_string("concept","glossary") ?>:</b></p></td>
<td><input type="text" name="concept" size=30 value="<?php p($newentry->concept) ?>"></td>
<td><input type="text" name="concept" size=30 value="<?php p($newentry->concept) ?>" /></td>
</tr>
<tr>
<td align="right"><p><b><?php echo get_string("categories","glossary") ?>:</b></p></td>
<td valign="top">
<?php
$categories = get_records("glossary_categories","glossaryid",$glossary->id,'name ASC');
echo "<select size=\"5\" name=\"categories[]\" multiple=\"yes\">";
echo "<select size=\"5\" name=\"categories[]\" multiple=\"yes\" />";
echo "<option value=\"0\">" . get_string("notcategorised","glossary") . "</option>";
if ( $categories ) {
@@ -60,9 +60,9 @@ if (isset($errors)) {
<td colspan="2">
<?php
if ( !$glossary->usedynalink ) {
echo '<input type="hidden" name=usedynalink value="0">';
echo '<input type="hidden" name=casesensitive value="0">';
echo '<input type="hidden" name=fullmatch value="0">';
echo '<input type="hidden" name=usedynalink value="0" />';
echo '<input type="hidden" name=casesensitive value="0" />';
echo '<input type="hidden" name=fullmatch value="0" />';
} else {
echo '<script>var items = [\'casesensitive\',\'fullmatch\'];</script>';
@@ -71,7 +71,7 @@ if (isset($errors)) {
} else {
$selected = "";
}
echo '<input type="checkbox" name="usedynalink" value=1 ' . $selected . ' onclick="return lockoptions(\'form\',\'usedynalink\', items)"> ';
echo '<input type="checkbox" name="usedynalink" value=1 ' . $selected . ' onclick="return lockoptions(\'form\',\'usedynalink\', items)" /> ';
echo '<font size="-1">';
print_string("entryusedynalink","glossary");
echo '</font>';
@@ -83,7 +83,7 @@ if (isset($errors)) {
} else {
$selected = "";
}
echo '<input type="checkbox" name="casesensitive" value=1 ' . $selected . '> ';
echo '<input type="checkbox" name="casesensitive" value=1 ' . $selected . ' /> ';
echo '<font size="-1">';
print_string("casesensitive","glossary");
echo '</font>';
@@ -96,7 +96,7 @@ if (isset($errors)) {
} else {
$selected = "";
}
echo '<input type="checkbox" name="fullmatch" value=1 ' . $selected . '> ';
echo '<input type="checkbox" name="fullmatch" value=1 ' . $selected . ' /> ';
echo '<font size="-1">';
print_string("fullmatch","glossary");
echo '</font>';
@@ -143,7 +143,7 @@ if (isset($errors)) {
<?php
if ($usehtmleditor) { /// Trying this out for a while
print_string('formathtml');
echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'">';
echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'" />';
} else {
if (!isset($newentry->format)) {
$newentry->format = $defaultformat;
@@ -158,8 +158,8 @@ if (isset($errors)) {
<tr valign=top>
<td align=right><p><b><?php print_string("attachment", "glossary") ?>:<br />(<?php print_string("optional") ?>)&nbsp;</b></p></td>
<td>
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_max_upload_file_size($CFG->maxbytes, $course->maxbytes) ?>">
<input type="file" name="attachment" size=40>
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_max_upload_file_size($CFG->maxbytes, $course->maxbytes) ?>" />
<input type="file" name="attachment" size=40 />
<?php
helpbutton("attachment", get_string("attachment", "glossary"), "glossary");
print_string("maxsize", "", display_size(get_max_upload_file_size($CFG->maxbytes, $course->maxbytes)));
@@ -170,21 +170,21 @@ if (isset($errors)) {
<td colspan=2>
<p align=center>
<?php if (isset($newentry->id)) {
echo "<input type=\"hidden\" name=e value=\"$newentry->id\">";
echo "<input type=\"hidden\" name=e value=\"$newentry->id\" />";
}
?>
<input type="hidden" name=husedynalink value="1">
<input type="hidden" name=hcasesensitive value="0">
<input type="hidden" name=hfullmatch value="1">
<input type="hidden" name=husedynalink value="1" />
<input type="hidden" name=hcasesensitive value="0" />
<input type="hidden" name=hfullmatch value="1" />
<input type="hidden" name=id value="<?php p($cm->id) ?>">
<input type="hidden" name=mode value="<?php p($mode) ?>">
<input type="hidden" name=hook value="<?php p($hook) ?>">
<input type="hidden" name=id value="<?php p($cm->id) ?>" />
<input type="hidden" name=mode value="<?php p($mode) ?>" />
<input type="hidden" name=hook value="<?php p($hook) ?>" />
<input type="hidden" name=confirm value="1">
<input type="submit" value="<?php print_string("savechanges") ?>">
<input type="reset" value="<?php print_string("revert") ?>">
<input type="submit" value="<?php print_string("savechanges") ?>" />
<input type="reset" value="<?php print_string("revert") ?>" />
</P>
</td>
</tr>
+8 -8
View File
@@ -8,7 +8,7 @@
<tr valign=top>
<td align=right><p><b><?php echo get_string("name") ?>:</b></p></td>
<td>
<INPUT type="text" name="name" size=30 value="<?php p($name) ?>">
<INPUT type="text" name="name" size=30 value="<?php p($name) ?>" />
</td>
</tr>
<tr valign=top>
@@ -31,13 +31,13 @@
</tr>
<td colspan=2>
<p align=center>
<input type="hidden" name=id value="<?php p($cm->id) ?>">
<input type="hidden" name=action value="<?php p($action) ?>">
<input type="hidden" name=confirm value=1>
<input type="hidden" name=mode value='cat'>
<input type="hidden" name=hook value="<?php p($hook) ?>">
<input type="submit" value="<?php print_string("savechanges") ?>">
<input type="reset" value="<?php print_string("back","glossary") ?>" onclick="javascript:history.go(-1);">
<input type="hidden" name=id value="<?php p($cm->id) ?>" />
<input type="hidden" name=action value="<?php p($action) ?>" />
<input type="hidden" name=confirm value=1 />
<input type="hidden" name=mode value='cat' />
<input type="hidden" name=hook value="<?php p($hook) ?>" />
<input type="submit" value="<?php print_string("savechanges") ?>" />
<input type="reset" value="<?php print_string("back","glossary") ?>" onclick="javascript:history.go(-1);" />
</P>
</td>
</tr>
+8 -8
View File
@@ -100,7 +100,7 @@
echo "<p align=\"center\">" . get_string("delete"). " " . get_string("category","glossary") . "<font size=\"3\">";
print_simple_box_start("center","40%", "#FFBBBB");
echo "<center><b>$category->name</b><br>";
echo "<center><b>$category->name</b><br />";
$num_entries = count_records("glossary_entries_categories","categoryid",$category->id);
if ( $num_entries ) {
@@ -111,13 +111,13 @@
?>
<form name="form" method="post" action="editcategories.php">
<input type="hidden" name=id value="<?php p($cm->id) ?>">
<input type="hidden" name=action value="delete">
<input type="hidden" name=confirm value="1">
<input type="hidden" name=mode value="<?php echo $mode ?>">
<input type="hidden" name=hook value="<?php echo $hook ?>">
<table border=0 widTH=100><tr><td align=right width=50%>
<input type="submit" value=" <?php print_string("yes")?> ">
<input type="hidden" name=id value="<?php p($cm->id) ?>" />
<input type="hidden" name=action value="delete" />
<input type="hidden" name=confirm value="1" />
<input type="hidden" name=mode value="<?php echo $mode ?>" />
<input type="hidden" name=hook value="<?php echo $hook ?>" />
<table border=0 widTH=100><tr><td align=right width="50%" />
<input type="submit" value=" <?php print_string("yes")?> " />
</form>
</td><td align=left width=50%>
+1 -1
View File
@@ -53,7 +53,7 @@
if ( !$confirm ) {
echo "<center>";
$areyousure = get_string("areyousureexport","glossary");
notice_yesno ("<center><h2>$entry->concept</h2><p align=center>$areyousure<br><b>$mainglossary->name</b>?",
notice_yesno ("<center><h2>$entry->concept</h2><p align=center>$areyousure<br /><b>$mainglossary->name</b>?",
"exportentry.php?id=$id&mode=$mode&hook=$hook&entry=$entry->id&confirm=1",
"view.php?id=$cm->id&mode=$mode&hook=$hook" );
+3 -3
View File
@@ -259,10 +259,10 @@
</tr>
<tr>
<td colspan=3 align=center>
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
<input type="hidden" name=id value="<?php p($id) ?>">
<input type="hidden" name=mode value="edit">
<input type="hidden" name=id value="<?php p($id) ?>" />
<input type="hidden" name=mode value="edit" />
<?PHP
print_simple_box_end();
+8 -8
View File
@@ -3,7 +3,7 @@
<tr>
<td align=right valign=top width="30%"><p><b><?php print_string("filetoimport","glossary") ?>:</b></p></td>
<td width="70%">
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_max_upload_file_size() ?>">
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_max_upload_file_size() ?>" />
<input type="file" name="file" size=40> <br />
<?php
helpbutton("filetoimport", get_string("filetoimport", "glossary"), "glossary");
@@ -23,7 +23,7 @@
</select> <?PHP helpbutton("destination", get_string("destination", "glossary"), "glossary") ?></td>
<td width="25%">
<p align="right"><?PHP p(get_string("importcategories","glossary")) ?>:</td>
<td width="25%"><input type="checkbox" name="catsincl" value="1"> <?PHP helpbutton("importcategories", get_string("importcategories", "glossary"), "glossary") ?></td>
<td width="25%"><input type="checkbox" name="catsincl" value="1" /> <?PHP helpbutton("importcategories", get_string("importcategories", "glossary"), "glossary") ?></td>
</tr>
</table>
</td>
@@ -33,15 +33,15 @@
<table border="0" cellpadding="3" cellspacing="3" width="100%">
<tr>
<td width="50%">
<p align="right"><input type="submit" value="<?php print_string("savechanges") ?>"></td>
<td width="50%"><input type="reset" value="<?php print_string("revert") ?>"></td>
<p align="right"><input type="submit" value="<?php print_string("savechanges") ?>" /></td>
<td width="50%"><input type="reset" value="<?php print_string("revert") ?>" /></td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="id" value="<?PHP p($id) ?>">
<input type="hidden" name="l" value="<?PHP p($l) ?>">
<input type="hidden" name="lasttab" value="<?PHP p($lasttab) ?>">
<input type="hidden" name="step" value="1">
<input type="hidden" name="id" value="<?PHP p($id) ?>" />
<input type="hidden" name="l" value="<?PHP p($l) ?>" />
<input type="hidden" name="lasttab" value="<?PHP p($lasttab) ?>" />
<input type="hidden" name="step" value="1" />
</form>
+5 -5
View File
@@ -262,7 +262,7 @@ function glossary_print_recent_activity($course, $isteacher, $timestart) {
$user = get_record("user","id",$entry->userid);
$fullname = fullname($user, $isteacher);
echo "<p><font size=1>$date - $fullname<br>";
echo "<p><font size=1>$date - $fullname<br />";
echo "\"<a href=\"$CFG->wwwroot/mod/glossary/view.php?g=$entry->glossaryid&mode=entry&hook=$entry->id\">";
echo "$entry->concept";
echo "</a>\"</font></p>";
@@ -462,7 +462,7 @@ function glossary_debug($debug,$text,$br=1) {
if ( $debug ) {
echo '<font color=red>' . $text . '</font>';
if ( $br ) {
echo '<br>';
echo '<br />';
}
}
}
@@ -1262,7 +1262,7 @@ for ($row = 0; $row < $numrows; $row++) {
</td>
</tr>
<tr>
<td width="100%" bgcolor="<?php p($tablecolor) ?>"><hr></td>
<td width="100%" bgcolor="<?php p($tablecolor) ?>"><hr /></td>
</tr>
<tr>
<td width="100%" bgcolor="<?php p($tablecolor) ?>">
@@ -1430,7 +1430,7 @@ global $CFG;
if ((int) ($i % $letters_by_line) != 0 or $i == 0) {
echo ' | ';
} else {
echo '<br>';
echo '<br />';
}
}
}
@@ -1515,7 +1515,7 @@ global $CFG;
$sort = get_string("sortby", "glossary");
}
echo "<br>$sort: $sbtag<a title=\"$ssort $sordertitle\" href=\"$CFG->wwwroot/mod/glossary/view.php?id=$cm->id&sortkey=$sorder$sneworder&mode=$mode\">$ssort$sicon</a>$sendbtag | ".
echo "<br />$sort: $sbtag<a title=\"$ssort $sordertitle\" href=\"$CFG->wwwroot/mod/glossary/view.php?id=$cm->id&sortkey=$sorder$sneworder&mode=$mode\">$ssort$sicon</a>$sendbtag | ".
"$fbtag<a title=\"$fsort $fordertitle\" href=\"$CFG->wwwroot/mod/glossary/view.php?id=$cm->id&sortkey=$forder$fneworder&mode=$mode\">$fsort$ficon</a>$fendbtag<br />";
}
+32 -32
View File
@@ -72,7 +72,7 @@ if (!isset($form->assesstimefinish)) {
<TR valign=top>
<TD align=right><P><B><?php print_string("name") ?>:</B></P></TD>
<TD>
<INPUT type="text" name="name" size=30 value="<?php p($form->name) ?>">
<INPUT type="text" name="name" size=30 value="<?php p($form->name) ?>" />
</TD>
</TR>
<tr valign=top>
@@ -95,7 +95,7 @@ if (!isset($form->assesstimefinish)) {
<TR valign=top>
<TD align=right><P><B><?php echo get_string("entbypage", "glossary") ?>:</B></P></TD>
<TD>
<input name=entbypage type=text size=2 value="<?php p($form->entbypage) ?>"> <?php helpbutton("entbypage", get_string("entbypage", "glossary"), "glossary") ?>
<input name=entbypage type=text size=2 value="<?php p($form->entbypage) ?>" /> <?php helpbutton("entbypage", get_string("entbypage", "glossary"), "glossary") ?>
</TD>
</TR>
@@ -114,12 +114,12 @@ if (isadmin() ) {
}
}
?>
<input type="checkbox" name="globalglossary" value=1 <?PHP p($selected)?>> <?php helpbutton("globalglossary", get_string("globalglossary", "glossary"), "glossary") ?>
<input type="checkbox" name="globalglossary" value=1 selected="<?PHP p($selected)?>" /> <?php helpbutton("globalglossary", get_string("globalglossary", "glossary"), "glossary") ?>
</TD>
</TR>
<?php
} else {
echo '<INPUT type="hidden" name=globalglossary value="' . $form->globalglossary . '">';
echo '<INPUT type="hidden" name=globalglossary value="' . $form->globalglossary . '" />';
}
?>
<?php
@@ -147,11 +147,11 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
</TR>
<?php
} else {
echo "<INPUT type=\"hidden\" name=mainglossary value=\"0\">";
echo "<INPUT type=\"hidden\" name=mainglossary value=\"0\" />";
}
?>
<TR valign=top>
<TD align=right><P><B><?php p(get_string("studentcanpost", "glossary")) ?>:</B><br>
<TD align=right><P><B><?php p(get_string("studentcanpost", "glossary")) ?>:</B><br />
<font size=1><?php p(get_string("warningstudentcapost","glossary")) ?></font></P></TD>
<TD>
<select size="1" name="studentcanpost">
@@ -246,7 +246,7 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
</TD>
</TR>
<TR valign=top>
<td colspan=2><hr>
<td colspan=2><hr />
</tr>
</tr>
<TR valign=top>
@@ -405,9 +405,9 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
echo "<input name=\"userating\" type=checkbox value=1 ";
echo " onclick=\"return lockoptions('form','userating', subitemsall)\" ";
if ($form->assessed) {
echo " checked ";
echo " checked=\"checked\" ";
}
echo ">";
echo " />";
echo get_string("ratingsuse", "glossary").":";
echo "<br />";
@@ -427,9 +427,9 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
echo " onclick=\"return lockoptions('form','ratingtime', subitemstime)\" ";
if ($form->assesstimestart and $form->assesstimefinish and $form->assessed) {
$form->ratingtime = 1;
echo " checked ";
echo " checked=\"checked\" ";
}
echo ">";
echo " />";
print_string("ratingtime", "glossary");
echo "<table align=left><tr><td align=right nowrap>";
@@ -442,19 +442,19 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
print_time_selector("finishhour", "finishminute", $form->assesstimefinish);
echo "<br />";
echo "</td></tr></table>";
echo "<input type=\"hidden\" name=\"hratingtime\" value=0>";
echo "<input type=\"hidden\" name=\"hassessed\" value=0>";
echo "<input type=\"hidden\" name=\"hscale\" value=0>";
echo "<input type=\"hidden\" name=\"hstartday\" value=0>";
echo "<input type=\"hidden\" name=\"hstartmonth\" value=0>";
echo "<input type=\"hidden\" name=\"hstartyear\" value=0>";
echo "<input type=\"hidden\" name=\"hstarthour\" value=0>";
echo "<input type=\"hidden\" name=\"hstartminute\" value=0>";
echo "<input type=\"hidden\" name=\"hfinishday\" value=0>";
echo "<input type=\"hidden\" name=\"hfinishmonth\" value=0>";
echo "<input type=\"hidden\" name=\"hfinishyear\" value=0>";
echo "<input type=\"hidden\" name=\"hfinishhour\" value=0>";
echo "<input type=\"hidden\" name=\"hfinishminute\" value=0>";
echo "<input type=\"hidden\" name=\"hratingtime\" value=0 />";
echo "<input type=\"hidden\" name=\"hassessed\" value=0 />";
echo "<input type=\"hidden\" name=\"hscale\" value=0 />";
echo "<input type=\"hidden\" name=\"hstartday\" value=0 />";
echo "<input type=\"hidden\" name=\"hstartmonth\" value=0 />";
echo "<input type=\"hidden\" name=\"hstartyear\" value=0 />";
echo "<input type=\"hidden\" name=\"hstarthour\" value=0 />";
echo "<input type=\"hidden\" name=\"hstartminute\" value=0 />";
echo "<input type=\"hidden\" name=\"hfinishday\" value=0 />";
echo "<input type=\"hidden\" name=\"hfinishmonth\" value=0 />";
echo "<input type=\"hidden\" name=\"hfinishyear\" value=0 />";
echo "<input type=\"hidden\" name=\"hfinishhour\" value=0 />";
echo "<input type=\"hidden\" name=\"hfinishminute\" value=0 />";
echo "<script>";
echo "lockoptions('form','userating', subitemsall);";
@@ -470,13 +470,13 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
</tr>
</TABLE>
<!-- These hidden variables are always the same -->
<INPUT type="hidden" name=course value="<?php p($form->course) ?>">
<INPUT type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
<INPUT type="hidden" name=section value="<?php p($form->section) ?>">
<INPUT type="hidden" name=module value="<?php p($form->module) ?>">
<INPUT type="hidden" name=modulename value="<?php p($form->modulename) ?>">
<INPUT type="hidden" name=instance value="<?php p($form->instance) ?>">
<INPUT type="hidden" name=mode value="<?php p($form->mode) ?>">
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
<INPUT type="hidden" name=course value="<?php p($form->course) ?>" />
<INPUT type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>" />
<INPUT type="hidden" name=section value="<?php p($form->section) ?>" />
<INPUT type="hidden" name=module value="<?php p($form->module) ?>" />
<INPUT type="hidden" name=modulename value="<?php p($form->modulename) ?>" />
<INPUT type="hidden" name=instance value="<?php p($form->instance) ?>" />
<INPUT type="hidden" name=mode value="<?php p($form->mode) ?>" />
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
</CENTER>
</FORM>
+2 -2
View File
@@ -144,7 +144,7 @@
$site = get_record("course","id",1);
echo '<p align="right"><font size=-1>' . userdate(time()) . '</font></p>';
echo '<strong>' . $site->fullname . '</strong><br>';
echo '<strong>' . $site->fullname . '</strong><br />';
echo get_string("course") . ': <strong>' . $course->fullname . ' ('. $course->shortname . ')</strong><br />';
echo get_string("modulename","glossary") . ': <strong>' . $glossary->name . '</strong><p>';
if ( $allentries ) {
@@ -176,7 +176,7 @@
echo ($definition);
echo '<br><br>';
echo '<br /><br />';
}
}
+8 -8
View File
@@ -112,7 +112,7 @@
$newid = insert_record ("glossary",$glossary);
//Do some output
echo "<ul><li>".get_string("modulename","glossary")." \"".$glossary->name."\"<br>";
echo "<ul><li>".get_string("modulename","glossary")." \"".$glossary->name."\"<br />";
backup_flush(300);
if ($newid) {
@@ -193,7 +193,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -260,7 +260,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -311,7 +311,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -349,7 +349,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -393,7 +393,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -445,7 +445,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -680,7 +680,7 @@
}
break;
default:
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br>"; //Debug
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br />"; //Debug
break;
}
+2 -2
View File
@@ -49,7 +49,7 @@
$hiddenentries = get_records_select("glossary_entries","glossaryid = $glossary->id and approved = 0");
if ($hiddenentries) {
$data[GLOSSARY_APPROVAL_VIEW]->caption .= "<br><font size=1>(" . count($hiddenentries) . " " . get_string("entries","glossary") . ")</font>";
$data[GLOSSARY_APPROVAL_VIEW]->caption .= "<br /><font size=1>(" . count($hiddenentries) . " " . get_string("entries","glossary") . ")</font>";
$data[GLOSSARY_APPROVAL_VIEW]->link = "view.php?id=$id&tab=".GLOSSARY_APPROVAL_VIEW;
$data[GLOSSARY_APPROVAL_VIEW]->link = "view.php?id=$id&mode=approval";
@@ -112,5 +112,5 @@
}
break;
}
echo '<hr>';
echo '<hr />';
?>
+10 -10
View File
@@ -260,20 +260,20 @@
echo '<p align="center">';
echo '<form method="POST" action="view.php">';
echo '<input type="submit" value="'.$strsearch.'" name="searchbutton"> ';
echo '<input type="submit" value="'.$strsearch.'" name="searchbutton" /> ';
if ($mode == 'search') {
echo '<input type="text" name="hook" size="20" value="'.$hook.'"> ';
echo '<input type="text" name="hook" size="20" value="'.$hook.'" /> ';
} else {
echo '<input type="text" name="hook" size="20" value=""> ';
echo '<input type="text" name="hook" size="20" value="" /> ';
}
if ($fullsearch) {
$fullsearchchecked = 'checked="checked"';
} else {
$fullsearchchecked = '';
}
echo '<input type="checkbox" name="fullsearch" value="1" '.$fullsearchchecked.'>';
echo '<input type="hidden" name="mode" value="search">';
echo '<input type="hidden" name="id" value="'.$cm->id.'">';
echo '<input type="checkbox" name="fullsearch" value="1" '.$fullsearchchecked.' />';
echo '<input type="hidden" name="mode" value="search" />';
echo '<input type="hidden" name="id" value="'.$cm->id.'" />';
echo $strsearchindefinition;
echo '</form>';
echo '</p>';
@@ -303,7 +303,7 @@
for ($i = 0; ($i*$entriesbypage) < $count ; $i++ ) {
if ( $paging != '' ) {
if ($i % 20 == 0 and $i) {
$paging .= '<br>';
$paging .= '<br />';
} else {
$paging .= ' | ';
}
@@ -335,7 +335,7 @@
}
echo "<form name=form method=post action=rate.php>";
echo "<input type=hidden name=id value=\"$course->id\">";
echo "<input type=hidden name=id value=\"$course->id\" />";
}
foreach ($allentries as $entry) {
@@ -397,7 +397,7 @@
}
if ($ratingsmenuused) {
echo "<p><center><input type=\"submit\" value=\"".get_string("sendinratings", "glossary")."\">";
echo "<p><center><input type=\"submit\" value=\"".get_string("sendinratings", "glossary")."\" />";
if ($glossary->scale < 0) {
if ($scale = get_record("scale", "id", abs($glossary->scale))) {
print_scale_menu_helpbutton($course->id, $scale );
@@ -415,7 +415,7 @@
glossary_print_tabbed_table_end();
if ( $debug and isadmin() ) {
echo '<p>';
print_simple_box("$sqlselect<br> $sqlfrom<br> $sqlwhere<br> $sqlorderby<br> $sqllimit","center","85%");
print_simple_box("$sqlselect<br /> $sqlfrom<br /> $sqlwhere<br /> $sqlorderby<br /> $sqllimit","center","85%");
echo "<p align=right><font size=-3>";
echo microtime_diff($CFG->startpagetime, microtime());
+3 -3
View File
@@ -30,9 +30,9 @@
?>
</td></tr>
<tr><td align=center bgcolor="<?php echo $THEME->cellheading2 ?>" class=generalboxcontent>
<input type="hidden" name=id value="<?php echo $cm->id ?>">
<input type="submit" value="<?php print_string("savechanges") ?>">
<input type="reset" value="<?php print_string("revert") ?>">
<input type="hidden" name=id value="<?php echo $cm->id ?>" />
<input type="submit" value="<?php print_string("savechanges") ?>" />
<input type="reset" value="<?php print_string("revert") ?>" />
</td></tr></table>
</form>
+2 -2
View File
@@ -161,9 +161,9 @@ function journal_cron () {
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->".
"<a href=\"$CFG->wwwroot/mod/journal/index.php?id=$course->id\">journals</a> ->".
"<a href=\"$CFG->wwwroot/mod/journal/view.php?id=$mod->id\">$entry->name</a></font></p>";
$posthtml .= "<hr><font face=\"sans-serif\">";
$posthtml .= "<hr /><font face=\"sans-serif\">";
$posthtml .= "<p>".get_string("journalmailhtml", "journal", $journalinfo)."</p>";
$posthtml .= "</font><hr>";
$posthtml .= "</font><hr />";
} else {
$posthtml = "";
}
+10 -10
View File
@@ -22,7 +22,7 @@
<tr valign=top>
<td align=right><p><b><?php print_string("journalname", "journal") ?>:</b></p></td>
<td>
<input type="text" name="name" size=30 value="<?php p($form->name) ?>">
<input type="text" name="name" size=30 value="<?php p($form->name) ?>" />
</td>
</tr>
@@ -94,14 +94,14 @@
</table>
<center>
<input type="hidden" name=course value="<?php p($form->course) ?>">
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
<input type="hidden" name=section value="<?php p($form->section) ?>">
<input type="hidden" name=module value="<?php p($form->module) ?>">
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>">
<input type="hidden" name=instance value="<?php p($form->instance) ?>">
<input type="hidden" name=mode value="<?php p($form->mode) ?>">
<input type="submit" value="<?php print_string("savechanges") ?>">
<input type="submit" name=cancel value="<?php print_string("cancel") ?>">
<input type="hidden" name=course value="<?php p($form->course) ?>" />
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>" />
<input type="hidden" name=section value="<?php p($form->section) ?>" />
<input type="hidden" name=module value="<?php p($form->module) ?>" />
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>" />
<input type="hidden" name=instance value="<?php p($form->instance) ?>" />
<input type="hidden" name=mode value="<?php p($form->mode) ?>" />
<input type="submit" value="<?php print_string("savechanges") ?>" />
<input type="submit" name=cancel value="<?php print_string("cancel") ?>" />
</form>
</center>
+2 -2
View File
@@ -134,8 +134,8 @@
if ($allowedtograde) {
echo "<center>";
echo "<input type=hidden name=id value=\"$cm->id\">";
echo "<input type=submit value=\"".get_string("saveallfeedback", "journal")."\">";
echo "<input type=hidden name=id value=\"$cm->id\" />";
echo "<input type=submit value=\"".get_string("saveallfeedback", "journal")."\" />";
echo "</center>";
echo "</form>";
}
+3 -3
View File
@@ -59,7 +59,7 @@
$newid = insert_record ("journal",$journal);
//Do some output
echo "<ul><li>".get_string("modulename","journal")." \"".$journal->name."\"<br>";
echo "<ul><li>".get_string("modulename","journal")." \"".$journal->name."\"<br />";
backup_flush(300);
if ($newid) {
@@ -138,7 +138,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -240,7 +240,7 @@
$status = true;
break;
default:
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br>"; //Debug
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br />"; //Debug
break;
}
+8 -8
View File
@@ -31,13 +31,13 @@
</table>
<!-- these hidden variables are always the same -->
<input type="hidden" name=course value="<?php p($form->course) ?>">
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
<input type="hidden" name=section value="<?php p($form->section) ?>">
<input type="hidden" name=module value="<?php p($form->module) ?>">
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>">
<input type="hidden" name=instance value="<?php p($form->instance) ?>">
<input type="hidden" name=mode value="<?php p($form->mode) ?>">
<input type="submit" value="<?php print_string("savechanges") ?>">
<input type="hidden" name=course value="<?php p($form->course) ?>" />
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>" />
<input type="hidden" name=section value="<?php p($form->section) ?>" />
<input type="hidden" name=module value="<?php p($form->module) ?>" />
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>" />
<input type="hidden" name=instance value="<?php p($form->instance) ?>" />
<input type="hidden" name=mode value="<?php p($form->mode) ?>" />
<input type="submit" value="<?php print_string("savechanges") ?>" />
</center>
</form>
+2 -2
View File
@@ -43,7 +43,7 @@
$newid = insert_record ("label",$label);
//Do some output
echo "<ul><li>".get_string("modulename","label")." \"".$label->name."\"<br>";
echo "<ul><li>".get_string("modulename","label")." \"".$label->name."\"<br />";
backup_flush(300);
if ($newid) {
@@ -96,7 +96,7 @@
}
break;
default:
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br>"; //Debug
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br />"; //Debug
break;
}
+1 -1
View File
@@ -50,7 +50,7 @@ class quiz_default_format {
case MATCH :
$count++;
echo "<hr><p><b>$count</b>. ".stripslashes($question->questiontext)."</p>";
echo "<hr /><p><b>$count</b>. ".stripslashes($question->questiontext)."</p>";
unset($newpage);
$newpage->lessonid = $lesson->id;
$newpage->qtype = $question->qtype;
+5 -5
View File
@@ -72,7 +72,7 @@
error("Error occurred during post-processing!");
}
echo "<hr>";
echo "<hr />";
print_continue("view.php?id=$cm->id");
print_footer($course);
exit;
@@ -97,8 +97,8 @@
print_simple_box_start("center", "", "$THEME->cellheading");
echo "<form enctype=\"multipart/form-data\" method=\"post\" action=import.php>";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\">\n";
echo "<input type=\"hidden\" name=\"pageid\" value=\"".$_GET['pageid']."\">\n";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />\n";
echo "<input type=\"hidden\" name=\"pageid\" value=\"".$_GET['pageid']."\" />\n";
echo "<table cellpadding=5>";
echo "<tr><td align=right>";
@@ -110,9 +110,9 @@
echo "<tr><td align=right>";
print_string("upload");
echo ":</td><td>";
echo " <input name=\"newfile\" type=\"file\" size=\"50\">";
echo " <input name=\"newfile\" type=\"file\" size=\"50\" />";
echo "</tr><tr><td>&nbsp;</td><td>";
echo " <input type=submit name=save value=\"".get_string("uploadthisfile")."\">";
echo " <input type=submit name=save value=\"".get_string("uploadthisfile")."\" />";
echo "</td></tr>";
echo "</table>";
+43 -43
View File
@@ -91,15 +91,15 @@
print_heading_with_help(get_string("addabranchtable", "lesson"), "overview", "lesson");
?>
<form name="form" method="post" action="lesson.php">
<input type="hidden" name="id" value="<?PHP echo $cm->id ?>">
<input type="hidden" name="action" value="insertpage">
<input type="hidden" name="pageid" value="<?PHP echo $_GET['pageid'] ?>">
<input type="hidden" name="qtype" value="<?PHP echo LESSON_BRANCHTABLE ?>">
<input type="hidden" name="id" value="<?PHP echo $cm->id ?>" />
<input type="hidden" name="action" value="insertpage" />
<input type="hidden" name="pageid" value="<?PHP echo $_GET['pageid'] ?>" />
<input type="hidden" name="qtype" value="<?PHP echo LESSON_BRANCHTABLE ?>" />
<center><table cellpadding=5 border=1>
<tr><td align="center">
<tr valign="top">
<td><b><?php print_string("pagetitle", "lesson"); ?>:</b><br />
<input type="text" name="title" size="80" maxsize="255" value=""></td></tr>
<input type="text" name="title" size="80" maxsize="255" value="" /></td></tr>
<?PHP
echo "<tr><td><b>";
echo get_string("pagecontents", "lesson").":</b><br />\n";
@@ -125,8 +125,8 @@
// close table and form
?>
</table><br />
<input type="submit" value="<?php print_string("addabranchtable", "lesson") ?>">
<input type="submit" name="cancel" value="<?php print_string("cancel") ?>">
<input type="submit" value="<?php print_string("addabranchtable", "lesson") ?>" />
<input type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
</center>
</form>
<?PHP
@@ -228,14 +228,14 @@
print_heading_with_help(get_string("addaquestionpage", "lesson"), "overview", "lesson");
?>
<form name="form" method="post" action="lesson.php">
<input type="hidden" name="id" value="<?PHP echo $cm->id ?>">
<input type="hidden" name="action" value="insertpage">
<input type="hidden" name="pageid" value="<?PHP echo $_GET['pageid'] ?>">
<input type="hidden" name="id" value="<?PHP echo $cm->id ?>" />
<input type="hidden" name="action" value="insertpage" />
<input type="hidden" name="pageid" value="<?PHP echo $_GET['pageid'] ?>" />
<center><table cellpadding=5 border=1>
<tr><td align="center">
<tr valign="top">
<td><b><?php print_string("pagetitle", "lesson"); ?>:</b><br />
<input type="text" name="title" size="80" maxsize="255" value=""></td></tr>
<input type="text" name="title" size="80" maxsize="255" value="" /></td></tr>
<?PHP
echo "<tr><td><b>";
echo get_string("pagecontents", "lesson").":</b><br />\n";
@@ -246,7 +246,7 @@
choose_from_menu($LESSON_QUESTION_TYPE, "qtype", LESSON_MULTICHOICE, "");
helpbutton("questiontype", get_string("questiontype", "lesson"), "lesson");
echo "<br /><b>".get_string("questionoption", "lesson").":</b>\n";
echo " <input type=\"checkbox\" name=\"qoption\" value=\"1\"/>";
echo " <input type=\"checkbox\" name=\"qoption\" value=\"1\"/ />";
helpbutton("questionoption", get_string("questionoption", "lesson"), "lesson");
echo "</td></tr>\n";
for ($i = 0; $i < $lesson->maxanswers; $i++) {
@@ -271,8 +271,8 @@
// close table and form
?>
</table><br />
<input type="submit" value="<?php print_string("addaquestionpage", "lesson") ?>">
<input type="submit" name="cancel" value="<?php print_string("cancel") ?>">
<input type="submit" value="<?php print_string("addaquestionpage", "lesson") ?>" />
<input type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
</center>
</form>
<?PHP
@@ -677,11 +677,11 @@
}
}
echo "<form name=\"pageform\" method =\"post\" action=\"view.php\">\n";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\">\n";
echo "<input type=\"hidden\" name=\"action\" value=\"navigation\">\n";
echo "<input type=\"hidden\" name=\"pageid\" value=\"$newpageid\">\n";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />\n";
echo "<input type=\"hidden\" name=\"action\" value=\"navigation\" />\n";
echo "<input type=\"hidden\" name=\"pageid\" value=\"$newpageid\" />\n";
echo "<p align=\"center\"><input type=\"submit\" name=\"continue\" value=\"".
get_string("continue", "lesson")."\"></p>\n";
get_string("continue", "lesson")."\" /></p>\n";
echo "</form>\n";
}
@@ -786,15 +786,15 @@
// give teacher a proforma
?>
<form name="editpage" method="post" action="lesson.php">
<input type="hidden" name="id" value="<?PHP echo $cm->id ?>">
<input type="hidden" name="action" value="updatepage">
<input type="hidden" name="pageid" value="<?PHP echo $_GET['pageid'] ?>">
<input type="hidden" name="redisplay" value="0">
<input type="hidden" name="id" value="<?PHP echo $cm->id ?>" />
<input type="hidden" name="action" value="updatepage" />
<input type="hidden" name="pageid" value="<?PHP echo $_GET['pageid'] ?>" />
<input type="hidden" name="redisplay" value="0" />
<center><table cellpadding=5 border=1>
<tr><td align="center">
<tr valign="top">
<td><b><?php print_string("pagetitle", "lesson"); ?>:</b><br />
<input type="text" name="title" size="80" maxsize="255" value="<?PHP echo $page->title ?>"></td>
<input type="text" name="title" size="80" maxsize="255" value="<?PHP echo $page->title ?>" /></td>
</tr>
<?PHP
echo "<tr><td><b>";
@@ -810,9 +810,9 @@
echo "&nbsp;&nbsp;";
echo " <b>".get_string("casesensitive", "lesson").":</b> \n";
if ($page->qoption) {
echo "<input type=\"checkbox\" name=\"qoption\" value=\"1\" checked=\"checked\"/>";
echo "<input type=\"checkbox\" name=\"qoption\" value=\"1\" checked=\"checked\" />";
} else {
echo "<input type=\"checkbox\" name=\"qoption\" value=\"1\"/>";
echo "<input type=\"checkbox\" name=\"qoption\" value=\"1\" />";
}
helpbutton("questiontypes", get_string("questiontype", "lesson"), "lesson");
break;
@@ -822,9 +822,9 @@
echo "&nbsp;&nbsp;";
echo " <b>".get_string("multianswer", "lesson").":</b> \n";
if ($page->qoption) {
echo "<input type=\"checkbox\" name=\"qoption\" value=\"1\" checked=\"checked\"/>";
echo "<input type=\"checkbox\" name=\"qoption\" value=\"1\" checked=\"checked\" />";
} else {
echo "<input type=\"checkbox\" name=\"qoption\" value=\"1\"/>";
echo "<input type=\"checkbox\" name=\"qoption\" value=\"1\" />";
}
helpbutton("questiontypes", get_string("questiontype", "lesson"), "lesson");
break;
@@ -836,11 +836,11 @@
helpbutton("questiontypes", get_string("questiontype", "lesson"), "lesson");
break;
case LESSON_BRANCHTABLE :
echo "<input type=\"hidden\" name=\"qtype\" value=\"$page->qtype\">\n";
echo "<input type=\"hidden\" name=\"qtype\" value=\"$page->qtype\" />\n";
echo "<tr><td><b>".get_string("branchtable", "lesson")."</b> \n";
break;
case LESSON_ENDOFBRANCH :
echo "<input type=\"hidden\" name=\"qtype\" value=\"$page->qtype\">\n";
echo "<input type=\"hidden\" name=\"qtype\" value=\"$page->qtype\" />\n";
echo "<tr><td><b>".get_string("endofbranch", "lesson")."</b> \n";
break;
}
@@ -850,7 +850,7 @@
foreach ($answers as $answer) {
$flags = intval($answer->flags); // force into an integer
$nplus1 = $n + 1;
echo "<input type=\"hidden\" name=\"answerid[$n]\" value=\"$answer->id\">\n";
echo "<input type=\"hidden\" name=\"answerid[$n]\" value=\"$answer->id\" />\n";
switch ($page->qtype) {
case LESSON_MULTICHOICE:
case LESSON_TRUEFALSE:
@@ -861,14 +861,14 @@
if ($flags & LESSON_ANSWER_EDITOR) {
echo " [".get_string("useeditor", "lesson").": ".
"<input type=\"checkbox\" name=\"answereditor[$n]\" value=\"1\"
checked=\"checked\">";
checked=\"checked\" />";
helpbutton("useeditor", get_string("useeditor", "lesson"), "lesson");
echo "]<br />\n";
print_textarea($usehtmleditor, 20, 70, 630, 300, "answer[$n]", $answer->answer);
use_html_editor("answer[$n]"); // switch on the editor
} else {
echo " [".get_string("useeditor", "lesson").": ".
"<input type=\"checkbox\" name=\"answereditor[$n]\" value=\"1\">";
"<input type=\"checkbox\" name=\"answereditor[$n]\" value=\"1\" />";
helpbutton("useeditor", get_string("useeditor", "lesson"), "lesson");
echo "]<br />\n";
print_textarea(false, 6, 70, 630, 300, "answer[$n]", $answer->answer);
@@ -878,14 +878,14 @@
if ($flags & LESSON_RESPONSE_EDITOR) {
echo " [".get_string("useeditor", "lesson").": ".
"<input type=\"checkbox\" name=\"responseeditor[$n]\" value=\"1\"
checked=\"checked\">";
checked=\"checked\" />";
helpbutton("useeditor", get_string("useeditor", "lesson"), "lesson");
echo "]<br />\n";
print_textarea($usehtmleditor, 20, 70, 630, 300, "response[$n]", $answer->response);
use_html_editor("response[$n]"); // switch on the editor
} else {
echo " [".get_string("useeditor", "lesson").": ".
"<input type=\"checkbox\" name=\"responseeditor[$n]\" value=\"1\">";
"<input type=\"checkbox\" name=\"responseeditor[$n]\" value=\"1\" />";
helpbutton("useeditor", get_string("useeditor", "lesson"), "lesson");
echo "]<br />\n";
print_textarea(false, 6, 70, 630, 300, "response[$n]", $answer->response);
@@ -897,13 +897,13 @@
if ($flags & LESSON_ANSWER_EDITOR) {
echo " [".get_string("useeditor", "lesson").": ".
"<input type=\"checkbox\" name=\"answereditor[$n]\" value=\"1\"
checked=\"checked\">";
checked=\"checked\" />";
helpbutton("useeditor", get_string("useeditor", "lesson"), "lesson");
echo "]<br />\n";
print_textarea($usehtmleditor, 20, 70, 630, 300, "answer[$n]", $answer->answer);
} else {
echo " [".get_string("useeditor", "lesson").": ".
"<input type=\"checkbox\" name=\"answereditor[$n]\" value=\"1\">";
"<input type=\"checkbox\" name=\"answereditor[$n]\" value=\"1\" />";
helpbutton("useeditor", get_string("useeditor", "lesson"), "lesson");
echo "]<br />\n";
print_textarea(false, 10, 70, 630, 300, "answer[$n]", $answer->answer);
@@ -921,7 +921,7 @@
if ($page->qtype != LESSON_ENDOFBRANCH) {
for ($i = $n; $i < $lesson->maxanswers; $i++) {
$iplus1 = $i + 1;
echo "<input type=\"hidden\" name=\"answerid[$i]\" value=\"0\">\n";
echo "<input type=\"hidden\" name=\"answerid[$i]\" value=\"0\" />\n";
switch ($page->qtype) {
case LESSON_MULTICHOICE:
case LESSON_TRUEFALSE:
@@ -930,14 +930,14 @@
case LESSON_MATCHING:
echo "<tr><td><b>".get_string("answer", "lesson")." $iplus1:</b>\n";
echo " [".get_string("useeditor", "lesson").": ".
"<input type=\"checkbox\" name=\"answereditor[$i]\" value=\"1\">";
"<input type=\"checkbox\" name=\"answereditor[$i]\" value=\"1\" />";
helpbutton("useeditor", get_string("useeditor", "lesson"), "lesson");
echo "]<br />\n";
print_textarea(false, 10, 70, 630, 300, "answer[$i]");
echo "</td></tr>\n";
echo "<tr><td><b>".get_string("response", "lesson")." $iplus1:</b>\n";
echo " [".get_string("useeditor", "lesson").": ".
"<input type=\"checkbox\" name=\"responseeditor[$i]\" value=\"1\">";
"<input type=\"checkbox\" name=\"responseeditor[$i]\" value=\"1\" />";
helpbutton("useeditor", get_string("useeditor", "lesson"), "lesson");
echo "]<br />\n";
print_textarea(false, 10, 70, 630, 300, "response[$i]");
@@ -946,7 +946,7 @@
case LESSON_BRANCHTABLE:
echo "<tr><td><b>".get_string("description", "lesson")." $iplus1:</b>\n";
echo " [".get_string("useeditor", "lesson").": ".
"<input type=\"checkbox\" name=\"answereditor[$i]\" value=\"1\">";
"<input type=\"checkbox\" name=\"answereditor[$i]\" value=\"1\" />";
helpbutton("useeditor", get_string("useeditor", "lesson"), "lesson");
echo "]<br />\n";
print_textarea(false, 10, 70, 630, 300, "answer[$i]");
@@ -963,9 +963,9 @@
?>
</table><br />
<input type="button" value="<?php print_string("redisplaypage", "lesson") ?>"
onclick="document.editpage.redisplay.value=1;document.editpage.submit();">
<input type="submit" value="<?php print_string("savepage", "lesson") ?>">
<input type="submit" name="cancel" value="<?php print_string("cancel") ?>">
onclick="document.editpage.redisplay.value=1;document.editpage.submit();" />
<input type="submit" value="<?php print_string("savepage", "lesson") ?>" />
<input type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
</center>
</form>
<?PHP
+9 -9
View File
@@ -48,7 +48,7 @@
<TR valign=top>
<TD align=right><P><B><?php print_string("name") ?>:</B></P></TD>
<TD>
<INPUT type="text" name="name" size=30 value="<?php p($form->name) ?>">
<INPUT type="text" name="name" size=30 value="<?php p($form->name) ?>" />
</TD>
</TR>
@@ -172,13 +172,13 @@
</TABLE>
<!-- These hidden variables are always the same -->
<INPUT type="hidden" name=course value="<?php p($form->course) ?>">
<INPUT type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
<INPUT type="hidden" name=section value="<?php p($form->section) ?>">
<INPUT type="hidden" name=module value="<?php p($form->module) ?>">
<INPUT type="hidden" name=modulename value="<?php p($form->modulename) ?>">
<INPUT type="hidden" name=instance value="<?php p($form->instance) ?>">
<INPUT type="hidden" name=mode value="<?php p($form->mode) ?>">
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
<INPUT type="hidden" name=course value="<?php p($form->course) ?>" />
<INPUT type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>" />
<INPUT type="hidden" name=section value="<?php p($form->section) ?>" />
<INPUT type="hidden" name=module value="<?php p($form->module) ?>" />
<INPUT type="hidden" name=modulename value="<?php p($form->modulename) ?>" />
<INPUT type="hidden" name=instance value="<?php p($form->instance) ?>" />
<INPUT type="hidden" name=mode value="<?php p($form->mode) ?>" />
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
</CENTER>
</FORM>
+6 -6
View File
@@ -67,7 +67,7 @@
$newid = insert_record("lesson", $lesson);
//Do some output
echo "<ul><li>".get_string("modulename","lesson")." \"".$lesson->name."\"<br>";
echo "<ul><li>".get_string("modulename","lesson")." \"".$lesson->name."\"<br />";
backup_flush(300);
if ($newid) {
@@ -143,7 +143,7 @@
if (($i+1) % 10 == 0) {
echo ".";
if (($i+1) % 200 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -213,7 +213,7 @@
if (($i+1) % 10 == 0) {
echo ".";
if (($i+1) % 200 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -274,7 +274,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -325,7 +325,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -407,7 +407,7 @@
}
break;
default:
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br>"; //Debug
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br />"; //Debug
break;
}
+34 -34
View File
@@ -95,14 +95,14 @@
}
if ($lastpageseen != $firstpageid) {
echo "<form name=\"queryform\" method =\"post\" action=\"view.php\">\n";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\">\n";
echo "<input type=\"hidden\" name=\"action\" value=\"navigation\">\n";
echo "<input type=\"hidden\" name=\"pageid\">\n";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />\n";
echo "<input type=\"hidden\" name=\"action\" value=\"navigation\" />\n";
echo "<input type=\"hidden\" name=\"pageid\" />\n";
print_simple_box("<p align=\"center\">".get_string("youhaveseen","lesson")."</p>",
"center");
echo "<p align=\"center\"><input type=\"button\" value=\"".get_string("yes").
"\" onclick=\"document.queryform.pageid.value='$lastpageseen';document.queryform.submit();\">&nbsp;&nbsp;&nbsp;<input type=\"button\" value=\"".get_string("no").
"\" onclick=\"document.queryform.pageid.value='$firstpageid';document.queryform.submit();\"></p>\n";
"\" onclick=\"document.queryform.pageid.value='$firstpageid';document.queryform.submit();\" /></p>\n";
echo "</form>\n";
print_footer($course);
exit();
@@ -186,26 +186,26 @@
// get the answers in a set order, the id order
if ($answers = get_records("lesson_answers", "pageid", $page->id, "id")) {
echo "<form name=\"answerform\" method =\"post\" action=\"lesson.php\">";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\">";
echo "<input type=\"hidden\" name=\"action\" value=\"continue\">";
echo "<input type=\"hidden\" name=\"pageid\" value=\"$pageid\">";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />";
echo "<input type=\"hidden\" name=\"action\" value=\"continue\" />";
echo "<input type=\"hidden\" name=\"pageid\" value=\"$pageid\" />";
print_simple_box_start("center");
echo '<table width="100%">';
switch ($page->qtype) {
case LESSON_SHORTANSWER :
case LESSON_NUMERICAL :
echo "<tr><td align=\"center\">".get_string("youranswer", "lesson").
": <input type=\"text\" name=\"answer\" size=\"50\" maxlength=\"200\">\n";
": <input type=\"text\" name=\"answer\" size=\"50\" maxlength=\"200\" />\n";
echo '</table>';
print_simple_box_end();
echo "<p align=\"center\"><input type=\"submit\" name=\"continue\" value=\"".
get_string("pleaseenteryouranswerinthebox", "lesson")."\"></p>\n";
get_string("pleaseenteryouranswerinthebox", "lesson")."\" /></p>\n";
break;
case LESSON_TRUEFALSE :
shuffle($answers);
foreach ($answers as $answer) {
echo "<tr><td>";
echo "<input type=\"radio\" name=\"answerid\" value=\"{$answer->id}\">";
echo "<input type=\"radio\" name=\"answerid\" value=\"{$answer->id}\" />";
echo "</td><td>";
$options->para = false; // no <p></p>
echo format_text(trim($answer->answer), FORMAT_MOODLE, $options);
@@ -214,7 +214,7 @@
echo '</table>';
print_simple_box_end();
echo "<p align=\"center\"><input type=\"submit\" name=\"continue\" value=\"".
get_string("pleasecheckoneanswer", "lesson")."\"></p>\n";
get_string("pleasecheckoneanswer", "lesson")."\" /></p>\n";
break;
case LESSON_MULTICHOICE :
$i = 0;
@@ -223,10 +223,10 @@
echo "<tr><td>";
if ($page->qoption) {
// more than one answer allowed
echo "<input type=\"checkbox\" name=\"answer[$i]\" value=\"{$answer->id}\">";
echo "<input type=\"checkbox\" name=\"answer[$i]\" value=\"{$answer->id}\" />";
} else {
// only one answer allowed
echo "<input type=\"radio\" name=\"answerid\" value=\"{$answer->id}\">";
echo "<input type=\"radio\" name=\"answerid\" value=\"{$answer->id}\" />";
}
echo "</td><td>";
$options->para = false; // no <p></p>
@@ -238,10 +238,10 @@
print_simple_box_end();
if ($page->qoption) {
echo "<p align=\"center\"><input type=\"submit\" name=\"continue\" value=\"".
get_string("pleasecheckoneormoreanswers", "lesson")."\"></p>\n";
get_string("pleasecheckoneormoreanswers", "lesson")."\" /></p>\n";
} else {
echo "<p align=\"center\"><input type=\"submit\" name=\"continue\" value=\"".
get_string("pleasecheckoneanswer", "lesson")."\"></p>\n";
get_string("pleasecheckoneanswer", "lesson")."\" /></p>\n";
}
break;
@@ -267,17 +267,17 @@
echo '</table></table>';
print_simple_box_end();
echo "<p align=\"center\"><input type=\"submit\" name=\"continue\" value=\"".
get_string("pleasematchtheabovepairs", "lesson")."\"></p>\n";
get_string("pleasematchtheabovepairs", "lesson")."\" /></p>\n";
break;
case LESSON_BRANCHTABLE :
echo "<tr><td><table width=\"100%\">";
echo "<input type=\"hidden\" name=\"jumpto\">";
echo "<input type=\"hidden\" name=\"jumpto\" />";
// don't suffle answers
foreach ($answers as $answer) {
echo "<tr><td align=\"center\">";
echo "<input type=\"button\" value=\"$answer->answer\"";
echo "onclick=\"document.answerform.jumpto.value=$answer->jumpto;document.answerform.submit();\">";
echo "onclick=\"document.answerform.jumpto.value=$answer->jumpto;document.answerform.submit();\" />";
echo "</td></tr>";
}
echo '</table></table>';
@@ -289,8 +289,8 @@
} else {
// a page without answers - find the next (logical) page
echo "<form name=\"pageform\" method =\"post\" action=\"view.php\">\n";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\">\n";
echo "<input type=\"hidden\" name=\"action\" value=\"navigation\">\n";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />\n";
echo "<input type=\"hidden\" name=\"action\" value=\"navigation\" />\n";
if ($lesson->nextpagedefault) {
// in Flash Card mode...
// ...first get number of retakes
@@ -335,9 +335,9 @@
$newpageid = LESSON_EOL;
}
}
echo "<input type=\"hidden\" name=\"pageid\" value=\"$newpageid\">\n";
echo "<input type=\"hidden\" name=\"pageid\" value=\"$newpageid\" />\n";
echo "<p align=\"center\"><input type=\"submit\" name=\"continue\" value=\"".
get_string("continue", "lesson")."\"></p>\n";
get_string("continue", "lesson")."\" /></p>\n";
echo "</form>\n";
}
echo "</table>\n";
@@ -421,14 +421,14 @@
// if there are no pages give teacher a blank proforma
?>
<form name="form" method="post" action="lesson.php">
<input type="hidden" name="id" value="<?PHP echo $cm->id ?>">
<input type="hidden" name="action" value="insertpage">
<input type="hidden" name="pageid" value="0">
<input type="hidden" name="id" value="<?PHP echo $cm->id ?>" />
<input type="hidden" name="action" value="insertpage" />
<input type="hidden" name="pageid" value="0" />
<center><table cellpadding=5 border=1>
<tr><td align="center">
<tr valign="top">
<td><p><b><?php print_string("pagetitle", "lesson"); ?>:</b></p></td></tr>
<tr><td><input type="text" name="title" size="80" maxsize="255" value=""></td></tr>
<tr><td><input type="text" name="title" size="80" maxsize="255" value="" /></td></tr>
<?PHP
echo "<tr><td><b>";
echo get_string("pagecontents", "lesson").":</b><br />\n";
@@ -438,7 +438,7 @@
choose_from_menu($LESSON_QUESTION_TYPE, "qtype", LESSON_MULTICHOICE, "");
helpbutton("questiontypes", get_string("questiontype", "lesson"), "lesson");
echo "<br /><b>".get_string("questionoption", "lesson").":</b>\n";
echo " <input type=\"checkbox\" name=\"qoption\" value=\"1\"/>";
echo " <input type=\"checkbox\" name=\"qoption\" value=\"1\" />";
helpbutton("questionoption", get_string("questionoption", "lesson"), "lesson");
echo "</td></tr>\n";
for ($i = 0; $i < $lesson->maxanswers; $i++) {
@@ -451,17 +451,17 @@
echo "</td></tr>\n";
if ($i) {
// answers 2,3,4... jump to this page
echo "<input type=\"hidden\" name=\"jumpto[$i]\" value =\"0\">\n";
echo "<input type=\"hidden\" name=\"jumpto[$i]\" value =\"0\" />\n";
} else {
// answer 1 jumps to next page
echo "<input type=\"hidden\" name=\"jumpto[$i]\" value =\"".LESSON_NEXTPAGE."\">\n";
echo "<input type=\"hidden\" name=\"jumpto[$i]\" value =\"".LESSON_NEXTPAGE."\" />\n";
}
}
// close table and form
?>
</table><br />
<input type="submit" value="<?php print_string("savepage", "lesson") ?>">
<input type="submit" name="cancel" value="<?php print_string("cancel") ?>">
<input type="submit" value="<?php print_string("savepage", "lesson") ?>" />
<input type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
</center>
</form>
<?PHP
@@ -473,8 +473,8 @@
// print the pages
echo "<form name=\"lessonpages\" method=\"post\" action=\"view.php\">\n";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\">\n";
echo "<input type=\"hidden\" name=\"action\" value=\"navigation\">\n";
echo "<input type=\"hidden\" name=\"pageid\">\n";
echo "<input type=\"hidden\" name=\"action\" value=\"navigation\" />\n";
echo "<input type=\"hidden\" name=\"pageid\" />\n";
echo "<center><table cellpadding=\"5\" border=\"0\" width=\"80%\">\n";
if (isteacheredit($course->id)) {
echo "<tr><td align=\"right\"><small><a href=\"import.php?id=$cm->id&pageid=0\">".
@@ -593,7 +593,7 @@
echo get_string("checkquestion", "lesson");
}
echo "\" onclick=\"document.lessonpages.pageid.value=$page->id;".
"document.lessonpages.submit();\">";
"document.lessonpages.submit();\" />";
}
echo "&nbsp;</td></tr>\n";
}
+2 -2
View File
@@ -92,8 +92,8 @@
echo "<div align=\"center\">\n";
print_string("requirepasswordmessage", "quiz");
echo "<br /><br />\n";
echo " <input name=\"quizpassword\" type=\"password\" value=\"\">";
echo " <input type=\"submit\" value=\"".get_string("ok")."\">\n";
echo " <input name=\"quizpassword\" type=\"password\" value=\"\" />";
echo " <input type=\"submit\" value=\"".get_string("ok")."\" />\n";
echo "</div>\n";
print_simple_box_end();
+1 -1
View File
@@ -188,7 +188,7 @@
if ($counter % 10 == 0) {
echo ".";
if ($counter % 200 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
+11 -11
View File
@@ -66,11 +66,11 @@
$categories = quiz_get_category_menu($course->id);
unset($categories[$category->id]);
echo "<CENTER><P><FORM ACTION=category.php METHOD=get>";
echo "<INPUT TYPE=hidden NAME=id VALUE=\"$course->id\">";
echo "<INPUT TYPE=hidden NAME=delete VALUE=\"$category->id\">";
echo "<INPUT TYPE=hidden NAME=id VALUE=\"$course->id\" />";
echo "<INPUT TYPE=hidden NAME=delete VALUE=\"$category->id\" />";
choose_from_menu($categories, "confirm", "", "");
echo "<INPUT TYPE=submit VALUE=\"".get_string("categorymoveto", "quiz")."\">";
echo "<INPUT TYPE=submit NAME=cancel VALUE=\"$strcancel\">";
echo "<INPUT TYPE=submit VALUE=\"".get_string("categorymoveto", "quiz")."\" />";
echo "<INPUT TYPE=submit NAME=cancel VALUE=\"$strcancel\" />";
echo "</FORM></P></CENTER>";
print_footer($course);
exit;
@@ -159,21 +159,21 @@
} else {
$delete = "<A HREF=\"category.php?id=$course->id&delete=$category->id\">$strdelete</A>";
}
$table->data[] = array ("<INPUT TYPE=text NAME=\"c$category->id\" VALUE=\"$category->name\" SIZE=15>",
"<INPUT TYPE=text NAME=\"i$category->id\" VALUE=\"$category->info\" SIZE=50>",
$table->data[] = array ("<INPUT TYPE=text NAME=\"c$category->id\" VALUE=\"$category->name\" SIZE=15 />",
"<INPUT TYPE=text NAME=\"i$category->id\" VALUE=\"$category->info\" SIZE=50 />",
choose_from_menu ($publishoptions, "p$category->id", "$category->publish", "", "", "", true),
"$count",
$delete);
}
$table->data[] = array ("<INPUT TYPE=text NAME=\"new\" VALUE=\"\" SIZE=15>",
"<INPUT TYPE=text NAME=\"newinfo\" VALUE=\"\" SIZE=50>",
$table->data[] = array ("<INPUT TYPE=text NAME=\"new\" VALUE=\"\" SIZE=15 />",
"<INPUT TYPE=text NAME=\"newinfo\" VALUE=\"\" SIZE=50 />",
choose_from_menu ($publishoptions, "newpublish", "", "", "", "", true),
"",
"$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 "<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>";
echo "</FORM>";
+1 -1
View File
@@ -171,7 +171,7 @@ function quiz_upgrade($oldversion) {
$questions = get_records("quiz_questions","stamp",$duplicate->id);
$add = 1;
foreach ($questions as $question) {
echo "Changing question id $question->id stamp to ".$duplicate->id.$add."<br>";
echo "Changing question id $question->id stamp to ".$duplicate->id.$add."<br />";
set_field("quiz_questions","stamp",$duplicate->id.$add,"id",$question->id);
$add++;
}
+1 -1
View File
@@ -126,7 +126,7 @@ function quiz_upgrade($oldversion) {
$questions = get_records("quiz_questions","stamp",$duplicate->id);
$add = 1;
foreach ($questions as $question) {
echo "Changing question id $question->id stamp to ".$duplicate->id.$add."<br>";
echo "Changing question id $question->id stamp to ".$duplicate->id.$add."<br />";
set_field("quiz_questions","stamp",$duplicate->id.$add,"id",$question->id);
$add++;
}
+3 -3
View File
@@ -203,9 +203,9 @@
?>
<form name="theform" method="post" action=<?php echo $modform->destination ?>>
<input type="hidden" name="course" value="<?php p($modform->course) ?>">
<input type="submit" value="<?php print_string("savequiz", "quiz") ?>">
<input type="submit" name="cancel" value="<?php print_string("cancel") ?>">
<input type="hidden" name="course" value="<?php p($modform->course) ?>" />
<input type="submit" value="<?php print_string("savequiz", "quiz") ?>" />
<input type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
</form>
</center>
<?php
+3 -3
View File
@@ -107,12 +107,12 @@
echo "<tr><td align=\"right\">";
print_string("exportname", "quiz" );
echo ":</td><td>";
echo "<input type=\"text\" size=\"40\" name=\"exportfilename\" value=\"$exportfilename\">";
echo "<input type=\"text\" size=\"40\" name=\"exportfilename\" value=\"$exportfilename\" />";
echo "</td></tr>";
echo "<tr><td align=\"center\" colspan=\"2\">";
echo " <input type=hidden name=category value=\"$category->id\">";
echo " <input type=submit name=save value=\"".get_string("exportquestions","quiz")."\">";
echo " <input type=hidden name=category value=\"$category->id\" />";
echo " <input type=submit name=save value=\"".get_string("exportquestions","quiz")."\" />";
echo "</td></tr>";
echo "</table>";
+2 -2
View File
@@ -45,7 +45,7 @@ class quiz_default_format {
foreach ($questions as $question) { // Process and store each question
$count++;
echo "<hr><p><b>$count</b>. ".stripslashes($question->questiontext)."</p>";
echo "<hr /><p><b>$count</b>. ".stripslashes($question->questiontext)."</p>";
$question->category = $this->category->id;
$question->stamp = make_unique_id_code(); // Set the unique code (not to be changed)
@@ -201,7 +201,7 @@ class quiz_default_format {
// iterate through questions
foreach($questions as $question) {
$count++;
echo "<hr><p><b>$count</b>. ".stripslashes($question->questiontext)."</p>";
echo "<hr /><p><b>$count</b>. ".stripslashes($question->questiontext)."</p>";
$expout .= $this->writequestion( $question ) . "\n";
}
+1 -1
View File
@@ -48,7 +48,7 @@ class quiz_file_format extends quiz_default_format {
continue;
}
// This will show everyline when file is being processed
// print("$nowline<br>");
// print("$nowline<br />");
$leader = substr(ltrim($nowline),0,2);
if (strpos(".A)B)C)D)E)F)G)H)I)J)A.B.C.D.E.F.G.H.I.J.",$leader)>0){
//trim off the label and space
+19 -19
View File
@@ -55,21 +55,21 @@ class quiz_file_format {
echo "<tr><td align=right>";
echo "What is the hostname or IP address of the ODBC Socket Server:</td><td>";
echo " <input name=\"hostname\" type=\"text\" size=\"50\" value=\"".stripslashes($hostname_access_error)."\">";
echo " <input name=\"filename\" type=\"hidden\" value=\"".$filename."\">";
echo " <input name=\"category\" type=\"hidden\" value=\"".$category->id."\">";
echo " <input name=\"format\" type=\"hidden\" value=\"".$form->format."\">";
echo " <input name=\"hostname\" type=\"text\" size=\"50\" value=\"".stripslashes($hostname_access_error)."\" />";
echo " <input name=\"filename\" type=\"hidden\" value=\"".$filename."\" />";
echo " <input name=\"category\" type=\"hidden\" value=\"".$category->id."\" />";
echo " <input name=\"format\" type=\"hidden\" value=\"".$form->format."\" />";
echo "</td><td>&nbsp;</td></tr>";
echo "<tr><td align=right>";
echo "What is the location of the database (.mdb file) on the Socket Server:</td><td>";
echo " <input name=\"mdbpath\" type=\"text\" size=\"50\" value=\"".stripslashes($mdbpath)."\">";
echo " <input name=\"mdbpath\" type=\"text\" size=\"50\" value=\"".stripslashes($mdbpath)."\" />";
echo "</td><td>&nbsp;</td></tr>";
echo "<tr><td align=right>";
echo "What is the location of the system database (System.mda file) on the Socket Server:</td><td>";
echo " <input name=\"mdapath\" type=\"text\" size=\"50\" value=\"".stripslashes($mdapath)."\">";
echo " <input name=\"mdapath\" type=\"text\" size=\"50\" value=\"".stripslashes($mdapath)."\" />";
echo "</td><td>&nbsp;</td></tr>";
echo "<tr><td>&nbsp;</td><td>";
echo " <input type=submit name=save value=\"Connect to Server\">";
echo " <input type=submit name=save value=\"Connect to Server\" />";
echo "</td></tr>";
echo "</table>";
echo "</form>";
@@ -117,17 +117,17 @@ class quiz_file_format {
echo "Choose a category of questions to import:</td><td>";
asort($question_categories);
choose_from_menu($question_categories, "question_category","All Categories","All Categories", "", "allcategories");
echo " <input name=\"filename\" type=\"hidden\" value=\"".$filename."\">";
echo " <input name=\"category\" type=\"hidden\" value=\"".$category->id."\">";
echo " <input name=\"format\" type=\"hidden\" value=\"".$form->format."\">";
echo " <input name=\"filename\" type=\"hidden\" value=\"".$filename."\" />";
echo " <input name=\"category\" type=\"hidden\" value=\"".$category->id."\" />";
echo " <input name=\"format\" type=\"hidden\" value=\"".$form->format."\" />";
if (PHP_OS == "Linux") {
echo " <input name=\"hostname\" type=\"hidden\" value=\"".stripslashes(trim($hostname))."\">";
echo " <input name=\"mdbpath\" type=\"hidden\" value=\"".stripslashes($mdbpath)."\">";
echo " <input name=\"mdapath\" type=\"hidden\" value=\"".stripslashes($mdapath)."\">";
echo " <input name=\"hostname\" type=\"hidden\" value=\"".stripslashes(trim($hostname))."\" />";
echo " <input name=\"mdbpath\" type=\"hidden\" value=\"".stripslashes($mdbpath)."\" />";
echo " <input name=\"mdapath\" type=\"hidden\" value=\"".stripslashes($mdapath)."\" />";
}
echo "</td><td>&nbsp;</td>";
echo "</tr><tr><td>&nbsp;</td><td>";
echo " <input type=submit name=save value=\"Import Questions\">";
echo " <input type=submit name=save value=\"Import Questions\" />";
echo "</td></tr>";
echo "</table>";
echo "</form>";
@@ -173,7 +173,7 @@ class quiz_file_format {
// echo "<pre>";echo htmlspecialchars($qrec[2]); echo "</pre>";
$question->questiontext = addslashes(trim($qrec[2]));
// echo "<pre>";echo $question->questiontext; echo "</pre>";
$question->name = preg_replace("/<br>/", "", $question->questiontext);
$question->name = preg_replace("/<br />/", "", $question->questiontext);
$question->single = 1; // Only one answer is allowed -- used for multiple choicers
$fractionset = 0;
for ($i=4;$i<=7;$i++) {
@@ -193,7 +193,7 @@ class quiz_file_format {
case 2: // TRUE FALSE
$question->qtype = TRUEFALSE;
$question->questiontext = addslashes(trim($qrec[2]));
$question->name = preg_replace("/<br>/", "", $question->questiontext);
$question->name = preg_replace("/<br />/", "", $question->questiontext);
// for TF, $question->answer should be 1 for true, 0 for false
if ($qrec[8] == "T") { $question->answer =1;} else { $question->answer = 0; }
// for TF, use $question->feedbacktrue and feedbackfalse
@@ -204,7 +204,7 @@ class quiz_file_format {
$question->qtype = SHORTANSWER;
$question->questiontext = addslashes(trim($qrec[2]));
// echo "<pre>";echo $question->questiontext; echo "</pre>";
$question->name = preg_replace("/<br>/", "", $question->questiontext);
$question->name = preg_replace("/<br />/", "", $question->questiontext);
$question->usecase=0; // Ignore case -- for SHORT ANSWER questions
$answers = explode("~", $qrec[8]);
$question->answer[0]=" ";
@@ -234,7 +234,7 @@ class quiz_file_format {
}
foreach ($questions as $question) { // Process and store each question
$count++;
echo "<hr><p><b>$count</b>. ".stripslashes($question->questiontext)."</p>";
echo "<hr /><p><b>$count</b>. ".stripslashes($question->questiontext)."</p>";
$question->category = $this->category->id;
$question->stamp = make_unique_id_code(); // Set the unique code (not to be changed)
$question->version = 1; // Original version of this question
@@ -360,7 +360,7 @@ class quiz_file_format {
} else {
// echo("Successful XML parse. ");
// prepare the array for use in the pull-down
/* echo "<br>count of rows is ". count ($result);
/* echo "<br />count of rows is ". count ($result);
echo "<pre>\n";
$qResult = HtmlSpecialChars($qResult);
echo $qResult;
+4 -4
View File
@@ -73,7 +73,7 @@
"$CFG->wwwroot/mod/quiz/import.php?category=$category->id");
}
echo "<hr>";
echo "<hr />";
print_continue("edit.php");
print_footer($course);
exit;
@@ -121,10 +121,10 @@
echo "<tr><td align=right>";
print_string("upload");
echo ":</td><td>";
echo " <input name=\"newfile\" type=\"file\" size=\"50\">";
echo " <input name=\"newfile\" type=\"file\" size=\"50\" />";
echo "</tr><tr><td>&nbsp;</td><td>";
echo " <input type=hidden name=category value=\"$category->id\">";
echo " <input type=submit name=save value=\"".get_string("uploadthisfile")."\">";
echo " <input type=hidden name=category value=\"$category->id\" />";
echo " <input type=submit name=save value=\"".get_string("uploadthisfile")."\" />";
echo "</td></tr>";
echo "</table>";
+1 -1
View File
@@ -1811,7 +1811,7 @@ function quiz_print_recent_mod_activity($activity, $course, $detail=false) {
. $activity->instance . "&attempt="
. $activity->content->attemptid . "\">" . $grades . "</a> ";
echo get_string("attempt", "quiz") . " - " . $activity->content->attempt . "<br>";
echo get_string("attempt", "quiz") . " - " . $activity->content->attempt . "<br />";
}
echo "<a href=\"$CFG->wwwroot/user/view.php?id="
. $activity->user->userid . "&course=$course\">"
+13 -13
View File
@@ -65,7 +65,7 @@
<tr valign=top>
<td align=right><p><b><?php print_string("name") ?>:</b></p></td>
<td>
<input type="text" name="name" size=40 value="<?php p($form->name) ?>">
<input type="text" name="name" size=40 value="<?php p($form->name) ?>" />
</td>
</tr>
<tr valign=top>
@@ -249,29 +249,29 @@
<tr valign=top>
<td align=right><p><b><?php print_string("requirepassword", "quiz") ?>:</b></p></td>
<td>
<input type="text" name="password" size=40 value="<?php p($form->password) ?>">
<input type="text" name="password" size=40 value="<?php p($form->password) ?>" />
<?php helpbutton("requirepassword", get_string("requirepassword", "quiz"), "quiz"); ?>
</td>
</tr>
<tr valign=top>
<td align=right><p><b><?php print_string("requiresubnet", "quiz") ?>:</b></p></td>
<td>
<input type="text" name="subnet" size=40 value="<?php p($form->subnet) ?>">
<input type="text" name="subnet" size=40 value="<?php p($form->subnet) ?>" />
<?php helpbutton("requiresubnet", get_string("requiresubnet", "quiz"), "quiz"); ?>
</td>
</tr>
</table>
<input type="hidden" name=questions value="<?php p($form->questions) ?>">
<input type="hidden" name=questions value="<?php p($form->questions) ?>" />
<!-- these hidden variables are always the same -->
<input type="hidden" name=course value="<?php p($form->course) ?>">
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
<input type="hidden" name=section value="<?php p($form->section) ?>">
<input type="hidden" name=module value="<?php p($form->module) ?>">
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>">
<input type="hidden" name=instance value="<?php p($form->instance) ?>">
<input type="hidden" name=mode value="<?php p($form->mode) ?>">
<input type="hidden" name=destination value="<?php echo "$CFG->wwwroot/course/mod.php" ?>">
<input type="submit" value="<?php print_string("continue") ?>">
<input type="hidden" name=course value="<?php p($form->course) ?>" />
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>" />
<input type="hidden" name=section value="<?php p($form->section) ?>" />
<input type="hidden" name=module value="<?php p($form->module) ?>" />
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>" />
<input type="hidden" name=instance value="<?php p($form->instance) ?>" />
<input type="hidden" name=mode value="<?php p($form->mode) ?>" />
<input type="hidden" name=destination value="<?php echo "$CFG->wwwroot/course/mod.php" ?>" />
<input type="submit" value="<?php print_string("continue") ?>" />
</center>
</form>
+2 -2
View File
@@ -150,8 +150,8 @@
echo "</TR>";
echo "<TR><TD>&nbsp;</TD><TD>";
echo " <INPUT TYPE=hidden NAME=category VALUE=\"$category->id\">";
echo " <INPUT TYPE=submit NAME=save VALUE=\"$strcreatemultiple\">";
echo " <INPUT TYPE=hidden NAME=category VALUE=\"$category->id\" />";
echo " <INPUT TYPE=submit NAME=save VALUE=\"$strcreatemultiple\" />";
echo "</TD></TR>";
echo "</TABLE>";
echo "</FORM>";
+2 -2
View File
@@ -61,7 +61,7 @@
print_header();
print_heading(get_string("previewquestion","quiz"));
echo "<p align='center'><input type=\"button\" onClick=\"window.close()\" value=\"" . get_string("close", "quiz") . "\"></p>";
echo "<p align='center'><input type=\"button\" onClick=\"window.close()\" value=\"" . get_string("close", "quiz") . "\" /></p>";
if (empty($question->id)) {
$question->id = "";
@@ -141,7 +141,7 @@
echo "<br />";
echo "<center>";
echo "<input name=\"submit\" type=\"submit\" value=\"".get_string("checkanswer", "quiz")."\"/>\n";
echo "<input name=\"submit\" type=\"submit\" value=\"".get_string("checkanswer", "quiz")."\" />\n";
echo "</center>";
echo "</form>";
}
@@ -1,6 +1,6 @@
<FORM name="theform" method="post" action="question.php">
<CENTER>
<INPUT type="hidden" name="nextwizardpage" value="<?php p($nextwizardpage)?>"/>
<INPUT type="hidden" name="nextwizardpage" value="<?php p($nextwizardpage)?>" />
<?php foreach ($calculatedmessages as $message) {formerr("$message<br/>");} ?>
<TABLE cellpadding=5>
<TR valign=top>
@@ -12,7 +12,7 @@
<TR valign=top>
<TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
<INPUT type="text" name="name" size=50 value="<?php p($question->name) ?>">
<INPUT type="text" name="name" size=50 value="<?php p($question->name) ?>" />
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
@@ -40,7 +40,7 @@
print_textarea($usehtmleditor, 20, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) { /// Trying this out for a while
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'">';
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'" />';
} else {
echo "<div align=right>";
print_string("formattexttype");
@@ -70,8 +70,8 @@
<TR valign=top>
<TD align=right><P><B><?php print_string("correctanswerformula", "quiz") ?>:</B></P></TD>
<TD>
<INPUT align="LEFT" type="text" id="formula0" name="answer[]" size="20" value="<?php p($answers[0]->answer) ?>"/>&nbsp;&nbsp;
<INPUT type="hidden" name="fraction[]" value="1.0"/>
<INPUT align="LEFT" type="text" id="formula0" name="answer[]" size="20" value="<?php p($answers[0]->answer) ?>" />&nbsp;&nbsp;
<INPUT type="hidden" name="fraction[]" value="1.0" />
</TD>
</TR>
<TR valign=top>
@@ -107,9 +107,9 @@
<TR valign=top>
<TD align=right><P><B><?php print_string("unit", "quiz") ?>:</B></P></TD>
<TD>
<P><INPUT type="HIDDEN" name="multiplier[]" value="1.0"/>
<P><INPUT type="HIDDEN" name="multiplier[]" value="1.0" />
<INPUT align="LEFT" type="text" id="defaultunit" name="unit[]"
size="5" value="<?php p($units[0]->unit) ?>"/>
size="5" value="<?php p($units[0]->unit) ?>" />
<B>(<?php print_string("optional", "quiz") ?>)</B></P>
</TD>
</TR>
@@ -128,11 +128,11 @@ for ($i=1; $i<count($units); $i++) {
<P><B><?php print_string("multiplier", "quiz") ?>:</B>
<INPUT type="text" id="<?php p("multiplier$i") ?>" size="10"
align="RIGHT" name="multiplier[]"
value="<?php p($unit->multiplier) ?>"/>
value="<?php p($unit->multiplier) ?>" />
<B>&nbsp;&nbsp;&nbsp;<?php print_string("unit", "quiz") ?>:</B>
<INPUT align="LEFT" type="text" id="<?php p("unit$i") ?>"
name="unit[]"
size="5" value="<?php p($unit->unit) ?>"/></P>
size="5" value="<?php p($unit->unit) ?>" /></P>
</TD>
</TR>
<?PHP
@@ -140,9 +140,9 @@ for ($i=1; $i<count($units); $i++) {
?>
</TABLE>
<input type="hidden" name=id value="<?php p($question->id) ?>">
<input type="hidden" name=qtype value="<?php p($question->qtype) ?>">
<input type="submit" onClick="return determineMinAndMax();" value="<?php print_string("savechanges") ?>">
<input type="hidden" name=id value="<?php p($question->id) ?>" />
<input type="hidden" name=qtype value="<?php p($question->qtype) ?>" />
<input type="submit" onClick="return determineMinAndMax();" value="<?php print_string("savechanges") ?>" />
</center>
</form>
<script language="javascript">
@@ -439,7 +439,7 @@ class quiz_dataset_dependent_questiontype extends quiz_default_questiontype {
// Print hidden field with dataset info
echo '<input type="hidden" name="' . $nameprefix
. '" value="' . $datasetinput . '"/>';
. '" value="' . $datasetinput . '" />';
// Forward to the virtual qtype
unset($question->response[$nameprefix]);
@@ -69,9 +69,9 @@
print_simple_box_start("center", "", "$THEME->cellheading");
echo "<form method=\"post\" action=\"categorydatasetdefinitions.php\">";
echo "<input type=\"hidden\" name=\"category\" value=\"$category->id\"/>";
echo "<input type=\"hidden\" name=\"category\" value=\"$category->id\" />";
if ($question) {
echo "<input type=\"hidden\" name=\"question\" value=\"$question\"/>";
echo "<input type=\"hidden\" name=\"question\" value=\"$question\" />";
}
echo "<table cellpadding=5>";
@@ -89,14 +89,14 @@
echo "<tr><td align=right>";
print_string("itemdefinition", "quiz");
echo ":</td><td>";
echo "<input name=\"name[]\" type=\"text\" size=\"20\" value=\"$definition->name\"/>";
echo "<input type=\"hidden\" name=\"id[]\" value=\"$definition->id\"/>";
echo "<input name=\"name[]\" type=\"text\" size=\"20\" value=\"$definition->name\" />";
echo "<input type=\"hidden\" name=\"id[]\" value=\"$definition->id\" />";
echo " </td><td> ";
choose_from_menu($DATASET_TYPES, 'type[]', $definition->type, '');
echo "</td></tr>\n";
}
echo "<tr><td align=\"CENTER\" colspan=\"3\"><input type=submit value=\"".get_string("continue")."\"></td></tr>";
echo "<tr><td align=\"CENTER\" colspan=\"3\"><input type=submit value=\"".get_string("continue")."\" /></td></tr>";
echo "</table>";
echo "</form>";
print_simple_box_end();
@@ -29,30 +29,30 @@
<TD/>
<TD/>
<TD>
<INPUT type="hidden" name="name" value="<?php p($question->name) ?>"/>
<INPUT type="hidden" name="questiontext" value="<?php p($question->questiontext) ?>"/>
<INPUT type="hidden" name="questiontextformat" value="<?php p($question->questiontextformat) ?>"/>
<INPUT type="hidden" name="image" value="<?php p($question->image) ?>"/>
<INPUT type="hidden" name="name" value="<?php p($question->name) ?>" />
<INPUT type="hidden" name="questiontext" value="<?php p($question->questiontext) ?>" />
<INPUT type="hidden" name="questiontextformat" value="<?php p($question->questiontextformat) ?>" />
<INPUT type="hidden" name="image" value="<?php p($question->image) ?>" />
<?php foreach ($answers as $answer) { ?>
<INPUT type="hidden" name="answer[]" value="<?php p($answer->answer) ?>"/>
<INPUT type="hidden" name="fraction[]" value="<?php p($answer->fraction) ?>"/>
<INPUT type="hidden" name="feedback[]" value="<?php p($answer->feedback) ?>"/>
<INPUT type="hidden" name="tolerance[]" value="<?php p($answer->tolerance) ?>"/>
<INPUT type="hidden" name="tolerancetype[]" value="<?php p($answer->tolerancetype) ?>"/>
<INPUT type="hidden" name="correctanswerlength[]" value="<?php p($answer->correctanswerlength) ?>"/>
<INPUT type="hidden" name="answer[]" value="<?php p($answer->answer) ?>" />
<INPUT type="hidden" name="fraction[]" value="<?php p($answer->fraction) ?>" />
<INPUT type="hidden" name="feedback[]" value="<?php p($answer->feedback) ?>" />
<INPUT type="hidden" name="tolerance[]" value="<?php p($answer->tolerance) ?>" />
<INPUT type="hidden" name="tolerancetype[]" value="<?php p($answer->tolerancetype) ?>" />
<INPUT type="hidden" name="correctanswerlength[]" value="<?php p($answer->correctanswerlength) ?>" />
<?php } ?>
<?php foreach ($units as $unit) { ?>
<INPUT type="hidden" name="multiplier[]" value="<?php p($unit->multiplier) ?>"/>
<INPUT type="hidden" name="unit[]" value="<?php p($unit->unit) ?>"/>
<INPUT type="hidden" name="multiplier[]" value="<?php p($unit->multiplier) ?>" />
<INPUT type="hidden" name="unit[]" value="<?php p($unit->unit) ?>" />
<?php } ?>
</TD>
</TR>
</TABLE>
<INPUT type="hidden" name=id value="<?php p($question->id) ?>">
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>">
<INPUT type="hidden" name="category" value="<?php p($question->category) ?>"/>
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
<INPUT type="hidden" name=id value="<?php p($question->id) ?>" />
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>" />
<INPUT type="hidden" name="category" value="<?php p($question->category) ?>" />
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
</CENTER>
</FORM>
@@ -1,75 +1,150 @@
<FORM name="theform" method="post" action="question.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
<?php quiz_category_select_menu($course->id, true, true, $question->category); ?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
<INPUT type="text" name="name" size=40 value="<?php p($question->name) ?>">
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<tr valign=top>
<td align="right"><p><b><?php print_string("question", "quiz") ?>:</b></p>
<br />
<br />
<br />
<p><font SIZE="1">
<?php
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
helpbutton("text", get_string("helptext"), "moodle", true, true);
}
?>
</font></p>
</td>
<td>
<?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo "<br />";
}
print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) {
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'">';
} else {
echo "<div align=right>";
print_string("formattexttype");
echo ":&nbsp;";
if (!isset($question->questiontextformat)) {
$question->questiontextformat = FORMAT_MOODLE;
}
choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, "");
helpbutton("textformat", get_string("helpformatting"));
echo "</div>";
}
?>
</td>
</tr>
<TR valign=top>
<TD align=right><P><B><?php print_string("imagedisplay", "quiz") ?>:</B></P></TD>
<TD>
<?php if (empty($images)) {
print_string("noimagesyet");
} else {
choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
}
?>
</TD>
</TR>
</TABLE>
<INPUT type="hidden" name=id value="<?php p($question->id) ?>">
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>">
<INPUT type="hidden" name=defaultgrade value="0">
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
</CENTER>
</FORM>
<FORM name="theform" method="post" action="question.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
<?php quiz_category_select_menu($course->id, true, true, $question->category); ?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
<INPUT type="text" name="name" size=40 value="<?php p($question->name) ?>" />
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<tr valign=top>
<td align="right"><p><b><?php print_string("question", "quiz") ?>:</b></p>
<br />
<br />
<br />
<p><font SIZE="1">
<?php
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
helpbutton("text", get_string("helptext"), "moodle", true, true);
}
?>
</font></p>
</td>
<td>
<?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo "<br />";
}
print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) {
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'" />';
} else {
echo "<div align=right>";
print_string("formattexttype");
echo ":&nbsp;";
if (!isset($question->questiontextformat)) {
$question->questiontextformat = FORMAT_MOODLE;
}
choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, "");
helpbutton("textformat", get_string("helpformatting"));
echo "</div>";
}
?>
</td>
</tr>
<TR valign=top>
<TD align=right><P><B><?php print_string("imagedisplay", "quiz") ?>:</B></P></TD>
<TD>
<?php if (empty($images)) {
print_string("noimagesyet");
} else {
choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
}
?>
</TD>
</TR>
</TABLE>
<INPUT type="hidden" name=id value="<?php p($question->id) ?>" />
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>" />
<INPUT type="hidden" name=defaultgrade value="0" />
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
</CENTER>
</FORM>
+198 -99
View File
@@ -1,99 +1,198 @@
<FORM name="theform" method="post" action="question.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
<?php quiz_category_select_menu($course->id, true, true, $question->category); ?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
<INPUT type="text" name="name" size=40 value="<?php p($question->name) ?>">
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<tr valign=top>
<td align="right"><p><b><?php print_string("question", "quiz") ?>:</b></p>
<br />
<br />
<br />
<p><font SIZE="1">
<?php
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
helpbutton("text", get_string("helptext"), "moodle", true, true);
}
?>
</font></p>
</td>
<td>
<?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo "<br />";
}
print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) {
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'">';
} else {
echo "<div align=right>";
print_string("formattexttype");
echo ":&nbsp;";
if (!isset($question->questiontextformat)) {
$question->questiontextformat = FORMAT_MOODLE;
}
choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, "");
helpbutton("textformat", get_string("helpformatting"));
echo "</div>";
}
?>
</td>
</tr>
<TR valign=top>
<TD align=right><P><B><?php print_string("imagedisplay", "quiz") ?>:</B></P></TD>
<TD>
<?php if (empty($images)) {
print_string("noimagesyet");
} else {
choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
}
?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("choices", "quiz") ?></B>:</P></TD>
<TD><P><?php print_string("filloutthreequestions", "quiz") ?></P>
</TD>
</TR>
<?PHP
for ($i=1; $i<=QUIZ_MAX_NUMBER_ANSWERS; $i++) {
?>
<TR valign=top>
<TD align=right><P><B><?php echo get_string("question", "quiz")." $i"; ?> :</B></P></TD>
<TD>
<textarea name="subquestions[]" rows=5 cols=50><?php p($subquestions[$i-1]) ?></textarea>
<br />
<?php echo get_string("matchanswer", "quiz")." $i"; ?>&nbsp;&nbsp;
<INPUT type="text" name="subanswers[]" size=50 value="<?php p($subanswers[$i-1]) ?>">
</TD>
</TR>
<?PHP
}
?>
</TABLE>
<INPUT type="hidden" name=id value="<?php p($question->id) ?>">
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>">
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
</CENTER>
</FORM>
<FORM name="theform" method="post" action="question.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
<?php quiz_category_select_menu($course->id, true, true, $question->category); ?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
<INPUT type="text" name="name" size=40 value="<?php p($question->name) ?>" />
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<tr valign=top>
<td align="right"><p><b><?php print_string("question", "quiz") ?>:</b></p>
<br />
<br />
<br />
<p><font SIZE="1">
<?php
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
helpbutton("text", get_string("helptext"), "moodle", true, true);
}
?>
</font></p>
</td>
<td>
<?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo "<br />";
}
print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) {
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'" />';
} else {
echo "<div align=right>";
print_string("formattexttype");
echo ":&nbsp;";
if (!isset($question->questiontextformat)) {
$question->questiontextformat = FORMAT_MOODLE;
}
choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, "");
helpbutton("textformat", get_string("helpformatting"));
echo "</div>";
}
?>
</td>
</tr>
<TR valign=top>
<TD align=right><P><B><?php print_string("imagedisplay", "quiz") ?>:</B></P></TD>
<TD>
<?php if (empty($images)) {
print_string("noimagesyet");
} else {
choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
}
?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("choices", "quiz") ?></B>:</P></TD>
<TD><P><?php print_string("filloutthreequestions", "quiz") ?></P>
</TD>
</TR>
<?PHP
for ($i=1; $i<=QUIZ_MAX_NUMBER_ANSWERS; $i++) {
?>
<TR valign=top>
<TD align=right><P><B><?php echo get_string("question", "quiz")." $i"; ?> :</B></P></TD>
<TD>
<textarea name="subquestions[]" rows=5 cols=50><?php p($subquestions[$i-1]) ?></textarea>
<br />
<?php echo get_string("matchanswer", "quiz")." $i"; ?>&nbsp;&nbsp;
<INPUT type="text" name="subanswers[]" size=50 value="<?php p($subanswers[$i-1]) ?>" />
</TD>
</TR>
<?PHP
}
?>
</TABLE>
<INPUT type="hidden" name=id value="<?php p($question->id) ?>" />
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>" />
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
</CENTER>
</FORM>
@@ -22,7 +22,7 @@
<TD>
<INPUT type="text" name="name" size=40 value="<?php p($question->name) ?>">
<INPUT type="text" name="name" size=40 value="<?php p($question->name) ?>" />
<?php if (isset($err["name"])) formerr($err["name"]); ?>
@@ -88,13 +88,13 @@
<INPUT type="hidden" name=id value="<?php p($question->id) ?>">
<INPUT type="hidden" name=id value="<?php p($question->id) ?>" />
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>">
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>" />
<INPUT type="hidden" name=defaultgrade value="<?php p($question->defaultgrade) ?>">
<INPUT type="hidden" name=defaultgrade value="<?php p($question->defaultgrade) ?>" />
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
@@ -1,124 +1,248 @@
<FORM name="theform" method="post" action="question.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
<?php quiz_category_select_menu($course->id, true, true, $question->category); ?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
<INPUT type="text" name="name" size=40 value="<?php p($question->name) ?>">
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<tr valign=top>
<td align="right"><p><b><?php print_string("question", "quiz") ?>:</b></p>
<br />
<br />
<br />
<p><font SIZE="1">
<?php
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
helpbutton("text", get_string("helptext"), "moodle", true, true);
}
?>
</font></p>
</td>
<td>
<?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo "<br />";
}
print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) {
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'">';
} else {
echo "<div align=right>";
print_string("formattexttype");
echo ":&nbsp;";
if (!isset($question->questiontextformat)) {
$question->questiontextformat = FORMAT_MOODLE;
}
choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, "");
helpbutton("textformat", get_string("helpformatting"));
echo "</div>";
}
?>
</td>
</tr>
<TR valign=top>
<TD align=right><P><B><?php print_string("imagedisplay", "quiz") ?>:</B></P></TD>
<TD>
<?php if (empty($images)) {
print_string("noimagesyet");
} else {
choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
}
?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("answerhowmany", "quiz") ?>:</B></P></TD>
<TD>
<?php
$menu[0] = get_string("answersingleno", "quiz");
$menu[1] = get_string("answersingleyes", "quiz");
choose_from_menu($menu, "single", "$options->single", "");
unset($menu);
?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("choices", "quiz") ?></B>:</P></TD>
<TD><P><?php print_string("fillouttwochoices", "quiz") ?></P>
</TD>
</TR>
<?PHP
for ($i=1; $i<=QUIZ_MAX_NUMBER_ANSWERS; $i++) {
if (!isset($answers[$i-1]->fraction)) {
$answers[$i-1]->answer = '';
$answers[$i-1]->fraction = 0;
$answers[$i-1]->feedback = '';
}
?>
<TR valign=top>
<TD align=right><P><B><?php echo get_string("choice", "quiz")." $i"; ?>:</B></P></TD>
<TD>
<INPUT type="text" name="answer[]" size=50 maxlength=255 value="<?php p($answers[$i-1]->answer) ?>">&nbsp;&nbsp;
<?php print_string("grade");
echo ":&nbsp;";
choose_from_menu($gradeoptionsfull, "fraction[]", $answers[$i-1]->fraction, ""); ?>
<BR>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("feedback", "quiz") ?>:</B></P></TD>
<TD>
<textarea name="feedback[]" rows=2 cols=50 wrap="virtual"><?php p($answers[$i-1]->feedback) ?></textarea>
</TD>
</TR>
<TR valign=top>
<TD colspan=2>&nbsp;</TD>
</TR>
<?php
} /// End of loop, printing answers
?>
</TABLE>
<INPUT type="hidden" name=id value="<?php p($question->id) ?>">
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>">
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
</CENTER>
</FORM>
<FORM name="theform" method="post" action="question.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
<?php quiz_category_select_menu($course->id, true, true, $question->category); ?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
<INPUT type="text" name="name" size=40 value="<?php p($question->name) ?>" />
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<tr valign=top>
<td align="right"><p><b><?php print_string("question", "quiz") ?>:</b></p>
<br />
<br />
<br />
<p><font SIZE="1">
<?php
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
helpbutton("text", get_string("helptext"), "moodle", true, true);
}
?>
</font></p>
</td>
<td>
<?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo "<br />";
}
print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) {
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'" />';
} else {
echo "<div align=right>";
print_string("formattexttype");
echo ":&nbsp;";
if (!isset($question->questiontextformat)) {
$question->questiontextformat = FORMAT_MOODLE;
}
choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, "");
helpbutton("textformat", get_string("helpformatting"));
echo "</div>";
}
?>
</td>
</tr>
<TR valign=top>
<TD align=right><P><B><?php print_string("imagedisplay", "quiz") ?>:</B></P></TD>
<TD>
<?php if (empty($images)) {
print_string("noimagesyet");
} else {
choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
}
?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("answerhowmany", "quiz") ?>:</B></P></TD>
<TD>
<?php
$menu[0] = get_string("answersingleno", "quiz");
$menu[1] = get_string("answersingleyes", "quiz");
choose_from_menu($menu, "single", "$options->single", "");
unset($menu);
?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("choices", "quiz") ?></B>:</P></TD>
<TD><P><?php print_string("fillouttwochoices", "quiz") ?></P>
</TD>
</TR>
<?PHP
for ($i=1; $i<=QUIZ_MAX_NUMBER_ANSWERS; $i++) {
if (!isset($answers[$i-1]->fraction)) {
$answers[$i-1]->answer = '';
$answers[$i-1]->fraction = 0;
$answers[$i-1]->feedback = '';
}
?>
<TR valign=top>
<TD align=right><P><B><?php echo get_string("choice", "quiz")." $i"; ?>:</B></P></TD>
<TD>
<INPUT type="text" name="answer[]" size=50 maxlength=255 value="<?php p($answers[$i-1]->answer) ?>" />&nbsp;&nbsp;
<?php print_string("grade");
echo ":&nbsp;";
choose_from_menu($gradeoptionsfull, "fraction[]", $answers[$i-1]->fraction, ""); ?>
<BR>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("feedback", "quiz") ?>:</B></P></TD>
<TD>
<textarea name="feedback[]" rows=2 cols=50 wrap="virtual"><?php p($answers[$i-1]->feedback) ?></textarea>
</TD>
</TR>
<TR valign=top>
<TD colspan=2>&nbsp;</TD>
</TR>
<?php
} /// End of loop, printing answers
?>
</TABLE>
<INPUT type="hidden" name=id value="<?php p($question->id) ?>" />
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>" />
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
</CENTER>
</FORM>
+13 -13
View File
@@ -10,7 +10,7 @@
<TR valign=top>
<TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
<INPUT type="text" name="name" size=50 value="<?php p($question->name) ?>">
<INPUT type="text" name="name" size=50 value="<?php p($question->name) ?>" />
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
@@ -38,7 +38,7 @@
print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) {
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'">';
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'" />';
} else {
echo "<div align=right>";
print_string("formattexttype");
@@ -78,7 +78,7 @@
}
?>
<TD>
<INPUT align="LEFT" type="text" id="correct0" name="answer[]" size="20" value="<?php p($answers[0]->answer) ?>"/>&nbsp;&nbsp;
<INPUT align="LEFT" type="text" id="correct0" name="answer[]" size="20" value="<?php p($answers[0]->answer) ?>" />&nbsp;&nbsp;
</TD>
</TR>
<TR valign=top>
@@ -86,9 +86,9 @@
<TD>
<INPUT align="LEFT" type="text" id="acceptederror0" name="acceptederror[]" size="15" value="<?php p($acceptederror) ?>" />&plusmn;
<!-- Values max and min will be determined when the form is submitted -->
<INPUT type="HIDDEN" id="min0" name="min[]" value=""/>
<INPUT type="HIDDEN" id="max0" name="max[]" value=""/>
<INPUT type="HIDDEN" name="fraction[]" value="1"/>
<INPUT type="HIDDEN" id="min0" name="min[]" value="" />
<INPUT type="HIDDEN" id="max0" name="max[]" value="" />
<INPUT type="HIDDEN" name="fraction[]" value="1" />
<BR/>
</TD>
</TR>
@@ -101,9 +101,9 @@
<TR valign=top>
<TD align=right><P><B><?php print_string("unit", "quiz") ?>:</B></P></TD>
<TD>
<P><INPUT type="HIDDEN" name="multiplier[]" value="1.0"/>
<P><INPUT type="HIDDEN" name="multiplier[]" value="1.0" />
<INPUT align="LEFT" type="text" id="defaultunit" name="unit[]"
size="5" value="<?php p($units[0]->unit) ?>"/>
size="5" value="<?php p($units[0]->unit) ?>" />
<B>(<?php print_string("optional", "quiz") ?>)</B></P>
</TD>
</TR>
@@ -122,11 +122,11 @@ for ($i=1; $i<count($units); $i++) {
<P><B><?php print_string("multiplier", "quiz") ?>:</B>
<INPUT type="text" id="<?php p("multiplier$i") ?>" size="10"
align="RIGHT" name="multiplier[]"
value="<?php p($unit->multiplier) ?>"/>
value="<?php p($unit->multiplier) ?>" />
<B>&nbsp;&nbsp;&nbsp;<?php print_string("unit", "quiz") ?>:</B>
<INPUT align="LEFT" type="text" id="<?php p("unit$i") ?>"
name="unit[]"
size="5" value="<?php p($unit->unit) ?>"/></P>
size="5" value="<?php p($unit->unit) ?>" /></P>
</TD>
</TR>
<?PHP
@@ -134,9 +134,9 @@ for ($i=1; $i<count($units); $i++) {
?>
</TABLE>
<INPUT type="hidden" name=id value="<?php p($question->id) ?>">
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>">
<INPUT type="submit" onClick="return determineMinAndMax();" value="<?php print_string("savechanges") ?>">
<INPUT type="hidden" name=id value="<?php p($question->id) ?>" />
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>" />
<INPUT type="submit" onClick="return determineMinAndMax();" value="<?php print_string("savechanges") ?>" />
</CENTER>
</FORM>
<SCRIPT language="JAVASCRIPT">
@@ -154,7 +154,7 @@ class quiz_random_qtype extends quiz_default_questiontype {
if ($actualquestion = $this->get_wrapped_question($question,
$nameprefix)) {
echo '<input type="hidden" name="' . $nameprefix
. '" value="' . $actualquestion->id . '"/>';
. '" value="' . $actualquestion->id . '" />';
return $QUIZ_QTYPES[$actualquestion->qtype]
->print_question_formulation_and_controls($actualquestion,
$quiz, $readonly, $answers, $correctanswers,
+60 -30
View File
@@ -1,30 +1,60 @@
<center>
<form name="theform" method="post" action="question.php">
<table cellpadding=5>
<tr valign=top>
<td align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<td>
<?php quiz_category_select_menu($course->id, true, true, $question->category); ?>
</td>
</tr>
<tr valign=top>
<td align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<td>
<?php if (empty($question->name)) {
$question->name = get_string("random", "quiz");
} ?>
<input type="text" name="name" size=40 value="<?php p($question->name) ?>">
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</td>
</tr>
</table>
<input type="hidden" name=questiontext value="---">
<input type="hidden" name=id value="<?php p($question->id) ?>">
<input type="hidden" name=qtype value="<?php p($question->qtype) ?>">
<input type="submit" value="<?php print_string("savechanges") ?>">
</form>
</center>
<center>
<form name="theform" method="post" action="question.php">
<table cellpadding=5>
<tr valign=top>
<td align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<td>
<?php quiz_category_select_menu($course->id, true, true, $question->category); ?>
</td>
</tr>
<tr valign=top>
<td align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<td>
<?php if (empty($question->name)) {
$question->name = get_string("random", "quiz");
} ?>
<input type="text" name="name" size=40 value="<?php p($question->name) ?>" />
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</td>
</tr>
</table>
<input type="hidden" name=questiontext value="---" />
<input type="hidden" name=id value="<?php p($question->id) ?>" />
<input type="hidden" name=qtype value="<?php p($question->qtype) ?>" />
<input type="submit" value="<?php print_string("savechanges") ?>" />
</form>
</center>
@@ -1,91 +1,182 @@
<FORM name="theform" method="post" action="question.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
<?PHP echo $categories[$question->category]; ?>
<input type="hidden" name="category" value="<?PHP echo "$question->category"; ?>">
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
<?PHP
if (empty($question->name)) {
$question->name = get_string("randomsamatch", "quiz");
}
?>
<INPUT type="text" name="name" size=40 value="<?php p($question->name) ?>">
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<tr valign=top>
<td align=right><p><b><?php print_string("introduction", "quiz") ?>:</b></p>
<br />
<p><font SIZE="1">
<?php
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
helpbutton("text", get_string("helptext"), "moodle", true, true);
}
?>
</font></p>
</td>
<td>
<?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo "<br />";
}
if (empty($question->questiontext)) {
$question->questiontext = get_string("randomsamatchintro", "quiz");
}
print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) {
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'">';
} else {
echo "<div align=right>";
print_string("formattexttype");
echo ":&nbsp;";
if (!$question->questiontextformat) {
$question->questiontextformat = FORMAT_MOODLE;
}
choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, "");
helpbutton("textformat", get_string("helpformatting"));
echo "</div>";
}
?>
</td>
</tr>
<TR valign=top>
<TD align=right><P><B><?php print_string("randomsamatchnumber", "quiz") ?>:</B></P></TD>
<TD>
<?php
if ($numberavailable < 2) {
echo "ERROR";
$maxrandom=2;
} else if ($numberavailable < 6) {
$maxrandom = $numberavailable;
} else {
$maxrandom = QUIZ_MAX_NUMBER_ANSWERS;
}
for ($i=2;$i<=$maxrandom;$i++) {
$menu[$i] = $i;
}
choose_from_menu($menu, "choose", "$options->choose", "");
unset($menu);
?>
</TD>
</TR>
</TABLE>
<INPUT type="hidden" name=id value="<?php p($question->id) ?>">
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>">
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
</CENTER>
</FORM>
<FORM name="theform" method="post" action="question.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
<?PHP echo $categories[$question->category]; ?>
<input type="hidden" name="category" value="<?PHP echo "$question->category"; ?>" />
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
<?PHP
if (empty($question->name)) {
$question->name = get_string("randomsamatch", "quiz");
}
?>
<INPUT type="text" name="name" size=40 value="<?php p($question->name) ?>" />
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<tr valign=top>
<td align=right><p><b><?php print_string("introduction", "quiz") ?>:</b></p>
<br />
<p><font SIZE="1">
<?php
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
helpbutton("text", get_string("helptext"), "moodle", true, true);
}
?>
</font></p>
</td>
<td>
<?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo "<br />";
}
if (empty($question->questiontext)) {
$question->questiontext = get_string("randomsamatchintro", "quiz");
}
print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) {
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'" />';
} else {
echo "<div align=right>";
print_string("formattexttype");
echo ":&nbsp;";
if (!$question->questiontextformat) {
$question->questiontextformat = FORMAT_MOODLE;
}
choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, "");
helpbutton("textformat", get_string("helpformatting"));
echo "</div>";
}
?>
</td>
</tr>
<TR valign=top>
<TD align=right><P><B><?php print_string("randomsamatchnumber", "quiz") ?>:</B></P></TD>
<TD>
<?php
if ($numberavailable < 2) {
echo "ERROR";
$maxrandom=2;
} else if ($numberavailable < 6) {
$maxrandom = $numberavailable;
} else {
$maxrandom = QUIZ_MAX_NUMBER_ANSWERS;
}
for ($i=2;$i<=$maxrandom;$i++) {
$menu[$i] = $i;
}
choose_from_menu($menu, "choose", "$options->choose", "");
unset($menu);
?>
</TD>
</TR>
</TABLE>
<INPUT type="hidden" name=id value="<?php p($question->id) ?>" />
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>" />
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
</CENTER>
</FORM>
@@ -1,121 +1,242 @@
<FORM name="theform" method="post" action="question.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
<?php quiz_category_select_menu($course->id, true, true, $question->category); ?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
<INPUT type="text" name="name" size=50 value="<?php p($question->name) ?>">
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<tr valign=top>
<td align="right"><p><b><?php print_string("question", "quiz") ?>:</b></p>
<br />
<br />
<br />
<p><font SIZE="1">
<?php
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
helpbutton("text", get_string("helptext"), "moodle", true, true);
}
?>
</font></p>
</td>
<td>
<?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo "<br />";
}
print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) {
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'">';
} else {
echo "<div align=right>";
print_string("formattexttype");
echo ":&nbsp;";
if (!isset($question->questiontextformat)) {
$question->questiontextformat = FORMAT_MOODLE;
}
choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, "");
helpbutton("textformat", get_string("helpformatting"));
echo "</div>";
}
?>
</td>
</tr>
<TR valign=top>
<TD align=right><P><B><?php print_string("imagedisplay", "quiz") ?>:</B></P></TD>
<TD>
<?php if (empty($images)) {
print_string("noimagesyet");
} else {
choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
}
?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("casesensitive", "quiz") ?>:</B></P></TD>
<TD>
<?php
unset($menu);
$menu[0] = get_string("caseno", "quiz");
$menu[1] = get_string("caseyes", "quiz");
choose_from_menu($menu, "usecase", "$options->usecase", "");
?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("correctanswers", "quiz") ?></B>:</P></TD>
<TD>
<P><?php print_string("filloutoneanswer", "quiz") ?></P>
</TD>
<?PHP
for ($i=1; $i<=QUIZ_MAX_NUMBER_ANSWERS; $i++) {
?>
<TR valign=top>
<TD align=right><P><B><?php echo get_string("answer", "quiz")." $i"; ?>:</B></P></TD>
<TD>
<INPUT type="text" name="answer[]" size=50 value="<?php p($answers[$i-1]->answer) ?>">&nbsp;&nbsp;
<?php print_string("grade");
echo ":&nbsp;";
choose_from_menu($gradeoptions, "fraction[]", $answers[$i-1]->fraction,""); ?>
<BR>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("feedback", "quiz") ?>:</B></P></TD>
<TD>
<textarea name="feedback[]" rows=2 cols=50 wrap="virtual"><?php p($answers[$i-1]->feedback) ?></textarea>
</TD>
</TR>
<TR valign=top>
<TD colspan=2>&nbsp;</TD>
</TR>
<?PHP
}
?>
</TABLE>
<INPUT type="hidden" name=id value="<?php p($question->id) ?>">
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>">
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
</CENTER>
</FORM>
<FORM name="theform" method="post" action="question.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
<?php quiz_category_select_menu($course->id, true, true, $question->category); ?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
<INPUT type="text" name="name" size=50 value="<?php p($question->name) ?>" />
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<tr valign=top>
<td align="right"><p><b><?php print_string("question", "quiz") ?>:</b></p>
<br />
<br />
<br />
<p><font SIZE="1">
<?php
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
helpbutton("text", get_string("helptext"), "moodle", true, true);
}
?>
</font></p>
</td>
<td>
<?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo "<br />";
}
print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) {
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'" />';
} else {
echo "<div align=right>";
print_string("formattexttype");
echo ":&nbsp;";
if (!isset($question->questiontextformat)) {
$question->questiontextformat = FORMAT_MOODLE;
}
choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, "");
helpbutton("textformat", get_string("helpformatting"));
echo "</div>";
}
?>
</td>
</tr>
<TR valign=top>
<TD align=right><P><B><?php print_string("imagedisplay", "quiz") ?>:</B></P></TD>
<TD>
<?php if (empty($images)) {
print_string("noimagesyet");
} else {
choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
}
?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("casesensitive", "quiz") ?>:</B></P></TD>
<TD>
<?php
unset($menu);
$menu[0] = get_string("caseno", "quiz");
$menu[1] = get_string("caseyes", "quiz");
choose_from_menu($menu, "usecase", "$options->usecase", "");
?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("correctanswers", "quiz") ?></B>:</P></TD>
<TD>
<P><?php print_string("filloutoneanswer", "quiz") ?></P>
</TD>
<?PHP
for ($i=1; $i<=QUIZ_MAX_NUMBER_ANSWERS; $i++) {
?>
<TR valign=top>
<TD align=right><P><B><?php echo get_string("answer", "quiz")." $i"; ?>:</B></P></TD>
<TD>
<INPUT type="text" name="answer[]" size=50 value="<?php p($answers[$i-1]->answer) ?>" />&nbsp;&nbsp;
<?php print_string("grade");
echo ":&nbsp;";
choose_from_menu($gradeoptions, "fraction[]", $answers[$i-1]->fraction,""); ?>
<BR>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("feedback", "quiz") ?>:</B></P></TD>
<TD>
<textarea name="feedback[]" rows=2 cols=50 wrap="virtual"><?php p($answers[$i-1]->feedback) ?></textarea>
</TD>
</TR>
<TR valign=top>
<TD colspan=2>&nbsp;</TD>
</TR>
<?PHP
}
?>
</TABLE>
<INPUT type="hidden" name=id value="<?php p($question->id) ?>" />
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>" />
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
</CENTER>
</FORM>
+192 -96
View File
@@ -1,96 +1,192 @@
<FORM name="theform" method="post" action="question.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
<?php quiz_category_select_menu($course->id, true, true, $question->category); ?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
<INPUT type="text" name="name" size=50 value="<?php p($question->name) ?>">
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<tr valign=top>
<td align="right"><p><b><?php print_string("question", "quiz") ?>:</b></p>
<br />
<br />
<br />
<p><font SIZE="1">
<?php
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
helpbutton("text", get_string("helptext"), "moodle", true, true);
}
?>
</font></p>
</td>
<td>
<?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo "<br />";
}
print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) {
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'">';
} else {
echo "<div align=right>";
print_string("formattexttype");
echo ":&nbsp;";
if (!isset($question->questiontextformat)) {
$question->questiontextformat = FORMAT_MOODLE;
}
choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, "");
helpbutton("textformat", get_string("helpformatting"));
echo "</div>";
}
?>
</td>
</tr>
<TR valign=top>
<TD align=right><P><B><?php print_string("imagedisplay", "quiz") ?>:</B></P></TD>
<TD>
<?php if (empty($images)) {
print_string("noimagesyet");
} else {
choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
}
?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("correctanswer", "quiz") ?>:</B></P></TD>
<TD>
<?php $menu[0] = get_string("false", "quiz");
$menu[1] = get_string("true", "quiz");
choose_from_menu($menu, "answer", "$question->answer", ""); ?>
<BR>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("feedback", "quiz") ?> (<?php print_string("true", "quiz") ?>):</B></P></TD>
<TD>
<textarea name="feedbacktrue" rows=2 cols=50 wrap="virtual"><?php p($true->feedback) ?></textarea>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("feedback", "quiz") ?> (<?php print_string("false", "quiz") ?>):</B></P></TD>
<TD>
<textarea name="feedbackfalse" rows=2 cols=50 wrap="virtual"><?php p($false->feedback) ?></textarea>
</TD>
</TR>
</TABLE>
<INPUT type="hidden" name=id value="<?php p($question->id) ?>">
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>">
<INPUT type="submit" value="<?php print_string("savechanges") ?>">
</CENTER>
</FORM>
<FORM name="theform" method="post" action="question.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
<?php quiz_category_select_menu($course->id, true, true, $question->category); ?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
<INPUT type="text" name="name" size=50 value="<?php p($question->name) ?>" />
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<tr valign=top>
<td align="right"><p><b><?php print_string("question", "quiz") ?>:</b></p>
<br />
<br />
<br />
<p><font SIZE="1">
<?php
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
helpbutton("text", get_string("helptext"), "moodle", true, true);
}
?>
</font></p>
</td>
<td>
<?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo "<br />";
}
print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
if ($usehtmleditor) {
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'" />';
} else {
echo "<div align=right>";
print_string("formattexttype");
echo ":&nbsp;";
if (!isset($question->questiontextformat)) {
$question->questiontextformat = FORMAT_MOODLE;
}
choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, "");
helpbutton("textformat", get_string("helpformatting"));
echo "</div>";
}
?>
</td>
</tr>
<TR valign=top>
<TD align=right><P><B><?php print_string("imagedisplay", "quiz") ?>:</B></P></TD>
<TD>
<?php if (empty($images)) {
print_string("noimagesyet");
} else {
choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
}
?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("correctanswer", "quiz") ?>:</B></P></TD>
<TD>
<?php $menu[0] = get_string("false", "quiz");
$menu[1] = get_string("true", "quiz");
choose_from_menu($menu, "answer", "$question->answer", ""); ?>
<BR>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("feedback", "quiz") ?> (<?php print_string("true", "quiz") ?>):</B></P></TD>
<TD>
<textarea name="feedbacktrue" rows=2 cols=50 wrap="virtual"><?php p($true->feedback) ?></textarea>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string("feedback", "quiz") ?> (<?php print_string("false", "quiz") ?>):</B></P></TD>
<TD>
<textarea name="feedbackfalse" rows=2 cols=50 wrap="virtual"><?php p($false->feedback) ?></textarea>
</TD>
</TR>
</TABLE>
<INPUT type="hidden" name=id value="<?php p($question->id) ?>" />
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>" />
<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
</CENTER>
</FORM>
+5 -5
View File
@@ -472,7 +472,7 @@ class quiz_report extends quiz_default_report {
$myxls->write_string($row,0,$label,$formatbrt);
//display answer tallies
for ($j = 1; $j <= $table_colcount; $j++){
//substitute "<br>" for a "//"
//substitute "<br />" for a "//"
$nowdata = $analysis[$i][$j];
if($slashpos = strpos($nowdata,"//")){
$text = substr($nowdata,0,$slashpos);
@@ -644,7 +644,7 @@ class quiz_report extends quiz_default_report {
echo "M/C #$i\t";
//display answer tallies
for ($j = 1; $j <= $table_colcount; $j++){
//substitute "<br>" for a "//"
//substitute "<br />" for a "//"
$nowdata = $analysis[$i][$j];
if (strpos($nowdata,"//")>0) {
$nowdata = str_replace("//"," : ",$nowdata);
@@ -682,7 +682,7 @@ class quiz_report extends quiz_default_report {
} elseif ($thisitem['qtype'] == 5) {
if ($thisitem['score'] == 1) {$thiscolor = "blue";}
if(!$thisitem['data'][1]){$thisitem['data'][1]="($strnoresponse)";}
print("<td align=center><font size=-2>{$thisitem['data'][0]}<br><font color='$thiscolor'>{$thisitem['data'][1]}</font></font></td>");
print("<td align=center><font size=-2>{$thisitem['data'][0]}<br /><font color='$thiscolor'>{$thisitem['data'][1]}</font></font></td>");
} elseif ($thisitem['qtype'] == 3) {
if ($showtext) {
print("<td align=center><font color='$thiscolor' size=-2>&nbsp;&nbsp;{$thisitem['data']}&nbsp;&nbsp;</font></td>");
@@ -726,9 +726,9 @@ class quiz_report extends quiz_default_report {
print("<tr valign=top><th colspan=2 align=right>&nbsp;M/C #$i</td>");
//display answer tallies
for ($j = 1; $j <= $table_colcount; $j++){
//substitute "<br>" for a "//"
//substitute "<br />" for a "//"
$nowdata = $analysis[$i][$j];
if (strpos($nowdata,"//")>0) {$nowdata = str_replace("//","<br>",$nowdata);}
if (strpos($nowdata,"//")>0) {$nowdata = str_replace("//","<br />",$nowdata);}
print("<td align='center'>&nbsp;$nowdata</td>");
}
+4 -4
View File
@@ -117,14 +117,14 @@ class quiz_report extends quiz_default_report {
$onsub = "return confirm('$strreallydel')";
echo "<form method=\"post\" action=\"report.php\" name=\"delform\" onsubmit=\"$onsub\">\n";
echo "<input type=\"hidden\" name=\"del\" value=\"selection\">\n";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\">\n";
echo "<input type=\"hidden\" name=\"del\" value=\"selection\" />\n";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />\n";
print_table($table);
//There might be a more elegant way than using the <center> tag for this
echo "<center><input type=\"submit\" value=\"$strdeleteselected\">&nbsp;";
echo "<input type=button value=\"$strdeleteall\" onClick=\"if(delcheck()){document.delform.submit()}\">\n</center>\n";
echo "<input type=button value=\"$strdeleteall\" onClick=\"if(delcheck()){document.delform.submit()}\" />\n</center>\n";
echo "</form>\n";
return true;
@@ -145,7 +145,7 @@ class quiz_report extends quiz_default_report {
} else {
$attemptlapse = "...";
}
$button = "<input type=checkbox name=\"box$attempt->id\" value=\"$attempt->id\">";
$button = "<input type=checkbox name=\"box$attempt->id\" value=\"$attempt->id\" />";
$revurl = "review.php?q=$quiz->id&attempt=$attempt->id";
if ($attemptgrade == $bestgrade) {
$userattempts[] = "$button&nbsp;<span class=\"highlight\">$attemptgrade</span>&nbsp;<a href=\"$revurl\">$attemptdate</a>&nbsp;($attemptlapse)";
+21 -21
View File
@@ -269,10 +269,10 @@
//Do some output
if ($status) {
echo "<ul><li>".get_string("category")." \"".$quiz_cat->name."\"<br>";
echo "<ul><li>".get_string("category")." \"".$quiz_cat->name."\"<br />";
} else {
//We must never arrive here !!
echo "<ul><li>".get_string("category")." \"".$quiz_cat->name."\" Error!<br>";
echo "<ul><li>".get_string("category")." \"".$quiz_cat->name."\" Error!<br />";
}
backup_flush(300);
@@ -355,7 +355,7 @@
if (($i+1) % 2 == 0) {
echo ".";
if (($i+1) % 40 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -458,7 +458,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -514,7 +514,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -581,7 +581,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -634,7 +634,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -698,7 +698,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -746,7 +746,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -822,7 +822,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -877,7 +877,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -922,7 +922,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -970,7 +970,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -1022,7 +1022,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -1103,7 +1103,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -1344,7 +1344,7 @@
$newid = insert_record ("quiz",$quiz);
//Do some output
echo "<ul><li>".get_string("modulename","quiz")." \"".$quiz->name."\"<br>";
echo "<ul><li>".get_string("modulename","quiz")." \"".$quiz->name."\"<br />";
backup_flush(300);
if ($newid) {
@@ -1414,7 +1414,7 @@
if (($i+1) % 10 == 0) {
echo ".";
if (($i+1) % 200 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -1474,7 +1474,7 @@
if (($i+1) % 10 == 0) {
echo ".";
if (($i+1) % 200 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -1700,7 +1700,7 @@
if (($i+1) % 10 == 0) {
echo ".";
if (($i+1) % 200 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -1757,7 +1757,7 @@
if (($i+1) % 10 == 0) {
echo ".";
if (($i+1) % 200 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -1882,7 +1882,7 @@
}
break;
default:
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br>"; //Debug
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br />"; //Debug
break;
}
+6 -6
View File
@@ -4,7 +4,7 @@
<tr valign=top>
<td align=right><p>resource_framesize:</td>
<td>
<input name=resource_framesize type=text size=5 value="<?php p($CFG->resource_framesize) ?>">
<input name=resource_framesize type=text size=5 value="<?php p($CFG->resource_framesize) ?>" />
</td>
<td>
<?php print_string("configframesize", "resource") ?>
@@ -13,7 +13,7 @@
<tr valign=top>
<td align=right><p>resource_websearch:</td>
<td>
<input name=resource_websearch type=text size=30 value="<?php p($CFG->resource_websearch) ?>">
<input name=resource_websearch type=text size=30 value="<?php p($CFG->resource_websearch) ?>" />
</td>
<td>
<?php print_string("configwebsearch", "resource") ?>
@@ -22,7 +22,7 @@
<tr valign=top>
<td align=right><p>resource_defaulturl:</td>
<td>
<input name=resource_defaulturl type=text size=30 value="<?php p($CFG->resource_defaulturl) ?>">
<input name=resource_defaulturl type=text size=30 value="<?php p($CFG->resource_defaulturl) ?>" />
</td>
<td>
<?php print_string("configdefaulturl", "resource") ?>
@@ -31,7 +31,7 @@
<tr valign=top>
<td align=right><p>resource_secretphrase:</td>
<td>
<input name=resource_secretphrase type=text size=30 value="<?php p($CFG->resource_secretphrase) ?>">
<input name=resource_secretphrase type=text size=30 value="<?php p($CFG->resource_secretphrase) ?>" />
</td>
<td>
<?php print_string("configsecretphrase", "resource") ?>
@@ -71,7 +71,7 @@
echo "<td align=right><p>$defaultvalue:</td>";
echo "<td>";
if ($optionname == "height" or $optionname == "width") {
echo "<input name=$defaultvalue type=text size=5 value=\"".$CFG->$defaultvalue."\">";
echo "<input name=$defaultvalue type=text size=5 value=\"".$CFG->$defaultvalue."\" />";
} else {
choose_from_menu ($choices, $defaultvalue, $CFG->$defaultvalue, "");
}
@@ -112,7 +112,7 @@
</tr>
<tr>
<td colspan=3 align=center>
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>
+74 -74
View File
@@ -150,20 +150,20 @@
echo "<P>$struploadafile ($strmaxsize) --> <B>$wdir</B>";
echo "<TABLE><TR><TD COLSPAN=2>";
echo "<FORM ENCTYPE=\"multipart/form-data\" METHOD=\"post\" ACTION=\"".$ME."\">";
echo " <INPUT TYPE=hidden NAME=MAX_FILE_SIZE value=\"$upload_max_filesize\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=upload>";
echo " <INPUT NAME=\"userfile\" TYPE=\"file\" size=\"60\">";
echo " <INPUT TYPE=hidden NAME=MAX_FILE_SIZE value=\"$upload_max_filesize\" />";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=upload />";
echo " <INPUT NAME=\"userfile\" TYPE=\"file\" size=\"60\" />";
echo " </TD><TR><TD WIDTH=10>";
echo " <INPUT TYPE=submit NAME=save VALUE=\"$struploadthisfile\">";
echo " <INPUT TYPE=submit NAME=save VALUE=\"$struploadthisfile\" />";
echo "</FORM>";
echo "</TD><TD WIDTH=100%>";
echo "<FORM ACTION=\"".$ME."\" METHOD=\"get\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
echo " <INPUT TYPE=submit VALUE=\"$strcancel\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
echo "</FORM>";
echo "</TD></TR></TABLE>";
}
@@ -250,19 +250,19 @@
echo "<P>$strrenamefileto:";
echo "<TABLE><TR><TD>";
echo "<FORM ACTION=\"".$ME."\" METHOD=\"post\" NAME=\"form\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=rename>";
echo " <INPUT TYPE=hidden NAME=oldname VALUE=\"$file\">";
echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"$file\">";
echo " <INPUT TYPE=submit VALUE=\"$strrename\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=rename />";
echo " <INPUT TYPE=hidden NAME=oldname VALUE=\"$file\" />";
echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"$file\" />";
echo " <INPUT TYPE=submit VALUE=\"$strrename\" />";
echo "</FORM>";
echo "</TD><TD>";
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
echo " <INPUT TYPE=submit VALUE=\"$strcancel\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
echo "</FORM>";
echo "</TD></TR></TABLE>";
}
@@ -288,18 +288,18 @@
echo "<P>$strcreatefolder:";
echo "<TABLE><TR><TD>";
echo "<FORM ACTION=\"".$ME."\" METHOD=post NAME=form>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir>";
echo " <INPUT TYPE=text NAME=name SIZE=35>";
echo " <INPUT TYPE=submit VALUE=\"$strcreate\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir />";
echo " <INPUT TYPE=text NAME=name SIZE=35 />";
echo " <INPUT TYPE=submit VALUE=\"$strcreate\" />";
echo "</FORM>";
echo "</TD><TD>";
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
echo " <INPUT TYPE=submit VALUE=\"$strcancel\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
echo "</FORM>";
echo "</TD></TR></TABLE>";
}
@@ -336,20 +336,20 @@
echo "<TABLE><TR><TD COLSPAN=2>";
echo "<FORM ACTION=\"".$ME."\" METHOD=\"post\" NAME=\"form\" $onsubmit>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
echo " <INPUT TYPE=hidden NAME=file VALUE=\"$file\">";
echo " <INPUT TYPE=hidden NAME=action VALUE=edit>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
echo " <INPUT TYPE=hidden NAME=file VALUE=\"$file\" />";
echo " <INPUT TYPE=hidden NAME=action VALUE=edit />";
print_textarea($usehtmleditor, 25, 80, 680, 400, "text", $contents);
echo "</TD></TR><TR><TD>";
echo " <INPUT TYPE=submit VALUE=\"".get_string("savechanges")."\">";
echo " <INPUT TYPE=submit VALUE=\"".get_string("savechanges")."\" />";
echo "</FORM>";
echo "</TD><TD>";
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\" />";
echo "</FORM>";
echo "</TD></TR></TABLE>";
@@ -400,18 +400,18 @@
echo "<P ALIGN=CENTER>".get_string("whattocallzip");
echo "<TABLE><TR><TD>";
echo "<FORM ACTION=\"".$ME."\" METHOD=post NAME=form>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
echo " <INPUT TYPE=hidden NAME=action VALUE=zip>";
echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"new.zip\">";
echo " <INPUT TYPE=submit VALUE=\"".get_string("createziparchive")."\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
echo " <INPUT TYPE=hidden NAME=action VALUE=zip />";
echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"new.zip\" />";
echo " <INPUT TYPE=submit VALUE=\"".get_string("createziparchive")."\" />";
echo "</FORM>";
echo "</TD><TD>";
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\" />";
echo "</FORM>";
echo "</TD></TR></TABLE>";
} else {
@@ -474,10 +474,10 @@
}
echo "<CENTER><FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
echo " <INPUT TYPE=submit VALUE=\"$strok\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
echo " <INPUT TYPE=submit VALUE=\"$strok\" />";
echo "</FORM>";
echo "</CENTER>";
} else {
@@ -520,11 +520,11 @@
}
echo "</table>";
}
echo "<br><center><form action=\"".$ME."\" method=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
echo " <INPUT TYPE=submit VALUE=\"$strok\">";
echo "<br /><center><form action=\"".$ME."\" method=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
echo " <INPUT TYPE=submit VALUE=\"$strok\" />";
echo "</FORM>";
echo "</CENTER>";
} else {
@@ -636,7 +636,7 @@ function printfilelist($filelist) {
foreach ($filelist as $file) {
if (is_dir($basedir.$file)) {
echo "<img src=\"$CFG->pixpath/f/folder.gif\" height=16 width=16> $file<br>";
echo "<img src=\"$CFG->pixpath/f/folder.gif\" height=16 width=16> $file<br />";
$subfilelist = array();
$currdir = opendir($basedir.$file);
while ($subfile = readdir($currdir)) {
@@ -648,7 +648,7 @@ function printfilelist($filelist) {
} else {
$icon = mimeinfo("icon", $file);
echo "<img src=\"$CFG->pixpath/f/$icon\" height=16 width=16> $file<br>";
echo "<img src=\"$CFG->pixpath/f/$icon\" height=16 width=16> $file<br />";
}
}
}
@@ -732,7 +732,7 @@ function displaydir ($wdir) {
echo "<TR>";
print_cell("center", "<INPUT TYPE=checkbox NAME=\"file$count\" VALUE=\"$fileurl\">");
print_cell("center", "<INPUT TYPE=checkbox NAME=\"file$count\" VALUE=\"$fileurl\" />");
print_cell("left", "<A HREF=\"".basename($ME)."?id=$id&wdir=$fileurl\"><IMG SRC=\"$CFG->pixpath/f/folder.gif\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"Folder\"></A> <A HREF=\"".basename($ME)."?id=$id&wdir=$fileurl\">".htmlspecialchars($dir)."</A>");
print_cell("right", "-");
print_cell("right", $filedate);
@@ -769,7 +769,7 @@ function displaydir ($wdir) {
echo "<tr>";
print_cell("center", "<input type=\"checkbox\" name=\"file$count\" value=\"$fileurl\">");
print_cell("center", "<input type=\"checkbox\" name=\"file$count\" value=\"$fileurl\" />");
echo "<td align=left nowrap>";
link_to_popup_window ($ffurl, "display",
@@ -806,8 +806,8 @@ function displaydir ($wdir) {
echo "<TABLE BORDER=0 cellspacing=2 cellpadding=2 width=640>";
echo "<TR><TD>";
echo "<INPUT TYPE=hidden NAME=id VALUE=\"$id\">";
echo "<INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\"> ";
echo "<INPUT TYPE=hidden NAME=id VALUE=\"$id\" />";
echo "<INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" /> ";
$options = array (
"move" => "$strmovetoanotherfolder",
"delete" => "$strdeletecompletely",
@@ -821,26 +821,26 @@ function displaydir ($wdir) {
echo "<TD ALIGN=center>";
if (!empty($USER->fileop) and ($USER->fileop == "move") and ($USER->filesource <> $wdir)) {
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
echo " <INPUT TYPE=hidden NAME=action VALUE=paste>";
echo " <INPUT TYPE=submit VALUE=\"$strmovefilestohere\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
echo " <INPUT TYPE=hidden NAME=action VALUE=paste />";
echo " <INPUT TYPE=submit VALUE=\"$strmovefilestohere\" />";
echo "</FORM>";
}
echo "<TD ALIGN=right>";
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir>";
echo " <INPUT TYPE=submit VALUE=\"$strmakeafolder\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir />";
echo " <INPUT TYPE=submit VALUE=\"$strmakeafolder\" />";
echo "</FORM>";
echo "</TD>";
echo "<TD ALIGN=right>";
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
echo " <INPUT TYPE=hidden NAME=action VALUE=upload>";
echo " <INPUT TYPE=submit VALUE=\"$struploadafile\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
echo " <INPUT TYPE=hidden NAME=action VALUE=upload />";
echo " <INPUT TYPE=submit VALUE=\"$struploadafile\" />";
echo "</FORM>";
echo "</TD></TR>";
echo "</TABLE>";
+10 -10
View File
@@ -82,7 +82,7 @@
$newid = insert_record ("resource",$resource);
//Do some output
echo "<ul><li>".get_string("modulename","resource")." \"".$resource->name."\"<br>";
echo "<ul><li>".get_string("modulename","resource")." \"".$resource->name."\"<br />";
backup_flush(300);
if ($newid) {
@@ -203,14 +203,14 @@
$post->message = addslashes($result);
$status = update_record("forum_posts",$post);
if ($CFG->debug>7) {
echo "<br><hr>".$content."<br>changed to</br>".$result."<hr><br>";
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
}
}
//Do some output
if (($i+1) % 5 == 0) {
echo ".";
if (($i+1) % 100 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -238,14 +238,14 @@
$forum->intro = addslashes($result);
$status = update_record("forum",$forum);
if ($CFG->debug>7) {
echo "<br><hr>".$content."<br>changed to</br>".$result."<hr><br>";
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
}
}
//Do some output
if (($i+1) % 5 == 0) {
echo ".";
if (($i+1) % 100 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -274,14 +274,14 @@
$resource->alltext = addslashes($result);
$status = update_record("resource",$resource);
if ($CFG->debug>7) {
echo "<br><hr>".$content."<br>changed to</br>".$result."<hr><br>";
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
}
}
//Do some output
if (($i+1) % 5 == 0) {
echo ".";
if (($i+1) % 100 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -309,14 +309,14 @@
$resource->summary = addslashes($result);
$status = update_record("resource",$resource);
if ($CFG->debug>7) {
echo "<br><hr>".$content."<br>changed to</br>".$result."<hr><br>";
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
}
}
//Do some output
if (($i+1) % 5 == 0) {
echo ".";
if (($i+1) % 100 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -375,7 +375,7 @@
$status = true;
break;
default:
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br>"; //Debug
echo "action (".$log->module."-".$log->action.") unknow. Not restored<br />"; //Debug
break;
}
+9 -9
View File
@@ -1,19 +1,19 @@
<form name="form" method="post" action="<?php echo "$CFG->wwwroot/course/mod.php" ?>">
<input type="hidden" name="type" value="<?php p($form->type) ?>">
<input type="hidden" name="course" value="<?php p($form->course) ?>">
<input type="hidden" name="coursemodule" value="<?php p($form->coursemodule) ?>">
<input type="hidden" name="section" value="<?php p($form->section) ?>">
<input type="hidden" name="module" value="<?php p($form->module) ?>">
<input type="hidden" name="modulename" value="<?php p($form->modulename) ?>">
<input type="hidden" name="instance" value="<?php p($form->instance) ?>">
<input type="hidden" name="mode" value="<?php p($form->mode) ?>">
<input type="hidden" name="type" value="<?php p($form->type) ?>" />
<input type="hidden" name="course" value="<?php p($form->course) ?>" />
<input type="hidden" name="coursemodule" value="<?php p($form->coursemodule) ?>" />
<input type="hidden" name="section" value="<?php p($form->section) ?>" />
<input type="hidden" name="module" value="<?php p($form->module) ?>" />
<input type="hidden" name="modulename" value="<?php p($form->modulename) ?>" />
<input type="hidden" name="instance" value="<?php p($form->instance) ?>" />
<input type="hidden" name="mode" value="<?php p($form->mode) ?>" />
<table cellpadding=5>
<tr valign=top>
<td align=right><p><b><?php print_string("name") ?>:</b></p></td>
<td>
<input type="text" name="name" size=65 value="<?php p($form->name) ?>">
<input type="text" name="name" size=65 value="<?php p($form->name) ?>" />
</td>
</tr>
<tr valign=top>
+1 -1
View File
@@ -1,5 +1,5 @@
</table>
<div align="center">
<input type="submit" value="<?php print_string("savechanges") ?>">
<input type="submit" value="<?php print_string("savechanges") ?>" />
</div>
</form>
+13 -13
View File
@@ -34,10 +34,10 @@
</td>
<td>
<?php
echo "<input name=\"reference\" size=\"90\" value=\"$form->reference\"><br />";
echo "<input name=\"reference\" size=\"90\" value=\"$form->reference\" /><br />";
button_to_popup_window ("/mod/resource/coursefiles.php?id=$form->course", "coursefiles", $strchooseafile, 500, 750, $strchooseafile);
echo "<input type=\"button\" name=\"searchbutton\" value=\"$strsearch ...\" ".
"onClick=\"return window.open('$CFG->resource_websearch', 'websearch', 'menubar=1,location=1,directories=1,toolbar=1,scrollbars,resizable,width=800,height=600');\">\n";
"onClick=\"return window.open('$CFG->resource_websearch', 'websearch', 'menubar=1,location=1,directories=1,toolbar=1,scrollbars,resizable,width=800,height=600');\" />\n";
?>
</td>
</tr>
@@ -70,11 +70,11 @@
</script>
<input type="radio" name="windowpopup" value=0 <?php echo ($windowtype != "popup") ? "checked" : "" ?>
onClick="lockoptions('form', 'windowpopup[0]', frameitem);
return lockoptions('form', 'windowpopup[1]', popupitems);">
return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php print_string("pagedisplay", "resource") ?>"><?php print_string("pagewindow", "resource") ?></b>
<ul>
<input type="hidden" name="hframepage" value=0>
<input type="checkbox" name="framepage" value=1 <?php echo ($form->options == "frame") ? "checked" : "" ?> >
<input type="hidden" name="hframepage" value=0 />
<input type="checkbox" name="framepage" value=1 <?php echo ($form->options == "frame") ? "checked" : "" ?> />
<?php print_string("frameifpossible", "resource") ?>
</ul>
</td>
@@ -85,7 +85,7 @@
<td colspan="2">
<input name="windowpopup" type=radio value=1 <?php echo ($windowtype == "popup") ? "checked" : "" ?>
onclick="lockoptions('form', 'windowpopup[0]', frameitem);
return lockoptions('form', 'windowpopup[1]', popupitems);">
return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
<ul>
<?php
@@ -93,19 +93,19 @@
if ($name == "height" or $name == "width") {
continue;
}
echo "<input name=\"h$name\" type=hidden value=0>";
echo "<input name=\"$name\" type=checkbox value=1 ".$window->$name.">";
echo "<input name=\"h$name\" type=hidden value=0 />";
echo "<input name=\"$name\" type=checkbox value=1 ".$window->$name." />";
$stringname = "str$name";
echo $$stringname."<br />";
}
?>
<input name="hwidth" type=hidden value=0>
<input name="width" type=text size=4 value="<?php p($window->width) ?>">
<input name="hwidth" type=hidden value=0 />
<input name="width" type=text size=4 value="<?php p($window->width) ?>" />
<?php p($strwidth) ?><br />
<input name="hheight" type=hidden value=0>
<input name="height" type=text size=4 value="<?php p($window->height) ?>">
<input name="hheight" type=hidden value=0 />
<input name="height" type=text size=4 value="<?php p($window->height) ?>" />
<?php p($strheight) ?><br />
<?php
if ($windowtype == "page") {
@@ -170,7 +170,7 @@ for ($i=0; $i < $this->maxparameters; $i++) {
}
echo "</td>\n";
echo "<td valign=\"top\">\n";
echo "<input type=\"text\" name=\"parse$i\" value=\"{$alltextfield[$i]['parse']}\">\n";
echo "<input type=\"text\" name=\"parse$i\" value=\"{$alltextfield[$i]['parse']}\" />\n";
echo "</td>\n";
echo "</tr>\n";
}
+8 -8
View File
@@ -66,7 +66,7 @@
var allitems = [<?php echo $alloptions; ?>];
</script>
<input type="radio" name="windowpopup" value=0 <?php echo ($windowtype != "popup") ? "checked" : "" ?>
onClick="return lockoptions('form', 'windowpopup[1]', popupitems);">
onClick="return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php print_string("pagedisplay", "resource") ?>"><?php print_string("pagewindow", "resource") ?></b>
</td>
</tr>
@@ -75,7 +75,7 @@
<td colspan="2">
<input name="windowpopup" type=radio value=1 <?php echo ($windowtype == "popup") ? "checked" : "" ?>
onclick=" return lockoptions('form', 'windowpopup[1]', popupitems);">
onclick=" return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
<ul>
<?php
@@ -83,19 +83,19 @@
if ($name == "height" or $name == "width") {
continue;
}
echo "<input name=\"h$name\" type=hidden value=0>";
echo "<input name=\"$name\" type=checkbox value=1 ".$window->$name.">";
echo "<input name=\"h$name\" type=hidden value=0 />";
echo "<input name=\"$name\" type=checkbox value=1 ".$window->$name." />";
$stringname = "str$name";
echo $$stringname."<br />";
}
?>
<input name="hwidth" type=hidden value=0>
<input name="width" type=text size=4 value="<?php p($window->width) ?>">
<input name="hwidth" type=hidden value=0 />
<input name="width" type=text size=4 value="<?php p($window->width) ?>" />
<?php p($strwidth) ?><br />
<input name="hheight" type=hidden value=0>
<input name="height" type=text size=4 value="<?php p($window->height) ?>">
<input name="hheight" type=hidden value=0 />
<input name="height" type=text size=4 value="<?php p($window->height) ?>" />
<?php p($strheight) ?><br />
<?php
if ($windowtype == "page") {
+8 -8
View File
@@ -78,7 +78,7 @@
var allitems = [<?php echo $alloptions; ?>];
</script>
<input type="radio" name="windowpopup" value=0 <?php echo ($windowtype != "popup") ? "checked" : "" ?>
onClick="return lockoptions('form', 'windowpopup[1]', popupitems);">
onClick="return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php print_string("pagedisplay", "resource") ?>"><?php print_string("pagewindow", "resource") ?></b>
<?php print_string("pagedisplay", "resource") ?>
</td>
@@ -88,7 +88,7 @@
<td colspan="2">
<input name="windowpopup" type=radio value=1 <?php echo ($windowtype == "popup") ? "checked" : "" ?>
onclick=" return lockoptions('form', 'windowpopup[1]', popupitems);">
onclick=" return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
<?php p($strnewwindowopen) ?>
<ul>
@@ -97,19 +97,19 @@
if ($name == "height" or $name == "width") {
continue;
}
echo "<input name=\"h$name\" type=hidden value=0>";
echo "<input name=\"$name\" type=checkbox value=1 ".$window->$name.">";
echo "<input name=\"h$name\" type=hidden value=0 />";
echo "<input name=\"$name\" type=checkbox value=1 ".$window->$name." />";
$stringname = "str$name";
echo $$stringname."<br />";
}
?>
<input name="hwidth" type=hidden value=0>
<input name="width" type=text size=4 value="<?php p($window->width) ?>">
<input name="hwidth" type=hidden value=0 />
<input name="width" type=text size=4 value="<?php p($window->width) ?>" />
<?php p($strwidth) ?><br />
<input name="hheight" type=hidden value=0>
<input name="height" type=text size=4 value="<?php p($window->height) ?>">
<input name="hheight" type=hidden value=0 />
<input name="height" type=text size=4 value="<?php p($window->height) ?>" />
<?php p($strheight) ?><br />
<?php
if ($windowtype == "page") {
+3 -3
View File
@@ -23,7 +23,7 @@
<tr valign=top>
<td align=right><p>scorm_framesize:</td>
<td>
<input name=scorm_framesize type=text size=5 value="<?php p($CFG->scorm_framesize) ?>">
<input name=scorm_framesize type=text size=5 value="<?php p($CFG->scorm_framesize) ?>" />
</td>
<td>
<?php print_string("configframesize", "scorm") ?>
@@ -49,7 +49,7 @@
echo "<td align=right><p>$defaultvalue:</td>";
echo "<td>";
if ($optionname == "height" or $optionname == "width") {
echo "<input name=$defaultvalue type=text size=5 value=\"".$CFG->$defaultvalue."\">";
echo "<input name=$defaultvalue type=text size=5 value=\"".$CFG->$defaultvalue."\" />";
} else {
choose_from_menu ($choices, $defaultvalue, $CFG->$defaultvalue, "");
}
@@ -62,7 +62,7 @@
?>
<tr>
<td colspan=3 align=center>
<input type="submit" value="<?php print_string("savechanges") ?>">
<input type="submit" value="<?php print_string("savechanges") ?>" />
</td>
</tr>
</table>
+74 -74
View File
@@ -150,20 +150,20 @@
echo "<P>$struploadafile ($strmaxsize) --> <B>$wdir</B>";
echo "<TABLE><TR><TD COLSPAN=2>";
echo "<FORM ENCTYPE=\"multipart/form-data\" METHOD=\"post\" ACTION=\"".$ME."\">";
echo " <INPUT TYPE=hidden NAME=MAX_FILE_SIZE value=\"$upload_max_filesize\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=upload>";
echo " <INPUT NAME=\"userfile\" TYPE=\"file\" size=\"60\">";
echo " <INPUT TYPE=hidden NAME=MAX_FILE_SIZE value=\"$upload_max_filesize\" />";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=upload />";
echo " <INPUT NAME=\"userfile\" TYPE=\"file\" size=\"60\" />";
echo " </TD><TR><TD WIDTH=10>";
echo " <INPUT TYPE=submit NAME=save VALUE=\"$struploadthisfile\">";
echo " <INPUT TYPE=submit NAME=save VALUE=\"$struploadthisfile\" />";
echo "</FORM>";
echo "</TD><TD WIDTH=100%>";
echo "<FORM ACTION=\"".$ME."\" METHOD=\"get\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
echo " <INPUT TYPE=submit VALUE=\"$strcancel\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
echo "</FORM>";
echo "</TD></TR></TABLE>";
}
@@ -250,19 +250,19 @@
echo "<P>$strrenamefileto:";
echo "<TABLE><TR><TD>";
echo "<FORM ACTION=\"".$ME."\" METHOD=\"post\" NAME=\"form\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=rename>";
echo " <INPUT TYPE=hidden NAME=oldname VALUE=\"$file\">";
echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"$file\">";
echo " <INPUT TYPE=submit VALUE=\"$strrename\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=rename />";
echo " <INPUT TYPE=hidden NAME=oldname VALUE=\"$file\" />";
echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"$file\" />";
echo " <INPUT TYPE=submit VALUE=\"$strrename\" />";
echo "</FORM>";
echo "</TD><TD>";
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
echo " <INPUT TYPE=submit VALUE=\"$strcancel\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
echo "</FORM>";
echo "</TD></TR></TABLE>";
}
@@ -288,18 +288,18 @@
echo "<P>$strcreatefolder:";
echo "<TABLE><TR><TD>";
echo "<FORM ACTION=\"".$ME."\" METHOD=post NAME=form>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir>";
echo " <INPUT TYPE=text NAME=name SIZE=35>";
echo " <INPUT TYPE=submit VALUE=\"$strcreate\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir />";
echo " <INPUT TYPE=text NAME=name SIZE=35 />";
echo " <INPUT TYPE=submit VALUE=\"$strcreate\" />";
echo "</FORM>";
echo "</TD><TD>";
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
echo " <INPUT TYPE=submit VALUE=\"$strcancel\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
echo "</FORM>";
echo "</TD></TR></TABLE>";
}
@@ -336,20 +336,20 @@
echo "<TABLE><TR><TD COLSPAN=2>";
echo "<FORM ACTION=\"".$ME."\" METHOD=\"post\" NAME=\"form\" $onsubmit>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
echo " <INPUT TYPE=hidden NAME=file VALUE=\"$file\">";
echo " <INPUT TYPE=hidden NAME=action VALUE=edit>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
echo " <INPUT TYPE=hidden NAME=file VALUE=\"$file\" />";
echo " <INPUT TYPE=hidden NAME=action VALUE=edit />";
print_textarea($usehtmleditor, 25, 80, 680, 400, "text", $contents);
echo "</TD></TR><TR><TD>";
echo " <INPUT TYPE=submit VALUE=\"".get_string("savechanges")."\">";
echo " <INPUT TYPE=submit VALUE=\"".get_string("savechanges")."\" />";
echo "</FORM>";
echo "</TD><TD>";
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\" />";
echo "</FORM>";
echo "</TD></TR></TABLE>";
@@ -400,18 +400,18 @@
echo "<P ALIGN=CENTER>".get_string("whattocallzip");
echo "<TABLE><TR><TD>";
echo "<FORM ACTION=\"".$ME."\" METHOD=post NAME=form>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
echo " <INPUT TYPE=hidden NAME=action VALUE=zip>";
echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"new.zip\">";
echo " <INPUT TYPE=submit VALUE=\"".get_string("createziparchive")."\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
echo " <INPUT TYPE=hidden NAME=action VALUE=zip />";
echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"new.zip\" />";
echo " <INPUT TYPE=submit VALUE=\"".get_string("createziparchive")."\" />";
echo "</FORM>";
echo "</TD><TD>";
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\" />";
echo "</FORM>";
echo "</TD></TR></TABLE>";
} else {
@@ -474,10 +474,10 @@
}
echo "<CENTER><FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
echo " <INPUT TYPE=submit VALUE=\"$strok\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
echo " <INPUT TYPE=submit VALUE=\"$strok\" />";
echo "</FORM>";
echo "</CENTER>";
} else {
@@ -520,11 +520,11 @@
}
echo "</table>";
}
echo "<br><center><form action=\"".$ME."\" method=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
echo " <INPUT TYPE=submit VALUE=\"$strok\">";
echo "<br /><center><form action=\"".$ME."\" method=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
echo " <INPUT TYPE=submit VALUE=\"$strok\" />";
echo "</FORM>";
echo "</CENTER>";
} else {
@@ -636,7 +636,7 @@ function printfilelist($filelist) {
foreach ($filelist as $file) {
if (is_dir($basedir.$file)) {
echo "<img src=\"$CFG->pixpath/f/folder.gif\" height=16 width=16> $file<br>";
echo "<img src=\"$CFG->pixpath/f/folder.gif\" height=16 width=16> $file<br />";
$subfilelist = array();
$currdir = opendir($basedir.$file);
while ($subfile = readdir($currdir)) {
@@ -648,7 +648,7 @@ function printfilelist($filelist) {
} else {
$icon = mimeinfo("icon", $file);
echo "<img src=\"$CFG->pixpath/f/$icon\" height=16 width=16> $file<br>";
echo "<img src=\"$CFG->pixpath/f/$icon\" height=16 width=16> $file<br />";
}
}
}
@@ -733,7 +733,7 @@ function displaydir ($wdir) {
echo "<TR>";
print_cell("center", "<INPUT TYPE=checkbox NAME=\"file$count\" VALUE=\"$fileurl\">");
print_cell("center", "<INPUT TYPE=checkbox NAME=\"file$count\" VALUE=\"$fileurl\" />");
print_cell("left", "<A HREF=\"".basename($ME)."?id=$id&wdir=$fileurl\"><IMG SRC=\"$CFG->pixpath/f/folder.gif\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"Folder\"></A> <A HREF=\"".basename($ME)."?id=$id&wdir=$fileurl\">".htmlspecialchars($dir)."</A>");
print_cell("right", "-");
print_cell("right", $filedate);
@@ -770,7 +770,7 @@ function displaydir ($wdir) {
echo "<tr>";
print_cell("center", "<input type=\"checkbox\" name=\"file$count\" value=\"$fileurl\">");
print_cell("center", "<input type=\"checkbox\" name=\"file$count\" value=\"$fileurl\" />");
echo "<td align=left nowrap>";
link_to_popup_window ($ffurl, "display",
@@ -807,8 +807,8 @@ function displaydir ($wdir) {
echo "<TABLE BORDER=0 cellspacing=2 cellpadding=2 width=640>";
echo "<TR><TD>";
echo "<INPUT TYPE=hidden NAME=id VALUE=\"$id\">";
echo "<INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\"> ";
echo "<INPUT TYPE=hidden NAME=id VALUE=\"$id\" />";
echo "<INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" /> ";
$options = array (
"move" => "$strmovetoanotherfolder",
"delete" => "$strdeletecompletely",
@@ -822,26 +822,26 @@ function displaydir ($wdir) {
echo "<TD ALIGN=center>";
if (!empty($USER->fileop) and ($USER->fileop == "move") and ($USER->filesource <> $wdir)) {
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
echo " <INPUT TYPE=hidden NAME=action VALUE=paste>";
echo " <INPUT TYPE=submit VALUE=\"$strmovefilestohere\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
echo " <INPUT TYPE=hidden NAME=action VALUE=paste />";
echo " <INPUT TYPE=submit VALUE=\"$strmovefilestohere\" />";
echo "</FORM>";
}
echo "<TD ALIGN=right>";
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir>";
echo " <INPUT TYPE=submit VALUE=\"$strmakeafolder\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir />";
echo " <INPUT TYPE=submit VALUE=\"$strmakeafolder\" />";
echo "</FORM>";
echo "</TD>";
echo "<TD ALIGN=right>";
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
echo " <INPUT TYPE=hidden NAME=action VALUE=upload>";
echo " <INPUT TYPE=submit VALUE=\"$struploadafile\">";
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
echo " <INPUT TYPE=hidden NAME=action VALUE=upload />";
echo " <INPUT TYPE=submit VALUE=\"$struploadafile\" />";
echo "</FORM>";
echo "</TD></TR>";
echo "</TABLE>";
+1 -1
View File
@@ -260,7 +260,7 @@
} else {
?>
<center>
<input type="button" value="<?php print_string("continue") ?>" onClick="document.location='<?php echo $CFG->wwwroot ?>/course/view.php?id=<?php echo $course->id ?>';">
<input type="button" value="<?php print_string("continue") ?>" onClick="document.location='<?php echo $CFG->wwwroot ?>/course/view.php?id=<?php echo $course->id ?>';" />
</center>
<?php
}
+15 -15
View File
@@ -19,7 +19,7 @@
<tr valign=top>
<td align=right><p><b><?php print_string("name") ?>:</b></p></td>
<td>
<input type="text" name="name" size=50 value="<?php p($form->name) ?>">
<input type="text" name="name" size=50 value="<?php p($form->name) ?>" />
</td>
</tr>
<?php
@@ -32,7 +32,7 @@
</td>
<td>
<?php
echo "<input name=\"reference\" size=\"50\" value=\"$form->reference\">&nbsp;";
echo "<input name=\"reference\" size=\"50\" value=\"$form->reference\" />&nbsp;";
button_to_popup_window ("/mod/scorm/coursefiles.php?id=$course->id",
"coursefiles", $strchooseafile, 500, 750, $strchooseafile);
?>
@@ -55,21 +55,21 @@
</td>
</tr>
</table>
<input type="hidden" name=course value="<?php p($form->course) ?>">
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
<input type="hidden" name=datadir value="<?php p($form->datadir) ?>">
<input type="hidden" name=launch value="<?php p($form->launch) ?>">
<input type="hidden" name=popup value="<?php p($form->popup) ?>">
<input type="hidden" name=auto value="<?php p($form->auto) ?>">
<input type="hidden" name=course value="<?php p($form->course) ?>" />
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>" />
<input type="hidden" name=datadir value="<?php p($form->datadir) ?>" />
<input type="hidden" name=launch value="<?php p($form->launch) ?>" />
<input type="hidden" name=popup value="<?php p($form->popup) ?>" />
<input type="hidden" name=auto value="<?php p($form->auto) ?>" />
<input type="hidden" name="maxgrade" value="<?php p($form->maxgrade) ?>" />
<input type="hidden" name="grademethod" value="<?php p($form->grademethod) ?>" />
<input type="hidden" name=section value="<?php p($form->section) ?>">
<input type="hidden" name=module value="<?php p($form->module) ?>">
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>">
<input type="hidden" name=instance value="<?php p($form->instance) ?>">
<input type="hidden" name=mode value="<?php p($form->mode) ?>">
<input type="hidden" name=destination value="<?php echo $ME ?>">
<input type="hidden" name=section value="<?php p($form->section) ?>" />
<input type="hidden" name=module value="<?php p($form->module) ?>" />
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>" />
<input type="hidden" name=instance value="<?php p($form->instance) ?>" />
<input type="hidden" name=mode value="<?php p($form->mode) ?>" />
<input type="hidden" name=destination value="<?php echo $ME ?>" />
<center>
<input type="submit" value="<?php print_string("continue") ?>">
<input type="submit" value="<?php print_string("continue") ?>" />
</center>
</form>
+3 -3
View File
@@ -59,7 +59,7 @@
//The structure is equal to the db, so insert the scorm
$newid = insert_record ("scorm",$scorm);
//Do some output
echo "<ul><li>".get_string("modulename","scorm")." \"".$scorm->name."\"<br>";
echo "<ul><li>".get_string("modulename","scorm")." \"".$scorm->name."\"<br />";
backup_flush(300);
if ($newid) {
@@ -130,7 +130,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
@@ -198,7 +198,7 @@
if (($i+1) % 50 == 0) {
echo ".";
if (($i+1) % 1000 == 0) {
echo "<br>";
echo "<br />";
}
backup_flush(300);
}
+5 -5
View File
@@ -264,8 +264,8 @@ function testNode($DomNode)
$error->data->tag = "metadata";
array_push($errors, $error);
//echo "WARNING, se il tag metadata non e' figlio di manifest non deve avere schema
// come figlio <br>";
//echo "Probabilmente la versione e' antecedente alla 1.3 <br>";
// come figlio <br />";
//echo "Probabilmente la versione e' antecedente alla 1.3 <br />";
}
if($new_t_scv < $t_scv)
{
@@ -273,8 +273,8 @@ function testNode($DomNode)
$error->data->tag = "metadata";
array_push($errors, $error);
//echo "WARNING, se il tag metadata non e' figlio di manifest, non deve avere schemaversion
// come figlio <br>";
//echo "Probabilmente la versione e' antecedente alla 1.3 <br>";
// come figlio <br />";
//echo "Probabilmente la versione e' antecedente alla 1.3 <br />";
}
}
}
@@ -376,7 +376,7 @@ function testNode($DomNode)
$cont_err++;
}
}
//echo "<br> SCANSIONE DI LOCATION TERMINATA, OK \n";
//echo "<br /> SCANSIONE DI LOCATION TERMINATA, OK \n";
}
if($nome_figlio == "organizations")
+11 -11
View File
@@ -34,7 +34,7 @@
<tr valign=top>
<td align=right nowrap>
<p><b><?php print_string("introtext", "survey") ?>:</b></p><br>
<p><b><?php print_string("introtext", "survey") ?>:</b></p><br />
<font size="1">
<?php helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?> <br />
<?php helpbutton("text", get_string("helptext"), "moodle", true, true) ?> <br />
@@ -54,18 +54,18 @@
</td>
</tr>
</table>
<input type="hidden" name=name value="<?php p($form->name) ?>">
<input type="hidden" name=template value="<?php p($form->template) ?>">
<input type="hidden" name=name value="<?php p($form->name) ?>" />
<input type="hidden" name=template value="<?php p($form->template) ?>" />
<input type="hidden" name=course value="<?php p($form->course) ?>">
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
<input type="hidden" name=section value="<?php p($form->section) ?>">
<input type="hidden" name=module value="<?php p($form->module) ?>">
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>">
<input type="hidden" name=instance value="<?php p($form->instance) ?>">
<input type="hidden" name=mode value="<?php p($form->mode) ?>">
<input type="hidden" name=course value="<?php p($form->course) ?>" />
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>" />
<input type="hidden" name=section value="<?php p($form->section) ?>" />
<input type="hidden" name=module value="<?php p($form->module) ?>" />
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>" />
<input type="hidden" name=instance value="<?php p($form->instance) ?>" />
<input type="hidden" name=mode value="<?php p($form->mode) ?>" />
<center>
<input type="submit" value="<?php print_string("savechanges") ?>">
<input type="submit" value="<?php print_string("savechanges") ?>" />
</center>
</form>
<?php
+6 -6
View File
@@ -399,9 +399,9 @@ function survey_print_multi($question) {
echo "<TD WIDTH=10 VALIGN=top><P><B>$qnum</B></P></TD>";
echo "<TD VALIGN=top><P>$q->text</P></TD>";
for ($i=1;$i<=$numoptions;$i++) {
echo "<TD WIDTH=10% ALIGN=CENTER><INPUT TYPE=radio NAME=q$P$q->id VALUE=$i></TD>";
echo "<TD WIDTH=10% ALIGN=CENTER><INPUT TYPE=radio NAME=q$P$q->id VALUE=$i /></TD>";
}
echo "<TD BGCOLOR=white><INPUT TYPE=radio NAME=q$P$q->id VALUE=0 checked></TD>";
echo "<TD BGCOLOR=white><INPUT TYPE=radio NAME=q$P$q->id VALUE=0 checked=\"checked\" /></TD>";
$checklist["q$P$q->id"] = $numoptions;
} else {
@@ -409,17 +409,17 @@ function survey_print_multi($question) {
echo "<TD WIDTH=10% NOWRAP><P><FONT SIZE=1>$stripreferthat&nbsp;</FONT></P></TD>";
echo "<TD WIDTH=40% VALIGN=middle rowspan=2><P>$q->text</P></TD>";
for ($i=1;$i<=$numoptions;$i++) {
echo "<TD WIDTH=10% ALIGN=CENTER><INPUT TYPE=radio NAME=qP$q->id VALUE=$i></TD>";
echo "<TD WIDTH=10% ALIGN=CENTER><INPUT TYPE=radio NAME=qP$q->id VALUE=$i /></TD>";
}
echo "<TD BGCOLOR=\"$THEME->body\"><INPUT TYPE=radio NAME=qP$q->id VALUE=0 checked></TD>";
echo "<TD BGCOLOR=\"$THEME->body\"><INPUT TYPE=radio NAME=qP$q->id VALUE=0 checked=\"checked\" /></TD>";
echo "</TR>";
echo "<TR BGCOLOR=$bgcolor>";
echo "<TD WIDTH=10% NOWRAP><P><FONT SIZE=1>$strifoundthat&nbsp;</P></TD>";
for ($i=1;$i<=$numoptions;$i++) {
echo "<TD WIDTH=10% ALIGN=CENTER><INPUT TYPE=radio NAME=q$q->id VALUE=$i></TD>";
echo "<TD WIDTH=10% ALIGN=CENTER><INPUT TYPE=radio NAME=q$q->id VALUE=$i /></TD>";
}
echo "<TD WIDTH=5% BGCOLOR=\"$THEME->body\"><INPUT TYPE=radio NAME=q$q->id VALUE=0 checked></TD>";
echo "<TD WIDTH=5% BGCOLOR=\"$THEME->body\"><INPUT TYPE=radio NAME=q$q->id VALUE=0 checked=\"checked\" /></TD>";
$checklist["qP$q->id"] = $numoptions;
$checklist["q$q->id"] = $numoptions;
}
+12 -12
View File
@@ -16,7 +16,7 @@
<tr valign=top>
<td align=right><P><B><?php print_string("surveyname", "survey") ?>:</B></P></TD>
<td>
<input type="text" name="name" size=30 value="<?php p($form->name) ?>">
<input type="text" name="name" size=30 value="<?php p($form->name) ?>" />
</td>
</tr>
<tr>
@@ -37,17 +37,17 @@
</tr>
</table>
<CENTER>
<input type="hidden" name=intro value="<?php p($form->intro) ?>">
<input type="hidden" name=destination value="<?php echo "$CFG->wwwroot/course/mod.php" ?>">
<input type="hidden" name=intro value="<?php p($form->intro) ?>" />
<input type="hidden" name=destination value="<?php echo "$CFG->wwwroot/course/mod.php" ?>" />
<input type="hidden" name=course value="<?php p($form->course) ?>">
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
<input type="hidden" name=section value="<?php p($form->section) ?>">
<input type="hidden" name=module value="<?php p($form->module) ?>">
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>">
<input type="hidden" name=instance value="<?php p($form->instance) ?>">
<input type="hidden" name=mode value="<?php p($form->mode) ?>">
<input type="submit" value="<?php print_string("savechanges") ?>">
<input type="submit" name=cancel value="<?php print_string("cancel") ?>">
<input type="hidden" name=course value="<?php p($form->course) ?>" />
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>" />
<input type="hidden" name=section value="<?php p($form->section) ?>" />
<input type="hidden" name=module value="<?php p($form->module) ?>" />
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>" />
<input type="hidden" name=instance value="<?php p($form->instance) ?>" />
<input type="hidden" name=mode value="<?php p($form->mode) ?>" />
<input type="submit" value="<?php print_string("savechanges") ?>" />
<input type="submit" name=cancel value="<?php print_string("cancel") ?>" />
</CENTER>
</FORM>
+7 -7
View File
@@ -144,7 +144,7 @@
}
echo "<p align=center><a title=\"$strseemoredetail\" href=report.php?action=questions&id=$id&qid=$question->multi>";
survey_print_graph("id=$id&qid=$question->id&group=$currentgroup&type=multiquestion.png");
echo "</a></p><br>";
echo "</a></p><br />";
}
}
}
@@ -354,7 +354,7 @@
echo "<p align=center>";
echo "<a title=\"$strseemoredetail\" href=report.php?action=questions&id=$id&qid=$question->multi>";
survey_print_graph("id=$id&qid=$question->id&sid=$student&type=studentmultiquestion.png");
echo "</a></p><br>";
echo "</a></p><br />";
}
}
}
@@ -387,11 +387,11 @@
echo "<blockquote>";
echo "<textarea name=notes rows=10 cols=60>";
p($notes);
echo "</textarea><br>";
echo "<input type=hidden name=action value=student>";
echo "<input type=hidden name=student value=$student>";
echo "<input type=hidden name=id value=$cm->id>";
echo "<input type=submit value=\"".get_string("savechanges")."\">";
echo "</textarea><br />";
echo "<input type=hidden name=action value=student />";
echo "<input type=hidden name=student value=\"$student\" />";
echo "<input type=hidden name=id value=\"$cm->id\" />";
echo "<input type=submit value=\"".get_string("savechanges")."\" />";
echo "</blockquote>";
echo "</form>";
echo "</center>";

Some files were not shown because too many files have changed in this diff Show More