diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 10:43:53 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 10:43:53 +0200 |
commit | e247526ba388ce3def4f83ad8fb26852082bb7dd (patch) | |
tree | 335d0bd2797542462a3074e0c524a41a45e0257b /appli_3_alpha_old/include/ju.inc.php | |
parent | 679551b7b545a72d376d9e60a8f3da66e44a6855 (diff) | |
download | 2007-AWOR-e247526ba388ce3def4f83ad8fb26852082bb7dd.tar.gz 2007-AWOR-e247526ba388ce3def4f83ad8fb26852082bb7dd.tar.bz2 2007-AWOR-e247526ba388ce3def4f83ad8fb26852082bb7dd.zip |
Version alpha_old3 2007-02-22+15:12:38 - 2007-02-27+20:02:20
Diffstat (limited to 'appli_3_alpha_old/include/ju.inc.php')
-rw-r--r-- | appli_3_alpha_old/include/ju.inc.php | 44 |
1 files changed, 30 insertions, 14 deletions
diff --git a/appli_3_alpha_old/include/ju.inc.php b/appli_3_alpha_old/include/ju.inc.php index 7f52bea..7267de1 100644 --- a/appli_3_alpha_old/include/ju.inc.php +++ b/appli_3_alpha_old/include/ju.inc.php @@ -3,41 +3,57 @@ function traiter_formulaire_cequetuveux_aussi() { echo "coucou\n"; } - + +// Modifiée par Ludo pour les problèmes de vriables de session et pour d'autres détails : +// S'il n'y a pas de commentaire, on affiche le tableau vide function generate_html_reunion_commentaires($idR) { - $requete = "SELECT * FROM Repondre WHERE idP != '".$_SESSION['idP']."' AND idR = '".$idR."'"; +?> + <table cellspacing="0" class="commentaires" summary="Liste des commentaires laissés pour les personnes conviées à cette réunion"> + <thead> + <tr> + <th>Commentaires <a href="#">(Editer votre commentaire)</a></th> + </tr> + </thead> + <tbody> + +<?php + $idP=$_SESSION['session_idP']; + $idR=addslashes($idR); + + + + $requete = "SELECT idP, commentaireReponse FROM Repondre WHERE idP != '$idP' AND idR = '$idR'"; + echo "DEBUG : requete : $requete\n"; $resultat = mysql_query($requete); if($resultat != false) { if(mysql_num_rows($resultat) > 0) { - echo '<table cellspacing="0" class="commentaires">'; - echo '<thead>'; - echo '<tr>'; - echo '<th>Commentaires <a href="#">(Editer votre commentaire)</a></th>'; - echo '</tr>'; - echo '</thead>'; while($commentaire = mysql_fetch_array($resultat)); { - if(isset($_SESSION["PrenomP"])) + if ( isset($_SESSION['session_nomP']) && isset($_SESSION['session_prenomP']) ) { - $nom = $_SESSION["PrenomP"]; + $nom = $_SESSION['session_nomP'] . $_SESSION['session_prenomP']; } else { - $nom = $commentaire["idP"]; + $nom = $commentaire['idP']; } - echo "<tr><td>".$nom." : ".$commentaire["commentaireReponse"]."</td></tr>\n"; + echo ' <tr><td>'.$nom." : ".$commentaire['commentaireReponse']."</td></tr>\n"; } - echo '</table>'; + } } +?> + </tbody> + </table> +<?php } function generate_html_reunion_fichiers($idR) { - $requete = "SELECT * FROM Repondre WHERE idP != '".$_SESSION['idP']."' AND idR = '".$idR."'"; + $requete = "SELECT * FROM Repondre WHERE idP != '".$_SESSION['session_idP']."' AND idR = '".$idR."'"; $resultat = mysql_query($requete); if($resultat != false) { |