MDL-7861 some xhtml strict fixes

This commit is contained in:
skodak 2007-01-04 22:49:07 +00:00
parent ccffd41265
commit 003b4b40bd
2 changed files with 7 additions and 6 deletions

View File

@ -199,12 +199,12 @@ if ($authsequence[0] == 'cas' and !empty($CFG->cas_enabled)) {
if (method_exists($userauth, 'password_expire') and !empty($userauth->config->expiration) and $userauth->config->expiration == 1) {
$days2expire = $userauth->password_expire($USER->username);
if (intval($days2expire) > 0 && intval($days2expire) < intval($CFG->{$USER->auth.'_expiration_warning'})) {
print_header("$site->fullname: $loginsite", "$site->fullname", $loginsite, $focus, "", true, "<div align=\"right\">$langmenu</div>");
print_header("$site->fullname: $loginsite", "$site->fullname", $loginsite, $focus, "", true, "<div style=\"text-align:right\">$langmenu</div>");
notice_yesno(get_string('auth_passwordwillexpire', 'auth', $days2expire), $passwordchangeurl, $urltogo);
print_footer();
exit;
} elseif (intval($days2expire) < 0 ) {
print_header("$site->fullname: $loginsite", "$site->fullname", $loginsite, $focus, "", true, "<div align=\"right\">$langmenu</div>");
print_header("$site->fullname: $loginsite", "$site->fullname", $loginsite, $focus, "", true, "<div style=\"text-align:right\">$langmenu</div>");
notice_yesno(get_string('auth_passwordisexpired', 'auth'), $passwordchangeurl, $urltogo);
print_footer();
exit;
@ -281,7 +281,7 @@ if ($authsequence[0] == "email" or $authsequence[0] == "none" or !empty($CFG->au
}
print_header("$site->fullname: $loginsite", $site->fullname, $loginsite, $focus,
'', true, '<div class="langmenu" align="right">'.$langmenu.'</div>');
'', true, '<div class="langmenu" style="text-align:right">'.$langmenu.'</div>');
include("index_form.html");

View File

@ -86,7 +86,7 @@
case "email":
print_string("loginsteps", "", "signup.php");
?>
<div align="center">
<div style="text-align:center">
<form action="signup.php" method="get" id="signup">
<div><input type="submit" value="<?php print_string("startsignup") ?>" /></div>
</form>
@ -105,9 +105,9 @@
$authplugin = get_auth_plugin($CFG->auth);
if (!empty($CFG->auth_user_create) and method_exists($authplugin, 'user_create') ){
?>
<div align="center">
<div style="text-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 }
@ -117,3 +117,4 @@
<?php } ?>
</tr>
</table>
</div>