Second revision by Master Leon
This commit is contained in:
parent
4230eb6922
commit
b8e951f59d
382 changed files with 3112 additions and 14815 deletions
58
pages/descriptions/description_bat.php
Normal file
58
pages/descriptions/description_bat.php
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
<? 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â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 é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>";
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue