7a6f03a12cecbbe93c3f1dfb4370949ee8bf49d1
4 * @subpackage Templates
6 if( !defined( 'MEDIAWIKI' ) ) die();
9 require_once( 'includes/SkinTemplate.php' );
12 * HTML template for Special:Userlogin form
14 * @subpackage Templates
16 class UserloginTemplate
extends QuickTemplate
{
18 if( $this->data
['error'] ) {
20 <div
class="errorbox">
21 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
22 <?php
$this->html('error') ?
>
24 <div
class="visualClear"></div
>
28 <form name
="userlogin" method
="post" action
="<?php $this->text('action') ?>">
29 <h2
><?php
$this->msg('login') ?
></h2
>
30 <p id
="userloginlink"><?php
$this->html('link') ?
></p
>
31 <div id
="userloginprompt"><?php
$this->msgWiki('loginprompt') ?
></div
>
34 <td align
='right'><label
for='wpName1'><?php
$this->msg('yourname') ?
>:</label
></td
>
36 <input type
='text' class='loginText' name
="wpName" id
="wpName1"
37 value
="<?php $this->text('name') ?>" size
='20' />
41 <td align
='right'><label
for='wpPassword1'><?php
$this->msg('yourpassword') ?
>:</label
></td
>
43 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword1"
44 value
="<?php $this->text('password') ?>" size
='20' />
47 <?php
if( $this->data
['usedomain'] ) {
49 foreach( $this->data
['domainnames'] as $dom ) {
50 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
54 <td align
='right'><?php
$this->msg( 'yourdomainname' ) ?
>:</td
>
56 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>">
65 <input type
='checkbox' name
="wpRemember"
66 value
="1" id
="wpRemember"
67 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
68 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
73 <td align
='left' style
="white-space:nowrap">
74 <input type
='submit' name
="wpLoginattempt" id
="wpLoginattempt" value
="<?php $this->msg('login') ?>" /> 
;<?php
if( $this->data
['useemail'] ) { ?
><input type
='submit' name
="wpMailmypassword"
75 value
="<?php $this->msg('mailmypassword') ?>" />
82 <div id
="loginend"><?php
$this->msgWiki( 'loginend' ); ?
></div
>
88 class UsercreateTemplate
extends QuickTemplate
{
90 if( $this->data
['error'] ) {
92 <div
class="errorbox">
93 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
94 <?php
$this->html('error') ?
>
96 <div
class="visualClear"></div
>
100 <?php
if( $this->data
['create'] ) { ?
>
101 <form name
="userlogin2" id
="userlogin2" method
="post" action
="<?php $this->text('action') ?>">
102 <h2
><?php
$this->msg('createaccount') ?
></h2
>
103 <p id
="userloginlink"><?php
$this->html('link') ?
></p
>
106 <td align
='right'><label
for='wpName2'><?php
$this->msg('yourname') ?
>:</label
></td
>
108 <input type
='text' class='loginText' name
="wpName" id
="wpName2"
109 value
="<?php $this->text('name') ?>" size
='20' />
113 <td align
='right'><label
for='wpPassword2'><?php
$this->msg('yourpassword') ?
>:</label
></td
>
115 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword2"
116 value
="<?php $this->text('password') ?>" size
='20' />
119 <?php
if( $this->data
['usedomain'] ) {
121 foreach( $this->data
['domainnames'] as $dom ) {
122 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
126 <td align
='right'><?php
$this->msg( 'yourdomainname' ) ?
>:</td
>
128 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>">
135 <td align
='right'><label
for='wpRetype'><?php
$this->msg('yourpasswordagain') ?
>:</label
></td
>
137 <input type
='password' class='loginPassword' name
="wpRetype" id
="wpRetype"
138 value
="<?php $this->text('retype') ?>"
143 <?php
if( $this->data
['useemail'] ) { ?
>
144 <td align
='right'><label
for='wpEmail'><?php
$this->msg('youremail') ?
>:</label
></td
>
146 <input type
='text' class='loginText' name
="wpEmail" id
="wpEmail"
147 value
="<?php $this->text('email') ?>" size
='20' />
150 <?php
if( $this->data
['userealname'] ) { ?
>
153 <td align
='right'><label
for='wpRealName'><?php
$this->msg('yourrealname') ?
>:</label
></td
>
155 <input type
='text' class='loginText' name
="wpRealName" id
="wpRealName"
156 value
="<?php $this->text('realname') ?>" size
='20' />
163 <input type
='checkbox' name
="wpRemember"
164 value
="1" id
="wpRemember"
165 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
166 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
172 <input type
='submit' name
="wpCreateaccount" id
="wpCreateaccount"
173 value
="<?php $this->msg('createaccount') ?>" />
174 <?php
if( $this->data
['createemail'] ) { ?
>
175 <input type
='submit' name
="wpCreateaccountMail" id
="wpCreateaccountMail"
176 value
="<?php $this->msg('createaccountmail') ?>" />
184 if( $this->data
['useemail'] ) {
185 echo '<div id="login-emailforlost">';
186 $this->msgHtml( 'emailforlost' );
193 <div id
="signupend"><?php
$this->msgWiki( 'signupend' ); ?
></div
>