Fixed error check
[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.
18 * $plugin_extra - Extra table row(s) that may be added by plugin(s).
2f04c558 19 *
3f2cd959 20 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
21 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
22 * @version $Id$
23 * @package squirrelmail
24 * @subpackage templates
25 */
26
27/* retrieve the template vars */
28extract($t);
29
30?>
3f2cd959 31<div id="sqm_login">
3f2cd959 32<table cellspacing="0">
33 <tr>
34 <td class="sqm_loginTop" colspan="2">
2f04c558 35 <?php echo $logo_str; ?>
36 <?php echo $sm_attribute_str; ?>
3f2cd959 37 </td>
38 </tr>
39 <tr>
40 <td class="sqm_loginOrgName" colspan="2">
41 <?php echo $org_name_str; ?>
42 </td>
43 </tr>
44 <tr>
45 <td class="sqm_loginFieldName">
46 <?php echo _("Name:"); ?>
47 </td>
48 <td class="sqm_loginFieldInput">
2f04c558 49 <input type="text" name="login_username" value="<?php echo $login_field_value; ?>" id="login_username" />
3f2cd959 50 </td>
51 </tr>
52 <tr>
53 <td class="sqm_loginFieldName">
54 <?php echo _("Password:"); ?>
55 </td>
56 <td class="sqm_loginFieldInput">
2f04c558 57 <input type="password" name="secretkey" value="" id="secretkey" />
58 <?php echo $login_extra; ?>
3f2cd959 59 </td>
60 </tr>
31633bef 61 <?php echo $plugin_extra; ?>
3f2cd959 62 <tr>
63 <td class="sqm_loginSubmit" colspan="2">
2f04c558 64 <input type="submit" value="<?php echo _("Login"); ?>" />
3f2cd959 65 </td>
66 </tr>
67</table>
3410accc 68</div>