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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
| <div>
<!-- debut table affichage par classe -->
<table class="abonnes" id="ideEleve" style="visibility:<?php echo(isset($_POST['rechercher']))? 'visible':'hidden'; ?>">
<caption> eleve ajouté</caption>
<tr>
<th>matricule</th>
<th>nom</th>
<th>prenom</th>
<th>sexe</th>
<th>supprimer</th>
<th>modifier</th>
<th>reinscrire</th>
<th>details</th>
<th>attestation d'inscription</th>
<th>Liste de la Classe</th>
</tr>
<?php
if(isset($_POST['rechercher']))
{
$classes= $_REQUEST["choix"];
include_once("config/connexion.php");
$req=mysql_query("select * from eleve e , inscrire i where e.id=i.id_eleve and i.id_classe='".$classes."'
order by e.matricule ASC LIMIT $premiereEntree,$messagesParPage ");
}
while ($data=mysql_fetch_assoc($req))
{
?>
<tr>
<td class='cellule_tab'><?php echo $data['matricule'] ?></td>
<td class='cellule_tab'> <?php echo $data['nom'] ?> </td>
<td class='cellule_tab'><?php echo $data['prenom'] ?></td>
<td class='cellule_tab'><?php echo $data['sexe'] ?></td>
<td class='cellule_tab'><a href="supprimereleve.php?id=<?php echo $data['id'] ?>"
onclick=" return window.confirm('Attention vous etes au point de supprimer <?php echo $data['nom']?> !');">
<img src="image/supprimer.jpg" alt="supprimer" style="width:30px; height:30px; border:none;"/></a></td>
<td class='cellule_tab'><a href="modifiereleve.php?id=<?php echo $data['id'] ?>"
> <img src="image/edit.jpg" alt="modifier" style="width:30px; height:30px; border:none;"/></a></td>
<td class='cellule_tab'><a href="reinscrire.php?id=<?php echo $data['id'] ?>"
> <img src="image/inscrire.jpg" alt="reinscrire" style="width:30px; height:30px; border:none;"/></a></td>
<td class='cellule_tab'><a href="attestationInscription.php?id=<?php echo $data['id'] ?>"
> <img src="image/detaille.jpg" alt="details" style="width:30px; height:30px; border:none;"/></a></td>
<td class='cellule_tab'><a href="attestationInscription.php?id=<?php echo $data['id'] ?>"
><img src="image/print.jpg" alt="imprimer" style="width:30px; height:30px; border:none;"/></a></td>
<td> <a href="listeEleveParClasse.php?id_classe=<?php echo $data['id_classe'] ?>"
>la liste de la classe</a>
</td>
</tr>
<?php
}
?>
<tr>
<table align="center" id="pag">
<tr>
<?php
if(isset($_POST['rechercher']))
{
if($pageActuelle!=1)
{
$precedent=$pageActuelle-1;
echo'<th> <a id="pagprecedent" href="consultermedia.php?page='.$precedent.'">precedent</a></th>';
}
for($i=1; $i<=$nombreDePages; $i++) //On fait notre boucle
{
echo'<th> <a id="pagination" href="consultermedia.php?page='.$i.'">'.$i.'</a></th>';
}
if($pageActuelle<$nombreDePages)
{
$suivant= $pageActuelle+1;
echo'<th> <a id="pagsuivant" href="consultermedia.php?page='.$suivant.'">suivant</a></th>';
}
}
?>
</tr>
</table>
</tr>
</table>
</div> |
Partager