3 * @defgroup Templates Templates
7 if( !defined( 'MEDIAWIKI' ) ) die( -1 );
10 * HTML template for Special:Userlogin form
13 class UserloginTemplate
extends QuickTemplate
{
15 if( $this->data
['message'] ) {
17 <div
class="<?php $this->text('messagetype') ?>box">
18 <?php
if ( $this->data
['messagetype'] == 'error' ) { ?
>
19 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
21 <?php
$this->html('message') ?
>
23 <div
class="visualClear"></div
>
26 <div id
="loginstart"><?php
$this->msgWiki( 'loginstart' ); ?
></div
>
27 <div id
="userloginForm">
28 <form name
="userlogin" method
="post" action
="<?php $this->text('action') ?>">
29 <h2
><?php
$this->msg('login') ?
></h2
>
30 <p id
="userloginlink"><?php
$this->html('link') ?
></p
>
31 <?php
$this->html('header'); /* pre-table point for form plugins... */ ?
>
32 <div id
="userloginprompt"><?php
$this->msgWiki('loginprompt') ?
></div
>
33 <?php
if( @$this->haveData( 'languages' ) ) { ?
><div id
="languagelinks"><p
><?php
$this->html( 'languages' ); ?
></p
></div
><?php
} ?
>
36 <td
class="mw-label"><label
for='wpName1'><?php
$this->msg('yourname') ?
></label
></td
>
38 <input type
='text' class='loginText' name
="wpName" id
="wpName1"
40 value
="<?php $this->text('name') ?>" size
='20' />
44 <td
class="mw-label"><label
for='wpPassword1'><?php
$this->msg('yourpassword') ?
></label
></td
>
46 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword1"
51 <?php
if( $this->data
['usedomain'] ) {
53 foreach( $this->data
['domainnames'] as $dom ) {
54 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
58 <td
class="mw-label"><?php
$this->msg( 'yourdomainname' ) ?
></td
>
60 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>"
70 <input type
='checkbox' name
="wpRemember"
72 value
="1" id
="wpRemember"
73 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
74 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
79 <td
class="mw-submit">
80 <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"
82 value
="<?php $this->msg('mailmypassword') ?>" />
87 <?php
if( @$this->haveData( 'uselang' ) ) { ?
><input type
="hidden" name
="uselang" value
="<?php $this->text( 'uselang' ); ?>" /><?php
} ?
>
90 <div id
="loginend"><?php
$this->msgWiki( 'loginend' ); ?
></div
>
99 class UsercreateTemplate
extends QuickTemplate
{
101 if( $this->data
['message'] ) {
103 <div
class="<?php $this->text('messagetype') ?>box">
104 <?php
if ( $this->data
['messagetype'] == 'error' ) { ?
>
105 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
107 <?php
$this->html('message') ?
>
109 <div
class="visualClear"></div
>
113 <form name
="userlogin2" id
="userlogin2" method
="post" action
="<?php $this->text('action') ?>">
114 <h2
><?php
$this->msg('createaccount') ?
></h2
>
115 <p id
="userloginlink"><?php
$this->html('link') ?
></p
>
116 <?php
$this->html('header'); /* pre-table point for form plugins... */ ?
>
117 <?php
if( @$this->haveData( 'languages' ) ) { ?
><div id
="languagelinks"><p
><?php
$this->html( 'languages' ); ?
></p
></div
><?php
} ?
>
120 <td
class="mw-label"><label
for='wpName2'><?php
$this->msg('yourname') ?
></label
></td
>
121 <td
class="mw-input">
122 <input type
='text' class='loginText' name
="wpName" id
="wpName2"
124 value
="<?php $this->text('name') ?>" size
='20' />
128 <td
class="mw-label"><label
for='wpPassword2'><?php
$this->msg('yourpassword') ?
></label
></td
>
129 <td
class="mw-input">
130 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword2"
132 value
="" size
='20' />
135 <?php
if( $this->data
['usedomain'] ) {
137 foreach( $this->data
['domainnames'] as $dom ) {
138 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
142 <td
class="mw-label"><?php
$this->msg( 'yourdomainname' ) ?
></td
>
143 <td
class="mw-input">
144 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>"
152 <td
class="mw-label"><label
for='wpRetype'><?php
$this->msg('yourpasswordagain') ?
></label
></td
>
153 <td
class="mw-input">
154 <input type
='password' class='loginPassword' name
="wpRetype" id
="wpRetype"
161 <?php
if( $this->data
['useemail'] ) { ?
>
162 <td
class="mw-label"><label
for='wpEmail'><?php
$this->msg('youremail') ?
></label
></td
>
163 <td
class="mw-input">
164 <input type
='text' class='loginText' name
="wpEmail" id
="wpEmail"
166 value
="<?php $this->text('email') ?>" size
='20' />
167 <div
class="prefsectiontip">
168 <?php
if( $this->data
['emailrequired'] ) {
169 $this->msgWiki('prefs-help-email-required');
171 $this->msgWiki('prefs-help-email');
176 <?php
if( $this->data
['userealname'] ) { ?
>
179 <td
class="mw-label"><label
for='wpRealName'><?php
$this->msg('yourrealname') ?
></label
></td
>
180 <td
class="mw-input">
181 <input type
='text' class='loginText' name
="wpRealName" id
="wpRealName"
183 value
="<?php $this->text('realname') ?>" size
='20' />
184 <div
class="prefsectiontip">
185 <?php
$this->msgWiki('prefs-help-realname'); ?
>
192 <td
class="mw-input">
193 <input type
='checkbox' name
="wpRemember"
195 value
="1" id
="wpRemember"
196 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
197 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
202 <td
class="mw-submit">
203 <input type
='submit' name
="wpCreateaccount" id
="wpCreateaccount"
205 value
="<?php $this->msg('createaccount') ?>" />
206 <?php
if( $this->data
['createemail'] ) { ?
>
207 <input type
='submit' name
="wpCreateaccountMail" id
="wpCreateaccountMail"
209 value
="<?php $this->msg('createaccountmail') ?>" />
214 <?php
if( @$this->haveData( 'uselang' ) ) { ?
><input type
="hidden" name
="uselang" value
="<?php $this->text( 'uselang' ); ?>" /><?php
} ?
>
217 <div id
="signupend"><?php
$this->msgWiki( 'signupend' ); ?
></div
>