forked from halo-battle/game
33 lines
781 B
PHP
33 lines
781 B
PHP
|
<? session_start(); ?>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title></title>
|
||
|
<link rel="stylesheet" media="screen" name="design" href="design/design.css">
|
||
|
<?
|
||
|
$id=$_SESSION['id'];
|
||
|
include 'ressource.php';
|
||
|
include 'bdd.php';
|
||
|
?>
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<? echo "<tr><td><img src= height=120 width=120></td>
|
||
|
<td width=600>Champ d'algues Niveau ".$ferme."<br><br>
|
||
|
Important pour creer de nouveaux bigorneaux et la nourriture quotidienne de vos troupes.<br><br>";
|
||
|
$a=$ferme+5;
|
||
|
$c=$ferme-2;
|
||
|
echo '<table><tr><td>Niveau</td><td>Production par heure</td></td=r><br>';
|
||
|
for ($c;$c<$a;$c++) {
|
||
|
$b=ceil($c * exp(0.6 * $c) + 100);
|
||
|
$h=ceil($c * exp(0.6 * $c) + 100) - ceil(($c-1) * exp(0.6 * ($c-1)) + 100);
|
||
|
echo '<tr><td>'.$c.'</td><td>'.$b.' (+ '.$h.')</td></tr>';
|
||
|
}
|
||
|
|
||
|
echo"</table></td></tr>";
|
||
|
|
||
|
|
||
|
?>
|
||
|
</body>
|
||
|
</html>
|