1 | <div id="mainBox"> |
---|
2 | {if isset($MENUBAR)}{$MENUBAR}{/if} |
---|
3 | {combine_script id='menu.switch' load='footer' require='jquery' path='themes/Versa/js/menuswitch.js'} |
---|
4 | |
---|
5 | <div id="contentBox"> |
---|
6 | |
---|
7 | <div id="content" class="content"> |
---|
8 | <div class="titrePage"> |
---|
9 | <ul class="categoryActions"> |
---|
10 | </ul> |
---|
11 | |
---|
12 | <h2><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}{$title}</h2> |
---|
13 | </div> |
---|
14 | |
---|
15 | {include file='infos_errors.tpl'} |
---|
16 | |
---|
17 | {if $action ne 'none'} |
---|
18 | <form id="lostPassword" action="{$form_action}?action={$action}{if isset($key)}&key={$key}{/if}" method="post"> |
---|
19 | <fieldset> |
---|
20 | <legend>{'Forgot your password?'|translate}</legend> |
---|
21 | <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> |
---|
22 | |
---|
23 | {if $action eq 'lost'} |
---|
24 | <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> |
---|
25 | |
---|
26 | <p> |
---|
27 | <label> |
---|
28 | {'Username or email'|@translate} |
---|
29 | <br> |
---|
30 | <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}> |
---|
31 | </label> |
---|
32 | </p> |
---|
33 | |
---|
34 | <p class="bottomButtons"><input type="submit" name="submit" value="{'Change my password'|@translate}"></p> |
---|
35 | {elseif $action eq 'reset'} |
---|
36 | |
---|
37 | <div class="message">{'Hello'|@translate} <em>{$username}</em>. {'Enter your new password below.'|@translate}</div> |
---|
38 | |
---|
39 | <p> |
---|
40 | <label> |
---|
41 | {'New password'|@translate} |
---|
42 | <br> |
---|
43 | <input type="password" name="use_new_pwd" id="use_new_pwd" value=""> |
---|
44 | </label> |
---|
45 | </p> |
---|
46 | |
---|
47 | <p> |
---|
48 | <label> |
---|
49 | {'Confirm Password'|@translate} |
---|
50 | <br> |
---|
51 | <input type="password" name="passwordConf" id="passwordConf" value=""> |
---|
52 | </label> |
---|
53 | </p> |
---|
54 | </fieldset> |
---|
55 | <p class="bottomButtons"><input type="submit" name="submit" value="{'Submit'|@translate}"></p> |
---|
56 | {/if} |
---|
57 | |
---|
58 | </form> |
---|
59 | {/if} {* $action ne 'none' *} |
---|
60 | |
---|
61 | <script type="text/javascript"> |
---|
62 | {if $action eq 'lost'} |
---|
63 | {literal}try{document.getElementById('username_or_email').focus();}catch(e){}{/literal} |
---|
64 | {elseif $action eq 'reset'} |
---|
65 | {literal}try{document.getElementById('use_new_pwd').focus();}catch(e){}{/literal} |
---|
66 | {/if} |
---|
67 | </script> |
---|
68 | |
---|
69 | </div> <!-- content --> |
---|
70 | </div> <!-- contentBox --> |
---|
71 | </div> <!-- mainBox --> |
---|