58 lines
1.4 KiB
PHP
58 lines
1.4 KiB
PHP
|
<? echo "<html>
|
|||
|
<head>
|
|||
|
<title>Halo</title>
|
|||
|
|
|||
|
<link rel=stylesheet media=screen type=text/css title=design href=diz/base.css >
|
|||
|
<meta http-equiv=pragma content=no-cache >
|
|||
|
<meta http-equiv=content-type content=text/html;charset=iso-8869-1 >
|
|||
|
<link rel=shortcut icon type=image/x-icon href=favicon.ico >";
|
|||
|
|
|||
|
include 'bdd.php';
|
|||
|
|
|||
|
function techno($nom, $niveau, $niveau_ress)
|
|||
|
{
|
|||
|
if ($niveau < $niveau_ress)
|
|||
|
{
|
|||
|
echo "<font color=red >".$nom." ".$niveau_ress."</font>";
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
echo "<font color=#40ff00 >".$nom." ".$niveau_ress."</font>";
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
echo"</head>
|
|||
|
<body>
|
|||
|
|
|||
|
<div class=long>Metal</div>
|
|||
|
|
|||
|
<div class=ensemble>
|
|||
|
<div class=e><img src=diz/batiment/><br><br>
|
|||
|
</div>
|
|||
|
<i>description.</i><br>
|
|||
|
<u>Besoin de :</u><br>
|
|||
|
B<EFBFBD>timents : "; @techno("Chantier spatial", $chantier_spatial, 1);
|
|||
|
echo "<br>Technologie : "; @techno("Propultion conventionelle", $propu, 3);
|
|||
|
echo"<br><br>";
|
|||
|
$a=$mine_m+5;
|
|||
|
$c=$mine_m-2;
|
|||
|
if ($c < 0 ) { $c = 0; $a = 7; }
|
|||
|
echo '<table align=center><tr><td>Niveau</td><td>Production par heure</td><td>Consommation <20>nergie</td></tr><br>';
|
|||
|
for ($c;$c<$a;$c++) {
|
|||
|
$b=ceil((($c*40+(exp($c*0.33)*10))));
|
|||
|
$h=ceil((($c*40+(exp($c*0.33)*10)))) - ceil(((($c-1)*40+(exp(($c-1)*0.33)*10))));
|
|||
|
|
|||
|
$p=ceil((exp($c*0.28)*10));
|
|||
|
$g=ceil((exp($c*0.28)*10)) - ceil((exp(($c-1)*0.28)*10));
|
|||
|
echo '<tr><td>'.$c.'</td><td>'.$b.' (+ '.$h.')</td><td>'.$p.' (+ '.$g.')</td></tr>';
|
|||
|
}
|
|||
|
|
|||
|
echo"</table></td></tr>";
|
|||
|
|
|||
|
echo"</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</body>
|
|||
|
</html>";
|
|||
|
?>
|