forked from halo-battle/game
Version 2007-11-09
This commit is contained in:
parent
d08fb34825
commit
e0f55450e1
87 changed files with 513 additions and 741 deletions
|
|
@ -7,12 +7,18 @@ require('../fonctions.php');
|
|||
require('../connectBDD.php');
|
||||
|
||||
if (isset($_GET['galaxy'])) $g = floor($_GET['galaxy']); else $g = $_SESSION['galaxy'];
|
||||
if ($g < 1) $g = 1;
|
||||
if ($g > 15) $g = 15;
|
||||
if ($g < 1) $g = 1;
|
||||
if ($g > 15) $g = 15;
|
||||
|
||||
if (isset($_GET['ss'])) $s=floor($_GET['ss']); else $s=$_SESSION['ss'];
|
||||
if ($s < 1) $s = 1;
|
||||
if ($s < 1) $s = 1;
|
||||
if ($s > 300) $s = 300;
|
||||
|
||||
if ($s == 1 && $g > 1) { $Gmu = $g - 1; $Smu = 300; }
|
||||
elseif ($s == 1) { $Gmu = 15; $Smu = 300; }
|
||||
else { $Gmu = $g; $Smu = $s - 1; }
|
||||
if ($s == 300) { $Gpu = $g + 1; $Spu = 1; }
|
||||
else { $Gpu = $g; $Spu = $s + 1; }
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
|
|
@ -25,19 +31,16 @@ border: 0px;
|
|||
|
||||
<form action="carte.php" method="get">
|
||||
<table border="0" align="center">
|
||||
<tbody>
|
||||
<tr><td>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr><td width="50%"><table align=center>
|
||||
<tr><td class="z" colspan="3">Galaxie</td></tr>
|
||||
<tr><td class="z"><input name="galaxy" value="'.$g.'" size="5" maxlength="2" type="text" class="zone_texte"></td></tr>
|
||||
</tbody></table></td>
|
||||
<td><table><tbody>
|
||||
</table></td>
|
||||
<td width="50%"><table align=center>
|
||||
<tr><td class="z" colspan="3">Système solaire</td></tr>
|
||||
<tr><td class="z"><input name="ss" value="'.$s.'" size="5" maxlength="3" type="text" class="zone_texte"></td></tr>
|
||||
</tbody></table></td></tr>
|
||||
<tr><td colspan="2" align="center"><input value="Afficher" type="submit" class="bouton"></td></tr>
|
||||
</tbody></table>
|
||||
</table></td></tr>
|
||||
<tr><td colspan="2" align="center"><table style="text-align: center; border: none;"><tr><td style="border: none;"><a href="carte.php?galaxy='.$Gmu.'&ss='.$Smu.'"><<<</a></td><td style="border: none;"><input value="Afficher" type="submit" class="bouton"></td><td style="border: none;"><a href="carte.php?galaxy='.$Gpu.'&ss='.$Spu.'">>>></a></td></tr></table></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<br>
|
||||
<table align="center">
|
||||
|
|
@ -48,7 +51,7 @@ for ($i=1; $i<=12; $i++) {
|
|||
if(mysql_num_rows($resultat)>=1) {
|
||||
$x = mysql_query("SELECT * FROM planete WHERE galaxie='$g' AND ss='$s'AND position='$i' ");
|
||||
$d = mysql_fetch_array($x);
|
||||
|
||||
|
||||
$id_user = $d['id_user'];
|
||||
$y = mysql_query("SELECT race FROM user WHERE id='$id_user' ");
|
||||
$e = mysql_fetch_array($y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue