3 * @addtogroup Templates
5 if( !defined( 'MEDIAWIKI' ) ) die( -1 );
8 require_once( 'includes/SkinTemplate.php' );
11 * HTML template for Special:Userlogin form
12 * @addtogroup Templates
14 class UserloginTemplate
extends QuickTemplate
{
16 if( $this->data
['message'] ) {
18 <div
class="<?php $this->text('messagetype') ?>box">
19 <?php
if ( $this->data
['messagetype'] == 'error' ) { ?
>
20 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
22 <?php
$this->html('message') ?
>
24 <div
class="visualClear"></div
>
27 <div id
="userloginForm">
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
>
32 <?php
if( @$this->haveData( 'languages' ) ) { ?
><div id
="languagelinks"><p
><?php
$this->html( 'languages' ); ?
></p
></div
><?php
} ?
>
35 <td align
='right'><label
for='wpName1'><?php
$this->msg('yourname') ?
>:</label
></td
>
37 <input type
='text' class='loginText' name
="wpName" id
="wpName1"
39 value
="<?php $this->text('name') ?>" size
='20' />
43 <td align
='right'><label
for='wpPassword1'><?php
$this->msg('yourpassword') ?
>:</label
></td
>
45 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword1"
47 value
="<?php $this->text('password') ?>" size
='20' />
50 <?php
if( $this->data
['usedomain'] ) {
52 foreach( $this->data
['domainnames'] as $dom ) {
53 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
57 <td align
='right'><?php
$this->msg( 'yourdomainname' ) ?
>:</td
>
59 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>"
69 <input type
='checkbox' name
="wpRemember"
71 value
="1" id
="wpRemember"
72 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
73 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
78 <td align
='left' style
="white-space:nowrap">
79 <input type
='submit' name
="wpLoginattempt" id
="wpLoginattempt" tabindex
="5" value
="<?php $this->msg('login') ?>" /> 
;<?php
if( $this->data
['useemail'] && $this->data
['canreset']) { ?
><input type
='submit' name
="wpMailmypassword" id
="wpMailmypassword"
81 value
="<?php $this->msg('mailmypassword') ?>" />
86 <?php
if( @$this->haveData( 'uselang' ) ) { ?
><input type
="hidden" name
="uselang" value
="<?php $this->text( 'uselang' ); ?>" /><?php
} ?
>
89 <div id
="loginend"><?php
$this->msgWiki( 'loginend' ); ?
></div
>
95 class UsercreateTemplate
extends QuickTemplate
{
97 if( $this->data
['message'] ) {
99 <div
class="<?php $this->text('messagetype') ?>box">
100 <?php
if ( $this->data
['messagetype'] == 'error' ) { ?
>
101 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
103 <?php
$this->html('message') ?
>
105 <div
class="visualClear"></div
>
109 <form name
="userlogin2" id
="userlogin2" method
="post" action
="<?php $this->text('action') ?>">
110 <h2
><?php
$this->msg('createaccount') ?
></h2
>
111 <p id
="userloginlink"><?php
$this->html('link') ?
></p
>
112 <?php
$this->html('header'); /* pre-table point for form plugins... */ ?
>
113 <?php
if( @$this->haveData( 'languages' ) ) { ?
><div id
="languagelinks"><p
><?php
$this->html( 'languages' ); ?
></p
></div
><?php
} ?
>
116 <td align
='right'><label
for='wpName2'><?php
$this->msg('yourname') ?
>:</label
></td
>
118 <input type
='text' class='loginText' name
="wpName" id
="wpName2"
120 value
="<?php $this->text('name') ?>" size
='20' />
124 <td align
='right'><label
for='wpPassword2'><?php
$this->msg('yourpassword') ?
>:</label
></td
>
126 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword2"
128 value
="<?php $this->text('password') ?>" size
='20' />
131 <?php
if( $this->data
['usedomain'] ) {
133 foreach( $this->data
['domainnames'] as $dom ) {
134 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
138 <td align
='right'><?php
$this->msg( 'yourdomainname' ) ?
>:</td
>
140 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>"
148 <td align
='right'><label
for='wpRetype'><?php
$this->msg('yourpasswordagain') ?
>:</label
></td
>
150 <input type
='password' class='loginPassword' name
="wpRetype" id
="wpRetype"
152 value
="<?php $this->text('retype') ?>"
157 <?php
if( $this->data
['useemail'] ) { ?
>
158 <td align
='right'><label
for='wpEmail'><?php
$this->msg('youremail') ?
></label
></td
>
160 <input type
='text' class='loginText' name
="wpEmail" id
="wpEmail"
162 value
="<?php $this->text('email') ?>" size
='20' />
165 <?php
if( $this->data
['userealname'] ) { ?
>
168 <td align
='right'><label
for='wpRealName'><?php
$this->msg('yourrealname') ?
></label
></td
>
170 <input type
='text' class='loginText' name
="wpRealName" id
="wpRealName"
172 value
="<?php $this->text('realname') ?>" size
='20' />
179 <input type
='checkbox' name
="wpRemember"
181 value
="1" id
="wpRemember"
182 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
183 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
189 <input type
='submit' name
="wpCreateaccount" id
="wpCreateaccount"
191 value
="<?php $this->msg('createaccount') ?>" />
192 <?php
if( $this->data
['createemail'] ) { ?
>
193 <input type
='submit' name
="wpCreateaccountMail" id
="wpCreateaccountMail"
195 value
="<?php $this->msg('createaccountmail') ?>" />
202 if ($this->data
['userealname'] ||
$this->data
['useemail']) {
203 echo '<div id="login-sectiontip">';
204 if ( $this->data
['useemail'] ) {
206 $this->msgHtml('prefs-help-email');
209 if ( $this->data
['userealname'] ) {
211 $this->msgHtml('prefs-help-realname');
218 <?php
if( @$this->haveData( 'uselang' ) ) { ?
><input type
="hidden" name
="uselang" value
="<?php $this->text( 'uselang' ); ?>" /><?php
} ?
>
221 <div id
="signupend"><?php
$this->msgWiki( 'signupend' ); ?
></div
>