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
='checkbox' name
="wpRemember"
36 value
="1" id
="wpRemember"
37 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
38 /><label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
42 <td align
='right'><label
for='wpPassword'><?php
$this->msg('yourpassword') ?
>:</label
></td
>
44 <input tabindex
='2' type
='password' name
="wpPassword" id
="wpPassword"
45 value
="<?php $this->text('password') ?>" size
='20' />
48 <input tabindex
='4' type
='submit' name
="wpLoginattempt"
49 value
="<?php $this->msg('login') ?>" />
52 <?php
if( $this->data
['usedomain'] ) {
54 foreach( $this->data
['domainnames'] as $dom ) {
55 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
59 <td align
='right'><?php
$this->msg( 'yourdomainname' ) ?
>:</td
>
61 <select tabindex
='11' name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>">
67 <?php
if( $this->data
['create'] ) { ?
>
69 <td colspan
='3'> 
;</td
>
72 <td align
='right'><label
for='wpRetype'><?php
$this->msg('yourpasswordagain') ?
>:</label
></td
>
74 <input tabindex
='5' type
='password' name
="wpRetype" id
="wpRetype"
75 value
="<?php $this->text('retype') ?>"
78 <td
><?php
$this->msg('newusersonly') ?
></td
>
81 <?php
if( $this->data
['useemail'] ) { ?
>
82 <td align
='right'><label
for='wpEmail'><?php
$this->msg('youremail') ?
>:</label
></td
>
84 <input tabindex
='7' type
='text' name
="wpEmail" id
="wpEmail"
85 value
="<?php $this->text('email') ?>" size
='20' />
88 <?php
if( $this->data
['userealname'] ) { ?
>
91 <td align
='right'><label
for='wpRealName'><?php
$this->msg('yourrealname') ?
>:</label
></td
>
93 <input tabindex
='8' type
='text' name
="wpRealName" id
="wpRealName"
94 value
="<?php $this->text('realname') ?>" size
='20' />
98 <input tabindex
='9' type
='submit' name
="wpCreateaccount"
99 value
="<?php $this->msg('createaccount') ?>" />
100 <?php
if( $this->data
['createemail'] ) { ?
>
101 <input tabindex
='6' type
='submit' name
="wpCreateaccountMail"
102 value
="<?php $this->msg('createaccountmail') ?>" />
107 <?php
if( $this->data
['useemail'] ) { ?
>
109 <td colspan
='3'> 
;</td
>
112 <td colspan
='3' align
='left'>
114 <?php
$this->msgHtml( 'emailforlost' ) ?
><br
/>
115 <input tabindex
='10' type
='submit' name
="wpMailmypassword"
116 value
="<?php $this->msg('mailmypassword') ?>" />
124 $this->msgWiki( 'loginend' );