Skip to content

Commit

Permalink
Fixed many xhtml errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Apr 20, 2007
1 parent 109463e commit 77a297d
Show file tree
Hide file tree
Showing 47 changed files with 143 additions and 140 deletions.
6 changes: 4 additions & 2 deletions admin/auth_config.php
Expand Up @@ -63,6 +63,7 @@

// choose an authentication method
echo "<form $CFG->frametarget id=\"authmenu\" method=\"post\" action=\"auth_config.php\">\n";
echo "<div>\n";
echo "<input type=\"hidden\" name=\"sesskey\" value=\"".$USER->sesskey."\" />\n";
echo "<input type=\"hidden\" name=\"auth\" value=\"".$auth."\" />\n";

Expand All @@ -75,7 +76,8 @@
echo "<hr />\n";
$authplugin->config_form($frm, $err, $user_fields);
print_simple_box_end();
echo '<center><p><input type="submit" value="' . get_string("savechanges") . "\" /></p></center>\n";
echo '<p style="text-align: center"><input type="submit" value="' . get_string("savechanges") . "\" /></p>\n";
echo "</div>\n";
echo "</form>\n";

admin_externalpage_print_footer($adminroot);
Expand Down Expand Up @@ -146,7 +148,7 @@ function print_auth_lock_options ($auth, $user_fields, $helptext, $retrieveopts,
echo '</td><td>';

echo "<input id=\"lockconfig_{$varname}\" name=\"lockconfig_{$varname}\" type=\"text\" size=\"30\" value=\"{$pluginconfig->$varname}\" />";
echo '<div align="right">';
echo '<div style="text-align: right">';
echo '<label for="menulockconfig_field_updatelocal_'.$field.'">'.get_string('auth_updatelocal', 'auth') . '</label>&nbsp;';
choose_from_menu($updatelocaloptions, "lockconfig_field_updatelocal_{$field}", $pluginconfig->{"field_updatelocal_$field"}, "");
echo '<br />';
Expand Down
2 changes: 1 addition & 1 deletion admin/block.php
Expand Up @@ -59,7 +59,7 @@

print_heading($strblockname);

print_simple_box('<center>'.get_string('configwarning', 'admin').'</center>', 'center', '50%');
print_simple_box(get_string('configwarning', 'admin'), 'center', '50%');
echo '<br />';

echo '<form method="post" action="block.php">';
Expand Down
6 changes: 3 additions & 3 deletions admin/filter.php
Expand Up @@ -74,21 +74,21 @@
admin_externalpage_print_header($adminroot);
print_heading( $filtername );

print_simple_box("<center>".get_string("configwarning", "admin")."</center>", "center", "50%");
print_simple_box(get_string("configwarning", "admin"), "center", "50%");
echo "<br />";

print_simple_box_start("center",'');

?>
<form action="filter.php?filter=<?php echo urlencode($param->filter); ?>" method="post">
<div style="text-align: center">
<input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />

<?php include "$CFG->dirroot/$param->filter/filterconfig.html"; ?>

<center>
<input type="submit" name="submit" value="<?php print_string('savechanges'); ?>" />
<input type="submit" name="reset" value="<?php echo print_string('resettodefaults'); ?>" />
</center>
</div>
</form>

<?php
Expand Down
4 changes: 2 additions & 2 deletions admin/mnet/index.php
Expand Up @@ -112,8 +112,8 @@
<tr valign="top">
<td align="right"><?php print_string('net', 'mnet'); ?>:</td>
<td><input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="radio" name="mode" value="off" <?php echo ("off" == $CFG->mnet_dispatcher_mode)? 'checked="true"' : '' ?> /> <?php print_string('off', 'mnet'); ?> <br />
<input type="radio" name="mode" value="strict" <?php echo ("strict" == $CFG->mnet_dispatcher_mode)? 'checked="true"' : '' ?> /> <?php print_string('on', 'mnet'); ?><br />
<input type="radio" name="mode" value="off" <?php echo ("off" == $CFG->mnet_dispatcher_mode)? 'checked="checked"' : '' ?> /> <?php print_string('off', 'mnet'); ?> <br />
<input type="radio" name="mode" value="strict" <?php echo ("strict" == $CFG->mnet_dispatcher_mode)? 'checked="checked"' : '' ?> /> <?php print_string('on', 'mnet'); ?><br />
<input type="submit" name="submit" value="<?php print_string('savechanges'); ?>" />
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion admin/mnet/mnet_review.html
Expand Up @@ -102,7 +102,7 @@
<tr>
<td align="right" valign="top"><?php print_string('deleted'); ?>:</td>
<td valign="top">
<input type="radio" name="deleted" value="0" checked="true" /> <?php print_string('reenableserver','mnet'); ?><br />
<input type="radio" name="deleted" value="0" checked="checked" /> <?php print_string('reenableserver','mnet'); ?><br />
<input type="radio" name="deleted" value="1" /> <?php print_string('yes'); ?><br />
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion admin/module.php
Expand Up @@ -55,7 +55,7 @@

print_heading($strmodulename);

print_simple_box("<center>".get_string("configwarning", 'admin')."</center>", "center", "60%");
print_simple_box(get_string("configwarning", 'admin'), "center", "60%");
echo "<br />";

print_simple_box_start("center", "");
Expand Down
4 changes: 2 additions & 2 deletions admin/roles/allowassign.php
Expand Up @@ -80,9 +80,9 @@

echo '<form action="allowassign.php" method="post">';
print_table($table);
echo '<div class="buttons"><input type="submit" value="'.get_string('savechanges').'"/></div>';
echo '<div class="buttons"><input type="submit" value="'.get_string('savechanges').'"/>';
echo '<input type="hidden" name="dummy" value="1" />'; // this is needed otherwise we do not know a form has been submitted
echo '</form>';
echo '</div></form>';

admin_externalpage_print_footer($adminroot);

Expand Down
4 changes: 2 additions & 2 deletions admin/roles/allowoverride.php
Expand Up @@ -78,9 +78,9 @@

echo '<form action="allowoverride.php" method="post">';
print_table($table);
echo '<div class="buttons"><input type="submit" value="'.get_string('savechanges').'"/></div>';
echo '<div class="buttons"><input type="submit" value="'.get_string('savechanges').'"/>';
echo '<input type="hidden" name="dummy" value="1" />'; // this is needed otherwise we do not know a form has been submitted
echo '</form>';
echo '</div></form>';

admin_externalpage_print_footer($adminroot);

Expand Down
2 changes: 1 addition & 1 deletion auth/cas/config.html
Expand Up @@ -36,7 +36,7 @@
}

