summaryrefslogtreecommitdiff
path: root/appli_3_alpha_old/app/popcommentaire.php
diff options
context:
space:
mode:
Diffstat (limited to 'appli_3_alpha_old/app/popcommentaire.php')
-rw-r--r--appli_3_alpha_old/app/popcommentaire.php18
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>