Code

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