?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">

<tr>
<td colspan="2">
Expand Down
22 changes: 11 additions & 11 deletions auth/cas/index_form.html
@@ -1,11 +1,11 @@
<table width="90%" border="0" cellspacing="10" cellpadding="5" align="center">
<table width="90%" border="0" cellspacing="10" cellpadding="5" >
<tr>
<?php if ($show_instructions) { ?>
<td width="50%" class="headingblock">
<p align="center"><b><font size="3"><?php print_string("returningtosite") ?></font></b></p>
<p><b><?php print_string("returningtosite") ?></b></p>
</td>
<td width="50%" class="headingblock">
<p align="center"><b><font size="3"><?php print_string("firsttime") ?></font></b></p>
<p><b><?php print_string("firsttime") ?></b></p>
</td>
<?php } ?>
</tr>
Expand All @@ -16,7 +16,8 @@
<?php helpbutton("cookies", get_string("cookiesenabled"))?><br /><?php formerr($errormsg) ?>
</p>
<form action="index.php" method="post" id="login">
<table border="0" align="center" style="font-size: small">
<div>
<table border="0" style="font-size: small">
<tr>
<td width="100%">
<input type="hidden" name="username" id="username" value="cas" />
Expand All @@ -25,14 +26,17 @@
</td>
</tr>
</table>
</div>
</form>
<?php if ($CFG->guestloginbutton) { ?>
<hr width="80%" />
<p><?php print_string("someallowguest") ?>:</p>
<form action="index.php" method="post" id="guestlogin">
<div>
<input type="hidden" name="username" value="guest" />
<input type="hidden" name="password" value="guest" />
<input type="submit" value="<?php print_string("loginguest") ?>" />
</div>
</form>
<?php } ?>

