HB/page/central_s.php

38 lines
830 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.JPG height=120 width=120></td>
<td width=200>Centrale solaire niveau ".$centrale_s."<br><br>";
$a=$centrale_s+5;
$c=$centrale_s-2;
echo '<table><tr><td>Niveau</td><td>Production d énergie par heure</td></tr><br>';
for ($c;$c<$a;$c++) {
$b=ceil((($c*20+(exp($c*0.3)*10))));
$h=ceil((($c*20+(exp($c*0.3)*10)))) - ceil(((($c-1)*20+(exp(($c-1)*0.3)*10))));
echo '<tr><td>'.$c.'</td><td>'.$b.' (+ '.$h.')</td></tr>';
}
echo"</table></td></tr>";
?>
</body>
</html>