</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>
</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>
if ($allowedtograde) {
echo '<form action="submissions.php" method="post">';
echo "<center>";
- echo "<input type=hidden name=sort value=\"$sort\">";
- echo "<input type=hidden name=timenow value=\"$timenow\">";
- echo "<input type=hidden name=id value=\"$assignment->id\">";
- echo "<input type=submit value=\"$strsaveallfeedback\">";
+ echo "<input type=hidden name=sort value=\"$sort\" />";
+ echo "<input type=hidden name=timenow value=\"$timenow\" />";
+ echo "<input type=hidden name=id value=\"$assignment->id\" />";
+ echo "<input type=submit value=\"$strsaveallfeedback\" />";
echo "</center>";
}
if ($allowedtograde) {
echo "<center>";
- echo "<input type=hidden name=sort value=\"$sort\">";
- echo "<input type=hidden name=timenow value=\"$timenow\">";
- echo "<input type=hidden name=id value=\"$assignment->id\">";
- echo "<input type=submit value=\"$strsaveallfeedback\">";
+ echo "<input type=hidden name=sort value=\"$sort\" />";
+ echo "<input type=hidden name=timenow value=\"$timenow\" />";
+ echo "<input type=hidden name=id value=\"$assignment->id\" />";
+ echo "<input type=submit value=\"$strsaveallfeedback\" />";
echo "</center>";
echo "</form>";
}
<td align=right><p><b><?php print_string("choosedays", "attendance") ?>:</b></p></td>
<td colspan="3">
<?php print_string("sunday","attendance"); echo ":"; ?>
- <input type="checkbox" name="sun" >
+ <input type="checkbox" name="sun" />
<?php print_string("monday","attendance"); echo ":"; ?>
- <input type="checkbox" name="mon" "checked">
+ <input type="checkbox" name="mon" checked="checked" />
<?php print_string("tuesday","attendance"); echo ":"; ?>
- <input type="checkbox" name="tue" "checked">
+ <input type="checkbox" name="tue" checked="checked" />
<?php print_string("wednesday","attendance"); echo ":"; ?>
- <input type="checkbox" name="wed" "checked">
+ <input type="checkbox" name="wed" checked="checked" />
<?php print_string("thursday","attendance"); echo ":"; ?>
- <input type="checkbox" name="thu" "checked">
+ <input type="checkbox" name="thu" checked="checked" />
<?php print_string("friday","attendance"); echo ":"; ?>
- <input type="checkbox" name="fri" "checked">
+ <input type="checkbox" name="fri" checked="checked" />
<?php print_string("saturday","attendance"); echo ":"; ?>
- <input type="checkbox" name="sat" >
+ <input type="checkbox" name="sat" />
<?php helpbutton("choosedays", get_string("choosedays","attendance"), "attendance");?>
</td>
</tr>
choose_from_menu($options, "dynsection", "", "");
helpbutton("dynsection", get_string("dynamicsectionmulti","attendance"), "attendance");
?>
-<!-- <input type="checkbox" name="dynsection" <?php echo !empty($form->dynsection) ? 'checked' : '' ?> > -->
+<!-- <input type="checkbox" name="dynsection" <?php echo !empty($form->dynsection) ? 'checked' : '' ?> /> -->
</td>
</tr>
<tr valign=top>
?>
-<!-- <input type="checkbox" name="autoattend" <?php echo !empty($form->autoattend) ? 'checked' : '' ?> > -->
+<!-- <input type="checkbox" name="autoattend" <?php echo !empty($form->autoattend) ? 'checked' : '' ?> /> -->
</td>
</tr>
<?php // starting with 2 to allow for the nothing value in choose_from_menu to be the default of 1
helpbutton("grade", get_string("gradevalue","attendance"), "attendance");
?>
-<!-- <input type="checkbox" name="grade" <?php echo !empty($form->grade) ? 'checked' : '' ?> > -->
+<!-- <input type="checkbox" name="grade" <?php echo !empty($form->grade) ? 'checked' : '' ?> /> -->
</td>
</tr>
<?php // starting with 2 to allow for the nothing value in choose_from_menu to be the default of 1
if ($CFG->attendance_default_student_status == 1) {$r2c="checked";}
elseif ($CFG->attendance_default_student_status == 2) {$r3c="checked";}
else {$r1c="checked";}
- $radio1="<input type=\"radio\" name=\"attendance_default_student_status\" value=\"0\" ".$r1c.">";
- $radio2="<input type=\"radio\" name=\"attendance_default_student_status\" value=\"1\" ".$r2c.">";
- $radio3="<input type=\"radio\" name=\"attendance_default_student_status\" value=\"2\" ".$r3c.">";
+ $radio1="<input type=\"radio\" name=\"attendance_default_student_status\" value=\"0\" ".$r1c." />";
+ $radio2="<input type=\"radio\" name=\"attendance_default_student_status\" value=\"1\" ".$r2c." />";
+ $radio3="<input type=\"radio\" name=\"attendance_default_student_status\" value=\"2\" ".$r3c." />";
echo "<table><tr><td align=\"left\" nowrap class=\"generaltablecell\">".
$radio1.$P."</td>\n";
echo "<td align=\"left\" nowrap class=\"generaltablecell\">".
<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>
<tr valign=top>
<td align=right><p><b><?php print_string("name") ?>:</b></p></td>
<td colspan="3">
- <input type="text" name="name" size=60 value="<?php p($form->notes)?>">
+ <input type="text" name="name" size=60 value="<?php p($form->notes)?>" />
</td>
</tr>
choose_from_menu($options, "dynsection", "$form->dynsection", "");
helpbutton("dynsection", get_string("dynamicsection","attendance"), "attendance");
?>
-<!-- <input type="checkbox" name="dynsection" <?php echo !empty($form->dynsection) ? 'checked' : '' ?> > -->
+<!-- <input type="checkbox" name="dynsection" <?php echo !empty($form->dynsection) ? 'checked' : '' ?> /> -->
</TD>
</tr>
<tr valign=top>
helpbutton("autoattend", get_string("autoattend","attendance"), "attendance");
?>
-<!-- <input type="checkbox" name="autoattend" <?php echo !empty($form->autoattend) ? 'checked' : '' ?> > -->
+<!-- <input type="checkbox" name="autoattend" <?php echo !empty($form->autoattend) ? 'checked' : '' ?> /> -->
</TD>
</tr>
<?php // starting with 2 to allow for the nothing value in choose_from_menu to be the default of 1
choose_from_menu($options, "grade", "$form->grade", "");
helpbutton("grade", get_string("gradevalue","attendance"), "attendance");
?>
-<!-- <input type="checkbox" name="grade" <?php echo !empty($form->grade) ? 'checked' : '' ?> > -->
+<!-- <input type="checkbox" name="grade" <?php echo !empty($form->grade) ? 'checked' : '' ?> /> -->
</TD>
</tr>
<?php // starting with 2 to allow for the nothing value in choose_from_menu to be the default of 1
if ($rollstatus==1) {$r2c="checked";}
elseif ($rollstatus==2) {$r3c="checked";}
else {$r1c="checked";}
- $radio1="<input type=\"radio\" name=\"student_".$student->id."_".$j."\" value=\"0\" ".$r1c.">";
- $radio2="<input type=\"radio\" name=\"student_".$student->id."_".$j."\" value=\"1\" ".$r2c.">";
- $radio3="<input type=\"radio\" name=\"student_".$student->id."_".$j."\" value=\"2\" ".$r3c.">";
+ $radio1="<input type=\"radio\" name=\"student_".$student->id."_".$j."\" value=\"0\" ".$r1c." />";
+ $radio2="<input type=\"radio\" name=\"student_".$student->id."_".$j."\" value=\"1\" ".$r2c." />";
+ $radio3="<input type=\"radio\" name=\"student_".$student->id."_".$j."\" value=\"2\" ".$r3c." />";
echo "<td align=\"left\" nowrap class=\"generaltablecell\" style=\"border-left: 1px dotted; border-top: 1px solid;\">".$radio1."</td>\n";
echo "<td align=\"left\" nowrap class=\"generaltablecell\" style=\"border-top: 1px solid;\">".$radio2."</td>\n";
echo "<td align=\"left\" nowrap class=\"generaltablecell\" style=\"border-top: 1px solid;\">".$radio3."</td>\n";
} // for loop
echo "</tr>\n";
-// $radio1="<input type=\"radio\" name=\"student_".$student->id."\" value=\"0\" checked>";
-// $radio2="<input type=\"radio\" name=\"student_".$student->id."\" value=\"1\">";
-// $radio3="<input type=\"radio\" name=\"student_".$student->id."\" value=\"2\">";
+// $radio1="<input type=\"radio\" name=\"student_".$student->id."\" value=\"0\" checked />";
+// $radio2="<input type=\"radio\" name=\"student_".$student->id."\" value=\"1\" />";
+// $radio3="<input type=\"radio\" name=\"student_".$student->id."\" value=\"2\" />";
// $table->data[$i]=array($student->lastname, $student->firstname,
// $student->idnumber, $radio1,$radio2,$radio3);
// $i++;
if ($rollstatus==1) {$r2c="checked";}
elseif ($rollstatus==2) {$r3c="checked";}
else {$r1c="checked";}
- $radio1="<input type=\"radio\" name=\"student_".$student->id."_".$j."\" value=\"0\" ".$r1c.">";
- $radio2="<input type=\"radio\" name=\"student_".$student->id."_".$j."\" value=\"1\" ".$r2c.">";
- $radio3="<input type=\"radio\" name=\"student_".$student->id."_".$j."\" value=\"2\" ".$r3c.">";
+ $radio1="<input type=\"radio\" name=\"student_".$student->id."_".$j."\" value=\"0\" ".$r1c." />";
+ $radio2="<input type=\"radio\" name=\"student_".$student->id."_".$j."\" value=\"1\" ".$r2c." />";
+ $radio3="<input type=\"radio\" name=\"student_".$student->id."_".$j."\" value=\"2\" ".$r3c." />";
echo "<td align=\"left\" nowrap class=\"generaltablecell\" style=\"border-left: 1px dotted; border-top: 1px solid;\">".$radio1."</td>\n";
echo "<td align=\"left\" nowrap class=\"generaltablecell\" style=\"border-top: 1px solid;\">".$radio2."</td>\n";
echo "<td align=\"left\" nowrap class=\"generaltablecell\" style=\"border-top: 1px solid;\">".$radio3."</td>\n";
if (($numhours-4) > 255) {
echo "<form><input type=\"button\" value=\"".get_string("downloadexcelfull", "attendance").
"\" onclick=\"alert('Sorry, you have more than 251 days on this report. This will not fit into an Excel Spreadsheet. ".
- " Please try downloading the report week by week instead.')\"></form>";
+ " Please try downloading the report week by week instead.')\" /></form>";
} else {
$options["id"] = "$course->id";
$options["download"] = "xls";
if (($numhours-4) > 255) {
echo "<form><input type=\"button\" value=\"".get_string("downloadexcelfull", "attendance").
"\" onclick=\"alert('Sorry, you have more than 251 days on this report. This will not fit into an Excel Spreadsheet. ".
- " Please try downloading the report week by week instead.')\"></form>";
+ " Please try downloading the report week by week instead.')\" /></form>";
} else {
$options["id"] = "$id";
$options["download"] = "xls";
<tr valign="top">
<td align="right"><p>chat_refresh_userlist:</td>
<td>
- <input name="chat_refresh_userlist" type="text" size="5" value="<?php p($CFG->chat_refresh_userlist) ?>">
+ <input name="chat_refresh_userlist" type="text" size="5" value="<?php p($CFG->chat_refresh_userlist) ?>" />
</td>
<td>
<?php print_string("configrefreshuserlist", "chat") ?>
<tr valign="top">
<td align="right"><p>chat_old_ping:</td>
<td>
- <input name="chat_old_ping" type="text" size="5" value="<?php p($CFG->chat_old_ping) ?>">
+ <input name="chat_old_ping" type="text" size="5" value="<?php p($CFG->chat_old_ping) ?>" />
</td>
<td>
<?php print_string("configoldping", "chat") ?>
<tr valign="top">
<td align="right"><p>chat_refresh_room:</td>
<td>
- <input name="chat_refresh_room" type="text" size="5" value="<?php p($CFG->chat_refresh_room) ?>">
+ <input name="chat_refresh_room" type="text" size="5" value="<?php p($CFG->chat_refresh_room) ?>" />
</td>
<td>
<?php print_string("configrefreshroom", "chat") ?>
<tr valign="top">
<td align="right"><p>chat_serverhost:</td>
<td>
- <input name="chat_serverhost" type="text" size="20" value="<?php p($CFG->chat_serverhost) ?>">
+ <input name="chat_serverhost" type="text" size="20" value="<?php p($CFG->chat_serverhost) ?>" />
</td>
<td>
<?php print_string("configserverhost", "chat") ?>
<tr valign="top">
<td align="right"><p>chat_serverip:</td>
<td>
- <input name="chat_serverip" type="text" size="16" value="<?php p($CFG->chat_serverip) ?>">
+ <input name="chat_serverip" type="text" size="16" value="<?php p($CFG->chat_serverip) ?>" />
</td>
<td>
<?php print_string("configserverip", "chat") ?>
<tr valign="top">
<td align="right"><p>chat_serverport:</td>
<td>
- <input name="chat_serverport" type="text" size="5" value="<?php p($CFG->chat_serverport) ?>">
+ <input name="chat_serverport" type="text" size="5" value="<?php p($CFG->chat_serverport) ?>" />
</td>
<td>
<?php print_string("configserverport", "chat") ?>
<tr valign="top">
<td align="right"><p>chat_servermax:</td>
<td>
- <input name="chat_servermax" type="text" size="5" value="<?php p($CFG->chat_servermax) ?>">
+ <input name="chat_servermax" type="text" size="5" value="<?php p($CFG->chat_servermax) ?>" />
</td>
<td>
<?php print_string("configservermax", "chat") ?>
<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>
echo $arsc_parameters["htmlhead_msginput"];
?>
<form action="../shared/chatins.php" method="POST" name="f">
- <input type="hidden" name="arsc_sid" value="<?php echo $arsc_sid; ?>">
- <input type="hidden" name="arsc_chatversion" value="header">
- <input type="text" name="arsc_message" size="50" maxlength="<?php echo $arsc_parameters["input_maxsize"]; ?>" value="<?php echo $arsc_pretext; ?>">
- <input type="submit" value="<?php echo $arsc_lang["sendmessage"]; ?>">
+ <input type="hidden" name="arsc_sid" value="<?php echo $arsc_sid; ?>" />
+ <input type="hidden" name="arsc_chatversion" value="header" />
+ <input type="text" name="arsc_message" size="50" maxlength="<?php echo $arsc_parameters["input_maxsize"]; ?>" value="<?php echo $arsc_pretext; ?>" />
+ <input type="submit" value="<?php echo $arsc_lang["sendmessage"]; ?>" />
</form>
</body>
</html>
<form action="../insert.php" method="GET" target="empty" name="f"
OnSubmit="return empty_field_and_submit()">
->><input type="text" name="chat_message" size="60" value="<?php echo $chat_pretext; ?>">
+>><input type="text" name="chat_message" size="60" value="<?php echo $chat_pretext; ?>" />
<?php helpbutton("chatting", get_string("helpchatting", "chat"), "chat", true, false); ?>
</form>
<form action="../insert.php" method="GET" target="empty" name="fdummy"
OnSubmit="return empty_field_and_submit()">
- <input type="hidden" name="chat_sid" value="<?php echo $chat_sid ?>">
- <input type="hidden" name="groupid" value="<?php echo $groupid ?>">
- <input type="hidden" name="chat_version" value="header_js">
- <input type="hidden" name="chat_message">
+ <input type="hidden" name="chat_sid" value="<?php echo $chat_sid ?>" />
+ <input type="hidden" name="groupid" value="<?php echo $groupid ?>" />
+ <input type="hidden" name="chat_version" value="header_js" />
+ <input type="hidden" name="chat_message" />
</form>
</body>
echo $arsc_parameters["htmlhead_msginput_js"];
?>
<form action="../shared/chatins.php" method="GET" target="empty" name="f" OnSubmit="return empty_field_and_submit()">
- <input type="text" name="arsc_message" size="50" maxlength="<?php echo $arsc_parameters["input_maxsize"]; ?>" value="<?php echo $arsc_pretext; ?>">
+ <input type="text" name="arsc_message" size="50" maxlength="<?php echo $arsc_parameters["input_maxsize"]; ?>" value="<?php echo $arsc_pretext; ?>" />
</form>
<form action="../shared/chatins.php" method="GET" target="empty" name="fdummy" OnSubmit="return empty_field_and_submit()">
- <input type="hidden" name="arsc_sid" value="<?php echo $arsc_sid; ?>">
- <input type="hidden" name="arsc_chatversion" value="header_js">
- <input type="hidden" name="arsc_message">
+ <input type="hidden" name="arsc_sid" value="<?php echo $arsc_sid; ?>" />
+ <input type="hidden" name="arsc_chatversion" value="header_js" />
+ <input type="hidden" name="arsc_message" />
</form>
</body>
</html>
<form action="<?php echo "http://$CFG->chat_serverhost:$CFG->chat_serverport"; ?>" method="GET" target="empty" name="f" onsubmit="return empty_field_and_submit()">
-->
<form action="../insert.php" method="get" target="empty" id="inputform" onsubmit="return empty_field_and_submit();">
->> <input type="text" name="chat_message" size="60" value="<?php echo $chat_pretext; ?>">
+>> <input type="text" name="chat_message" size="60" value="<?php echo $chat_pretext; ?>" />
<?php helpbutton("chatting", get_string("helpchatting", "chat"), "chat", true, false); ?>
</form>
<body>
<form action="../shared/chatins.php" method="POST">
<a href="index.php?arsc_sid=<?php echo $arsc_sid; ?>&arsc_lastid=<?php echo $arsc_lastid; ?>"><?php echo $arsc_lang["refreshmessages"]; ?></a>
- <input type="hidden" name="arsc_sid" value="<?php echo $arsc_sid; ?>">
- <input type="hidden" name="arsc_lastid" value="<?php echo $arsc_lastid; ?>">
- <input type="hidden" name="arsc_chatversion" value="text">
- <input type="text" name="arsc_message" size="30" maxlength="<?php echo $arsc_parameters["input_maxsize"]; ?>" value="<?php echo $arsc_pretext; ?>">
- <input type="submit" value="<?php echo $arsc_lang["sendmessage"]; ?>">
+ <input type="hidden" name="arsc_sid" value="<?php echo $arsc_sid; ?>" />
+ <input type="hidden" name="arsc_lastid" value="<?php echo $arsc_lastid; ?>" />
+ <input type="hidden" name="arsc_chatversion" value="text" />
+ <input type="text" name="arsc_message" size="30" maxlength="<?php echo $arsc_parameters["input_maxsize"]; ?>" value="<?php echo $arsc_pretext; ?>" />
+ <input type="submit" value="<?php echo $arsc_lang["sendmessage"]; ?>" />
<a href="../logout.php?arsc_sid=<?php echo $arsc_sid; ?>"><?php echo $arsc_lang["leave"]; ?></a>
</form>
<?php
?>
<tr>
<td valign="top">
- <input type="radio" name="chat_chatversion" value="<?php echo $version; ?>"<?php echo $checked; ?>>
+ <input type="radio" name="chat_chatversion" value="<?php echo $version; ?>"<?php echo $checked; ?> />
</td>
<td valign="top" align="left">
<font face="Arial" size="2">
<tr valign="top">
<td align="right"><p><b><?php print_string("chatname", "chat")?>:</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">
</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") ?>" />
</center>
</form>
<tr valign="top">
<td align="right"><p><b><?php print_string("choicename","choice") ?>:</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">
<td align="right"><p><b><?php print_string("choice","choice","1") ?>:</b></p></td>
<td>
- <input type="text" name="answer1" size="60" value="<?php p($form->answer1) ?>">
+ <input type="text" name="answer1" size="60" value="<?php p($form->answer1) ?>" />
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p><b><?php print_string("choice","choice","2") ?>:</b></p></td>
<td>
- <input type="text" name="answer2" size="60" value="<?php p($form->answer2) ?>">
+ <input type="text" name="answer2" size="60" value="<?php p($form->answer2) ?>" />
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p><b><?php print_string("choice","choice","3") ?>:</b></p></td>
<td>
- <input type="text" name="answer3" size="60" value="<?php p($form->answer3) ?>">
+ <input type="text" name="answer3" size="60" value="<?php p($form->answer3) ?>" />
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p><b><?php print_string("choice","choice","4") ?>:</b></p></td>
<td>
- <input type="text" name="answer4" size="60" value="<?php p($form->answer4) ?>">
+ <input type="text" name="answer4" size="60" value="<?php p($form->answer4) ?>" />
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p><b><?php print_string("choice","choice","5") ?>:</b></p></td>
<td>
- <input type="text" name="answer5" size="60" value="<?php p($form->answer5) ?>">
+ <input type="text" name="answer5" size="60" value="<?php p($form->answer5) ?>" />
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><p><b><?php print_string("choice","choice","6") ?>:</b></p></td>
<td>
- <input type="text" name="answer6" size="60" value="<?php p($form->answer6) ?>">
+ <input type="text" name="answer6" size="60" value="<?php p($form->answer6) ?>" />
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
var timeitems = ['openday','openmonth','openyear','openhour', 'openminute', 'closeday','closemonth','closeyear','closehour','closeminute'];
</script>
- <input name="timerestrict" type="checkbox" value="1" onclick="return lockoptions('form','timerestrict', timeitems)" <?php if ($form->timerestrict) echo "checked"; ?> >
+ <input name="timerestrict" type="checkbox" value="1" onclick="return lockoptions('form','timerestrict', timeitems)" <?php if ($form->timerestrict) echo "checked"; ?> />
<?php
helpbutton("timerestrict", get_string("timerestrict","choice"), "choice");
?>
print_time_selector("openhour", "openminute", $form->timeopen);
?>
- <input type="hidden" name="hopenday" value="0">
- <input type="hidden" name="hopenmonth" value="0">
- <input type="hidden" name="hopenyear" value="0">
- <input type="hidden" name="hopenhour" value="0">
- <input type="hidden" name="hopenminute" value="0">
+ <input type="hidden" name="hopenday" value="0" />
+ <input type="hidden" name="hopenmonth" value="0" />
+ <input type="hidden" name="hopenyear" value="0" />
+ <input type="hidden" name="hopenhour" value="0" />
+ <input type="hidden" name="hopenminute" value="0" />
</td>
</tr>
<tr>
print_time_selector("closehour", "closeminute", $form->timeclose);
?>
- <input type="hidden" name="hcloseday" value="0">
- <input type="hidden" name="hclosemonth" value="0">
- <input type="hidden" name="hcloseyear" value="0">
- <input type="hidden" name="hclosehour" value="0">
- <input type="hidden" name="hcloseminute" value="0">
+ <input type="hidden" name="hcloseday" value="0" />
+ <input type="hidden" name="hclosemonth" value="0" />
+ <input type="hidden" name="hcloseyear" value="0" />
+ <input type="hidden" name="hclosehour" value="0" />
+ <input type="hidden" name="hcloseminute" value="0" />
<?php
if (! $form->timerestrict) {
</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") ?>" />
</center>
</form>
echo "<table align=\"center\"border=\"1\" width=\"60%\">\n";
echo "<tr><td align=\"right\"><b>".get_string("subject", "dialogue")."</b></td>";
echo "<td><input type=\"text\" size=\"50\" maxsize=\"100\" name=\"subject\"
- value=\"\"></td></tr>\n";
+ value=\"\" /></td></tr>\n";
echo "<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" value=\"".
- get_string("addsubject", "dialogue")."\"></td></tr>\n";
+ get_string("addsubject", "dialogue")."\" /></td></tr>\n";
echo "</table></form>\n";
}
echo "<form name=\"replies\" method=\"post\" action=\"dialogues.php\">\n";
echo "<input type=\"hidden\" name=\"action\" value=\"insertentries\"/>\n";
- echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\"/>\n";
- echo "<input type=\"hidden\" name=\"pane\" value=\"1\"/>\n";
+ echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />\n";
+ echo "<input type=\"hidden\" name=\"pane\" value=\"1\" />\n";
// list the conversations requiring a resonse from this user in full
if ($conversations = dialogue_get_conversations($dialogue, $USER, "lastid != $USER->id AND closed = 0")) {
echo "<form name=\"replies\" method=\"post\" action=\"dialogues.php\">\n";
echo "<input type=\"hidden\" name=\"action\" value=\"insertentries\"/>\n";
- echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\"/>\n";
- echo "<input type=\"hidden\" name=\"pane\" value=\"2\"/>\n";
+ echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />\n";
+ echo "<input type=\"hidden\" name=\"pane\" value=\"2\" />\n";
$showbutton = true;
print_simple_box_start("center", "", $THEME->cellcontent2);
print_simple_box_end();
if ($showbutton) {
echo "<hr />\n";
- echo "<br /><input type=\"submit\" value=\"".get_string("addmynewentry", "dialogue")."\">\n";
+ echo "<br /><input type=\"submit\" value=\"".get_string("addmynewentry", "dialogue")."\" />\n";
}
echo "</form>\n";
}
</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") ?>" />
</center>
</form>
if ($names = dialogue_get_available_users($dialogue)) {
print_simple_box_start("center");
echo "<form name=\"startform\" method=\"post\" action=\"dialogues.php\">\n";
- echo "<input type=\"hidden\" name=\"id\"value=\"$cm->id\"/>\n";
- echo "<input type=\"hidden\" name=\"action\" value=\"openconversation\"/>\n";
+ echo "<input type=\"hidden\" name=\"id\"value=\"$cm->id\"/ />\n";
+ echo "<input type=\"hidden\" name=\"action\" value=\"openconversation\"/ />\n";
echo "<table align=\"center\" border=\"0\"><tr>\n";
echo "<td align=\"right\"><b>".get_string("openadialoguewith", "dialogue").
" : </b></td>\n";
echo "</td></tr>\n";
echo "<tr><td align=\"right\"><b>".get_string("subject", "dialogue")." : </b></td>\n";
echo "<td><input type=\"text\" size=\"50\" maxsize=\"100\" name=\"subject\"
- value=\"\"></td></tr>\n";
+ value=\"\" /></td></tr>\n";
echo "<tr><td colspan=\"2\" align=\"center\" valign=\"top\"><i>".
get_string("typefirstentry", "dialogue")."</i></td></tr>\n";
echo "<tr><td valign=\"top\" align=\"right\">\n";
print_heading(get_string("amend", "exercise")." ".get_string("gradeforstudentsassessment",
"exercise", $course->student));
echo "<form name=\"amendgrade\" method=\"post\" action=\"assessments.php\">\n";
- echo "<input type=\"hidden\" name=\"aid\" value=\"$_GET[aid]\">\n";
- echo "<input type=\"hidden\" name=\"action\" value=\"updategradinggrade\">\n";
- echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\">\n";
- echo "<table width=\"50%\" align=\"center\" border=\"1\">\n";
+ echo "<input type=\"hidden\" name=\"aid\" value=\"$_GET[aid]\" />\n";
+ echo "<input type=\"hidden\" name=\"action\" value=\"updategradinggrade\" />\n";
+ echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />\n";
+ echo "<table width=\"50%\" align=\"center\" border=\"1\" />\n";
echo "<tr><td align=\"right\"><b>".get_string("gradeforstudentsassessment", "exercise",
$course->student)." :</td><td>\n";
// set up coment scale
print_heading_with_help(get_string("editingassessmentelements", "exercise"), "elements", "exercise");
?>
<form name="form" method="post" action="assessments.php">
- <input type="hidden" name="id" value="<?php echo $cm->id ?>">
- <input type="hidden" name="action" value="insertelements">
+ <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
+ <input type="hidden" name="action" value="insertelements" />
<center><table cellpadding="5" border="1">
<?php
?>
</table><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>
if (isteacher($course->id)) {
// ...show two buttons...to resubmit or not to resubmit
echo "<input type=\"button\" value=\"".get_string("studentnotallowed", "exercise", $course->student)."\"
- onclick=\"document.assessmentform.submit();\">\n";
+ onclick=\"document.assessmentform.submit();\" />\n";
echo "<input type=\"button\" value=\"".get_string("studentallowedtoresubmit", "exercise", $course->student)."\"
- onclick=\"document.assessmentform.resubmit.value='1';document.assessmentform.submit();\">\n";
+ onclick=\"document.assessmentform.resubmit.value='1';document.assessmentform.submit();\" />\n";
}
else {
// ... show save button
- echo "<input type=\"submit\" value=\"".get_string("savemyassessment", "exercise")."\">\n";
+ echo "<input type=\"submit\" value=\"".get_string("savemyassessment", "exercise")."\" />\n";
}
}
echo "</center></form>\n";
// ...and close the table and show two buttons...to resubmit or not to resubmit
echo "</table>\n";
echo "<br /><input type=\"button\" value=\"".get_string("studentnotallowed", "exercise", $course->student)."\"
- onclick=\"document.assessmentform.submit();\">\n";
+ onclick=\"document.assessmentform.submit();\" />\n";
echo "<input type=\"button\" value=\"".get_string("studentallowedtoresubmit", "exercise", $course->student)."\"
- onclick=\"document.assessmentform.resubmit.value='1';document.assessmentform.submit();\">\n";
+ onclick=\"document.assessmentform.resubmit.value='1';document.assessmentform.submit();\" />\n";
echo "</center></form>\n";
}
<tr valign="top">
<td align="right" width=\"50%\"><p><b><?php print_string("title", "exercise") ?>:</b></p></td>
<td width=\"50%\">
- <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>
<td align="right"><p><b><?php print_string("password"); ?>:</b></p></td>
<td>
- <input type="text" name="password" size="10" value=""> <?php echo " (".get_string("leavetokeep").")"; ?>
+ <input type="text" name="password" size="10" value="" /> <?php echo " (".get_string("leavetokeep").")"; ?>
<?php helpbutton("password", get_string("password"), "exercise"); ?>
</td>
</tr>
</table>
<br />
<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") ?>" />
<p>
<p><?php notify(get_string("noteonassessmentelements", "exercise")); ?>
print_heading(get_string("amendtitle", "exercise"));
?>
<form name="amendtitleform" action="submissions.php" method="post">
- <input type="hidden" name="action" value="adminupdatetitle">
- <input type="hidden" name="id" value="<?php echo $cm->id ?>">
- <input type="hidden" name="sid" value="<?php echo $_REQUEST['sid'] ?>">
+ <input type="hidden" name="action" value="adminupdatetitle" />
+ <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
+ <input type="hidden" name="sid" value="<?php echo $_REQUEST['sid'] ?>" />
<center>
<table celpadding="5" border="1">
<?php
echo "<tr valign=\"top\">\n";
echo " <td align=\"right\"><p><b>". get_string("title", "exercise").":</b></p></td>\n";
echo " <td>\n";
- echo " <input type=\"text\" name=\"title\" size=\"60\" maxlength=\"100\" value=\"$submission->title\">\n";
+ echo " <input type=\"text\" name=\"title\" size=\"60\" maxlength=\"100\" value=\"$submission->title\" />\n";
echo " </td></tr></table>\n";
- echo "<input type=\"submit\" value=\"".get_string("amendtitle", "exercise")."\">\n";
+ echo "<input type=\"submit\" value=\"".get_string("amendtitle", "exercise")."\" />\n";
echo "</center></form>\n";
}
if (!$correctpass) {
print_simple_box_start("center");
echo "<form name=\"password\" method=\"post\" action=\"view.php\">\n";
- echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\">\n";
+ echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />\n";
echo "<table cellpadding=\"7px\">";
if (isset($_POST['userpassword'])) {
echo "<tr align=\"center\" style='color:#DF041E;'><td>".get_string("wrongpassword", "exercise").
echo "<tr align=\"center\"><td>".get_string("passwordprotectedexercise", "exercise", $exercise->name).
"</td></tr>";
echo "<tr align=\"center\"><td>".get_string("enterpassword", "exercise").
- " <input type=\"password\" name=\"userpassword\"></td></tr>";
+ " <input type=\"password\" name=\"userpassword\" /></td></tr>";
echo "<tr align=\"center\"><td>";
echo "<input type=\"button\" value=\"".get_string("cancel").
"\" onclick=\"parent.location='../../course/view.php?id=$course->id';\"> ";
echo "<input type=\"button\" value=\"".get_string("continue").
- "\" onclick=\"document.password.submit();\">";
+ "\" onclick=\"document.password.submit();\" />";
echo "</td></tr></table>";
print_simple_box_end();
exit();
<tr valign="top">
<td align="right"><p>forum_shortpost:</td>
<td>
- <input name="forum_shortpost" type="text" size="5" value="<?php p($CFG->forum_shortpost) ?>">
+ <input name="forum_shortpost" type="text" size="5" value="<?php p($CFG->forum_shortpost) ?>" />
</td>
<td>
<?php print_string("configshortpost", "forum") ?>
<tr valign="top">
<td align="right"><p>forum_longpost:</td>
<td>
- <input name="forum_longpost" type="text" size="5" value="<?php p($CFG->forum_longpost) ?>">
+ <input name="forum_longpost" type="text" size="5" value="<?php p($CFG->forum_longpost) ?>" />
</td>
<td>
<?php print_string("configlongpost", "forum") ?>
<tr valign="top">
<td align="right"><p>forum_manydiscussions:</td>
<td>
- <input name="forum_manydiscussions" type="text" size="5" value="<?php p($CFG->forum_manydiscussions) ?>">
+ <input name="forum_manydiscussions" type="text" size="5" value="<?php p($CFG->forum_manydiscussions) ?>" />
</td>
<td>
<?php print_string("configmanydiscussions", "forum") ?>
<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>
$output = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td nowrap=\"nowrap\">";
$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\">";
- $output .= "<input value=\"".get_string("searchforums", "forum")."\" type=\"submit\">";
+ $output .= "<input name=\"search\" type=\"text\" size=\"15\" value=\"$search\" />";
+ $output .= "<input value=\"".get_string("searchforums", "forum")."\" type=\"submit\" />";
$output .= "</font>";
- $output .= "<input name=\"id\" type=\"hidden\" value=\"$course->id\">";
+ $output .= "<input name=\"id\" type=\"hidden\" value=\"$course->id\" />";
$output .= "</form>";
$output .= "</td></tr></table>";
} else {
$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 value=\"".get_string("searchforums", "forum")."\" type=\"submit\">";
+ $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\">";
+ $output .= "<input name=\"id\" type=\"hidden\" value=\"$course->id\" />";
$output .= "</form>";
$output .= "</td></tr></table>";
}
$ratings->allow = ($forum->assessed != 2 or isteacher($course->id));
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\" />";
}
}
}
if ($ratingsmenuused) {
- echo "<center><input type=\"submit\" value=\"".get_string("sendinratings", "forum")."\">";
+ echo "<center><input type=\"submit\" value=\"".get_string("sendinratings", "forum")."\" />";
if ($forum->scale < 0) {
if ($scale = get_record("scale", "id", abs($forum->scale))) {
print_scale_menu_helpbutton($course->id, $scale );
<tr valign="top">
<td align="right"><p><b><?php print_string("forumname", "forum")?>:</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">
}
if ($form->type == "news") {
print_string("namenews", "forum");
- echo "<input type=\"hidden\" name=\"type\" value=\"news\">";
+ echo "<input type=\"hidden\" name=\"type\" value=\"news\" />";
} else if ($form->type == "social") {
print_string("namesocial", "forum");
- echo "<input type=\"hidden\" name=\"type\" value=\"social\">";
+ echo "<input type=\"hidden\" name=\"type\" value=\"social\" />";
} else {
choose_from_menu($FORUM_TYPES, "type", $form->type, "");
helpbutton("forumtype", get_string("forumtype", "forum"), "forum");
if ($form->assessed) {
echo " checked ";
}
- echo ">";
+ echo " />";
echo get_string("ratingsuse", "forum").":";
echo "<br />";
$form->ratingtime = 1;
echo " checked ";
}
- echo ">";
+ echo " />";
print_string("ratingtime", "forum");
echo "<table align=\"left\"><tr><td align=\"right\" nowrap=\"nowrap\">";
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=\"hassesspublic\" 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=\"hassesspublic\" 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);";
</tr>
</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") ?>" />
</center>
</form>
<tr valign="top">
<td align="right"><p><b><?php print_string("subject", "forum"); ?>:</b></p></td>
<td>
- <input type="text" name="subject" size="60" value="<?php p($post->subject) ?>">
+ <input type="text" name="subject" size="60" value="<?php p($post->subject) ?>" />
</td>
</tr>
<tr valign="top">
<?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 {
choose_from_menu(format_text_menu(), "format", $post->format, "");
}
<td align="right"><p><b><?php print_string("attachment", "forum") ?>:<br />(<?php print_string("optional") ?>) </b></p></td>
<td>
<?php $maxbytes = get_max_upload_file_size($CFG->maxbytes, $course->maxbytes, $forum->maxbytes); ?>
- <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $maxbytes ?>">
- <input type="file" name="attachment" size="40">
+ <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $maxbytes ?>" />
+ <input type="file" name="attachment" size="40" />
<?php
helpbutton("attachment", get_string("attachment", "forum"), "forum");
print_string("maxsize", "", display_size($maxbytes));
<tr>
<td align="center" colspan="2">
- <input type="hidden" name="course" value="<?php p($post->course) ?>">
- <input type="hidden" name="forum" value="<?php p($post->forum) ?>">
- <input type="hidden" name="discussion" value="<?php p($post->discussion) ?>">
- <input type="hidden" name="parent" value="<?php p($post->parent) ?>">
- <input type="hidden" name="userid" value="<?php p($post->userid) ?>">
- <input type="hidden" name="groupid" value="<?php p($post->groupid) ?>">
- <input type="hidden" name="edit" value="<?php p($post->edit) ?>">
- <input type="submit" value="<?php p(($post->edit) ? get_string('savechanges') : get_string('posttoforum', 'forum')); ?>">
+ <input type="hidden" name="course" value="<?php p($post->course) ?>" />
+ <input type="hidden" name="forum" value="<?php p($post->forum) ?>" />
+ <input type="hidden" name="discussion" value="<?php p($post->discussion) ?>" />
+ <input type="hidden" name="parent" value="<?php p($post->parent) ?>" />
+ <input type="hidden" name="userid" value="<?php p($post->userid) ?>" />
+ <input type="hidden" name="groupid" value="<?php p($post->groupid) ?>" />
+ <input type="hidden" name="edit" value="<?php p($post->edit) ?>" />
+ <input type="submit" value="<?php p(($post->edit) ? get_string('savechanges') : get_string('posttoforum', 'forum')); ?>" />
</td>
</tr>
<tr valign="top">
<td align="right"><p><b><?php print_string("discussionname", "forum"); ?>:</b></p></td>
<td>
- <input type="text" name="name" size="60" value="<?php p($post->subject) ?>">
+ <input type="text" name="name" size="60" value="<?php p($post->subject) ?>" />
</td>
</tr>
<tr>
<td align="center" colspan="2">
- <input type="hidden" name="prune" value="<?php p($prune) ?>">
- <input type="hidden" name="confirm" value="<?php p($prune) ?>">
- <input type="submit" value="<?php print_string('prune', 'forum'); ?>">
+ <input type="hidden" name="prune" value="<?php p($prune) ?>" />
+ <input type="hidden" name="confirm" value="<?php p($prune) ?>" />
+ <input type="submit" value="<?php print_string('prune', 'forum'); ?>" />
</td>
</tr>