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 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
21 <p
class='error'><?php
$this->html('error') ?
></p
>
23 <h2
><?php
$this->msg('login' ) ?
>:</h2
>
24 <?php
$this->msgWiki('loginprompt') ?
>
26 <form name
="userlogin" id
="userlogin" method
="post" action
="<?php $this->text('action') ?>">
29 <td align
='right'><label
for='wpName'><?php
$this->msg('yourname') ?
>:</label
></td
>
31 <input tabindex
='1' type
='text' name
="wpName" id
="wpName"
32 value
="<?php $this->text('name') ?>" size
='20' />
35 <input tabindex
='3' type
='submit' name
="wpLoginattempt"
36 value
="<?php $this->msg('login') ?>" />
40 <td align
='right'><label
for='wpPassword'><?php
$this->msg('yourpassword') ?
>:</label
></td
>
42 <input tabindex
='2' type
='password' name
="wpPassword" id
="wpPassword"
43 value
="<?php $this->text('password') ?>" size
='20' />
46 <input tabindex
='4' type
='checkbox' name
="wpRemember"
47 value
="1" id
="wpRemember"
48 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
49 /><label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
52 <?php
if( $this->data
['create'] ) { ?
>
54 <td colspan
='3'> 
;</td
>
57 <td align
='right'><label
for='wpRetype'><?php
$this->msg('yourpasswordagain') ?
>:</label
></td
>
59 <input tabindex
='5' type
='password' name
="wpRetype" id
="wpRetype"
60 value
="<?php $this->text('retype') ?>"
63 <td
><?php
$this->msg('newusersonly') ?
></td
>
66 <?php
if( $this->data
['useemail'] ) { ?
>
67 <td align
='right'><label
for='wpEmail'><?php
$this->msg('youremail') ?
>:</label
></td
>
69 <input tabindex
='7' type
='text' name
="wpEmail" id
="wpEmail"
70 value
="<?php $this->text('email') ?>" size
='20' />
73 <?php
if( $this->data
['userealname'] ) { ?
>
76 <td align
='right'><label
for='wpRealName'><?php
$this->msg('yourrealname') ?
>:</label
></td
>
78 <input tabindex
='8' type
='text' name
="wpRealName" id
="wpRealName"
79 value
="<?php $this->text('realname') ?>" size
='20' />
83 <input tabindex
='9' type
='submit' name
="wpCreateaccount"
84 value
="<?php $this->msg('createaccount') ?>" />
85 <?php
if( $this->data
['createemail'] ) { ?
>
86 <input tabindex
='6' type
='submit' name
="wpCreateaccountMail"
87 value
="<?php $this->msg('createaccountmail') ?>" />
92 <?php
if( $this->data
['useemail'] ) { ?
>
94 <td colspan
='3'> 
;</td
>
97 <td colspan
='3' align
='left'>
99 <?php
$this->msgHtml( 'emailforlost' ) ?
><br
/>
100 <input tabindex
='10' type
='submit' name
="wpMailmypassword"
101 value
="<?php if ( $this->data['useemailauthent'] ) {
102 $this->msg('mailmypasswordauthent') ?>" />
104 $this->msg('mailmypassword') ?
>" />
113 $this->msgWiki( 'loginend' );