diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 11:23:45 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 11:23:45 +0200 |
commit | 3c8d3719af0f77f8a01881b022e548d3a7d4604e (patch) | |
tree | 475c5ac9085dc4e62bc8095f906f211a0052c8de /maquette/poppersonne.php | |
parent | 50b0ff7533657a8edb7a0d9645699559c50ea712 (diff) | |
download | 2007-AWOR-3c8d3719af0f77f8a01881b022e548d3a7d4604e.tar.gz 2007-AWOR-3c8d3719af0f77f8a01881b022e548d3a7d4604e.tar.bz2 2007-AWOR-3c8d3719af0f77f8a01881b022e548d3a7d4604e.zip |
Deuxième maquette 2007-02-06+19:18:54 - 2007-02-08+16:46:19
Diffstat (limited to 'maquette/poppersonne.php')
-rw-r--r-- | maquette/poppersonne.php | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/maquette/poppersonne.php b/maquette/poppersonne.php new file mode 100644 index 0000000..1f739e4 --- /dev/null +++ b/maquette/poppersonne.php @@ -0,0 +1,71 @@ +<?php require_once('connect.inc.php'); ?> +<h2>Participants de la réunion</h2> +<div class="popup_contenu"> +<form id="formpersonne" action="<?php $_GLOBAL['php_self']; ?>" method="get" onsubmit="return dataListe('participants','dataParticipants');"> +<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');"> +<option value="None">Choisir ...</option> +<option value="Tous">Tous</option> +<?php + $result = mysql_query("SELECT DISTINCT L.idL,L.libelleL FROM Liste L,Reunion R WHERE L.estPrivee='non' OR (L.idP_Createur=R.idP_Orga AND R.idR=".$_GET['idR'].");"); + if (mysql_num_rows($result)>0) + { + for($i=0;$i<mysql_num_rows($result);$i++) + { + $row = mysql_fetch_array($result); + echo '<option value="'.$row[0].'" onDblClick="addPers(this.form);">'; + echo $row[1]; + 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);"/> +<br/> +<br/> +<input name="supprimerParticipant" type="button" id="supprimerParticipant" value="Retirer" onclick="removePers(this.form);"/></td> +<td> +<select name="participants" size="10" id="participants"> +<?php + $result = mysql_query("SELECT P.idP,P.courrielP,P.nomP,P.prenomP FROM Personne P,Reunion R,Appartenir A WHERE P.idP=A.idP AND A.idL=R.idL AND R.idR=".$_GET['idR']); + if (mysql_num_rows($result)>0) + { + for($i=0;$i<mysql_num_rows($result);$i++) + { + $row = mysql_fetch_array($result); + echo '<option value="'.$row[0].'">'; + echo $row[2] . " " . $row[3]; + echo '</option>'; + } + } +?> +</select> +</td> +</tr> +<tr> +<td> </td> +<td> </td> +<td><a href="#popnew" class="pop">Ajouter une personne</a></td> +</tr> +</table> +<br/> +<input type="hidden" name="idR" value="<?php echo $_GET['idR'];?>" /> +<input type="submit" name="Submit" value="Valider" /><input type="button" value="Fermer" onclick="popoff('poppersonne');" /> +</form> +</div> |