par
saminfo » 10 avr. 2014, 15:26
salut
svp je vous passe le code de ma page d'affichage du tableau qui contient tous les employés
afficheemploye.php
<?php
$serveur=mysql_connect('127.0.0.1','root','');
$db= mysql_select_db('bdd', $serveur);
$requete="SELECT * FROM employee,departement,station where employee.nom_dprt=departement.nom_dprt and departement.adr_sta=station.adr_sta order by nom_emp";
$resultat=mysql_query($requete);
$empl=mysql_fetch_array($resultat);
?>
<html>
<head>
<style>
.table {}
.table th{ background:#fffdfa url(images/th.gif) repeat-x 0 0; color:#818181; text-align: left; padding:7px 10px; border-bottom:solid 1px #d2d1cb;}
.table td{ background:#fbfcfc; border-bottom:solid 1px #e0e0e0; padding:8px 10px; }
.table tr.odd td{ background:#f8f8f8; }
.table tr:hover td{ background:#fff9e1; }
.table a.ico{ }
</style>
</head>
<body>
<table width="1019" border="0" cellpadding="1" align="center" class="table">
<tr>
<th scope="col">Nom</th>
<th scope="col">Prénom</th>
<th scope="col">Fonction</th>
<th scope="col">Service</th>
<th scope="col">Département</th>
<th scope="col">Station</th>
</tr>
<?php do { ?>
<tr>
<td class="tda"> <?php echo $empl['nom_emp']; ?></td>
<td class="tda"> <?php echo $empl['prenom_emp']; ?> </td>
<td class="tda"> <?php echo $empl['fct_actu']; ?></td>
<td class="tda"> <?php echo $empl['service']; ?></td>
<td class="tda"> <?php echo $empl['nom_dprt']; ?></td>
<td class="tda"> <?php echo $empl['adr_sta']; ?></td>
<td class="tda"><a href="#"> <input name="" type="image" src="img/edit.gif"></a> </td>
<td class="tda"><a href="#"><input name="" type="image" src="img/del.gif"></a> </td>
<?php } while ($empl= mysql_fetch_assoc($resultat)); ?>
</tr>
</table>
</body>
</html>
merci d'avance
salut
svp je vous passe le code de ma page d'affichage du tableau qui contient tous les employés
afficheemploye.php
<?php
$serveur=mysql_connect('127.0.0.1','root','');
$db= mysql_select_db('bdd', $serveur);
$requete="SELECT * FROM employee,departement,station where employee.nom_dprt=departement.nom_dprt and departement.adr_sta=station.adr_sta order by nom_emp";
$resultat=mysql_query($requete);
$empl=mysql_fetch_array($resultat);
?>
<html>
<head>
<style>
.table {}
.table th{ background:#fffdfa url(images/th.gif) repeat-x 0 0; color:#818181; text-align: left; padding:7px 10px; border-bottom:solid 1px #d2d1cb;}
.table td{ background:#fbfcfc; border-bottom:solid 1px #e0e0e0; padding:8px 10px; }
.table tr.odd td{ background:#f8f8f8; }
.table tr:hover td{ background:#fff9e1; }
.table a.ico{ }
</style>
</head>
<body>
<table width="1019" border="0" cellpadding="1" align="center" class="table">
<tr>
<th scope="col">Nom</th>
<th scope="col">Prénom</th>
<th scope="col">Fonction</th>
<th scope="col">Service</th>
<th scope="col">Département</th>
<th scope="col">Station</th>
</tr>
<?php do { ?>
<tr>
<td class="tda"> <?php echo $empl['nom_emp']; ?></td>
<td class="tda"> <?php echo $empl['prenom_emp']; ?> </td>
<td class="tda"> <?php echo $empl['fct_actu']; ?></td>
<td class="tda"> <?php echo $empl['service']; ?></td>
<td class="tda"> <?php echo $empl['nom_dprt']; ?></td>
<td class="tda"> <?php echo $empl['adr_sta']; ?></td>
<td class="tda"><a href="#"> <input name="" type="image" src="img/edit.gif"></a> </td>
<td class="tda"><a href="#"><input name="" type="image" src="img/del.gif"></a> </td>
<?php } while ($empl= mysql_fetch_assoc($resultat)); ?>
</tr>
</table>
</body>
</html>
merci d'avance