69 lines
3.6 KiB
PHP
Executable File
69 lines
3.6 KiB
PHP
Executable File
<?php
|
|
include("mysql_compat.php");
|
|
include ("conf.php");
|
|
$db_connection=mysql_connect($db_host,$db_user,$password);
|
|
|
|
$requete="SELECT id_joueur,nom,prenom FROM joueur WHERE id_joueur='$id_joueur'";
|
|
$result=mysqli_query($db_connection, $requete)
|
|
or die ("Erreur no".mysqli_errno($db_connection)()." : ".mysqli_error($db_connection)()."<br>");
|
|
$User=mysqli_fetch_object($result);
|
|
|
|
echo "<TABLE BGCOLOR='#FFF5EE' width='100%'>";
|
|
if ($id_joueur=='') {
|
|
echo"<tr><td><a href='connexion.php'><h5>Se connecter</h5></td>";
|
|
if ($i=='0') { echo"<td><img src='images/tennis009.gif' /></td>"; }
|
|
else { echo"<td><img src='images/tennis009.jpg' /></td>"; }
|
|
echo"<td><a href='message_info.php'><h5>Accueil</h5></td>";
|
|
if ($i=='1') { echo"<td><img src='images/tennis009.gif' /></td>"; }
|
|
else { echo"<td><img src='images/tennis009.jpg' /></td>"; }
|
|
echo"<td><a href='message_info.php'><h5>Inscription</h5></td>";
|
|
if ($i=='6') { echo"<td><img src='images/tennis009.gif' /></td>"; }
|
|
else { echo"<td><img src='images/tennis009.jpg' /></td>"; }
|
|
echo"<td><a href='message_info.php'><h5>FAQ</h5></td>";
|
|
if ($i=='2') { echo"<td><img src='images/tennis009.gif' /></td>"; }
|
|
else { echo"<td><img src='images/tennis009.jpg' /></td>"; }
|
|
echo"<td><a href='message_info.php'><h5>Resultats</h5></td>";
|
|
if ($i=='3') { echo"<td><img src='images/tennis009.gif' /></td>"; }
|
|
else { echo"<td><img src='images/tennis009.jpg' /></td>"; }
|
|
echo"<td><a href='message_info.php'><h5>Calendrier</h5></td>";
|
|
if ($i=='4') { echo"<td><img src='images/tennis009.gif' /></td>"; }
|
|
else { echo"<td><img src='images/tennis009.jpg' /></td>"; }
|
|
echo"<td><a href='message_info.php'><h5>Modifier compte</h5></td>";
|
|
if ($i=='5') { echo"<td><img src='images/tennis009.gif' /></td>"; }
|
|
else { echo"<td><img src='images/tennis009.jpg' /></td>"; }
|
|
echo"<td><a href='info.php?id_joueur=&id_tournoi='><h5>Infos tournois</h5></td>";
|
|
echo"</tr>";
|
|
echo"<td valign='top'></td></tr></table>";
|
|
}
|
|
else
|
|
{
|
|
echo"<tr><td>Bienvenue $User->prenom $User->nom </td>";
|
|
|
|
if ($i=='0') { echo"<td><img src='images/tennis009.gif' /></td>"; }
|
|
else { echo"<td><img src='images/tennis009.jpg' /></td>"; }
|
|
echo"<td><a href='accueil_joueur.php?id_joueur=$id_joueur'><h5>Accueil</h5></td>";
|
|
if ($i=='1') { echo"<td><img src='images/tennis009.gif' /></td>"; }
|
|
else { echo"<td><img src='images/tennis009.jpg' /></td>"; }
|
|
echo"<td><a href='listeTournois.php?id_joueur=$id_joueur'><h5>Inscription</h5></td>";
|
|
if ($i=='6') { echo"<td><img src='images/tennis009.gif' /></td>"; }
|
|
else { echo"<td><img src='images/tennis009.jpg' /></td>"; }
|
|
echo"<td><a href='index2.php?id_joueur=$id_joueur'><h5>FAQ</h5></td>";
|
|
if ($i=='2') { echo"<td><img src='images/tennis009.gif' /></td>"; }
|
|
else { echo"<td><img src='images/tennis009.jpg' /></td>"; }
|
|
echo"<td><a href='resultat.php?id_joueur=$id_joueur'><h5>Resultats</h5></td>";
|
|
if ($i=='3') { echo"<td><img src='images/tennis009.gif' /></td>"; }
|
|
else { echo"<td><img src='images/tennis009.jpg' /></td>"; }
|
|
echo"<td><a href='calendrier.php?id_joueur=$id_joueur'><h5>Calendrier</h5></td>";
|
|
if ($i=='4') { echo"<td><img src='images/tennis009.gif' /></td>"; }
|
|
else { echo"<td><img src='images/tennis009.jpg' /></td>"; }
|
|
echo"<td><a href='gestion_compte_joueur.php?id_joueur=$id_joueur'><h5>Modifier compte</h5></td>";
|
|
if ($i=='5') { echo"<td><img src='images/tennis009.gif' /></td>"; }
|
|
else { echo"<td><img src='images/tennis009.jpg' /></td>"; }
|
|
echo"<td><a href='info.php?id_joueur=$id_joueur&id_tournoi='><h5>Infos tournois</h5></td>";
|
|
echo"</tr>";
|
|
echo "<tr><td valign='top'><h6>Si vous n'êtes pas $User->prenom $User->nom cliquer <a href='connexion.php'> ici </h6></td></tr>";
|
|
echo "</table>";
|
|
}
|
|
|
|
?>
|