Expand All @@ -43,7 +47,7 @@
<hr width="80%" />
<p><?php print_string("forgotten") ?></p>
<form action="<?php p($changepassword) ?>" method="get" id="changepassword">
<input type="submit" value="<?php p($changebuttonname) ?>" />
<div><input type="submit" value="<?php p($changebuttonname) ?>" /></div>
</form>
<?php } ?>

Expand All @@ -55,11 +59,9 @@
case "email":
print_string("loginsteps", "", "signup.php");
?>
<div align="center">
<form action="signup.php" method="get" id="signup">
<input type="submit" value="<?php print_string("startsignup") ?>" />
<div><input type="submit" value="<?php print_string("startsignup") ?>" /></div>
</form>
</div>
<?php break;
case "none":
print_string("loginstepsnone");
Expand All @@ -70,11 +72,9 @@
if (!empty($authplugin->config->user_create) and method_exists($authplugin, 'user_create')) {
?>

<div align="center">
<form action="signup.php" method="get" id="signup">
<input type="submit" value="<?php print_string("startsignup") ?>" />
<div><input type="submit" value="<?php print_string("startsignup") ?>" /></div>
</form>
</div>

<?php }
}
Expand Down
2 changes: 1 addition & 1 deletion auth/db/config.html
Expand Up @@ -50,7 +50,7 @@
$yesno = array( get_string('no'), get_string('yes') );

?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">

<tr valign="top" class="required">
<td align="right"><label for="host"><?php print_string("auth_dbhost_key", "auth") ?></label></td>
Expand Down
4 changes: 2 additions & 2 deletions auth/email/config.html
@@ -1,7 +1,7 @@
<!-- No config needed -->
<div align="center"><?php print_string('none'); ?></div>
<div style="text-align: center"><?php print_string('none'); ?></div>

<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<?php

print_auth_lock_options('email', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
Expand Down
2 changes: 1 addition & 1 deletion auth/fc/config.html
Expand Up @@ -24,7 +24,7 @@
}

?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">

<tr valign="top" class="required">
<td align="right"><?php print_string("auth_fchost_key", "auth") ?>:</td>
Expand Down
2 changes: 1 addition & 1 deletion auth/imap/config.html
Expand Up @@ -15,7 +15,7 @@
}

?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">

<tr valign="top" class="required">
<td align="right"><?php print_string('auth_imaphost_key', 'auth') ?>: </td>
Expand Down
2 changes: 1 addition & 1 deletion auth/ldap/config.html
Expand Up @@ -63,7 +63,7 @@
}

?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">

<tr>
<td colspan="2">
Expand Down
4 changes: 2 additions & 2 deletions auth/manual/config.html
@@ -1,7 +1,7 @@
<!-- No config needed -->
<div align="center"><?php print_string('none'); ?></div>
<div style="text-align:center"><?php print_string('none'); ?></div>

<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<?php

print_auth_lock_options('manual', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
Expand Down
2 changes: 1 addition & 1 deletion auth/nntp/config.html
Expand Up @@ -12,7 +12,7 @@
}

?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">

<tr valign="top" class="required">
<td align="right"><?php print_string('auth_nntphost_key', 'auth') ?>: </td>
Expand Down
4 changes: 2 additions & 2 deletions auth/none/config.html
@@ -1,7 +1,7 @@
<!-- No config needed -->
<div align="center"><?php print_string('none'); ?></div>
<div style="text-align: center"><?php print_string('none'); ?></div>

<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<?php

