742dc71ae7728f95093a2c17f69bc588630114a5
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
>
36 <td align
='right'><label
for='wpName1'><?php
$this->msg('yourname') ?
>:</label
></td
>
38 <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"
46 value
="<?php $this->text('password') ?>" size
='20' />
49 <?php
if( $this->data
['usedomain'] ) {
51 foreach( $this->data
['domainnames'] as $dom ) {
52 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
56 <td align
='right'><?php
$this->msg( 'yourdomainname' ) ?
>:</td
>
58 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>">
67 <input type
='checkbox' name
="wpRemember"
68 value
="1" id
="wpRemember"
69 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
70 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
75 <td align
='left' style
="white-space:nowrap">
76 <input type
='submit' name
="wpLoginattempt" id
="wpLoginattempt" value
="<?php $this->msg('login') ?>" /> 
;<?php
if( $this->data
['useemail'] ) { ?
><input type
='submit' name
="wpMailmypassword" id
="wpMailmypassword"
77 value
="<?php $this->msg('mailmypassword') ?>" />
84 <div id
="loginend"><?php
$this->msgWiki( 'loginend' ); ?
></div
>
90 class UsercreateTemplate
extends QuickTemplate
{
92 if( $this->data
['message'] ) {
94 <div
class="<?php $this->text('messagetype') ?>box">
95 <?php
if ( $this->data
['messagetype'] == 'error' ) { ?
>
96 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
98 <?php
$this->html('message') ?
>
100 <div
class="visualClear"></div
>
104 <form name
="userlogin2" id
="userlogin2" method
="post" action
="<?php $this->text('action') ?>">
105 <h2
><?php
$this->msg('createaccount') ?
></h2
>
106 <p id
="userloginlink"><?php
$this->html('link') ?
></p
>
107 <?php
$this->html('header'); /* pre-table point for form plugins... */ ?
>
110 <td align
='right'><label
for='wpName2'><?php
$this->msg('yourname') ?
>:</label
></td
>
112 <input type
='text' class='loginText' name
="wpName" id
="wpName2"
113 value
="<?php $this->text('name') ?>" size
='20' />
117 <td align
='right'><label
for='wpPassword2'><?php
$this->msg('yourpassword') ?
>:</label
></td
>
119 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword2"
120 value
="<?php $this->text('password') ?>" size
='20' />
123 <?php
if( $this->data
['usedomain'] ) {
125 foreach( $this->data
['domainnames'] as $dom ) {
126 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
130 <td align
='right'><?php
$this->msg( 'yourdomainname' ) ?
>:</td
>
132 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>">
139 <td align
='right'><label
for='wpRetype'><?php
$this->msg('yourpasswordagain') ?
>:</label
></td
>
141 <input type
='password' class='loginPassword' name
="wpRetype" id
="wpRetype"
142 value
="<?php $this->text('retype') ?>"
147 <?php
if( $this->data
['useemail'] ) { ?
>
148 <td align
='right'><label
for='wpEmail'><?php
$this->msg('youremail') ?
>:</label
></td
>
150 <input type
='text' class='loginText' name
="wpEmail" id
="wpEmail"
151 value
="<?php $this->text('email') ?>" size
='20' />
154 <?php
if( $this->data
['userealname'] ) { ?
>
157 <td align
='right'><label
for='wpRealName'><?php
$this->msg('yourrealname') ?
>:</label
></td
>
159 <input type
='text' class='loginText' name
="wpRealName" id
="wpRealName"
160 value
="<?php $this->text('realname') ?>" size
='20' />
167 <input type
='checkbox' name
="wpRemember"
168 value
="1" id
="wpRemember"
169 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
170 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
176 <input type
='submit' name
="wpCreateaccount" id
="wpCreateaccount"
177 value
="<?php $this->msg('createaccount') ?>" />
178 <?php
if( $this->data
['createemail'] ) { ?
>
179 <input type
='submit' name
="wpCreateaccountMail" id
="wpCreateaccountMail"
180 value
="<?php $this->msg('createaccountmail') ?>" />
187 if ($this->data
['userealname'] ||
$this->data
['useemail']) {
188 echo '<div id="login-sectiontip">';
189 if ( $this->data
['useemail'] ) {
191 $this->msg('prefs-help-email');
194 if ( $this->data
['userealname'] ) {
196 $this->msg('prefs-help-realname');
205 <div id
="signupend"><?php
$this->msgWiki( 'signupend' ); ?
></div
>