41 lines
1.3 KiB
PHP
41 lines
1.3 KiB
PHP
<!--
|
|
* affichageVisite.php
|
|
-->
|
|
<?php
|
|
include_once("entete.php");
|
|
include_once("modele/accesBDD.php");
|
|
?>
|
|
<h2>Liste des comptes rendu</h2>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Client </th><th>Date </th><th>Heure </th><th>Remarque </th><th>Compte rendu </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<?php
|
|
if (isset(($_GET["msg"]))) {
|
|
$msg = $_GET["msg"];
|
|
echo "<p>$msg</p>";
|
|
unset($_GET["msg"]);
|
|
}
|
|
//Recherche des visites de l'utilisateur afin de les afficher
|
|
$dbh = connexion();
|
|
$visites = rechercherLesComptesRendusDuCommercial($dbh, $id);
|
|
while ($unCompteRendu = $visites->fetch()) { // Lecture 1ère ligne jeu d'enregistrements
|
|
$idCompteRendu = $unCompteRendu['idCompteRendu'];
|
|
$lib = $unCompteRendu['praNom'] . " " . $unCompteRendu['praPrenom'];
|
|
$dateV = $unCompteRendu["date"];
|
|
$heureV = $unCompteRendu["heure"];
|
|
$rem = $unCompteRendu["remarque"];
|
|
$cptRendu = $unCompteRendu['compteRendu'];
|
|
echo "<tr><td>$lib </td><td>$dateV </td><td>$heureV </td><td>$rem </td><td>$cptRendu </td><td><a href='ajoutCompteRendu.php?idVisite=$idVisite'>Ajout comptes rendus</a> </td></tr>";
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</html>
|