print_auth_lock_options('none', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
Expand Down
4 changes: 2 additions & 2 deletions auth/pam/config.html
@@ -1,7 +1,7 @@
<!-- No config needed -->
<div align="center"><?php print_string('none'); ?></div>
<div style="text-align: center"><?php print_string('none'); ?></div>

<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<?php

print_auth_lock_options('pam', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
Expand Down
2 changes: 1 addition & 1 deletion auth/pop3/config.html
Expand Up @@ -18,7 +18,7 @@
}

?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">

<tr valign="top" class="required">
<td align="right"><?php print_string('auth_pop3host_key', 'auth') ?>: </td>
Expand Down
6 changes: 3 additions & 3 deletions auth/radius/config.html
Expand Up @@ -3,8 +3,8 @@
// TODO: this generates broken file errors, needs safer test -JH

// Is Auth/RADIUS really there?
if ((!include_once('Auth/RADIUS.php')) or (!class_exists(Auth_RADIUS_PAP))) {
print '<p align="center"><font color="red"><strong>Warning: The Auth_RADIUS module does not seem to be present. Please ensure it is installed and enabled.</strong></font></p>';
if (!defined('Auth_RADIUS_PAP') or !class_exists(Auth_RADIUS_PAP) or !include_once('Auth/RADIUS.php')) {
print '<p style="text-align:center; color: red"><strong>Warning: The Auth_RADIUS module does not seem to be present. Please ensure it is installed and enabled.</strong></p>';
}

// set to defaults if undefined
Expand All @@ -22,7 +22,7 @@
}

?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">

<tr valign="top">
<td align="right"><?php print_string('auth_radiushost_key', 'auth') ?>: </td>
Expand Down
2 changes: 1 addition & 1 deletion auth/shibboleth/config.html
Expand Up @@ -17,7 +17,7 @@
}

?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">

<tr valign="top" class="required">
<td align="right"><?php print_string("username") ?>:</td>
Expand Down
20 changes: 10 additions & 10 deletions blocks/blog_tags/config_instance.html
Expand Up @@ -13,30 +13,30 @@
}
?>

<table cellpadding="9" cellspacing="0">
<table cellpadding="9" cellspacing="0" class="blockconfigtable">

<tr valign=top>
<td align=right><?php print_string("blocktitle","blog") ?>:</td>
<tr valign="top">
<td align="right"><?php print_string("blocktitle","blog") ?>:</td>
<td><input type="text" name="title" size="50" value="<?php p($this->config->title) ?>" /></td>
</tr>

<tr valign=top>
<td align=right><?php print_string("numberoftags","blog") ?>:</td>
<tr valign="top">
<td align="right"><?php print_string("numberoftags","blog") ?>:</td>
<td><?php choose_from_menu($numberoftags,"numberoftags",$this->config->numberoftags) ?></td>
</tr>

<tr valign=top>
<td align=right><?php print_string("timewithin","blog") ?>:</td>
<tr valign="top">
<td align="right"><?php print_string("timewithin","blog") ?>:</td>
<td><?php choose_from_menu($timewithin,"timewithin",$this->config->timewithin) ?></td>
</tr>

<tr valign=top>
<td align=right><?php print_string("tagsort","blog") ?>:</td>
<tr valign="top">
<td align="right"><?php print_string("tagsort","blog") ?>:</td>
<td><?php choose_from_menu($sort,"sort",$this->config->sort) ?></td>
</tr>

<tr>
<td colspan="2" align="center"><input type="submit" value="<?php print_string("savechanges") ?>"></td>
<td colspan="2" align="center"><input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>

</table>
Expand Down
2 changes: 1 addition & 1 deletion blocks/mentees/config_instance.html
@@ -1,4 +1,4 @@
<table cellpadding="9" cellspacing="0">
<table cellpadding="9" cellspacing="0" class="blockconfigtable">
<tr valign="top">
<td align="right"><?php print_string('configtitle', 'block_mentees'); ?>:</td>
<td><input type="text" name="title" size="30" value="<?php echo isset($this->config->title)?p($this->config->title):''; ?>" /> (<?php print_string('leaveblanktohide', 'block_mentees'); ?>)</td>
Expand Down
6 changes: 3 additions & 3 deletions blocks/search/config_global.html
@@ -1,19 +1,19 @@
<div style="text-align:center;">
<label for="block_search_text">Search label</label>
<input type="text" name="block_search_text" value="<?php
<input id="block_search_text" type="text" name="block_search_text" value="<?php
if(isset($CFG->block_search_text)) {
p($CFG->block_search_text);
} else {
p("Search Moodle");
} ?>"/><br/>

<label for="block_search_button">Button label</label>
<input type="text" name="block_search_button" value="<?php
<input id="block_search_button" type="text" name="block_search_button" value="<?php
if(isset($CFG->block_search_button)) {
p($CFG->block_search_button);
} else {
p("Go");
} ?>"/><br/><br/>

<input type="submit" value="<?php print_string('savechanges'); ?>" />
</div>
</div>

0 comments on commit 77a297d

Please sign in to comment.