summaryrefslogtreecommitdiff
path: root/appli_3_alpha_old/poppersonne.php
blob: 3108eb5eac15d11ce1a6efa0b7850783af8da368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?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'];?>" />
<?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>