1 | {if isset($U_LOGIN)} |
---|
2 | <li class="liSub"> |
---|
3 | |
---|
4 | {* |
---|
5 | <span class="dd_wrapper">{'Identification'|@translate}</span> |
---|
6 | <div class="sub"> |
---|
7 | ------option1: le menu se referme quand on perd le hover: problème avec l'auto-completion des navigateurs, pour corriger: attribuer la valeur off à autocomplet de l'input username ------*} |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | |
---|
12 | <span class="cl_wrapper">{'Identification'|@translate}</span> |
---|
13 | <div id="loger"> |
---|
14 | <div class="close"> |
---|
15 | </div> |
---|
16 | {*------option2:le menu identification se referme en cliquant l'onglet ou la croix fermer------*} |
---|
17 | |
---|
18 | {*<span class="cc_wrapper">{'Identification'|@translate}</span> |
---|
19 | <div id="loger"> |
---|
20 | <div class="close"> |
---|
21 | </div> |
---|
22 | ------option3:le menu souvre au click et autocomplete est on-----*} |
---|
23 | |
---|
24 | |
---|
25 | <form method="post" action="{$U_LOGIN}" id="quickconnect"> |
---|
26 | <div id="log"> |
---|
27 | <div class="contenLog"> |
---|
28 | <label for="username">{'Username'|@translate}</label> |
---|
29 | <input type="text" autocomplete="on" name="username" id="username" value="" style="width:100%"> |
---|
30 | </div> |
---|
31 | |
---|
32 | <div class="contenLog"> |
---|
33 | <label for="password">{'Password'|@translate}</label> |
---|
34 | <input type="password" name="password" id="password" style="width:100%"> |
---|
35 | </div> |
---|
36 | |
---|
37 | {if $AUTHORIZE_REMEMBERING} |
---|
38 | <div><label for="remember_me"> |
---|
39 | {'Auto login'|@translate} |
---|
40 | <input type="checkbox" name="remember_me" id="remember_me" value="1"> |
---|
41 | </label> |
---|
42 | {/if} |
---|
43 | </div> |
---|
44 | <div id="go"> |
---|
45 | <input type="hidden" name="redirect" value="{$smarty.server.REQUEST_URI|@urlencode}"> |
---|
46 | <input class="submit" type="submit" name="login" value="{'Login'|@translate}"> |
---|
47 | </div> |
---|
48 | </div> |
---|
49 | <ul> |
---|
50 | {if isset($U_REGISTER)} |
---|
51 | <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a></li> |
---|
52 | {/if} |
---|
53 | |
---|
54 | <li><a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" rel="nofollow">{'Forgot your password?'|@translate}</a></li> |
---|
55 | </ul> |
---|
56 | </form> |
---|
57 | </div> |
---|
58 | |
---|
59 | </li> |
---|
60 | |
---|
61 | {else} |
---|
62 | |
---|
63 | <li class="liSub"> |
---|
64 | |
---|
65 | <span class="dd_wrapper">{'Identification'|@translate}</span> |
---|
66 | <div style="opacity: 0; display: none; " class="sub"> |
---|
67 | |
---|
68 | {if isset($USERNAME)} |
---|
69 | <p>{'Hello'|@translate} {$USERNAME} !</p> |
---|
70 | {/if} |
---|
71 | |
---|
72 | <ul> |
---|
73 | {if isset($U_REGISTER)} |
---|
74 | <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}" rel="nofollow">{'Register'|@translate}</a></li> |
---|
75 | {/if} |
---|
76 | |
---|
77 | {if isset($U_LOGIN)} |
---|
78 | <li><a href="{$U_LOGIN}" rel="nofollow">{'Login'|@translate}</a></li> |
---|
79 | {/if} |
---|
80 | |
---|
81 | {if isset($U_LOGOUT)} |
---|
82 | <li><a href="{$U_LOGOUT}">{'Logout'|@translate}</a></li> |
---|
83 | {/if} |
---|
84 | |
---|
85 | {if isset($U_PROFILE)} |
---|
86 | <li><a href="{$U_PROFILE}" title="{'customize the appareance of the gallery'|@translate}">{'Customize'|@translate}</a></li> |
---|
87 | {/if} |
---|
88 | |
---|
89 | {if isset($U_ADMIN)} |
---|
90 | <li><a href="{$U_ADMIN}" title="{'available for administrators only'|@translate}">{'Administration'|@translate}</a></li> |
---|
91 | {/if} |
---|
92 | </ul> |
---|
93 | </li> |
---|
94 | {/if} |
---|