1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script type="text/javascript">
<!--
function cacher(nb) {
document.getElementById(nb).style.visibility="HIDDEN"
}
function afficher(nb) {
document.getElementById(nb).style.visibility="VISIBLE"
cacher(login)
}-->
</script>
if ($identified==true)
{ ?>
Vous êtes authentifié, <a href='url_de_logout'>cliquez ici pour vous déconnecter</a>
<?php } else { ?>
Vous n'êtes pas authentifié, <a href='#' onclick="javascript:afficher('login')>cliquez ici pour vous connecter</a>
<form>
<label for="form_login" id="login">code_formulaire_login</label>
</form>
<?php } ?> |
Partager