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
="loginstart"><?php
$this->msgWiki( 'loginstart' ); ?
></div
>
28 <div id
="userloginForm">
29 <form name
="userlogin" method
="post" action
="<?php $this->text('action') ?>">
30 <h2
><?php
$this->msg('login') ?
></h2
>
31 <p id
="userloginlink"><?php
$this->html('link') ?
></p
>
32 <?php
$this->html('header'); /* pre-table point for form plugins... */ ?
>
33 <div id
="userloginprompt"><?php
$this->msgWiki('loginprompt') ?
></div
>
34 <?php
if( @$this->haveData( 'languages' ) ) { ?
><div id
="languagelinks"><p
><?php
$this->html( 'languages' ); ?
></p
></div
><?php
} ?
>
37 <td
class="mw-label"><label
for='wpName1'><?php
$this->msg('yourname') ?
></label
></td
>
39 <input type
='text' class='loginText' name
="wpName" id
="wpName1"
41 value
="<?php $this->text('name') ?>" size
='20' />
45 <td
class="mw-label"><label
for='wpPassword1'><?php
$this->msg('yourpassword') ?
></label
></td
>
47 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword1"
52 <?php
if( $this->data
['usedomain'] ) {
54 foreach( $this->data
['domainnames'] as $dom ) {
55 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
59 <td
class="mw-label"><?php
$this->msg( 'yourdomainname' ) ?
></td
>
61 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>"
71 <input type
='checkbox' name
="wpRemember"
73 value
="1" id
="wpRemember"
74 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
75 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
80 <td
class="mw-submit">
81 <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"
83 value
="<?php $this->msg('mailmypassword') ?>" />
88 <?php
if( @$this->haveData( 'uselang' ) ) { ?
><input type
="hidden" name
="uselang" value
="<?php $this->text( 'uselang' ); ?>" /><?php
} ?
>
91 <div id
="loginend"><?php
$this->msgWiki( 'loginend' ); ?
></div
>
98 * @addtogroup Templates
100 class UsercreateTemplate
extends QuickTemplate
{
102 if( $this->data
['message'] ) {
104 <div
class="<?php $this->text('messagetype') ?>box">
105 <?php
if ( $this->data
['messagetype'] == 'error' ) { ?
>
106 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
108 <?php
$this->html('message') ?
>
110 <div
class="visualClear"></div
>
114 <form name
="userlogin2" id
="userlogin2" method
="post" action
="<?php $this->text('action') ?>">
115 <h2
><?php
$this->msg('createaccount') ?
></h2
>
116 <p id
="userloginlink"><?php
$this->html('link') ?
></p
>
117 <?php
$this->html('header'); /* pre-table point for form plugins... */ ?
>
118 <?php
if( @$this->haveData( 'languages' ) ) { ?
><div id
="languagelinks"><p
><?php
$this->html( 'languages' ); ?
></p
></div
><?php
} ?
>
121 <td
class="mw-label"><label
for='wpName2'><?php
$this->msg('yourname') ?
></label
></td
>
122 <td
class="mw-input">
123 <input type
='text' class='loginText' name
="wpName" id
="wpName2"
125 value
="<?php $this->text('name') ?>" size
='20' />
129 <td
class="mw-label"><label
for='wpPassword2'><?php
$this->msg('yourpassword') ?
></label
></td
>
130 <td
class="mw-input">
131 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword2"
133 value
="" size
='20' />
136 <?php
if( $this->data
['usedomain'] ) {
138 foreach( $this->data
['domainnames'] as $dom ) {
139 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
143 <td
class="mw-label"><?php
$this->msg( 'yourdomainname' ) ?
></td
>
144 <td
class="mw-input">
145 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>"
153 <td
class="mw-label"><label
for='wpRetype'><?php
$this->msg('yourpasswordagain') ?
></label
></td
>
154 <td
class="mw-input">
155 <input type
='password' class='loginPassword' name
="wpRetype" id
="wpRetype"
162 <?php
if( $this->data
['useemail'] ) { ?
>
163 <td
class="mw-label"><label
for='wpEmail'><?php
$this->msg('youremail') ?
></label
></td
>
164 <td
class="mw-input">
165 <input type
='text' class='loginText' name
="wpEmail" id
="wpEmail"
167 value
="<?php $this->text('email') ?>" size
='20' />
168 <div
class="prefsectiontip">
169 <?php
if( $this->data
['emailrequired'] ) {
170 $this->msgWiki('prefs-help-email-required');
172 $this->msgWiki('prefs-help-email');
177 <?php
if( $this->data
['userealname'] ) { ?
>
180 <td
class="mw-label"><label
for='wpRealName'><?php
$this->msg('yourrealname') ?
></label
></td
>
181 <td
class="mw-input">
182 <input type
='text' class='loginText' name
="wpRealName" id
="wpRealName"
184 value
="<?php $this->text('realname') ?>" size
='20' />
185 <div
class="prefsectiontip">
186 <?php
$this->msgWiki('prefs-help-realname'); ?
>
193 <td
class="mw-input">
194 <input type
='checkbox' name
="wpRemember"
196 value
="1" id
="wpRemember"
197 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
198 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
203 <td
class="mw-submit">
204 <input type
='submit' name
="wpCreateaccount" id
="wpCreateaccount"
206 value
="<?php $this->msg('createaccount') ?>" />
207 <?php
if( $this->data
['createemail'] ) { ?
>
208 <input type
='submit' name
="wpCreateaccountMail" id
="wpCreateaccountMail"
210 value
="<?php $this->msg('createaccountmail') ?>" />
215 <?php
if( @$this->haveData( 'uselang' ) ) { ?
><input type
="hidden" name
="uselang" value
="<?php $this->text( 'uselang' ); ?>" /><?php
} ?
>
218 <div id
="signupend"><?php
$this->msgWiki( 'signupend' ); ?
></div
>