<?
include ('config_uni.php');
include ('logue.php');
include ('entete2.php');
include ('entete.php');
include ('ressource2.php');
include ('calcullabo.php');
include ('config.php');

echo"<STYLE TYPE=text/css>
.Style1 {color: #00CC00}
.Style2 {color: #FF0000}
.Style3 {color: #0000FF}
input {
border:1px solid #7E7E7E;
background-color:#000000;
font-family:'trebuchet ms',sans-serif;
color:white;
}
textarea {
border:1px solid #7E7E7E;
background-color:#000000;
font-family:'trebuchet ms',sans-serif;
color:white;
}
select, option {
background-color:#000000;
color:white;
}
</STYLE>";

// ATTENTION les 'form' portent tous le même nom vu qu''ils ne sont pas affichés simultanément


$SQL = "SELECT * FROM matgraph_nbrevaisseaux WHERE planete = '$planete'" ;
$RES = db_mysql_Query($SQL) ;
$NUM = mysql_num_rows($RES) ;
$i = 1 ;
if ($NUM > 0 )
{
	While ( $ROW = mysql_fetch_array($RES) )
	{
		$SQL_1 = "SELECT * FROM matgraph_vaisseaux WHERE id='$ROW[vaisseau]' ORDER BY nom" ;
		$RES_1 = db_mysql_Query($SQL_1) ;
		$ROW_1 = mysql_fetch_array($RES_1) ;
		echo '
		<div id="bulle' . $i . '" style="position:absolute;visibility:hidden;width:147px;height:50px">
		<SCRIPT TYPE="text/javascript">
		document.write(AffBulle("<TABLE border=0 cellspacing=0 cellpadding=2 style=\'background-color:#222222;color:white ;font-family:trebuchet ms,sans-serif; font-size: 8pt ;\'><tr><td align=\'center\' valign=\'top\'>' . $ROW_1[description] . '</td><td><IMG SRC=\'imgs/vaisseaux/' . $ROW_1[img] . '.jpg\' width=50 valign=\'middle\'></td></tr></TABLE>"));
		</SCRIPT>
		</div>' ;
		++$i ;
	}
}



$test = "ok";
include( 'flotte_aller2.php' );

?>

<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
/*function clignotement(actif)
{
	if (document.getElementById(actif).style.color=="black")
		document.getElementById(actif).style.color="red" ;
	else
		document.getElementById(actif).style.color="black" ;
}
// mise en place de l appel régulier de la fonction toutes les 0.5 secondes
Periode = setInterval("clignotement('cligno1')", 500) ;
Periode = setInterval("clignotement('cligno2')", 500) ;*/
</script>