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='dialogs.tpl'} |
---|
14 | |
---|
15 | |
---|
16 | {if $action != 'none'} |
---|
17 | <form id="lostPassword" action="{$form_action}?action={$action}{if isset($key)}&key={$key}{/if}" method="post"> |
---|
18 | |
---|
19 | <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> |
---|
20 | |
---|
21 | {if $action == 'lost'} |
---|
22 | <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> |
---|
23 | |
---|
24 | <p> |
---|
25 | <label> |
---|
26 | {'Username or email'|@translate} |
---|
27 | <br> |
---|
28 | <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}> |
---|
29 | </label> |
---|
30 | </p> |
---|
31 | |
---|
32 | <p class="bottomButtons"> |
---|
33 | <input type="submit" name="submit" value="{'Change my password'|@translate}"> |
---|
34 | </p> |
---|
35 | |
---|
36 | {elseif $action == 'reset'} |
---|
37 | |
---|
38 | <div class="message">{'Hello'|@translate} <em>{$username}</em>. {'Enter your new password below.'|@translate}</div> |
---|
39 | |
---|
40 | <p> |
---|
41 | <label> |
---|
42 | {'New password'|@translate} |
---|
43 | <br> |
---|
44 | <input type="password" name="use_new_pwd" id="use_new_pwd" value=""> |
---|
45 | </label> |
---|
46 | </p> |
---|
47 | |
---|
48 | <p> |
---|
49 | <label> |
---|
50 | {'Confirm Password'|@translate} |
---|
51 | <br> |
---|
52 | <input type="password" name="passwordConf" id="passwordConf" value=""> |
---|
53 | </label> |
---|
54 | </p> |
---|
55 | |
---|
56 | <p class="bottomButtons"> |
---|
57 | <input type="submit" name="submit" value="{'Submit'|@translate}"> |
---|
58 | </p> |
---|
59 | |
---|
60 | {/if} |
---|
61 | |
---|
62 | </form> |
---|
63 | {/if} |
---|
64 | |
---|
65 | <script type="text/javascript"> |
---|
66 | {if $action == 'lost'} |
---|
67 | {literal} |
---|
68 | try{ |
---|
69 | document.getElementById('username_or_email').focus(); |
---|
70 | } |
---|
71 | catch(e){} |
---|
72 | {/literal} |
---|
73 | {elseif $action == 'reset'} |
---|
74 | {literal} |
---|
75 | try{ |
---|
76 | document.getElementById('use_new_pwd').focus(); |
---|
77 | } |
---|
78 | catch(e){} |
---|
79 | {/literal} |
---|
80 | {/if} |
---|
81 | |
---|
82 | </script> |
---|
83 | </div> <!-- content --> |
---|
84 | |
---|
85 | |
---|
86 | <!-- **GBL** <PASSWORD< --> |
---|