68 lines
2.0 KiB
PHP
68 lines
2.0 KiB
PHP
<? session_start(); ?>
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE></TITLE>
|
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
|
|
<link rel="stylesheet" media="screen" name="design" href="design/design.css">
|
|
<?
|
|
mysql_connect("leon.redby.fr", "leon0", "7268032");
|
|
mysql_select_db("leon0");
|
|
|
|
|
|
if (isset($_GET['galaxy'])) { $g=$_GET['galaxy'];} else { $g=$_SESSION['galaxy']; }
|
|
if (isset($_GET['ss'])) { $s=$_GET['ss'];} else { $s=$_SESSION['ss']; }
|
|
|
|
|
|
?>
|
|
</head>
|
|
<body>
|
|
|
|
<?
|
|
|
|
echo "<form action=change_carte.php method=post>
|
|
<table border=0 align=center>
|
|
<tbody>
|
|
<tr><td>
|
|
<table>
|
|
<tbody>
|
|
<tr><td class=z colspan=3>Galaxie</td></tr>
|
|
<tr><td><input name=change_galaxy value=".$g." size=5 maxlength=1 type=text class=zone_texte></td></tr>
|
|
</tbody></table></td>
|
|
<td><table><tbody>
|
|
<tr><td class=z colspan=3>Système solaire</td></tr>
|
|
<tr><td><input name=change_system 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=bouttom></td></tr>
|
|
</tbody></table>
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<table align=center>
|
|
<tr><td colspan=6 class=z align=left>Système ".$g." : ".$s."</td></tr>
|
|
<tr><td>Position</td><td>Nom</td><td>Débris métal</td><td>Débris cristal</td><td>Joueur</td><td>Message</td></tr>";
|
|
for ($i=1; $i<=12; $i++) {
|
|
|
|
$resultat = mysql_query("SELECT pseudo FROM user WHERE galaxy='".$g."' AND ss='".$s."' AND pos='".$i."' ");
|
|
if(mysql_num_rows($resultat)>=1){
|
|
|
|
$x = mysql_query("SELECT * FROM user WHERE galaxy='".$g."' AND ss='".$s."'AND pos='".$i."' ");
|
|
$d = mysql_fetch_array($x);
|
|
if ($d['race'] == 'covenant') { $ra='(c)'; } else { $ra='(h)'; }
|
|
|
|
echo "<tr><td height=20>".$i."</td><td>".$d['nomplanete']."</td><td>".$d['debris_met']."</td><td>".$d['debris_cri']."</td><td>".$ra." ".$d['pseudo']."</td><td><a href=envoyer_message.php?pseudo=".$d['pseudo']."><img src=images/msg.jpg></a></td></tr>";
|
|
}
|
|
|
|
else { echo "<tr><td height=20>".$i."</td><td></td><td></td><td></td><td></td><td></td></tr>"; }
|
|
|
|
|
|
}
|
|
|
|
echo "</table>";
|
|
|
|
mysql_close();
|
|
?>
|
|
</body>
|
|
</html>
|