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
39
pages/mine_m.php
Normal file
39
pages/mine_m.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<? 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/mine_m.png height=120 width=120></td>
|
||||
<td width=200>Purificateur de métal niveau ".$mine_m."<br><br>";
|
||||
$a=$mine_m+5;
|
||||
$c=$mine_m-2;
|
||||
echo '<table><tr><td>Niveau</td><td>Production par heure</td><td>Consommation énergie</td></tr><br>';
|
||||
for ($c;$c<$a;$c++) {
|
||||
$b=ceil((($c*40+(exp($c*0.33)*10))));
|
||||
$h=ceil((($c*40+(exp($c*0.33)*10)))) - ceil(((($c-1)*40+(exp(($c-1)*0.33)*10))));
|
||||
|
||||
$p=ceil((exp($c*0.28)*10));
|
||||
$g=ceil((exp($c*0.28)*10)) - ceil((exp(($c-1)*0.28)*10));
|
||||
echo '<tr><td>'.$c.'</td><td>'.$b.' (+ '.$h.')</td><td>'.$p.' (+ '.$g.')</td></tr>';
|
||||
}
|
||||
|
||||
echo"</table></td></tr>";
|
||||
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue