1 | {php} |
---|
2 | global $conf; |
---|
3 | $this->assign('LEVEL_SEPARATOR', $conf[ 'level_separator' ]); |
---|
4 | {/php} |
---|
5 | <div class="titrePage"> |
---|
6 | <div class="browsePath"> |
---|
7 | <h2> |
---|
8 | {if isset($MENUBAR)} |
---|
9 | <span id="menuswitcher" title="{'Show/hide menu'|@translate}">{'Menu'|@translate}</span><span class="arrow"> »</span> |
---|
10 | {/if} |
---|
11 | <a href="{$U_HOME}">{'Home'|@translate}</a> |
---|
12 | {$LEVEL_SEPARATOR}{$title} |
---|
13 | </h2> |
---|
14 | </div> |
---|
15 | </div> |
---|
16 | <div id="content"> |
---|
17 | {if isset($MENUBAR)}{$MENUBAR}{/if} |
---|
18 | <div id="content_cell"> |
---|
19 | <div class="content_block"> |
---|
20 | {if count($errors)} |
---|
21 | <div class="errors"> |
---|
22 | <ul> |
---|
23 | {foreach from=$errors item=error} |
---|
24 | <li>{$error}</li> |
---|
25 | {/foreach} |
---|
26 | </ul> |
---|
27 | </div> |
---|
28 | {/if} |
---|
29 | {if count($infos)} |
---|
30 | <div class="infos"> |
---|
31 | <ul> |
---|
32 | {foreach from=$infos item=info} |
---|
33 | <li>{$info}</li> |
---|
34 | {/foreach} |
---|
35 | </ul> |
---|
36 | </div> |
---|
37 | {/if} |
---|
38 | {if $action ne 'none'} |
---|
39 | <form id="lostPassword" action="{$form_action}?action={$action}{if isset($key)}&key={$key}{/if}" method="post"> |
---|
40 | <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> |
---|
41 | {if $action eq 'lost'} |
---|
42 | <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> |
---|
43 | <p> |
---|
44 | <label> |
---|
45 | {'Username or email'|@translate} |
---|
46 | <br> |
---|
47 | <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}> |
---|
48 | </label> |
---|
49 | </p> |
---|
50 | <p class="bottomButtons"><input class="submit" type="submit" name="submit" value="{'Change my password'|@translate}"></p> |
---|
51 | {elseif $action eq 'reset'} |
---|
52 | <div class="message">{'Hello'|@translate} <em>{$username}</em>. {'Enter your new password below.'|@translate}</div> |
---|
53 | <p> |
---|
54 | <label> |
---|
55 | {'New password'|@translate} |
---|
56 | <br> |
---|
57 | <input type="password" name="use_new_pwd" id="use_new_pwd" value=""> |
---|
58 | </label> |
---|
59 | </p> |
---|
60 | <p> |
---|
61 | <label> |
---|
62 | {'Confirm Password'|@translate} |
---|
63 | <br> |
---|
64 | <input type="password" name="passwordConf" id="passwordConf" value=""> |
---|
65 | </label> |
---|
66 | </p> |
---|
67 | <p class="bottomButtons"><input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"></p> |
---|
68 | {/if} |
---|
69 | </form> |
---|
70 | {/if} {* $action ne 'none' *} |
---|
71 | |
---|
72 | <script type="text/javascript"> |
---|
73 | {if $action eq 'lost'} |
---|
74 | {literal}try{document.getElementById('username_or_email').focus();}catch(e){}{/literal} |
---|
75 | {elseif $action eq 'reset'} |
---|
76 | {literal}try{document.getElementById('use_new_pwd').focus();}catch(e){}{/literal} |
---|
77 | {/if} |
---|
78 | </script> |
---|
79 | </div> |
---|
80 | </div> |
---|
81 | </div> <!-- content --> |
---|