summaryrefslogtreecommitdiff
path: root/beta_accents/app/popcommentaire.php
blob: bbb5922e68bc908dd97c01ffd08566f8cd15e80f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php require_once ('include/connect.inc.php'); ?>
<h2>Editer votre commentaire</h2>
<div class="popup_contenu">
<form id="formcommentaire" method="get" action="">
<textarea name="txtCommentaire" rows="4" cols="40">
<?php 
	$requete = "SELECT commentaireReponse FROM AWOR_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 htmlentities($com['commentaireReponse'], ENT_QUOTES);
	}

?>
</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>
</div>