1 | <!-- **GBL** >PASSWORD> --> |
---|
2 | {if isset($MENUBAR)}{$MENUBAR}{/if} |
---|
3 | |
---|
4 | <div id="content" class="content"> |
---|
5 | |
---|
6 | <div class="titrePage"> |
---|
7 | <ul class="categoryActions"> |
---|
8 | <li><a id="icon_home" class="button" href="{$U_HOME}" title="{'Home'|@translate}"></a></li> |
---|
9 | </ul> |
---|
10 | <h2>{'Password forgotten'|@translate}</h2> |
---|
11 | </div> |
---|
12 | |
---|
13 | {include file='infos_errors.tpl'} |
---|
14 | |
---|
15 | {if $action != 'none'} |
---|
16 | <form id="lostPassword" action="{$form_action}?action={$action}{if isset($key)}&key={$key}{/if}" method="post"> |
---|
17 | <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> |
---|
18 | |
---|
19 | {if $action == 'lost'} |
---|
20 | <div class="message">{'Please enter your username or email address.'|@translate} {'You will receive a link to create a new password via email.'|@translate}</div> |
---|
21 | |
---|
22 | <p> |
---|
23 | <label> |
---|
24 | {'Username or email'|@translate} |
---|
25 | <br> |
---|
26 | <input type="text" id="username_or_email" name="username_or_email" size="40" maxlength="40"{if isset($username_or_email)} value="{$username_or_email}"{/if}> |
---|
27 | </label> |
---|
28 | </p> |
---|
29 | |
---|
30 | <p class="bottomButtons"><input type="submit" name="submit" value="{'Change my password'|@translate}"></p> |
---|
31 | {elseif $action == 'reset'} |
---|
32 | |
---|
33 | <div class="message">{'Hello'|@translate} <em>{$username}</em>. {'Enter your new password below.'|@translate}</div> |
---|
34 | |
---|
35 | <p> |
---|
36 | <label> |
---|
37 | {'New password'|@translate} |
---|
38 | <br> |
---|
39 | <input type="password" name="use_new_pwd" id="use_new_pwd" value=""> |
---|
40 | </label> |
---|
41 | </p> |
---|
42 | |
---|
43 | <p> |
---|
44 | <label> |
---|
45 | {'Confirm Password'|@translate} |
---|
46 | <br> |
---|
47 | <input type="password" name="passwordConf" id="passwordConf" value=""> |
---|
48 | </label> |
---|
49 | </p> |
---|
50 | |
---|
51 | <p class="bottomButtons"><input type="submit" name="submit" value="{'Submit'|@translate}"></p> |
---|
52 | {/if} |
---|
53 | |
---|
54 | </form> |
---|
55 | {/if} |
---|
56 | |
---|
57 | <script type="text/javascript"> |
---|
58 | {if $action == 'lost'} |
---|
59 | {literal} |
---|
60 | try{ |
---|
61 | document.getElementById('username_or_email').focus(); |
---|
62 | } |
---|
63 | catch(e){} |
---|
64 | {/literal} |
---|
65 | {elseif $action == 'reset'} |
---|
66 | {literal} |
---|
67 | try{ |
---|
68 | document.getElementById('use_new_pwd').focus(); |
---|
69 | } |
---|
70 | catch(e){} |
---|
71 | {/literal} |
---|
72 | {/if} |
---|
73 | </script> |
---|
74 | </div> <!-- content --> |
---|
75 | <!-- **GBL** <PASSWORD< --> |
---|