HB/pages/central_f.php

37 lines
968 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/centrale_f.png height=120 width=120></td>
<td width=200>Centrale de fusion niveau ".$centrale_f."<br><br>";
$a=$mine_m+5;
$c=$mine_m-2;
echo '<table><tr><td>Niveau</td><td>Production d énergie par heure</td><td>Consommation d hydrogene</td></tr><br>';
for ($c;$c<$a;$c++) {
$b=ceil((($c*80+(exp($c*0.38)*11))));
$h=ceil((($c*80+(exp($c*0.38)*11)))) - ceil(((($c-1)*80+(exp(($c-1)*0.38)*11))));
$p=ceil(($c*5+(exp($c*0.3)*10)));
$g=ceil(($c*5+(exp($c*0.3)*10))) - ceil((($c-1)*5+(exp(($-1)*0.3)*10)));
echo '<tr><td>'.$c.'</td><td>'.$b.' (+ '.$h.')</td><td>'.$p.' (+ '.$g.')</td></tr>';
}
?>
</body>
</html>