Last change
on this file since 1337 was
1337,
checked in by popeye, 11 years ago
|
Corrections diverses et ajout d'un index/follow dans les metas
|
File size:
1.2 KB
|
Line | |
---|
1 | <?php if(!$sf_user->isAuthenticated()) { ?> |
---|
2 | <form method="post" id="form_header_login" action="<?php echo url_for('@signin'); ?>"> |
---|
3 | <p> |
---|
4 | <input type="text" name="signin[login]" id='header_login' value="" onfocus="if(this.value=='Identifiant')this.value ='';" onblur="if(this.value=='')this.value ='Identifiant';" /> |
---|
5 | <input type="password" name="signin[password]" id='header_pass' value="" onfocus="if(this.value=='______________')this.value ='';" onblur="if(this.value=='')this.value ='______________';"/> |
---|
6 | <input type="checkbox" name="signin[remember]" id="header_remember" title="se rappeler de moi" /> |
---|
7 | <button type="submit" value="login" id="bt1"></button> |
---|
8 | <a href="<?php echo url_for('@inscription') ?>"><span id="bt2"></span></a> |
---|
9 | </p> |
---|
10 | </form> |
---|
11 | <?php } else |
---|
12 | { |
---|
13 | echo '<div style="padding-top: 7px;"><span id="loggued_top">'; |
---|
14 | if($sf_user->getAttribute('is_active') == true) { |
---|
15 | echo link_to($sf_user->getAttribute('login'),'@citoyen?slug='.$sf_user->getAttribute('slug')).' - '; |
---|
16 | } else { |
---|
17 | echo $sf_user->getAttribute('login').' (e-mail non-validé) - '; |
---|
18 | } |
---|
19 | echo link_to('Déconnexion','@signout'); echo '</span></div>'; |
---|
20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.