4 * @subpackage Templates
6 if( !defined( 'MEDIAWIKI' ) ) die( -1 );
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
['message'] ) {
20 <div
class="<?php $this->text('messagetype') ?>box">
21 <?php
if ( $this->data
['messagetype'] == 'error' ) { ?
>
22 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
24 <?php
$this->html('message') ?
>
26 <div
class="visualClear"></div
>
29 <div id
="userloginForm">
30 <form name
="userlogin" method
="post" action
="<?php $this->text('action') ?>">
31 <h2
><?php
$this->msg('login') ?
></h2
>
32 <p id
="userloginlink"><?php
$this->html('link') ?
></p
>
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 align
='right'><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 align
='right'><label
for='wpPassword1'><?php
$this->msg('yourpassword') ?
>:</label
></td
>
47 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword1"
49 value
="<?php $this->text('password') ?>" size
='20' />
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 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 align
='left' style
="white-space:nowrap">
81 <input type
='submit' name
="wpLoginattempt" id
="wpLoginattempt" tabindex
="5" value
="<?php $this->msg('login') ?>" /> 
;<?php
if( $this->data
['useemail'] ) { ?
><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
>
97 class UsercreateTemplate
extends QuickTemplate
{
99 if( $this->data
['message'] ) {
101 <div
class="<?php $this->text('messagetype') ?>box">
102 <?php
if ( $this->data
['messagetype'] == 'error' ) { ?
>
103 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
105 <?php
$this->html('message') ?
>
107 <div
class="visualClear"></div
>
111 <form name
="userlogin2" id
="userlogin2" method
="post" action
="<?php $this->text('action') ?>">
112 <h2
><?php
$this->msg('createaccount') ?
></h2
>
113 <p id
="userloginlink"><?php
$this->html('link') ?
></p
>
114 <?php
$this->html('header'); /* pre-table point for form plugins... */ ?
>
115 <?php
if( @$this->haveData( 'languages' ) ) { ?
><div id
="languagelinks"><p
><?php
$this->html( 'languages' ); ?
></p
></div
><?php
} ?
>
118 <td align
='right'><label
for='wpName2'><?php
$this->msg('yourname') ?
>:</label
></td
>
120 <input type
='text' class='loginText' name
="wpName" id
="wpName2"
122 value
="<?php $this->text('name') ?>" size
='20' />
126 <td align
='right'><label
for='wpPassword2'><?php
$this->msg('yourpassword') ?
>:</label
></td
>
128 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword2"
130 value
="<?php $this->text('password') ?>" size
='20' />
133 <?php
if( $this->data
['usedomain'] ) {
135 foreach( $this->data
['domainnames'] as $dom ) {
136 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
140 <td align
='right'><?php
$this->msg( 'yourdomainname' ) ?
>:</td
>
142 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>"
150 <td align
='right'><label
for='wpRetype'><?php
$this->msg('yourpasswordagain') ?
>:</label
></td
>
152 <input type
='password' class='loginPassword' name
="wpRetype" id
="wpRetype"
154 value
="<?php $this->text('retype') ?>"
159 <?php
if( $this->data
['useemail'] ) { ?
>
160 <td align
='right'><label
for='wpEmail'><?php
$this->msg('youremail') ?
>:</label
></td
>
162 <input type
='text' class='loginText' name
="wpEmail" id
="wpEmail"
164 value
="<?php $this->text('email') ?>" size
='20' />
167 <?php
if( $this->data
['userealname'] ) { ?
>
170 <td align
='right'><label
for='wpRealName'><?php
$this->msg('yourrealname') ?
>:</label
></td
>
172 <input type
='text' class='loginText' name
="wpRealName" id
="wpRealName"
174 value
="<?php $this->text('realname') ?>" size
='20' />
181 <input type
='checkbox' name
="wpRemember"
183 value
="1" id
="wpRemember"
184 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
185 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
191 <input type
='submit' name
="wpCreateaccount" id
="wpCreateaccount"
193 value
="<?php $this->msg('createaccount') ?>" />
194 <?php
if( $this->data
['createemail'] ) { ?
>
195 <input type
='submit' name
="wpCreateaccountMail" id
="wpCreateaccountMail"
197 value
="<?php $this->msg('createaccountmail') ?>" />
204 if ($this->data
['userealname'] ||
$this->data
['useemail']) {
205 echo '<div id="login-sectiontip">';
206 if ( $this->data
['useemail'] ) {
208 $this->msgHtml('prefs-help-email');
211 if ( $this->data
['userealname'] ) {
213 $this->msgHtml('prefs-help-realname');
220 <?php
if( @$this->haveData( 'uselang' ) ) { ?
><input type
="hidden" name
="uselang" value
="<?php $this->text( 'uselang' ); ?>" /><?php
} ?
>
223 <div id
="signupend"><?php
$this->msgWiki( 'signupend' ); ?
></div
>