summaryrefslogtreecommitdiff
path: root/appli_3_alpha_old/poppersonne.php
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 10:05:02 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 10:05:02 +0200
commit71b503f07007346eda3d1da71d4a64f31f13d846 (patch)
tree3d1aaa880857eb05e7e9c1f2d75f309507dd9c07 /appli_3_alpha_old/poppersonne.php
parent756f0fa75c7d8e18188dffdfbdd4416651dca9fe (diff)
download2007-AWOR-71b503f07007346eda3d1da71d4a64f31f13d846.tar.gz
2007-AWOR-71b503f07007346eda3d1da71d4a64f31f13d846.tar.bz2
2007-AWOR-71b503f07007346eda3d1da71d4a64f31f13d846.zip
Prmère version alpha 2007-02-03+09:07:04 - 2007-02-06+12:19:50
Diffstat (limited to 'appli_3_alpha_old/poppersonne.php')
-rw-r--r--appli_3_alpha_old/poppersonne.php68
1 files changed, 68 insertions, 0 deletions
diff --git a/appli_3_alpha_old/poppersonne.php b/appli_3_alpha_old/poppersonne.php
new file mode 100644
index 0000000..074c023
--- /dev/null
+++ b/appli_3_alpha_old/poppersonne.php
@@ -0,0 +1,68 @@
+<?php require_once('include/connect.inc.php'); ?>
+<h2>Participants de la r&eacute;union</h2>
+<div class="popup_contenu">
+<form id="formpersonne" action="" method="get" onsubmit="return dataListe('participants','dataParticipants');">
+<table>
+<tr>
+<td>Contacts disponibles </td>
+<td>&nbsp;</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 idL,libelleL,estPrivee FROM Liste WHERE (idP_Createur=".$_GET['idP_orga']." OR estPrivee='non') AND idL <>".$_GET['idL']." ORDER BY estPrivee");
+ 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[1];
+ echo '</option>';
+ }
+ }
+?>
+</select>
+</td>
+<td>&nbsp;</td>
+<td>&nbsp;</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,Appartenir A WHERE P.idP=A.idP AND A.idL=".$_GET['idL']);
+ 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>
+</table>
+<input type="text" name="courriel" id="courriel" value="" size="30" /><input type="button" value="inscrire" onclick="newPers(this.form);" />
+<br/><br/>
+<input type="hidden" name="idL" value="<?php echo $_GET['idL'];?>" />
+<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>