67 lines
2.1 KiB
PHP
Executable File
67 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 "<div id='contenu'>";
|
|
echo "<center><h1>Importation d'un fichier XML JATennis</h1></center><br />";
|
|
?>
|
|
Cette page permet d'importer le fichier XML du logiciel JATennis pour intégrer les matchs d'une journée particulière.
|
|
Si une modification devait être apporter sur l'un des matchs d'une journé, réimporter le fichier pour que les modifications soient effectuées.<br /><br />
|
|
<center>
|
|
<form enctype="multipart/form-data" action="planning_jatennis_suite.php" method="post">
|
|
<table>
|
|
|
|
<tr>
|
|
<input type="hidden" name="MAX_FILE_SIZE" value="1000000">
|
|
<td>Transfère le fichier : </td><td><input type="file" name="fic_xml"></td>
|
|
</tr>
|
|
<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><input type="submit" value="Importer le fichier"/></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</center>
|
|
<?php
|
|
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");
|
|
}
|
|
|
|
?>
|