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 |
15 | * $login_extra - Some extra fields needed by SquirrelMail for the |
16 | * login. YOU SHOULD ALWAYS INCLUDE THIS FIELD!! |
17 | * |
18 | * @copyright © 1999-2006 The SquirrelMail Project Team |
19 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
20 | * @version $Id$ |
21 | * @package squirrelmail |
22 | * @subpackage templates |
23 | */ |
24 | |
25 | // add includes |
26 | require(SM_PATH . 'templates/util_global.php'); |
27 | |
28 | /* retrieve the template vars */ |
29 | extract($t); |
30 | |
31 | ?> |
32 | <div id="sqm_login"> |
33 | <table cellspacing="0"> |
34 | <tr> |
35 | <td colspan="2"> |
36 | <?php echo getIcon($icon_theme_path, 'login1.png', _("Login"), _("Login")); ?> |
37 | </td> |
38 | </tr> |
39 | <tr> |
40 | <td class="orgName" colspan="2"> |
41 | <?php echo $org_name_str; ?> |
42 | </td> |
43 | </tr> |
44 | <tr> |
45 | <td class="attr" colspan="2"> |
46 | <?php echo $sm_attribute_str; ?> |
47 | </td> |
48 | </tr> |
49 | <tr> |
50 | <td class="orgLogo"> |
51 | <img src="<?php echo $logo_path; ?>" width="50px" /> |
52 | </td> |
53 | <td> |
54 | <table cellspacing="0"> |
55 | <tr> |
56 | <td class="fieldName"> |
57 | <?php echo _("Name:"); ?> |
58 | </td> |
59 | <td class="fieldInput"> |
60 | <input type="text" name="login_username" value="<?php echo $login_field_value; ?>" id="login_username" class="input" /> |
61 | </td> |
62 | </tr> |
63 | <tr> |
64 | <td class="fieldName"> |
65 | <?php echo _("Password:"); ?> |
66 | </td> |
67 | <td class="fieldInput"> |
68 | <input type="password" name="secretkey" value="" id="secretkey" class="input" /> |
69 | <?php echo $login_extra; ?> |
70 | </td> |
71 | </tr> |
72 | <tr> |
73 | <td class="loginSubmit" colspan="2"> |
74 | <input type="image" src="<?php echo getIconPath($icon_theme_path, 'login_submit.png'); ?>" alt="<?php echo _("Login"); ?>" /> |
75 | </td> |
76 | </tr> |
77 | </table> |
78 | </td> |
79 | </tr> |
80 | </table> |
81 | </div> |