MDL-7861 xhtml strict fixes - fixed capital letter tags and attributes

This commit is contained in:
skodak 2007-01-04 23:59:55 +00:00
parent 7150226896
commit b150307551
16 changed files with 101 additions and 101 deletions

View File

@ -29,7 +29,7 @@ print_heading(get_string('mnetsettings', 'mnet'));
</tr>
<tr valign="top">
<td width="80">
<form method="POST" action="delete.php">
<form method="post" action="delete.php">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="hidden" name="hostid" value="<?php echo $mnet_peer->id; ?>" />
<input type="hidden" name="step" value="delete" />
@ -37,7 +37,7 @@ print_heading(get_string('mnetsettings', 'mnet'));
</form>
</td>
<td>
<form method="GET" action="index.php">
<form method="get" action="index.php">
<input type="submit" name="ignore" value="<?php print_string('cancel'); ?>"/>
</form>
</td>

View File

@ -2,7 +2,7 @@
admin_externalpage_print_header($adminroot);
?>
<center>
<form method="POST" action="peers.php">
<form method="post" action="peers.php">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="hidden" name="updateregisterall" value="1" />
<table cellspacing="0" cellpadding="5" width="500" id="hosts" class="generaltable generalbox" >
@ -45,7 +45,7 @@ admin_externalpage_print_header($adminroot);
<td class="cell c2" nowrap="nowrap"><?php if ($host->id != $CFG->mnet_all_hosts_id) echo $last_connect; ?></td>
<td class="cell c3">
<?php if ($host->id != $CFG->mnet_all_hosts_id): ?>
<form method="POST" action="delete.php">
<form method="post" action="delete.php">
<input type="hidden" name="hostid" value="<?php echo $host->id; ?>" />
<input type="hidden" name="step" value="verify" />
<input type="submit" name="submit" value="<?php print_string('delete'); ?>"/>

View File

@ -10,7 +10,7 @@ admin_externalpage_print_header($adminroot);
<td class="cell c1" colspan="2"><?php print_string('trustedhostsexplain', 'mnet'); ?></td>
</tr>
<tr>
<td class="cell c1" colspan="2"><form method="POST" action="trustedhosts.php">
<td class="cell c1" colspan="2"><form method="post" action="trustedhosts.php">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<textarea name="hostlist" cols="40" rows="20"><?php echo $trusted_hosts; ?></textarea><br />
<input type="submit" value="<?php print_string('savechanges'); ?>" />
@ -48,7 +48,7 @@ admin_externalpage_print_header($adminroot);
endif;
?>
<tr>
<td class="cell c1" colspan="2"><form method="GET" action="trustedhosts.php">
<td class="cell c1" colspan="2"><form method="get" action="trustedhosts.php">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="text" name="testipaddress" value="<?php echo $test_ip_address; ?>" />
<input type="submit" value="<?php print_string('go'); ?>" />

View File

