58 lines
1.6 KiB
PHP
Executable File
58 lines
1.6 KiB
PHP
Executable File
<?php
|
|
session_start();
|
|
if(count($_SESSION)==2 and isset($_SESSION['id_joueur']) and isset($_SESSION['id_club'])) {
|
|
$id_joueur_log=$_SESSION['id_joueur'];
|
|
$id_club_log=$_SESSION['id_club'];
|
|
?>
|
|
<!DOCTYPE html PUBLIC "-//WAPFORUM/DTD XHTML Mobile 1.1//EN"
|
|
"<http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd">
|
|
<head>
|
|
<TITLE>ResaTennis</TITLE>
|
|
<meta http-equiv:"content-type" content="text/html, charset=UTF-8">
|
|
<!--<meta http-equiv:"Cache-Control" content="public">-->
|
|
<!-- Style CSS -->
|
|
<link rel="stylesheet" href="style_port.css" type="text/css">
|
|
</head>
|
|
<body>
|
|
<div id="tout">
|
|
<?php
|
|
/* Recherche du joueur */
|
|
include_once("fonctions_mobile.php");
|
|
|
|
echo "<p style='text-align:center;font-size:12px;font-weight:bold;'>";
|
|
echo "Inscription à un tournoi<br />";
|
|
|
|
if(count($_GET) == 0) {
|
|
echo "Sélectionnez le tournoi souhaité :";
|
|
echo "</p>";
|
|
|
|
affichage_tournoi($id_joueur_log);
|
|
}
|
|
else if(count($_GET) == 1 and isset($_GET['tournoi'])) {
|
|
$id_tournoi=$_GET['tournoi'];
|
|
echo "</p>";
|
|
|
|
categorie($id_tournoi, $id_joueur_log);
|
|
}
|
|
else if(count($_GET) == 4 and isset($_GET['tournoi']) and isset($_GET['categorie']) and isset($_GET['travaille'])) {
|
|
$id_tournoi=$_GET['tournoi'];
|
|
$id_categorie=$_GET['categorie'];
|
|
$travaille=$_GET['travaille'];
|
|
|
|
inscription_tournoi($id_tournoi, $id_joueur_log, $id_categorie, $travaille);
|
|
|
|
echo "</p>";
|
|
}
|
|
|
|
echo "<p style='text-align:center;font-size:12px;'>";
|
|
echo "<a href='menu_port.php'>Retour au menu principal</a>";
|
|
echo "</p>";
|
|
|
|
include_once("piedpage_port.php");
|
|
}
|
|
else {
|
|
echo "acces impossible";
|
|
include("index_port.php");
|
|
}
|
|
|
|
?>
|