Version 2007-11-04
This commit is contained in:
parent
4909921671
commit
ebc73c5744
377 changed files with 5163 additions and 2495 deletions
|
|
@ -1,59 +0,0 @@
|
|||
<?php
|
||||
session_start();
|
||||
define('DESIGN', 'descriptions/diz/base.css');
|
||||
require('../header.php');
|
||||
|
||||
require('../connectBDD.php');
|
||||
|
||||
if (isset($_GET['galaxy'])) $g=$_GET['galaxy']; else $g=$_SESSION['galaxy'];
|
||||
if (isset($_GET['ss'])) $s=$_GET['ss']; else $s=$_SESSION['ss'];
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
echo'<style TYPE=text/css>
|
||||
TD.z {
|
||||
border: 0px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<form action="carte.php" method="get">
|
||||
<table border="0" align="center">
|
||||
<tbody>
|
||||
<tr><td>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr><td class="z" colspan="3">Galaxie</td></tr>
|
||||
<tr><td class="z"><input name="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 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>
|
||||
</form>
|
||||
|
||||
<br>
|
||||
|
||||
<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 * FROM planete WHERE galaxie='$g' AND ss='$s' AND position='$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);
|
||||
if ($d['race'] == 'covenant') $ra='(c)';
|
||||
else $ra='(h)';
|
||||
echo '<tr><td height="20">'.$i.'</td><td>'.$d['nom'].'</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="descriptions/diz/m.gif"></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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue