62 lines
2.1 KiB
PHP
Executable File
62 lines
2.1 KiB
PHP
Executable File
<?php
|
|
session_start();
|
|
header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
|
|
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 "<center><h1>Liste de joueurs sous forme de fichier Excel</h1></center><br /><br />";
|
|
if(isset($_POST['tournoi'])) {
|
|
$id_tournoi=$_POST['tournoi'];
|
|
}
|
|
if(isset($_GET['tournoi'])) {
|
|
$id_tournoi=$_GET['tournoi'];
|
|
}
|
|
|
|
echo "<form enctype='multipart/form-data' action='extract_excel_suite2.php' method='post'>";
|
|
echo "<center><table>";
|
|
echo "<input type='hidden' name='MAX_FILE_SIZE' value='10000'>";
|
|
echo "<tr><td>Choisissez une catégorie dans la liste : </td><td><select name='categorie'>";
|
|
$requete="SELECT c.id_categorie, c.nom FROM categorie c, categories_par_tournoi ct WHERE ct.id_tournoi='$id_tournoi' AND ct.id_categorie=c.id_categorie";
|
|
$reponse=mysqli_query($db_connection, $requete) or die ("Erreur no".mysqli_errno($db_connection)()." : ".mysqli_error($db_connection)()."<br>");
|
|
while($cat=mysqli_fetch_object($reponse)) {
|
|
echo "<option value='$cat->id_categorie'>$cat->nom</option>";
|
|
}
|
|
echo "</select>";
|
|
echo "Indiquer le fichier que vous souhaitez traiter en cliquant sur parcourir puis cliquez sur Validez.<br />";
|
|
echo "<tr><td>Fichier Excel : </td><td><input type='file' name='fic_csv'></td></tr>";
|
|
echo "<input type='hidden' name='tournoi' value='$id_tournoi'>";
|
|
echo "<tr><td></td><td><input type='submit' name='valider' value='Valider'></td></tr>";
|
|
echo "</table></center>";
|
|
echo "</form>";
|
|
|
|
echo "<br /><br />";
|
|
|
|
include("deco_admin_club.php");
|
|
include("piedDePage.php");
|
|
}
|
|
else {
|
|
echo("Non autorisé - Redirection vers la page d'identification dans 2 secondes");
|
|
sleep(2);
|
|
include("admin_login.php");
|
|
}
|
|
|
|
?>
|