B. QUELQUES CODES
1. LOGIN
<DOCTYPE html>
<html>
<head>
<title>login</title>
<link rel="stylesheet" type="text/css"
href="forme.css">
<meta>
</head>
<body>
<form Method="POST" Action="server.php">
<div class="entete">
<div
class="header"><h1>indentification</h1></div>
<tr>
<!--td><h1>indentification</h1></td!-->
</tr>
<div class="input-group">
<tr>
<label>Nom utilisateur</label><input
type="text" id="Nom_utilisateur" name="Nom_utilisateur"></td>
</tr>
</div>
<tr>
<div class="input-group">
<label>Mot de passe</label>
<td><input type="password" id="Mot_de_passe"
name="Mot_de_passe"></td>
</tr>
</div><br>
<tr>
<td><input type="submit" id="Envoyer" name="Envoyer"
value="OK" class="btn"></td>
</tr>
</div>
</table>
</form>
</body>
</html>
2. INDEX
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<meta>
<title>MEMOIRE</title>
<link rel="stylesheet" type="" href="style.css">
<link rel="icon" type="image/x-icon"
href="img/py/avantgarde-concept-634224-unsplash.jpg">
</head>
<body>
<table width="1307" border="0" cellpadding="0"
cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td height="63" colspan="2" valign="top"
bgcolor="#666666"><?php include("banniere.php");?></td>
</tr>
<tr>
<td width="266" height="502" valign="top"
bgcolor="#999999"><?php include("menu.php");?></td>
<td width="1041" valign="top" bgcolor="#CCCCCC">
<?php
switch (@ $_GET['page'])
{
case 'page_accueil':include('page_accueil.php'); break;
case 'page_client':include('page_client.php'); break;
case 'page_categorie':include('page_categorie.php'); break;
case 'page_automobile':include('page_automobile.php');
break;
case 'page_client':include('page_client.php'); break;
default:include('page_accueil.php'); break;
}
?></td>
</tr>
<tr>
<td height="37" colspan="2" valign="top"
bgcolor="#666666"><?php include("pied.php");?></td>
</tr>
<tr>
<td height="2"></td>
<td></td>
</tr>
</table>
<a href="EDOUARD.html">aller ici...</a>
<a href="login.php">aller sur authentification
ici...</a>
</body>
</html>
3. CONNEXION
<?php
$con=mysql_connect("localhost","root","") or
die(mysql_error());//connexion au serveur
mysql_select_db("bd_gestionplaque",$con) or
die(mysql_error());
?>
|