117 lines
4.9 KiB
PHP
Executable File
117 lines
4.9 KiB
PHP
Executable File
<?php
|
|
$id_tournoi=$_GET['id_tournoi'];
|
|
$id_joueur=$_GET['id_joueur'];
|
|
$i=5;
|
|
include("top.php");
|
|
echo"<body background='images/balle_raquette3.jpg'>";
|
|
include("conf.php");
|
|
include("mysql_compat.php");
|
|
include("conf.php");
|
|
$db_connection=mysql_connect($db_host,$db_user,$password);
|
|
mysql_select_db($db_name,$db_connection);
|
|
$requete="SELECT tournoi.gains,tournoi.juge_arbitre,tournoi.engagement, tournoi.club,tournoi.debut,tournoi.fin,tournoi.nom FROM tournoi WHERE tournoi.id_tournoi=$id_tournoi";
|
|
$reponse=mysql_query($requete,$db_connection) or die ("Erreur no".mysql_errno()." : ".mysql_error()."<br>");
|
|
$tournoi=mysql_fetch_object($reponse);
|
|
|
|
$requete="SELECT club.nom ,club.telephone FROM club WHERE club.id_club=$tournoi->club";
|
|
$reponse=mysql_query($requete,$db_connection) or die ("Erreur no".mysql_errno()." : ".mysql_error()."<br>");
|
|
$club=mysql_fetch_object($reponse);
|
|
|
|
|
|
$titre="Information sur le tournoi";
|
|
include("enTete.php");
|
|
echo"<BODY><CENTER><H1 ALIGN='CENTER'><FONT COLOR='#ff1105'>$club->nom</FONT></H1>
|
|
</CENTER>";
|
|
echo"<CENTER><H1 ALIGN='CENTER'>$tournoi->nom</H1>
|
|
</CENTER><CENTER><H1 ALIGN='CENTER'>";
|
|
$debut=explode("-",$tournoi->debut);
|
|
$fin=explode("-",$tournoi->fin);
|
|
echo"<FONT COLOR='#ff1a0e'> ".$debut[2]."/".$debut[1]."/".$debut[0]." au " .$fin[2]."/".$fin[1]."/".$fin[0]."</FONT></H1>
|
|
</CENTER>";
|
|
|
|
$requete="SELECT categorie.prix_junior,categorie.prix_senior,categorie.ref_cat FROM categorie WHERE categorie.tournoi=$id_tournoi";
|
|
$reponse=mysql_query($requete,$db_connection) or die ("Erreur no".mysql_errno()." : ".mysql_error()."<br>");
|
|
echo"<H4>Inscription possible dans les catégories suivantes :</H4><table border bgcolor='#FFFFFF'><tr><td>Catégories</td><td>Prix Senior</td><td>Prix junior</td>";
|
|
$j=0;
|
|
while($categorie=mysql_fetch_object($reponse))
|
|
{
|
|
if ($categorie->ref_cat ==1) {
|
|
$Categorie='Adulte homme seniors';
|
|
}if ($categorie->ref_cat ==2) {
|
|
$Categorie='Adulte homme +35 ans';
|
|
}if ($categorie->ref_cat ==3) {
|
|
$Categorie='Adulte homme +40 ans';
|
|
}if ($categorie->ref_cat ==4) {
|
|
$Categorie='Adulte homme +45 ans';
|
|
}if ($categorie->ref_cat ==5) {
|
|
$Categorie='Adulte homme +50 ans';
|
|
}if ($categorie->ref_cat ==6) {
|
|
$Categorie='Adulte homme +55 ans';
|
|
}if ($categorie->ref_cat ==7) {
|
|
$Categorie='Adulte homme +60 ans';
|
|
}if ($categorie->ref_cat ==8) {
|
|
$Categorie='Adulte femme seniors';
|
|
}if ($categorie->ref_cat ==9) {
|
|
$Categorie='Adulte femme +35 ans';
|
|
}if ($categorie->ref_cat ==10) {
|
|
$Categorie='Adulte femme +40 ans';
|
|
}if ($categorie->ref_cat ==11) {
|
|
$Categorie='Adulte femme +45ans';
|
|
}if ($categorie->ref_cat ==12) {
|
|
$Categorie='Adulte femme +50 ans';
|
|
}if ($categorie->ref_cat ==13) {
|
|
$Categorie='Adulte femme +55 ans';
|
|
}if ($categorie->ref_cat ==14) {
|
|
$Categorie='Adulte femme +60 ans';
|
|
}if ($categorie->ref_cat ==15) {
|
|
$Categorie='Jeune homme -8ans';
|
|
}if ($categorie->ref_cat ==16) {
|
|
$Categorie='Jeune homme -10ans';
|
|
}if ($categorie->ref_cat ==17) {
|
|
$Categorie='Jeune homme -12ans';
|
|
}if ($categorie->ref_cat ==18) {
|
|
$Categorie='Jeune homme -14ans';
|
|
}if ($categorie->ref_cat ==19) {
|
|
$Categorie='Jeune homme -16ans';
|
|
}if ($categorie->ref_cat ==20) {
|
|
$Categorie='Jeune homme -18ans';
|
|
}if ($categorie->ref_cat ==21) {
|
|
$Categorie='Jeune femme -8ans';
|
|
}if ($categorie->ref_cat ==22) {
|
|
$Categorie='Jeune femme -10ans';
|
|
}if ($categorie->ref_cat ==23) {
|
|
$Categorie='Jeune femme -12ans';
|
|
}if ($categorie->ref_cat ==24) {
|
|
$Categorie='Jeune femme -14ans';
|
|
}if ($categorie->ref_cat ==25) {
|
|
$Categorie='Jeune femme -16ans';
|
|
}if ($categorie->ref_cat ==26) {
|
|
$Categorie='Jeune femme -18ans';
|
|
}if ($categorie->ref_cat ==27) {
|
|
$Categorie='Double homme';
|
|
}if ($categorie->ref_cat ==28) {
|
|
$Categorie='Double femme';
|
|
}if ($categorie->ref_cat ==29) {
|
|
$Categorie='Double mixte';
|
|
}
|
|
$j=$j+1;
|
|
$nb_lignes=mysql_num_rows($reponse);
|
|
echo"<tr><td><ul><img src='images/tenball2.gif' />$Categorie</ul></td><td align='center'>$categorie->prix_senior €</td><td>$categorie->prix_junior €</td>";
|
|
if ($j==1) {
|
|
//echo"<td rowspan='$nb_lignes' ><TABLE bgcolor='#FFFFFF' BORDER='10' CELLPADDING='5' CELLSPACING='5' WIDTH='350' HEIGHT='100'><TR><TD><H2>TARIF</H2></TD><TD><H3>JEUNES</H3></TD><TD><H3>7.5 €</H3></TD></TR><TR><TD></TD><TD><H3>ADULTES</H3></TD><TD><H3>12 €</H3></TD></TR><TR><TD></TD><TD><H3>ADULTES +35ans</H3></TD><TD><H3>18 €</H3></TD></TR></TABLE>";
|
|
}
|
|
|
|
}
|
|
echo"</tr></table>";
|
|
|
|
echo"<CENTER><H4 ALIGN='CENTER'>CLOTURE DES ENGAGEMENTS SANS PREAVIS</H4></CENTER>";
|
|
echo"<CENTER><H3 ALIGN='CENTER'>PRIX : $tournoi->gains € + LOTS</H3></CENTER>";
|
|
echo"<CENTER><P ALIGN='CENTER'><A HREF='listeTournois.php?id_joueur=$id_joueur'><IMG SRC='button1.gif' ALIGN='TOP'></A></P>";
|
|
echo"</CENTER><CENTER><H4 ALIGN='CENTER'>Autres infos :</H4></CENTER>";
|
|
echo"<CENTER><H3 ALIGN='CENTER'>$tournoi->engagement</H3></CENTER>";
|
|
echo"<CENTER><H3 ALIGN='CENTER'>tel club: $club->telephone</H3></CENTER>";
|
|
echo"<CENTER><H3 ALIGN='CENTER'>JUGE ARBITRE : $tournoi->juge_arbitre</H3></CENTER></BODY>";?>
|
|
|
|
|
|
<?php include("piedDePage.php");?>
|