summaryrefslogtreecommitdiff
path: root/maquette/poppersonneliste.php
blob: c9e1b05e8d20bdd7757b13db0da05d94c1b3cc6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php 
	require_once 'connect.inc.php';
	if ($_GET['idL'] != "None")
	{	
		$req = "SELECT P.idP , P.courrielP , P.nomP , P.prenomP FROM Personne P";
		if ($_GET['idL'] != "Tous") {$req=$req.",Appartenir A WHERE P.idP=A.idP AND A.idL=".$_GET['idL'];}
		$result = mysql_query($req) ;
		echo '<select name="contactDispo" size="10" id="contactDispo">';

		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[2] . " " . $row[3];
				echo '</option>';
			}
		}
		echo '</select>';
	}
?>