6c026667 |
1 | <?php |
2 | /** |
3 | * login.tpl |
4 | * |
5 | * Template to create the login page |
6 | * |
7 | * The following variables are available to this template: |
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. |
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. |
c15e725c |
18 | * $plugin_output - An array of extra output that may be added by |
c53099a2 |
19 | * plugin(s). |
c15e725c |
20 | * |
6c026667 |
21 | * @copyright © 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 | |
6c026667 |
28 | |
29 | /* retrieve the template vars */ |
30 | extract($t); |
31 | |
32 | ?> |
33 | <div id="sqm_login"> |
34 | <table cellspacing="0"> |
35 | <tr> |
36 | <td colspan="2"> |
6a2f6835 |
37 | <?php echo getIcon($icon_theme_path, 'login1.png', '', _("The SquirrelMail logo")); ?> |
6c026667 |
38 | </td> |
39 | </tr> |
40 | <tr> |
41 | <td class="orgName" colspan="2"> |
42 | <?php echo $org_name_str; ?> |
43 | </td> |
44 | </tr> |
45 | <tr> |
46 | <td class="attr" colspan="2"> |
4d6f5b55 |
47 | <?php echo nl2br($sm_attribute_str) . (empty($sm_attribute_str) ? '' : '<br /><br />'); ?> |
6c026667 |
48 | </td> |
49 | </tr> |
50 | <tr> |
51 | <td class="orgLogo"> |
6a2f6835 |
52 | <img src="<?php echo $logo_path; ?>" width="50" alt="<?php echo _("The service provider's logo"); ?>" /> |
6c026667 |
53 | </td> |
54 | <td> |
55 | <table cellspacing="0"> |
56 | <tr> |
57 | <td class="fieldName"> |
58 | <?php echo _("Name:"); ?> |
59 | </td> |
60 | <td class="fieldInput"> |
61 | <input type="text" name="login_username" value="<?php echo $login_field_value; ?>" id="login_username" class="input" /> |
62 | </td> |
63 | </tr> |
64 | <tr> |
65 | <td class="fieldName"> |
66 | <?php echo _("Password:"); ?> |
67 | </td> |
68 | <td class="fieldInput"> |
69 | <input type="password" name="secretkey" value="" id="secretkey" class="input" /> |
70 | <?php echo $login_extra; ?> |
71 | </td> |
72 | </tr> |
c53099a2 |
73 | <?php if (!empty($plugin_output['login_form'])) echo $plugin_output['login_form']; ?> |
6c026667 |
74 | <tr> |
75 | <td class="loginSubmit" colspan="2"> |
fe549255 |
76 | <input type="image" src="<?php echo getIconPath($icon_theme_path, 'login_submit.png', _("Login"), _("Login")); ?>" alt="<?php echo _("Login"); ?>" /> |
6c026667 |
77 | </td> |
78 | </tr> |
79 | </table> |
80 | </td> |
81 | </tr> |
82 | </table> |
3410accc |
83 | </div> |