3 * @defgroup Templates Templates
7 if( !defined( 'MEDIAWIKI' ) ) die( -1 );
10 require_once( 'includes/SkinTemplate.php' );
13 * HTML template for Special:Userlogin form
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
="loginstart"><?php
$this->msgWiki( 'loginstart' ); ?
></div
>
30 <div id
="userloginForm">
31 <form name
="userlogin" method
="post" action
="<?php $this->text('action') ?>">
32 <h2
><?php
$this->msg('login') ?
></h2
>
33 <p id
="userloginlink"><?php
$this->html('link') ?
></p
>
34 <?php
$this->html('header'); /* pre-table point for form plugins... */ ?
>
35 <div id
="userloginprompt"><?php
$this->msgWiki('loginprompt') ?
></div
>
36 <?php
if( @$this->haveData( 'languages' ) ) { ?
><div id
="languagelinks"><p
><?php
$this->html( 'languages' ); ?
></p
></div
><?php
} ?
>
39 <td
class="mw-label"><label
for='wpName1'><?php
$this->msg('yourname') ?
></label
></td
>
41 <input type
='text' class='loginText' name
="wpName" id
="wpName1"
43 value
="<?php $this->text('name') ?>" size
='20' />
47 <td
class="mw-label"><label
for='wpPassword1'><?php
$this->msg('yourpassword') ?
></label
></td
>
49 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword1"
54 <?php
if( $this->data
['usedomain'] ) {
56 foreach( $this->data
['domainnames'] as $dom ) {
57 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
61 <td
class="mw-label"><?php
$this->msg( 'yourdomainname' ) ?
></td
>
63 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>"
73 <input type
='checkbox' name
="wpRemember"
75 value
="1" id
="wpRemember"
76 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
77 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
82 <td
class="mw-submit">
83 <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"
85 value
="<?php $this->msg('mailmypassword') ?>" />
90 <?php
if( @$this->haveData( 'uselang' ) ) { ?
><input type
="hidden" name
="uselang" value
="<?php $this->text( 'uselang' ); ?>" /><?php
} ?
>
93 <div id
="loginend"><?php
$this->msgWiki( 'loginend' ); ?
></div
>
102 class UsercreateTemplate
extends QuickTemplate
{
104 if( $this->data
['message'] ) {
106 <div
class="<?php $this->text('messagetype') ?>box">
107 <?php
if ( $this->data
['messagetype'] == 'error' ) { ?
>
108 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
110 <?php
$this->html('message') ?
>
112 <div
class="visualClear"></div
>
116 <form name
="userlogin2" id
="userlogin2" method
="post" action
="<?php $this->text('action') ?>">
117 <h2
><?php
$this->msg('createaccount') ?
></h2
>
118 <p id
="userloginlink"><?php
$this->html('link') ?
></p
>
119 <?php
$this->html('header'); /* pre-table point for form plugins... */ ?
>
120 <?php
if( @$this->haveData( 'languages' ) ) { ?
><div id
="languagelinks"><p
><?php
$this->html( 'languages' ); ?
></p
></div
><?php
} ?
>
123 <td
class="mw-label"><label
for='wpName2'><?php
$this->msg('yourname') ?
></label
></td
>
124 <td
class="mw-input">
125 <input type
='text' class='loginText' name
="wpName" id
="wpName2"
127 value
="<?php $this->text('name') ?>" size
='20' />
131 <td
class="mw-label"><label
for='wpPassword2'><?php
$this->msg('yourpassword') ?
></label
></td
>
132 <td
class="mw-input">
133 <input type
='password' class='loginPassword' name
="wpPassword" id
="wpPassword2"
135 value
="" size
='20' />
138 <?php
if( $this->data
['usedomain'] ) {
140 foreach( $this->data
['domainnames'] as $dom ) {
141 $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
145 <td
class="mw-label"><?php
$this->msg( 'yourdomainname' ) ?
></td
>
146 <td
class="mw-input">
147 <select name
="wpDomain" value
="<?php $this->text( 'domain' ) ?>"
155 <td
class="mw-label"><label
for='wpRetype'><?php
$this->msg('yourpasswordagain') ?
></label
></td
>
156 <td
class="mw-input">
157 <input type
='password' class='loginPassword' name
="wpRetype" id
="wpRetype"
164 <?php
if( $this->data
['useemail'] ) { ?
>
165 <td
class="mw-label"><label
for='wpEmail'><?php
$this->msg('youremail') ?
></label
></td
>
166 <td
class="mw-input">
167 <input type
='text' class='loginText' name
="wpEmail" id
="wpEmail"
169 value
="<?php $this->text('email') ?>" size
='20' />
170 <div
class="prefsectiontip">
171 <?php
if( $this->data
['emailrequired'] ) {
172 $this->msgWiki('prefs-help-email-required');
174 $this->msgWiki('prefs-help-email');
179 <?php
if( $this->data
['userealname'] ) { ?
>
182 <td
class="mw-label"><label
for='wpRealName'><?php
$this->msg('yourrealname') ?
></label
></td
>
183 <td
class="mw-input">
184 <input type
='text' class='loginText' name
="wpRealName" id
="wpRealName"
186 value
="<?php $this->text('realname') ?>" size
='20' />
187 <div
class="prefsectiontip">
188 <?php
$this->msgWiki('prefs-help-realname'); ?
>
195 <td
class="mw-input">
196 <input type
='checkbox' name
="wpRemember"
198 value
="1" id
="wpRemember"
199 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
200 /> <label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
205 <td
class="mw-submit">
206 <input type
='submit' name
="wpCreateaccount" id
="wpCreateaccount"
208 value
="<?php $this->msg('createaccount') ?>" />
209 <?php
if( $this->data
['createemail'] ) { ?
>
210 <input type
='submit' name
="wpCreateaccountMail" id
="wpCreateaccountMail"
212 value
="<?php $this->msg('createaccountmail') ?>" />
217 <?php
if( @$this->haveData( 'uselang' ) ) { ?
><input type
="hidden" name
="uselang" value
="<?php $this->text( 'uselang' ); ?>" /><?php
} ?
>
220 <div id
="signupend"><?php
$this->msgWiki( 'signupend' ); ?
></div
>