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