68 lines
1.6 KiB
PHP
Executable File
68 lines
1.6 KiB
PHP
Executable File
<?php
|
|
session_start();
|
|
if(isset($_SESSION['Admin']) and $_SESSION['Admin']==2 and isset($_SESSION['Club'])) {
|
|
$id_club=$_SESSION['Club'];
|
|
$id_admin=$_SESSION['Id'];
|
|
?>
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Language" content="fr">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
|
|
<title>LE SERVEUR VOCAL DE RESERVATION DES SALLES DE TENNIS</title>
|
|
<link rel="stylesheet" href="style.css" type="text/css">
|
|
</head>
|
|
|
|
<body>
|
|
<div id="tout">
|
|
<?php
|
|
include("enTete.php");
|
|
include("menu.php");
|
|
include("conf.php");
|
|
|
|
echo "<div id='contenu'>";
|
|
echo "<center><h1>Selection d'un tournoi et d'une date</h1></center><br />";
|
|
?>
|
|
<center>
|
|
<form action="RappelTel_suite.php" method="get">
|
|
<table>
|
|
<tr>
|
|
<td>Nom du tournoi :</td><td><select name='tournoi'>
|
|
<?php
|
|
$annee=date("Y");
|
|
$requete="SELECT id_tournoi, nom FROM tournoi WHERE id_club='$id_club' AND saison='$annee' AND id_tournoi<>'0'";
|
|
$reponse=mysqli_query($db_connection, $requete) or die ("Erreur no".mysqli_errno($db_connection)()." : ".mysqli_error($db_connection)()."<br>");
|
|
while($tournoi=mysqli_fetch_object($reponse)) {
|
|
echo "<option value='$tournoi->id_tournoi'>$tournoi->nom</option>";
|
|
}
|
|
?>
|
|
</select></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Date journée :</td><td><input type="text" name="date">(format jj/mm/aaaa)</td>
|
|
</tr>
|
|
<tr>
|
|
<td><input type="submit" value="Valider"/></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</center>
|
|
<?php
|
|
include("deco_admin_club.php");
|
|
echo "</div>";
|
|
include("piedDePage.php");
|
|
?>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
<?php
|
|
}
|
|
else {
|
|
echo("Non autorisé - Redirection vers la page d'identification dans 2 secondes");
|
|
sleep(2);
|
|
include("admin_login.php");
|
|
}
|
|
|
|
?>
|