Focus and tabindex fixes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c8b09c393e
commit
cc79819f17
41
b2login.php
41
b2login.php
|
@ -170,6 +170,13 @@ case 'lostpassword':
|
||||||
<title>WordPress > Lost password ?</title>
|
<title>WordPress > Lost password ?</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||||
<link rel="stylesheet" href="<?php echo $siteurl; ?>/wp-admin/b2.css" type="text/css" />
|
<link rel="stylesheet" href="<?php echo $siteurl; ?>/wp-admin/b2.css" type="text/css" />
|
||||||
|
<script type="text/javascript">
|
||||||
|
function focusit() {
|
||||||
|
// focus on first input field
|
||||||
|
document.lostpass.user_login.focus();
|
||||||
|
}
|
||||||
|
window.onload = focusit;
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
@ -180,7 +187,7 @@ case 'lostpassword':
|
||||||
if ($error) echo "<div align=\"right\" style=\"padding:4px;\"><font color=\"#FF0000\">$error</font><br /> </div>";
|
if ($error) echo "<div align=\"right\" style=\"padding:4px;\"><font color=\"#FF0000\">$error</font><br /> </div>";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="" action="b2login.php" method="post">
|
<form name="" action="b2login.php" method="post" id="lostpass">
|
||||||
<input type="hidden" name="action" value="retrievepassword" />
|
<input type="hidden" name="action" value="retrievepassword" />
|
||||||
<label>Login: <input type="text" name="user_login" id="user_login" value="" size="12" /></label>
|
<label>Login: <input type="text" name="user_login" id="user_login" value="" size="12" /></label>
|
||||||
<input type="submit" name="Submit2" value="OK" class="search">
|
<input type="submit" name="Submit2" value="OK" class="search">
|
||||||
|
@ -253,29 +260,37 @@ default:
|
||||||
header("Location: wp-admin/b2edit.php");
|
header("Location: wp-admin/b2edit.php");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<title>WordPress > Login form</title>
|
<title>WordPress > Login form</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||||
<link rel="stylesheet" href="<?php echo $siteurl; ?>/wp-admin/b2.css" type="text/css" />
|
<link rel="stylesheet" href="<?php echo $siteurl; ?>/wp-admin/b2.css" type="text/css" />
|
||||||
|
<script type="text/javascript">
|
||||||
|
function focusit() {
|
||||||
|
// focus on first input field
|
||||||
|
document.loginform.log.focus();
|
||||||
|
}
|
||||||
|
window.onload = focusit;
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="login">
|
<div id="login">
|
||||||
<p><a href="<?php echo $siteurl?>">Back to blog?</a><br />
|
<p>
|
||||||
|
<a href="<?php echo $siteurl?>" title="Are you lost?">Back to blog?</a><br />
|
||||||
<?php if ($users_can_register) { ?>
|
<?php if ($users_can_register) { ?>
|
||||||
<a href="<?php echo $siteurl; ?>/b2register.php">Register?</a><br />
|
<a href="<?php echo $siteurl; ?>/b2register.php" title="Register to be an author">Register?</a><br />
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<a href="<?php echo $siteurl; ?>/b2login.php?action=lostpassword">Lost your password?</a></p>
|
<a href="<?php echo $siteurl; ?>/b2login.php?action=lostpassword" title="Password Lost and Found">Lost your password?</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ($error) echo "<div align=\"right\" style=\"padding:4px;\"><font color=\"#FF0000\">$error</font><br /> </div>";
|
if ($error) echo "<div align=\"right\" style=\"padding:4px;\"><font color=\"#FF0000\">$error</font><br /> </div>";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="" action="<?php echo $path; ?>/b2login.php" method="post">
|
<form name="login" id="loginform" action="<?php echo $path; ?>/b2login.php" method="post">
|
||||||
<?php if ($mode=="bookmarklet") { ?>
|
<?php if ($mode=="bookmarklet") { ?>
|
||||||
<input type="hidden" name="mode" value="<?php echo $mode ?>" />
|
<input type="hidden" name="mode" value="<?php echo $mode ?>" />
|
||||||
<input type="hidden" name="text" value="<?php echo $text ?>" />
|
<input type="hidden" name="text" value="<?php echo $text ?>" />
|
||||||
|
@ -284,10 +299,9 @@ if ($error) echo "<div align=\"right\" style=\"padding:4px;\"><font color=\"#FF0
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<input type="hidden" name="redirect_to" value="wp-admin/b2edit.php" />
|
<input type="hidden" name="redirect_to" value="wp-admin/b2edit.php" />
|
||||||
<input type="hidden" name="action" value="login" />
|
<input type="hidden" name="action" value="login" />
|
||||||
<label>Login: <input type="text" name="log" value="" size="8" /></label><br />
|
<label>Login: <input type="text" name="log" id="log" value="" size="12" tabindex="1" /></label><br />
|
||||||
<label>Password: <input type="password" name="pwd" value="" size="8" /></label><br />
|
<label>Password: <input type="password" name="pwd" value="" size="12" tabindex="2" /></label><br />
|
||||||
<input type="submit" name="Submit2" value="OK" class="search">
|
<input type="submit" name="Submit2" value="OK" class="search" />
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -297,6 +311,5 @@ if ($error) echo "<div align=\"right\" style=\"padding:4px;\"><font color=\"#FF0
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
} // end action switch
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue