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
|
<?php session_start(); ?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="fonts/material-design-iconic-font/css/material-design-iconic-font.min.css">
<title>RECHERCHER UN LICENCIÉ(E) - FFN PRO</title>
<link rel="stylesheet" href="css_list/popup.css">
<link rel="stylesheet" href="../admin/personnes/css/list_personne.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="js/recherche.js" type="text/javascript"></script>
</head>
<body>
<?php
$connect = new pdo("mysql:host=localhost;dbname=ffnpro_v2;port=3306;charset=utf8" , 'root' , '');
$data = $connect->prepare("SELECT
P.entry_id, P.genre_personne, P.nom_personne, P.prenom_personne, P.age_personne, P.telephone_personne, P.email_personne,
P.adresse_personne, P.codep_personne, P.ville_personne, P.pays_personne, P.licence, P.centre_emetteur
FROM personnes P
INNER JOIN centres C
ON C.nom = P.centre_emetteur
WHERE C.email = '".$_SESSION['email']."'
ORDER BY P.entry_id DESC;");
?>
<img src="../../../img/logo_ffn.png" class="dpl" style="margin-left:40px;" height="150px" width="150px">
<h1 id="researchh" style='margin-right:50px;'>- RECHERCHER UN LICENCIÉ(E) -</h1>
<h2 id="back">Cliquer <a href="../../../index.php"><i style="color:#68c3e9; ">ici</i></a> pour revenir a l'accueil</h2>
<br><br><br>
<input type="text" id="myInput" onkeyup="myFunction()" placeholder="Rechercher..." title="Taper un nom , un prenom ou une licence" style="margin-top:100px;margin-left: 470px;">
<div class="container">
<div class="table-responsive">
<table class="table" id="myTable">
<thead>
<tr>
<th>Identité</th>
<th>Centre</th>
<th>Adresse</th>
<th>Naissance</th>
<th>Email</th>
<th>Téléphone</th>
<th>Supprimer</th>
</tr>
</thead>
<tbody>
<?php
foreach ($data->fetchAll() as $key => $personnes) {
$espace = " ";
echo "<tr>";
echo strtoupper("<td style='font-size:11px;text-transform:uppercase;'><span>".$personnes["genre_personne"]."$espace".$personnes["nom_personne"]."$espace".$personnes["prenom_personne"]."$espace n* :" .$personnes['licence']."</span></td>");
echo strtoupper("<td style='font-size:11px;text-transform:uppercase;'>".$personnes['centre_emetteur']."</td>");
echo strtoupper("<td style='font-size:10px;text-transform:uppercase; padding-right: 200px;'>".$personnes["adresse_personne"]."<br>$espace".$personnes["codep_personne"]."$espace".$personnes["ville_personne"]."<br>$espace".$personnes["pays_personne"]."</td>");
echo'<td><img src="../../../img/birthday.png" height="25px" width="25px" style="margin-left:25px" title='.$personnes['age_personne'].'></td>';
echo'<td><a href="mailto:'.$personnes['email_personne'].'"><img src="../../../img/email.png" height="25px" width="25px" style="margin-left: 10px;"></td>';
echo'<td><img src="../../../img/contact_phone.png" height="25px" width="25px" style="margin-left:30px" title='.$personnes['telephone_personne'].'></td>';
echo "<td><a href='delete.php?entry_id=".$personnes['entry_id']."'> <img src='../../../img/delete.png' height='25px' width='25px' style='margin-left:20px' ></a> </td>";
echo "</tr>";
}
?>
</tbody>
</table>
</div>
</div>
</body>
</html> |
Partager