diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 11:39:33 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 11:39:33 +0200 |
commit | 9738017972a6d4fea655926525b3c67dd85740cf (patch) | |
tree | 938d6f26c138d7c176c821bafc513362186a8ca7 /beta_accents/app/poppersonne.php | |
parent | 5dac82f52f45ad27f16ec2ff63ee75e2f39ef942 (diff) | |
download | 2007-AWOR-9738017972a6d4fea655926525b3c67dd85740cf.tar.gz 2007-AWOR-9738017972a6d4fea655926525b3c67dd85740cf.tar.bz2 2007-AWOR-9738017972a6d4fea655926525b3c67dd85740cf.zip |
Version beta_accents 2007-03-12+17:26:00 - 2007-03-14+17:35:14
Diffstat (limited to 'beta_accents/app/poppersonne.php')
-rw-r--r-- | beta_accents/app/poppersonne.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/beta_accents/app/poppersonne.php b/beta_accents/app/poppersonne.php index e9225ba..a983441 100644 --- a/beta_accents/app/poppersonne.php +++ b/beta_accents/app/poppersonne.php @@ -8,7 +8,7 @@ if(isset($_GET['idR'])) echo "Participants de la réunion"; <div class="popup_contenu"> <?php -//Pour la création de la liste et initialisation du propriétaire +//Pour la création de la liste et initialisation du propriétaire echo "<form id=\"formpersonne\" action=\"\" method=\"get\" onsubmit=\"return ("; $isOwner= false; @@ -24,8 +24,9 @@ if (!isset($_GET['idL'])) else { echo "dataListe('participants','dataParticipants'));\">"; - if (isset($_GET['idR'])) $req = "SELECT * FROM AWOR_Liste L,AWOR_Reunion R WHERE (L.idP_Createur=".$_GET['idP_orga']." OR R.idP_Orga=".$_GET['idP_orga'].") AND R.idL=L.idL"; - else $req = "SELECT * FROM AWOR_Liste L,AWOR_Reunion R WHERE L.idL=".$_GET['idL']." AND L.idP_Createur=".$_GET['idP_orga']; + if (isset($_GET['idR'])) $req = "SELECT L.idL FROM AWOR_Liste L,AWOR_Reunion R WHERE (L.idP_Createur=".$_GET['idP_orga']." OR R.idP_Orga=".$_GET['idP_orga'].") AND R.idL=L.idL"; + // TODO : VERIFIER le select juste au dessous : table réunion inutile ???? Reunion ??? + else $req = "SELECT L.idL FROM AWOR_Liste L,AWOR_Reunion R WHERE L.idL=".$_GET['idL']." AND L.idP_Createur=".$_GET['idP_orga']; $result = mysql_query($req); if (mysql_num_rows($result)>0) { @@ -55,8 +56,8 @@ else for($i=0;$i<mysql_num_rows($result);$i++) { $row = mysql_fetch_array($result); - echo '<option value="'.$row[0].'">'; - echo $row[1]; + echo '<option value="'.htmlentities($row[0],ENT_QUOTES).'">'; + echo htmlentities($row[1],ENT_QUOTES); echo '</option>'; } } @@ -90,8 +91,8 @@ else for($i=0;$i<mysql_num_rows($result);$i++) { $row = mysql_fetch_array($result); - echo '<option value="'.$row[0].'">'; - if ($row[2] !== "" & $row[3] !== "") echo $row[2] . " " . $row[3]; else echo $row[1]; + echo '<option value="'.htmlentities($row[0],ENT_QUOTES).'">'; + echo htmlentities($row[2],ENT_QUOTES) . " " . htmlentities($row[3],ENT_QUOTES); echo '</option>'; } } |