<?php
	require("§lib_inc.php");
?>
<HTML>
<BODY BGCOLOR=#FFFFFF FGCOLOR=0 background='fond.png'>
<?php
	echo "<CENTER><H1>";	
	display_lng_text("FAMILY_TITLE");
	echo "</H1><TABLE>";

//	set_time_limit(0);
	
	flush();

	$sql_query="select id_family, name FAMILY from oxg_family";
	$result = mysql_query($sql_query) or mysql_die();
	while($row = mysql_fetch_array($result))
	{
		$result_cpt = mysql_query( "select count(*) as SOMME from oxg_individuals where id_family=$row[id_family]");
		$row_cpt = mysql_fetch_array($result_cpt);
		echo "<tr><td><A HREF='§empty_database.php?FAMILY=$row[id_family]'><B>";
		echo "<B>$row[FAMILY]</B></A></td><td>$row_cpt[SOMME]</td></tr>";
	}
?>
</TABLE>
</CENTER>
<br><br>
<?php
	affiche_pied_page_admin(true);
?>
</BODY>
</HTML>