Also apply the __toString fix to UserInfo
[cacert-mgr.git] / external / ZendFramework-1.9.5 / demos / Zend / OpenId / templates / register.phtml
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>Zend OpenID Server Example</title>
5 <style>
6 input.openid_login {
7 background: url(login-bg.gif) no-repeat;
8 background-color: #fff;
9 background-position: 0 50%;
10 color: #000;
11 padding-left: 18px;
12 width: 220px;
13 margin-right: 10px;
14 }
15 input.openid_password {
16 background-color: #fff;
17 color: #000;
18 padding-left: 18px;
19 width: 220px;
20 margin-right: 10px;
21 }
22 </style>
23 <script language="JavaScript">
24 function init() {
25 <?php
26 if (isset($this->error)) {
27 echo ' alert("' . $this->error . '");' . "\n";
28 }
29 ?>
30 if (document.forms['register'].elements['openid_name'].value == '') {
31 document.forms['register'].elements['openid_name'].focus();
32 } else {
33 document.forms['register'].elements['openid_password'].focus();
34 }
35 }
36 </script>
37 </head>
38 <body onLoad="init()">
39 <?php
40 if (isset($this->error)) {
41 echo '<noscript><div><b><font color="#ff0000">Error: ' . $this->error . '</font></b></div></noscript>';
42 }
43 ?>
44 <div>
45 <form name="register" action="<?php $_SERVER['PHP_SELF']; ?>"
46 method="post" onsubmit="this.login.disabled=true;">
47 <fieldset id="openid">
48 <legend>Register OpenID Account</legend>
49 <input type="hidden" name="openid_action" value="register">
50 <table border="0"><tr><td>
51 <label>Name:</label>
52 </td><td>
53 <input type="text" name="openid_name" <?php if (isset($this->name)) {echo ' value="' . $this->name . '"';} ?>>
54 </td></tr><tr><td>
55 <label>Password:</label>
56 </td><td>
57 <input type="password" name="openid_password">
58 </td></tr><tr><td>
59 <label>Re-type:</label>
60 </td><td>
61 <input type="password" name="openid_password2">
62 </td><td></tr><tr><td>&nbsp;</td><td>
63 <input type="submit" name="login" value="login">
64 </td></tr></table>
65 </fieldset>
66 </form>
67 </div>
68 </body>
69 </html>