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
37
page/central_f.php
Normal file
37
page/central_f.php
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<? 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.jpg height=120 width=120></td>
|
||||
<td width=200>Centrale énergétique 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue