| 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 form fields needed by SquirrelMail |
| 16 | * for the login. Template designers SHOULD ALWAYS |
| 17 | * INCLUDE this value somewhere in the form. |
| 18 | * $plugin_output - An array of extra output that may be added by |
| 19 | * plugin(s). |
| 20 | * |
| 21 | * @copyright 1999-2024 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 */ |
| 29 | extract($t); |
| 30 | |
| 31 | ?><body onload="squirrelmail_loginpage_onload()"> |
| 32 | <form name="login_form" id="login_form" action="redirect.php" method="post" onsubmit="document.login_form.js_autodetect_results.value=1"> |
| 33 | <?php if (!empty($plugin_output['login_top'])) echo $plugin_output['login_top']; ?> |
| 34 | <div id="sqm_login"> |
| 35 | <table cellspacing="0"> |
| 36 | <tr> |
| 37 | <td class="sqm_loginTop" colspan="2"> |
| 38 | <?php |
| 39 | echo $logo_str; if (!empty($logo_str)) echo '<br />'; |
| 40 | echo nl2br($sm_attribute_str) . (empty($sm_attribute_str) ? '' : '<br /><br />'); |
| 41 | ?> |
| 42 | </td> |
| 43 | </tr> |
| 44 | <tr> |
| 45 | <td class="sqm_loginOrgName" colspan="2"> |
| 46 | <?php echo $org_name_str; ?> |
| 47 | </td> |
| 48 | </tr> |
| 49 | <tr> |
| 50 | <td class="sqm_loginFieldName"><label for="login_username"> |
| 51 | <?php echo _("Name:"); ?> |
| 52 | </label></td> |
| 53 | <td class="sqm_loginFieldInput"> |
| 54 | <input type="text" name="<?php global $username_form_name; echo $username_form_name; ?>" value="<?php echo $login_field_value; ?>" id="login_username" onfocus="alreadyFocused=true;" <?php global $username_form_extra; echo $username_form_extra; ?> /> |
| 55 | </td> |
| 56 | </tr> |
| 57 | <tr> |
| 58 | <td class="sqm_loginFieldName"><label for="secretkey"> |
| 59 | <?php echo _("Password:"); ?> |
| 60 | </label></td> |
| 61 | <td class="sqm_loginFieldInput"> |
| 62 | <input type="password" name="<?php global $password_form_name; echo $password_form_name; ?>" value="" id="secretkey" onfocus="alreadyFocused=true;" <?php global $password_form_extra; echo $password_form_extra; ?> /> |
| 63 | <?php echo $login_extra; ?> |
| 64 | </td> |
| 65 | </tr> |
| 66 | <?php if (!empty($plugin_output['login_form'])) echo $plugin_output['login_form']; ?> |
| 67 | <tr> |
| 68 | <td class="sqm_loginSubmit" colspan="2"> |
| 69 | <input type="submit" value="<?php echo _("Login"); ?>" /> |
| 70 | </td> |
| 71 | </tr> |
| 72 | </table> |
| 73 | </div> |
| 74 | </form> |