3 * @addtogroup Templates
5 if( !defined( 'MEDIAWIKI' ) ) die( -1 );
8 require_once( 'includes/SkinTemplate.php' );
11 * HTML template for Special:Userlogin form
12 * @addtogroup Templates
14 class UserloginTemplate extends QuickTemplate {
16 if( $this->data['message'] ) {
18 <div class="<?php $this->text('messagetype') ?>box">
19 <?php if ( $this->data['messagetype'] == 'error' ) { ?>
20 <h2><?php $this->msg('loginerror') ?>:</h2>
22 <?php $this->html('message') ?>
24 <div class="visualClear"></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 align='right'><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 align='right'><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 align='right'><?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 align='left' style="white-space:nowrap">
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>
97 * @addtogroup Templates
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 align='right'><label for='wpName2'><?php $this->msg('yourname') ?></label></td>
122 <input type='text' class='loginText' name="wpName" id="wpName2"
124 value="<?php $this->text('name') ?>" size='20' />
128 <td align='right'><label for='wpPassword2'><?php $this->msg('yourpassword') ?></label></td>
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 align='right'><?php $this->msg( 'yourdomainname' ) ?></td>
144 <select name="wpDomain" value="<?php $this->text( 'domain' ) ?>"
152 <td align='right'><label for='wpRetype'><?php $this->msg('yourpasswordagain') ?></label></td>
154 <input type='password' class='loginPassword' name="wpRetype" id="wpRetype"
161 <?php if( $this->data['useemail'] ) { ?>
162 <td align='right' style='vertical-align: top'><label for='wpEmail'><?php $this->msg('youremail') ?></label></td>
164 <input type='text' class='loginText' name="wpEmail" id="wpEmail"
166 value="<?php $this->text('email') ?>" size='20' />
167 <div class="prefsectiontip">
168 <?php $this->msgWiki('prefs-help-email'); ?>
172 <?php if( $this->data['userealname'] ) { ?>
175 <td align='right' style='vertical-align: top'><label for='wpRealName'><?php $this->msg('yourrealname') ?></label></td>
177 <input type='text' class='loginText' name="wpRealName" id="wpRealName"
179 value="<?php $this->text('realname') ?>" size='20' />
180 <div class="prefsectiontip">
181 <?php $this->msgWiki('prefs-help-realname'); ?>
189 <input type='checkbox' name="wpRemember"
191 value="1" id="wpRemember"
192 <?php if( $this->data['remember'] ) { ?>checked="checked"<?php } ?>
193 /> <label for="wpRemember"><?php $this->msg('remembermypassword') ?></label>
199 <input type='submit' name="wpCreateaccount" id="wpCreateaccount"
201 value="<?php $this->msg('createaccount') ?>" />
202 <?php if( $this->data['createemail'] ) { ?>
203 <input type='submit' name="wpCreateaccountMail" id="wpCreateaccountMail"
205 value="<?php $this->msg('createaccountmail') ?>" />
210 <?php if( @$this->haveData( 'uselang' ) ) { ?><input type="hidden" name="uselang" value="<?php $this->text( 'uselang' ); ?>" /><?php } ?>
213 <div id="signupend"><?php $this->msgWiki( 'signupend' ); ?></div>