forked from halo-battle/game
First code received by Master Leon
This commit is contained in:
commit
4230eb6922
330 changed files with 15543 additions and 0 deletions
38
page/central_s.php
Normal file
38
page/central_s.php
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<? 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue