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"
40 value
="<?php $this->text('name') ?>" size
='20' />
44 <td align
='right'><label
for='wpPassword1'><?php
$this->msg('yourpassword') ?
>:</label
></td
>
46 <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' ) ?>">
68 <input type
='checkbox' name
="wpRemember"
69 value
="1" id
="wpRemember"
70 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
71 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
76 <td align
='left' style
="white-space:nowrap">
77 <input type
='submit' name
="wpLoginattempt" id
="wpLoginattempt" value
="<?php $this->msg('login') ?>" /> 
;<?php
if( $this->data
['useemail'] ) { ?
><input type
='submit' name
="wpMailmypassword" id
="wpMailmypassword"
78 value
="<?php $this->msg('mailmypassword') ?>" />
83 <?php
if( @$this->haveData( 'uselang' ) ) { ?
><input type
="hidden" name
="uselang" value
="<?php $this->text( 'uselang' ); ?>" /><?php
} ?
>
86 <div id
="loginend"><?php
$this->msgWiki( 'loginend' ); ?
></div
>
92 class UsercreateTemplate
extends QuickTemplate
{
94 if( $this->data
['message'] ) {
96 <div
class="<?php $this->text('messagetype') ?>box">
97 <?php
if ( $this->data
['messagetype'] == 'error' ) { ?
>
98 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
100 <?php
$this->html('message') ?
>
102 <div
class="visualClear"></div
>
106 <form name
="userlogin2" id
="userlogin2" method
="post" action
="<?php $this->text('action') ?>">
107 <h2
><?php
$this->msg('createaccount') ?
></h2
>
108 <p id
="userloginlink"><?php
$this->html('link') ?
></p
>
109 <?php
$this->html('header'); /* pre-table point for form plugins... */ ?
>
110 <?php
if( @$this->haveData( 'languages' ) ) { ?
><div id
="languagelinks"><p
><?php
$this->html( 'languages' ); ?
></p
></div
><?php
} ?
>
113 <td align
='right'><label
for='wpName2'><?php
$this->msg('yourname') ?
>:</label
></td
>
115 <input type
='text' class='loginText' name
="wpName" id
="wpName2"
116 value
="<?php $this->text('name') ?>" size
='20' />
120 <td align
='right'><label
for='wpPassword2'><?php
$this->msg('yourpassword') ?
>:</label
></td
>
122 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword2"
123 value
="<?php $this->text('password') ?>" size
='20' />
126 <?php
if( $this->data
['usedomain'] ) {
128 foreach( $this->data
['domainnames'] as $dom ) {
129 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
133 <td align
='right'><?php
$this->msg( 'yourdomainname' ) ?
>:</td
>
135 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>">
142 <td align
='right'><label
for='wpRetype'><?php
$this->msg('yourpasswordagain') ?
>:</label
></td
>
144 <input type
='password' class='loginPassword' name
="wpRetype" id
="wpRetype"
145 value
="<?php $this->text('retype') ?>"
150 <?php
if( $this->data
['useemail'] ) { ?
>
151 <td align
='right'><label
for='wpEmail'><?php
$this->msg('youremail') ?
>:</label
></td
>
153 <input type
='text' class='loginText' name
="wpEmail" id
="wpEmail"
154 value
="<?php $this->text('email') ?>" size
='20' />
157 <?php
if( $this->data
['userealname'] ) { ?
>
160 <td align
='right'><label
for='wpRealName'><?php
$this->msg('yourrealname') ?
>:</label
></td
>
162 <input type
='text' class='loginText' name
="wpRealName" id
="wpRealName"
163 value
="<?php $this->text('realname') ?>" size
='20' />
170 <input type
='checkbox' name
="wpRemember"
171 value
="1" id
="wpRemember"
172 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
173 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
179 <input type
='submit' name
="wpCreateaccount" id
="wpCreateaccount"
180 value
="<?php $this->msg('createaccount') ?>" />
181 <?php
if( $this->data
['createemail'] ) { ?
>
182 <input type
='submit' name
="wpCreateaccountMail" id
="wpCreateaccountMail"
183 value
="<?php $this->msg('createaccountmail') ?>" />
190 if ($this->data
['userealname'] ||
$this->data
['useemail']) {
191 echo '<div id="login-sectiontip">';
192 if ( $this->data
['useemail'] ) {
194 $this->msgHtml('prefs-help-email');
197 if ( $this->data
['userealname'] ) {
199 $this->msgHtml('prefs-help-realname');
206 <?php
if( @$this->haveData( 'uselang' ) ) { ?
><input type
="hidden" name
="uselang" value
="<?php $this->text( 'uselang' ); ?>" /><?php
} ?
>
209 <div id
="signupend"><?php
$this->msgWiki( 'signupend' ); ?
></div
>