@ -32,7 +32,7 @@
if ($currentgroup) {
if (!$students = get_group_students($currentgroup, "u.lastname ASC")) {
print_header("$course->shortname: $strgrades", "$course->fullname",
"<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A>
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>
-> $strgrades");
setup_and_print_groups($course, $groupmode, "grades.php?id=$course->id");
notice(get_string("nostudentsingroup"), "$CFG->wwwroot/course/view.php?id=$course->id");
@ -42,7 +42,7 @@
} else {
if (!$students = get_course_students($course->id, "u.lastname ASC")) {
print_header("$course->shortname: $strgrades", "$course->fullname",
"<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A>
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>
-> $strgrades");
notice(get_string("nostudentsyet"), "$CFG->wwwroot/course/view.php?id=$course->id");
print_footer($course);

View File

@ -94,7 +94,7 @@ if (!isset($frm->enrol_ldap_template)) {
<tr valign="top">
<td align="right">enrol_ldap_host_url:</td>
<td>
<input name="enrol_ldap_host_url" TYPE="text" SIZE="30" value="<?php echo $frm->enrol_ldap_host_url?>">
<input name="enrol_ldap_host_url" type="text" SIZE="30" value="<?php echo $frm->enrol_ldap_host_url?>">
<?php if (isset($err["enrol_ldap_host_url"])) formerr($err["enrol_ldap_host_url"]); ?>
</td>
<td>
@ -160,7 +160,7 @@ if (!isset($frm->enrol_ldap_template)) {
<tr valign="top">
<td align="right">enrol_ldap_student_contexts:</td>
<td>
<input name="enrol_ldap_student_contexts" TYPE="text" SIZE="30 "value="<?php echo $frm->enrol_ldap_student_contexts?>">
<input name="enrol_ldap_student_contexts" type="text" SIZE="30 "value="<?php echo $frm->enrol_ldap_student_contexts?>">
<?php if (isset($err["enrol_ldap_student_contexts"])) formerr($err["enrol_ldap_student_contexts"]); ?>
</td>
<td>
@ -185,7 +185,7 @@ if (!isset($frm->enrol_ldap_template)) {
<tr valign="top">
<td align="right">enrol_ldap_teacher_contexts:</td>
<td>
<input name="enrol_ldap_teacher_contexts" TYPE="text" SIZE="30 "value="<?php echo $frm->enrol_ldap_teacher_contexts?>">
<input name="enrol_ldap_teacher_contexts" type="text" SIZE="30 "value="<?php echo $frm->enrol_ldap_teacher_contexts?>">
<?php if (isset($err["enrol_ldap_teacher_contexts"])) formerr($err["enrol_ldap_teacher_contexts"]); ?>
</td>
<td>

View File

@ -1,25 +1,25 @@
<form method="post" action="module.php" id="form">
<INPUT type="hidden" name="sesskey" value="<?PHP print isset($USER->sesskey) ? $USER->sesskey : '' ?>">
<input type="hidden" name="sesskey" value="<?PHP print isset($USER->sesskey) ? $USER->sesskey : '' ?>">
<TABLE cellpadding="9" cellspacing="0">
<TR valign="top">
<TD align="right"><P>hotpot_showtimes:</TD>
<TD><?PHP
<table cellpadding="9" cellspacing="0">
<tr valign="top">
<td align="right"><p>hotpot_showtimes:</td>
<td><?PHP
unset($choices);
$choices["0"] = get_string("no");
$choices["1"] = get_string("yes");
choose_from_menu ($choices, "hotpot_showtimes", $CFG->hotpot_showtimes, "");
?></TD>
<TD><?PHP print_string("configshowtimes", "hotpot") ?></TD>
</TR>
<TR valign=top>
<TD align="right"><P>hotpot_excelencodings:</TD>
<TD><INPUT name=hotpot_excelencodings type=text size=30 value="<?PHP p($CFG->hotpot_excelencodings) ?>"></TD>
<TD><?PHP print_string("configexcelencodings", "hotpot") ?></TD>
</TR>
<TR>
<TD colspan="3" align="center"><INPUT type="submit" value="<?PHP print_string("savechanges") ?>"></TD>
</TR>
</TABLE>
?></td>
<td><?PHP print_string("configshowtimes", "hotpot") ?></td>
</tr>
<tr valign=top>
<td align="right"><p>hotpot_excelencodings:</p></td>
<td><input name=hotpot_excelencodings type=text size=30 value="<?PHP p($CFG->hotpot_excelencodings) ?>" /></td>
<td><?PHP print_string("configexcelencodings", "hotpot") ?></td>
</tr>
<tr>
<td colspan="3" align="center"><input type="submit" value="<?PHP print_string("savechanges") ?>" /></td>
</tr>
</table>
</FORM>
</form>

View File

@ -35,7 +35,7 @@ if (!isset($form->create_sequence_url)) {
<form name="form" method="post" action="mod.php" onSubmit="disableSumbit(this);">
<center>
<span id="message"><P>Please wait .......</P></span>
<span id="message"><p>Please wait .......</p></span>
<table cellpadding="5">
<tr valign=top>
<td align=right><b><?php print_string("workspace", "lams") ?>:</b></td>
@ -211,7 +211,7 @@ var req;
* This function is to initialize elements' status and refresh workspace and sequence lists
*/
function refreshLists(){
document.getElementById("message").innerHTML = "<P>Please wait .......</P>";
document.getElementById("message").innerHTML = "<p>Please wait .......</p>";
disableSubmit(document.forms[0]);
document.getElementById("create").disabled = true;
document.getElementById("edit").disabled = true;

View File

@ -116,7 +116,7 @@
}
print_header_simple("$wiki_entry->pagename", "",
"<A HREF=\"index.php?id=$course->id\">$strwikis</A> -> <A HREF=\"view.php?id=$id\">".format_string($wiki->name,true)."</a> ->".
"<a href=\"index.php?id=$course->id\">$strwikis</a> -> <a href=\"view.php?id=$id\">".format_string($wiki->name,true)."</a> ->".
get_string("administration","wiki"),
$focus, "", true, update_module_button($cm->id, $course->id, $strwiki),
navmenu($course, $cm));

View File

@ -2,12 +2,12 @@
// Make sure all variables are defined
?>
<FORM ACTION="admin.php" METHOD="POST" ENCTYPE="multipart/form-data">
<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<?php print $userid; ?>" />
<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<?php print $groupid ?>" />
<INPUT TYPE="HIDDEN" NAME="action" VALUE="<?php print $action; ?>" />
<INPUT TYPE="HIDDEN" NAME="id" VALUE="<?php print $cm->id ?>" />
<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<?php print $wikipage?>" />
<form action="admin.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="userid" value="<?php print $userid; ?>" />
<input type="hidden" name="groupid" value="<?php print $groupid ?>" />
<input type="hidden" name="action" value="<?php print $action; ?>" />
<input type="hidden" name="id" value="<?php print $cm->id ?>" />
<input type="hidden" name="wikipage" value="<?php print $wikipage?>" />
<?php
$pagelist=wiki_admin_checklinks_list();
choose_from_menu($pagelist, "pagetocheck", $wikipage, "");

View File

@ -58,10 +58,10 @@
foreach ($wikis as $wiki) {
if (!$wiki->visible) {
//Show dimmed if the mod is hidden
$link = '<A class="dimmed" HREF="view.php?id='.$wiki->coursemodule.'">'.format_string($wiki->name,true).'</A>';
$link = '<a class="dimmed" href="view.php?id='.$wiki->coursemodule.'">'.format_string($wiki->name,true).'</a>';
} else {
//Show normal if the mod is visible
$link = '<A HREF="view.php?id='.$wiki->coursemodule.'">'.format_string($wiki->name,true).'</A>';
$link = '<a href="view.php?id='.$wiki->coursemodule.'">'.format_string($wiki->name,true).'</a>';
}
$timmod = '<span class="smallinfo">'.userdate($wiki->timemodified).'</span>';

View File

@ -1214,15 +1214,15 @@ function wiki_admin_setpageflags_list($pageflagstatus) {
$cell_pagename="";
$cell_flags="";
if ($data["flags"] & EWIKI_DB_F_TEXT) {
$cell_pagename .= '<A HREF="' . EWIKI_SCRIPT . $id . '">';
$cell_pagename .= '<a href="' . EWIKI_SCRIPT . $id . '">';
} else {
$cell_pagename .= '<A HREF="' . EWIKI_SCRIPT_BINARY . $id . '">';
$cell_pagename .= '<a href="' . EWIKI_SCRIPT_BINARY . $id . '">';
}
$cell_pagename .= s($id) . '</A> / '.get_string("version","wiki").": ".$row["version"];
$cell_pagename .= s($id) . '</a> / '.get_string("version","wiki").": ".$row["version"];
foreach ($FD as $n=>$str) {
$cell_flags .='<INPUT TYPE="checkbox" NAME="flags['. rawurlencode($id)
. '][' . $n . ']" VALUE="1" '
$cell_flags .='<input type="checkbox" name="flags['. rawurlencode($id)
. '][' . $n . ']" value="1" '
. (($data["flags"] & $n) ? "CHECKED=\"checked\"" : "")
. ' />'.$str. ' ';
}
@ -1350,15 +1350,15 @@ function wiki_admin_remove_list($listall="") {
}
foreach ($selected as $id => $reason) {
$table_checkbox='<INPUT TYPE="checkbox" VALUE="'.rawurlencode($id).'" NAME="pagestodelete[]" />';
$table_checkbox='<input type="checkbox" value="'.rawurlencode($id).'" name="pagestodelete[]" />';
#-- link & id
if (strpos($id, EWIKI_IDF_INTERNAL) === false) {
$table_page='<A HREF="' . ewiki_script("", $id) . '">';
$table_page='<a href="' . ewiki_script("", $id) . '">';
} else {
$table_page='<A HREF="' . ewiki_script_binary("", $id) . '">';
$table_page='<a href="' . ewiki_script_binary("", $id) . '">';
}
$table_page .= s($id) . '</A>';
$table_page .= s($id) . '</a>';
#-- print reason
$table_reason=$reason;

View File

@ -5,12 +5,12 @@
?>
<FORM ACTION="admin.php" METHOD="POST" ENCTYPE="multipart/form-data">
<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<?php print $userid; ?>" />
<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<?php print $groupid ?>" />
<INPUT TYPE="HIDDEN" NAME="action" VALUE="<?php print $action; ?>" />
<INPUT TYPE="HIDDEN" NAME="id" VALUE="<?php print $cm->id ?>" />
<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<?php print $wikipage?>" />
<form action="admin.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="userid" value="<?php print $userid; ?>" />
<input type="hidden" name="groupid" value="<?php print $groupid ?>" />
<input type="hidden" name="action" value="<?php print $action; ?>" />
<input type="hidden" name="id" value="<?php print $cm->id ?>" />
<input type="hidden" name="wikipage" value="<?php print $wikipage?>" />
<?php
$remove_table=wiki_admin_remove_list($form->listall);
print_table($remove_table);

View File

@ -8,55 +8,55 @@ if (!isset($form->changesfield)) {
}
?>
<FORM ACTION="admin.php" METHOD="POST" ENCTYPE="multipart/form-data">
<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<?php print $userid; ?>" />
<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<?php print $groupid ?>" />
<INPUT TYPE="HIDDEN" NAME="action" VALUE="<?php print $action; ?>" />
<INPUT TYPE="HIDDEN" NAME="id" VALUE="<?php print $cm->id ?>" />
<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<?php print $wikipage?>" />
<form action="admin.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="userid" value="<?php print $userid; ?>" />
<input type="hidden" name="groupid" value="<?php print $groupid ?>" />
<input type="hidden" name="action" value="<?php print $action; ?>" />
<input type="hidden" name="id" value="<?php print $cm->id ?>" />
<input type="hidden" name="wikipage" value="<?php print $wikipage?>" />
<CENTER>
<center>
<?php
if($err->remark) {
formerr($err->remark);
}
?>
<TABLE cellpadding=5>
<TR valign=top>
<TD align=right><P><B><?php print_string('authorfieldpattern','wiki') ?>:</B></P></TD>
<TD>
<INPUT type="text" name="authorfieldpattern" size=30 value="<?php p($form->authorfieldpattern) ?>" />
<table cellpadding=5>
<tr valign=top>
<td align=right><p><b><?php print_string('authorfieldpattern','wiki') ?>:</b></p></td>
<td>
<input type="text" name="authorfieldpattern" size=30 value="<?php p($form->authorfieldpattern) ?>" />
<?php
helpbutton('revertauthorfieldpattern', get_string('authorfieldpattern', 'wiki'), 'wiki');
if (!empty($err->authorfieldpattern)) { formerr($err->authorfieldpattern); }
?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string('changesfield','wiki') ?>:</B></P></TD>
<TD>
<INPUT type="text" name="changesfield" size=30 value="<?php p($form->changesfield) ?>" />
</td>
</tr>
<tr valign=top>
<td align=right><p><b><?php print_string('changesfield','wiki') ?>:</b></p></td>
<td>
<input type="text" name="changesfield" size=30 value="<?php p($form->changesfield) ?>" />
<?php if (!empty($err->changesfield)) { formerr($err->changesfield); } ?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string('howtooperate', 'wiki') ?>:</B></P></TD>
<TD>
</td>
</tr>
<tr valign=top>
<td align=right><p><b><?php print_string('howtooperate', 'wiki') ?>:</b></p></td>
<td>
<?php
$operations=array( "lastonly" => get_string("revertlastonly","wiki"),
"allsince" => get_string("revertallsince","wiki"),
"the" => get_string("revertthe","wiki"));
choose_from_menu($operations, "howtooperate", $form->howtooperate, "");
?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string('deleteversions','wiki') ?>:</B></P></TD>
<TD>
<INPUT type="text" name="deleteversions" size=2 value="<?php p($form->deleteversions) ?>" />
</td>
</tr>
<tr valign=top>
<td align=right><p><b><?php print_string('deleteversions','wiki') ?>:</b></p></td>
<td>
<input type="text" name="deleteversions" size=2 value="<?php p($form->deleteversions) ?>" />
<?php if (!empty($err->deleteversions)) { formerr($err->deleteversions); } ?>
</TD>
</TR>
</TABLE>
</td>
</tr>
</table>
<input type="submit" name="proceed" value="<?php print get_string("revertchanges","wiki"); ?>" />
</center></FORM>
</center></form>

View File

@ -2,12 +2,12 @@
// Make sure all variables are defined
?>
<FORM ACTION="admin.php" METHOD="POST" ENCTYPE="multipart/form-data">
<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<?php print $userid; ?>" />
<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<?php print $groupid ?>" />
<INPUT TYPE="HIDDEN" NAME="action" VALUE="<?php print $action; ?>" />
<INPUT TYPE="HIDDEN" NAME="id" VALUE="<?php print $cm->id ?>" />
<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<?php print $wikipage?>" />
<form action="admin.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="userid" value="<?php print $userid; ?>" />
<input type="hidden" name="groupid" value="<?php print $groupid ?>" />
<input type="hidden" name="action" value="<?php print $action; ?>" />
<input type="hidden" name="id" value="<?php print $cm->id ?>" />
<input type="hidden" name="wikipage" value="<?php print $wikipage?>" />
<?php
$pageflags_table=wiki_admin_setpageflags_list($pageflagstatus);
print_table($pageflags_table);

View File

@ -2,12 +2,12 @@
// Make sure all variables are defined
?>
<FORM ACTION="admin.php" METHOD="POST" ENCTYPE="multipart/form-data">
<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<?php print $userid; ?>" />
<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<?php print $groupid ?>" />
<INPUT TYPE="HIDDEN" NAME="action" VALUE="<?php print $action; ?>" />
<INPUT TYPE="HIDDEN" NAME="id" VALUE="<?php print $cm->id ?>" />
<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<?php print $wikipage?>" />
<form action="admin.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="userid" value="<?php print $userid; ?>" />
<input type="hidden" name="groupid" value="<?php print $groupid ?>" />
<input type="hidden" name="action" value="<?php print $action; ?>" />
<input type="hidden" name="id" value="<?php print $cm->id ?>" />
<input type="hidden" name="wikipage" value="<?php print $wikipage?>" />
<?php
$strip_table=wiki_admin_strip_list($form->pagestostrip, $form->version, $err);
print_table($strip_table);

View File

@ -60,7 +60,7 @@
$formstart = "";
}
print_header($strtitle,$strtitle,"<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> -> <a href=\"index.php?id=$course->id\">".get_string("participants")."</a> -> ".$strtitle,$formstart);
print_header($strtitle,$strtitle,"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> -> <a href=\"index.php?id=$course->id\">".get_string("participants")."</a> -> ".$strtitle,$formstart);
if ($count) {