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