summaryrefslogtreecommitdiff
path: root/final/app/poppersonneliste.php
blob: af3a8960c954bd9456d314ae8273e3ecdf837111 (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
<?php 
	require_once 'include/connect.inc.php';
	if ($_GET['idL'] != "None")
	{	
		$req = "SELECT P.idP , P.courrielP , P.nomP , P.prenomP FROM AWOR_Personne P";
		if ($_GET['idL'] != "Tous") {$req=$req.",AWOR_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="'.htmlentities($row[0], ENT_QUOTES).'"  onDblClick="addPers(this.form);">';
				echo htmlentities($row[2], ENT_QUOTES) . " " . htmlentities($row[3], ENT_QUOTES);;
				echo '</option>';
			}
		}
		echo '</select>';
	}
	else
	{
		echo "&nbsp;";
	}
	
?>