1 {* GOsa login - smarty template *}
3 <!-- Spacer for some browsers -->
4 {$errors}
5 {$php_errors}
6 <div class='gosaLoginSpacer'></div>
8 <table class='gosaLoginMask' align='center'>
9 <tr>
10 <td class='gosaLoginBack'>
11 <div class='gosaLoginBack'>
13 <p class='gosaLoginHeader'>
14 {t}Please use your <i>username</i> and <i>password</i> to log in{/t}
15 </p>
17 <!-- Display SSL warning message on demand -->
18 <p class='gosaLoginWarning'> {$ssl} </p>
20 <!-- Formular data, containing a table to center fields -->
21 <form action='index.php' method='post' name='mainform'>
22 <table style='align:center; text-align:left;' cellspacing='7' align='center'>
23 <tr>
24 <td>
25 <img src='{$personal_img}' alt='{t}Username{/t}' title='{t}Username{/t}'>
26 </td>
27 <td>
28 <input type='text' name='username' maxlength='25' value='{$username}'
29 title='{t}Username{/t}' onFocus="nextfield= 'password';">
30 </td>
31 </tr>
32 <tr>
33 <td>
34 <img src='{$password_img}' alt='{t}Password{/t}' title='{t}Password{/t}'>
35 </td>
36 <td>
37 <input type='password' name='password' maxlength='25' value=''
38 title='{t}Password{/t}' onFocus="nextfield= 'login';">
39 </td>
40 </tr>
41 <tr>
42 <td>
43 <img src='{$directory_img}' alt='{t}Directory{/t}' title='{t}Directory{/t}'>
44 </td>
45 <td style='text-align:left;'>
46 <select name='server' title='{t}Directory{/t}'>
47 {html_options options=$server_options selected=$server_id}
48 </select>
49 </td>
50 </tr>
51 <tr>
52 <td colspan='2' style='text-align:right;'>
53 <br>
54 <input type='submit' name='login' value='{t}Sign in{/t}'
55 title='{t}Click here to log in{/t}'>
56 </td>
57 </tr>
58 </table>
59 </form>
61 <!-- Display error message on demand -->
62 <p class='gosaLoginWarning'> {$message} </p>
64 </div>
65 </td>
66 </tr>
67 </table>
69 <!-- Place cursor in username field -->
70 <script language="JavaScript" type="text/javascript">
71 <!-- // First input field on page
72 nextfield= "{$nextfield}";
73 document.mainform.{$nextfield}.focus();
74 -->
75 </script>
77 <!-- Spacer for some browsers -->
78 <div class='gosaLoginSpacer'></div>