3 if( !defined( 'MEDIAWIKI' ) ) die();
6 * HTML template for Special:Userlogin form
8 * @subpackage Templates
10 class UserloginTemplate
extends QuickTemplate
{
12 if( $this->data
['error'] ) {
14 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
15 <p
class='error'><?php
$this->html('error') ?
></p
>
17 <h2
><?php
$this->msg('login' ) ?
>:</h2
>
18 <p
><?php
$this->msg('loginprompt') ?
></p
>
20 <form name
="userlogin" id
="userlogin" method
="post" action
="<?php $this->text('action') ?>">
23 <td align
='right'><?php
$this->msg('yourname') ?
>:</td
>
25 <input tabindex
='1' type
='text' name
="wpName"
26 value
="<?php $this->text('name') ?>" size
='20' />
29 <input tabindex
='3' type
='submit' name
="wpLoginattempt"
30 value
="<?php $this->msg('login') ?>" />
34 <td align
='right'><?php
$this->msg('yourpassword') ?
>:</td
>
36 <input tabindex
='2' type
='password' name
="wpPassword"
37 value
="<?php $this->text('password') ?>" size
='20' />
40 <input tabindex
='4' type
='checkbox' name
="wpRemember"
41 value
="1" id
="wpRemember"
42 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
43 /><label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
46 <?php
if( $this->data
['create'] ) { ?
>
48 <td colspan
='3'> 
;</td
>
51 <td align
='right'><?php
$this->msg('yourpasswordagain') ?
>:</td
>
53 <input tabindex
='5' type
='password' name
="wpRetype"
54 value
="<?php $this->text('retype') ?>"
57 <td
><?php
$this->msg('newusersonly') ?
></td
>
60 <?php
if( $this->data
['useemail'] ) { ?
>
61 <td align
='right'><?php
$this->msg('youremail') ?
>:</td
>
63 <input tabindex
='7' type
='text' name
="wpEmail"
64 value
="<?php $this->text('email') ?>" size
='20' />
67 <?php
if( $this->data
['userealname'] ) { ?
>
70 <td align
='right'><?php
$this->msg('yourrealname') ?
>:</td
>
72 <input tabindex
='8' type
='text' name
="wpRealName"
73 value
="<?php $this->text('realname') ?>" size
='20' />
77 <input tabindex
='9' type
='submit' name
="wpCreateaccount"
78 value
="<?php $this->msg('createaccount') ?>" />
79 <?php
if( $this->data
['createemail'] ) { ?
>
80 <input tabindex
='6' type
='submit' name
="wpCreateaccountMail"
81 value
="<?php $this->msg('createaccountmail') ?>" />
86 <?php
if( $this->data
['useemail'] ) { ?
>
88 <td colspan
='3'> 
;</td
>
91 <td colspan
='3' align
='left'>
93 <?php
$this->msgHtml( 'emailforlost' ) ?
><br
/>
94 <input tabindex
='10' type
='submit' name
="wpMailmypassword"
95 value
="<?php $this->msg('mailmypassword') ?>" />
103 $this->msgHtml( 'loginend' );