Code

9dd1f0233090f6fcbcb8d888c86ebc7479aeaa80
[gosa.git] / ihtml / themes / default / login.tpl
1 <body style="background-color: #8B858B;background-image:none;">
2 {* GOsa login - smarty template *}
3 {$php_errors}
5 <!-- Spacer for some browsers -->
6 <div class='gosaLoginSpacer'></div>
8 <table summary="" class='gosaLoginMask' style="text-align:right;" align='center'>
9  <tr>
10   <td class='gosaLoginBack' style="width:606px;">
11    <div class='gosaLoginBack'>
12        
13     <p class='gosaLoginHeader'>
14         {t}Please use your username and password to log in{/t}
15     </p>
16   
17     <!-- Display SSL warning message on demand -->
18     <p class='gosaLoginWarning'> {$ssl} </p>
19              <!-- Display SSL warning message on demand -->
20     <p class='gosaLoginWarning'> {$ssl} </p>
21  
22     <!-- Formular data, containing a table to center fields -->
23     <form action='index.php' method='post' name='mainform' onSubmit='js_check(this);return true;'>
24      {$errors}
25      <table summary="" style='vertical-align:middle; text-align:left;' cellspacing='7' align='center'>
26       <tr>
27         <td>
28           <img src='{$personal_img}' alt='{t}Username{/t}' title='{t}Username{/t}'>
29         </td>
30         <td>
31           <input type='text' name='username' maxlength='25' value='{$username}'
32                  title='{t}Username{/t}' onFocus="nextfield= 'password';">
33         </td>
34       </tr>
35       <tr>
36         <td>
37           <img src='{$password_img}' alt='{t}Password{/t}' title='{t}Password{/t}'>
38         </td>
39         <td>
40           <input type='password' name='password' maxlength='25' value=''
41                  title='{t}Password{/t}' onFocus="nextfield= 'login';">
42         </td>
43       </tr>
44       <tr>
45         <td>
46           <img src='{$directory_img}' alt='{t}Directory{/t}' title='{t}Directory{/t}'>
47         </td>
48         <td style='text-align:left;'>
49           <select name='server'  title='{t}Directory{/t}'>
50             {html_options options=$server_options selected=$server_id}
51           </select>
52         </td>
53       </tr>
54       <tr>
55         <td colspan='2' style='text-align:right;'>
56           <br />
57           <input type='submit' name='login' value='{t}Sign in{/t}'
58                  title='{t}Click here to log in{/t}'>
59         </td>
60       </tr>
61      </table>
62                 <input type='hidden' name='javascript' value='false'/>          
63     </form>
65     <!-- Display error message on demand -->
66     <p class='gosaLoginWarning'> {$message} </p>
67     <!-- check, if cookies are enabled -->
68     <p class='gosaLoginWarning'>
69      <script language="JavaScript" type="text/javascript">
70         <!--
71             document.cookie = "gosatest=empty;path=/";
72             if (document.cookie.indexOf( "gosatest=") > -1 )
73                 document.cookie = "gosatest=empty;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT";
74             else
75                 document.write("{$cookies}");
76         -->
77      </script>
78     </p>
82    </div>
83   </td>
84  </tr>
85 </table>
87 <!-- Place cursor in username field -->
88 <script language="JavaScript" type="text/javascript">
89   <!-- // First input field on page
90   nextfield= "{$nextfield}";
91   document.mainform.{$nextfield}.focus();
92   -->
93 </script>
95 <!-- Spacer for some browsers -->
96 <div class='gosaLoginSpacer'></div>
97 </body>