Add 'edit list' type option widget
[squirrelmail.git] / templates / default / login.tpl
CommitLineData
3f2cd959 1<?php
2/**
3 * login.tpl
4 *
5 * Template to create the login page
6 *
2f04c558 7 * The following variables are available to this template:
7f69e141 8 * $logo_str - string containing HTML to display the org logo
9 * $logo_path - path to the org logo, in case you want to do
10 * something else with it.
2f04c558 11 * $sm_attribute_str - string containg SQM attributes. Will be empty if
12 * this has been disabled by the admin.
13 * $org_name_str - translated string containing orginization's name
14 * $login_field_value - default value for the user name field
31633bef 15 * $login_extra - Some extra form fields needed by SquirrelMail
16 * for the login. Template designers SHOULD ALWAYS
17 * INCLUDE this value somewhere in the form.
c53099a2 18 * $plugin_output - An array of extra output that may be added by
19 * plugin(s).
2f04c558 20 *
3f2cd959 21 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
22 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
23 * @version $Id$
24 * @package squirrelmail
25 * @subpackage templates
26 */
27
28/* retrieve the template vars */
29extract($t);
30
31?>
3f2cd959 32<div id="sqm_login">
3f2cd959 33<table cellspacing="0">
34 <tr>
35 <td class="sqm_loginTop" colspan="2">
a2f1c042 36 <?php
37 echo $logo_str; if (!empty($logo_str)) echo '<br />';
38 echo nl2br($sm_attribute_str) . (empty($sm_attribute_str) ? '' : '<br /><br />');
39 ?>
3f2cd959 40 </td>
41 </tr>
42 <tr>
43 <td class="sqm_loginOrgName" colspan="2">
44 <?php echo $org_name_str; ?>
45 </td>
46 </tr>
47 <tr>
48 <td class="sqm_loginFieldName">
49 <?php echo _("Name:"); ?>
50 </td>
51 <td class="sqm_loginFieldInput">
0bdd0f3e 52 <input type="text" name="login_username" value="<?php echo $login_field_value; ?>" id="login_username" onfocus="alreadyFocused=true;" />
3f2cd959 53 </td>
54 </tr>
55 <tr>
56 <td class="sqm_loginFieldName">
57 <?php echo _("Password:"); ?>
58 </td>
59 <td class="sqm_loginFieldInput">
0bdd0f3e 60 <input type="password" name="secretkey" value="" id="secretkey" onfocus="alreadyFocused=true;" />
2f04c558 61 <?php echo $login_extra; ?>
3f2cd959 62 </td>
63 </tr>
c53099a2 64 <?php if (!empty($plugin_output['login_form'])) echo $plugin_output['login_form']; ?>
3f2cd959 65 <tr>
66 <td class="sqm_loginSubmit" colspan="2">
2f04c558 67 <input type="submit" value="<?php echo _("Login"); ?>" />
3f2cd959 68 </td>
69 </tr>
70</table>
3410accc 71</div>