diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-07-05 00:25:51 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-07-05 00:25:51 +0200 |
commit | ac54f5224d4470de9d8ae088e1338dea52668c9d (patch) | |
tree | 7f77b2a8176343e6632fbd99ff431c21974ef482 /beta_accents/app/poppersonne.php | |
parent | 9738017972a6d4fea655926525b3c67dd85740cf (diff) | |
download | 2007-AWOR-ac54f5224d4470de9d8ae088e1338dea52668c9d.tar.gz 2007-AWOR-ac54f5224d4470de9d8ae088e1338dea52668c9d.tar.bz2 2007-AWOR-ac54f5224d4470de9d8ae088e1338dea52668c9d.zip |
Renommage beta_accents -> final pour diffs
Diffstat (limited to 'beta_accents/app/poppersonne.php')
-rw-r--r-- | beta_accents/app/poppersonne.php | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/beta_accents/app/poppersonne.php b/beta_accents/app/poppersonne.php deleted file mode 100644 index a983441..0000000 --- a/beta_accents/app/poppersonne.php +++ /dev/null @@ -1,113 +0,0 @@ -<?php require_once('include/connect.inc.php'); ?> -<h2><?php -//Pour le choix du Titre : -if(isset($_GET['idR'])) echo "Participants de la réunion"; - else - if (isset($_GET['idL'])) echo "Modification de la liste" ; else echo "Création d'une liste"; -?></h2> -<div class="popup_contenu"> - -<?php -//Pour la création de la liste et initialisation du propriétaire -echo "<form id=\"formpersonne\" action=\"\" method=\"get\" onsubmit=\"return ("; -$isOwner= false; - -if (!isset($_GET['idL'])) -{ - echo "(true==(isNotEmpty('listname') & "; - echo "dataListe('participants','dataParticipants'))));\">"; - echo "Nom de la liste : <input type=\"text\" name=\"listname\" id=\"listname\" />\n"; - echo " est privée : <input type=\"checkbox\" name=\"isPrivate\" checked/><br/><br/>\n"; - echo "<input type=\"hidden\" name=\"idP\" value=\"".$_GET['idP_orga']."\" />\n"; - $isOwner = true; -} -else -{ - echo "dataListe('participants','dataParticipants'));\">"; - 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) - { - $isOwner = true; - } -} - -?> -<table> -<tr> -<td>Contacts disponibles </td> -<td> </td> -<td>Participants </td> -</tr> -<tr> -<td> -<select name="listeDispo" id="listeDispo" onChange="loadlist('poppersonneliste.php?idL=','listeDispo','divListe');" <?php if (!$isOwner) echo ' disabled' ;?>> -<option value="None">Choisir ...</option> -<option value="Tous">Tous</option> -<?php - $req = "SELECT idL,libelleL,estPrivee FROM AWOR_Liste WHERE (idP_Createur=".$_GET['idP_orga']." OR estPrivee='non')"; - if (isset($_GET['idL'])) $req .= " AND idL <>".$_GET['idL']; - $req .= " ORDER BY estPrivee"; - $result = mysql_query($req); - if (mysql_num_rows($result)>0) - { - for($i=0;$i<mysql_num_rows($result);$i++) - { - $row = mysql_fetch_array($result); - echo '<option value="'.htmlentities($row[0],ENT_QUOTES).'">'; - echo htmlentities($row[1],ENT_QUOTES); - echo '</option>'; - } - } -?> -</select> -</td> -<td> </td> -<td> </td> -</tr> -<tr> -<td> -<div id="divListe"> -</div> -</td> -<td> -<input name="AjouterParticipant" type="button" id="AjouterParticipant" value="Ajouter" onclick="addPers(this.form);" <?php if (!$isOwner) echo ' disabled' ;?>/><br/> -<br/> -<input name="AjouterTous" type="button" id="AjouterTous" value="Ajouter Tous" onclick="addAllPers(this.form);" <?php if (!$isOwner) echo ' disabled' ;?> /><br/> -<br/> -<input name="supprimerParticipant" type="button" id="supprimerParticipant" value="Retirer" onclick="removePers(this.form);" <?php if (!$isOwner) echo ' disabled' ;?>/> -</td> -<td> -<select name="participants" size="10" id="participants"> -<?php - if (isset($_GET['idL'])) - { - $req = "SELECT P.idP,P.courrielP,P.nomP,P.prenomP FROM AWOR_Personne P,AWOR_Appartenir A WHERE P.idP=A.idP AND A.idL=".$_GET['idL']; - $result = mysql_query($req); - if (mysql_num_rows($result)>0) - { - for($i=0;$i<mysql_num_rows($result);$i++) - { - $row = mysql_fetch_array($result); - echo '<option value="'.htmlentities($row[0],ENT_QUOTES).'">'; - echo htmlentities($row[2],ENT_QUOTES) . " " . htmlentities($row[3],ENT_QUOTES); - echo '</option>'; - } - } - } -?> -</select> -</td> -</tr> -</table> -<br/> -<input type="text" name="courriel" id="courriel" value="" size="30" <?php if (!$isOwner) echo ' disabled' ;?>/><input type="button" value="inscrire" onclick="newPers(this.form);" <?php if (!$isOwner) echo ' disabled' ;?>/> -<br/><br/> -<?php if (isset($_GET['idL'])) echo '<input type="hidden" name="idL" value="'.$_GET['idL'].'" />'; ?> -<?php if (isset($_GET['idR'])) echo '<input type="hidden" name="idR" value="'.$_GET['idR'].'" />'; ?> -<input type="hidden" name="action" value="valider_modif_personnes" /> -<input type="submit" name="Submit" value="Valider" /><input type="button" value="Fermer" onclick="popoff('poppersonne');" /> -</form> -</div> |