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 <?php
if( $this->data
['create'] ) { ?
>
105 <form name
="userlogin2" id
="userlogin2" method
="post" action
="<?php $this->text('action') ?>">
106 <h2
><?php
$this->msg('createaccount') ?
></h2
>
107 <p id
="userloginlink"><?php
$this->html('link') ?
></p
>
108 <?php
$this->html('header'); /* pre-table point for form plugins... */ ?
>
111 <td align
='right'><label
for='wpName2'><?php
$this->msg('yourname') ?
>:</label
></td
>
113 <input type
='text' class='loginText' name
="wpName" id
="wpName2"
114 value
="<?php $this->text('name') ?>" size
='20' />
118 <td align
='right'><label
for='wpPassword2'><?php
$this->msg('yourpassword') ?
>:</label
></td
>
120 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword2"
121 value
="<?php $this->text('password') ?>" size
='20' />
124 <?php
if( $this->data
['usedomain'] ) {
126 foreach( $this->data
['domainnames'] as $dom ) {
127 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
131 <td align
='right'><?php
$this->msg( 'yourdomainname' ) ?
>:</td
>
133 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>">
140 <td align
='right'><label
for='wpRetype'><?php
$this->msg('yourpasswordagain') ?
>:</label
></td
>
142 <input type
='password' class='loginPassword' name
="wpRetype" id
="wpRetype"
143 value
="<?php $this->text('retype') ?>"
148 <?php
if( $this->data
['useemail'] ) { ?
>
149 <td align
='right'><label
for='wpEmail'><?php
$this->msg('youremail') ?
>:</label
></td
>
151 <input type
='text' class='loginText' name
="wpEmail" id
="wpEmail"
152 value
="<?php $this->text('email') ?>" size
='20' />
155 <?php
if( $this->data
['userealname'] ) { ?
>
158 <td align
='right'><label
for='wpRealName'><?php
$this->msg('yourrealname') ?
>:</label
></td
>
160 <input type
='text' class='loginText' name
="wpRealName" id
="wpRealName"
161 value
="<?php $this->text('realname') ?>" size
='20' />
168 <input type
='checkbox' name
="wpRemember"
169 value
="1" id
="wpRemember"
170 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
171 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
177 <input type
='submit' name
="wpCreateaccount" id
="wpCreateaccount"
178 value
="<?php $this->msg('createaccount') ?>" />
179 <?php
if( $this->data
['createemail'] ) { ?
>
180 <input type
='submit' name
="wpCreateaccountMail" id
="wpCreateaccountMail"
181 value
="<?php $this->msg('createaccountmail') ?>" />
189 if( $this->data
['useemail'] ) {
190 echo '<div id="login-emailforlost">';
191 $this->msgHtml( 'emailforlost' );
198 <div id
="signupend"><?php
$this->msgWiki( 'signupend' ); ?
></div
>