39 lines
954 B
PHP
39 lines
954 B
PHP
<? session_start(); ?>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
<link rel="stylesheet" media="screen" name="design" href="design/design.css">
|
|
<?
|
|
$id=$_SESSION['id'];
|
|
$galaxy=$_SESSION['galaxy'];
|
|
$ss=$_SESSION['ss'];
|
|
$pos=$_SESSION['pos'];
|
|
include 'ressource.php';
|
|
include 'bdd.php';
|
|
?>
|
|
</head>
|
|
|
|
<body>
|
|
<table>
|
|
<tr>
|
|
<? echo "<table align=center>
|
|
<tr><td><img src=images/mine_m.png height=120 width=120></td>
|
|
<td width=200>Purificateur de métal niveau ".$mine_m."<br><br>";
|
|
$a=$mine_m+5;
|
|
$c=$mine_m-2;
|
|
echo '<table><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>";
|
|
|
|
|
|
?>
|
|
</body>
|
|
</html>
|