diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 11:17:01 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 11:17:01 +0200 |
commit | a25edc8edf23e652dbd529b8c42199ae559905a1 (patch) | |
tree | bdc47a31288343a8bd11310a021fdf0679eb503c /appli_3_alpha_old/app/popcommentaire.php | |
parent | 3fc908d3a1d0f6c9b1fca690561098541a73266e (diff) | |
download | 2007-AWOR-a25edc8edf23e652dbd529b8c42199ae559905a1.tar.gz 2007-AWOR-a25edc8edf23e652dbd529b8c42199ae559905a1.tar.bz2 2007-AWOR-a25edc8edf23e652dbd529b8c42199ae559905a1.zip |
Version alpha_old6 2007-02-22+15:45:00 - 2007-03-12+13:59:02
Diffstat (limited to 'appli_3_alpha_old/app/popcommentaire.php')
-rw-r--r-- | appli_3_alpha_old/app/popcommentaire.php | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/appli_3_alpha_old/app/popcommentaire.php b/appli_3_alpha_old/app/popcommentaire.php index 523bdaf..b585067 100644 --- a/appli_3_alpha_old/app/popcommentaire.php +++ b/appli_3_alpha_old/app/popcommentaire.php @@ -1,10 +1,22 @@ +<?php require_once ('include/connect.inc.php'); ?> <h2>Editer votre commentaire</h2> <div class="popup_contenu"> <form id="formcommentaire" method="get" action=""> -Commentaire : <input name="txtCommentaire" type="text" /> -<br/><br/> +<textarea name="txtCommentaire" rows="4" cols="40"> +<?php + $requete = "SELECT commentaireReponse FROM Repondre WHERE idP=".$_GET['idP']." AND idR=".$_GET['idR'].""; + $result = mysql_query($requete); + if($result && mysql_num_rows($result) > 0) + { + $com = mysql_fetch_array($result); + + echo $com['commentaireReponse']; + } -<?php if (isset($_GET['idP'])) echo '<input type="hidden" name="idP" value="'.$_GET['idP'].'" />' ?> +?> +</textarea> +<br/><br/> +<?php if (isset($_GET['idR'])) echo '<input type="hidden" name="idR" value="'.$_GET['idR'].'" />' ?> <input type="hidden" name="action" value="commentaire" /> <input type="submit" value="Enregistrer" /><input type="button" value="Fermer" onclick="popoff('popcommentaire')" /> </form> |