Code

Fixed initial errors
[gosa.git] / gosa-core / ihtml / themes / default / password.tpl
2 <!DOCTYPE html>
3 <html>
4   <head>
5     <title>GOsa - {t}Change your password{/t}</title>
6     <meta name="generator" content="my hands">
7     <meta name="description" content="GOsa - Login">
8     <meta name="author" lang="de" content="Cajus Pollmeier">
9     <meta http-equiv="Expires" content="Mon, 26 Jul 1997 05:00:00 GMT">
10     <meta http-equiv="Last-Modified" content="{$date} GMT">
11     <meta http-equiv="Cache-Control" content="no-cache">
12     <meta http-equiv="Pragma" content="no-cache">
13     <meta http-equiv="Cache-Control" content="post-check=0, pre-check=0">
14     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
15     <meta http-equiv="X-UA-Compatible" content="IE=9">
17     <style type="text/css">@import url('themes/default/style.css');</style>
18     <link rel="stylesheet" type="text/css" href="themes/default/printer.css" media="print">
20     <!--[if IE]>
21     <style type="text/css">
22       div.listContainer { height: 121px; overflow-x:hidden; overflow-y:auto; }
23     </style>
24     <![endif]-->
26     <!-- Include correct theme icon sets -->
27     <style type="text/css">
28       div.img, div.img div, input[type=submit].img{
29         background-image:url(themes/default/images/img.png);
30       }
31     </style>
32     <link rel="shortcut icon" href="favicon.ico">
33     <script language="javascript" src="include/prototype.js" type="text/javascript"></script>
34     <script language="javascript" src="include/gosa.js" type="text/javascript"></script>
35     <script language="javascript" src="include/scriptaculous.js" type="text/javascript"></script>
36     <script language="javascript" src="include/effects.js" type="text/javascript"></script>
37     <script language="javascript" src="include/dragdrop.js" type="text/javascript"></script>
38     <script language="javascript" src="include/controls.js" type="text/javascript"></script>
39     <script language="javascript" src="include/pulldown.js" type="text/javascript"></script>
40     <script language="javascript" src="include/datepicker.js" type="text/javascript"></script>
41   </head>
43   <body>
45     {$php_errors}
47     <div class='title-bar'>
48         <ul>
49             <li>{$logo}</li>
50         </ul>
51     </div>
53     <div style='padding:3px;'>
55     <form action='password.php{$params}' method='post' name='mainform' onSubmit='js_check(this);return true;'>
57         {$msg_dialogs}
59         {if $changed}
61             <h3>{t}Your password has been changed successfully.{/t}</h3>
63         {else}
65                 <h3>{t}Password change{/t}</h3>
67                 {if $ssl}<div class='login-warning'>{$ssl}</div>{/if}
69                 <!-- Display error message on demand -->
70                 {if $message}<div class='login-warning'>{$message}</div>{/if}
72                 <p class="infotext">{t}This dialog provides a simple way to change your password. Enter the current password and the new password (twice) in the fields below and press the 'Change' button.{/t}</p>
74                 <table summary="{t}Change password{/t}">
75                     {if $show_directory_chooser}
76                         <tr>
77                             <td>{t}Directory{/t}</td>
78                             <td>
79                                 <select name='server'  title='{t}Directory{/t}'>
80                                     {html_options options=$server_options selected=$server_id}
81                                 </select>
82                             </td>
83                         </tr>
84                     {/if}
85                 <tr>
86                     <td><b>{t}User name{/t}</b></td>
87                     <td>
88                         {if $display_username}
89                             <input type='text' name='uid' maxlength='40' value='{$uid}' 
90                                 title='{t}User name{/t}' onFocus="nextfield= 'current_password';">
91                         {else}
92                             <i>{$uid}</i>
93                         {/if}
94                     </td>
95                 </tr>
96                 <tr>
97                     <td><b><LABEL for="current_password">{t}Current password{/t}</LABEL></b></td>
98                     <td>
99                         {factory type='password' name='current_password' id='current_password' onfocus="nextfield= 'new_password';"}
100                     </td>
101                 </tr>
102                 <tr>
103                     <td><b><LABEL for="new_password">{t}New password{/t}</LABEL></b></td>
104                     <td>
105                         {factory type='password' name='new_password' id='new_password'
106                             onkeyup="testPasswordCss(\$('new_password').value)"  onfocus="nextfield= 'new_password_repeated';"}
107                     </td>
108                 </tr>
109                 <tr>
110                     <td><b><LABEL for="new_password_repeated">{t}Repeat new password{/t}</LABEL></b></td>
111                     <td>
112                         {factory type='password' name='new_password_repeated' id='new_password_repeated' 
113                                 onfocus="nextfield= 'password_finish';"}
114                     </td>
115                 </tr>
116                 <tr>
117                     <td><b>{t}Password strength{/t}</b></td>
118                     <td>
119                         <span id="meterEmpty" style="padding:0;margin:0;width:100%;
120                                 background-color:#DC143C;display:block;height:7px;">
121                         <span id="meterFull" style="padding:0;margin:0;z-index:100;
122                                 width:0;background-color:#006400;display:block;height:7px;"></span></span>
123                     </td>
124                 </tr>
125             </table>
127             <hr>
129             <div class="plugin-actions">
130                 <button type='submit' name='apply' 
131                     title='{t}Click here to change your password{/t}'>{t}Set password{/t}</button>
132                 <input type='hidden' id='formSubmit'>
133             </div>
136             <!-- check, if cookies are enabled -->
137             <p class='warning'>
138              <script language="JavaScript" type="text/javascript">
139                 <!--
140                     document.cookie = "gosatest=empty;path=/";
141                     if (document.cookie.indexOf( "gosatest=") > -1 )
142                         document.cookie = "gosatest=empty;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT";
143                     else
144                         document.write("{$cookies}");
145                 -->
146              </script>
147             </p>
149           {$errors}
150           <input type="hidden" name="php_c_check" value="1">
152         {/if}
153     </form>
154     </div>
156     <script language="JavaScript" type="text/javascript">
157         next_msg_dialog();
158     </script>
160   </body>
161 </html>