1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
| <html><title>administrateur</title>
<head><script type="text/javascript" language="javascript">
<!--verification pour les champ -->
function verif(FormA) {
var varcach = document.getElementById('cache');
if(FormA.login.value=="")
{
alert('veuillez saisir votre login!');
return false;
}
if(FormA.passwd.value=="")
{
alert('veuillez saisir votre mot de passe!');
return false;
}
else
{varcach.value ='OK';
document.FormA.submit();
}
}
</script>
<link rel="stylesheet" type="text/css" href="style_bib.css" />
</head>
<?php include('test_login_admin.php'); ?>
<form name="FormA" method="post">
<input name="cache" id="cache" value="NOK" type="hidden" />
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<table border="0" height="200" width="400" class="style1" align="center" background="images/3orxpc2p.jpg">
<?php if ($BienvenueA!="oui"){ ?>
<tr height="20%">
<td width="34%" height="43" class="style311">
<span class="style17">Login: </span></td>
<td width="66%">
<input align="top" type="text" name="login" size=15 maxlength=20>
<br /> </td>
</tr>
<tr height="20%">
<td width="34%" class="style17">
Mot De Passe: </td>
<td >
<input align="top" type="password" name="passwd" size=15 maxlength=20></td>
</tr>
<?php } ?>
<?php if ($BienvenueA=="oui") { header ("Location:page_admin.php"); } ?>
<tr height="20%">
<td colspan="2" align="right" >
<input name="reinitialise" type="reset" value="Réinitialiser" align="top">
<input name="valider" type="submit" value="OK" onClick="verif(FormA)" align="top"> </td>
</tr>
<!--affichage du message d'erreur -->
<?php
if ($login_A=="oui"){ ?>
<tr height="20%">
<td colspan="2" align="right" class="style9">
Login Admin Incorrect!! </td>
</tr><?php } ?>
<?php
if ($Passwd_A=="oui"){ ?>
<tr height="20%">
<td colspan="2" align="right" class="style9" >
Mot de passe Admin Incorrect!! </td>
</tr><?php } ?>
</table>
</form>
</html> |
Partager