52 lines
1.5 KiB
PHP
Executable File
52 lines
1.5 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']==1) {
|
|
?>
|
|
<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");
|
|
echo "<div id='contenu'>";
|
|
echo "<center><h1>Ajout d'un nouveau club</h1></center><br />";
|
|
|
|
$num_fft=$_POST['num_fft'];
|
|
$type=$_POST['type'];
|
|
|
|
$ad_web="http://www.fft.fr/palmares/bdd/recherche_clubs/fiche_club.asp?NOM_CLUB=&VILLE=&NUMERO_CLUB=05220264&DPT=&Rechercher=Rechercher&NIVEAU=0&ID_CLUB=%s";
|
|
$ad_web=sprintf($ad_web, $num_fft);
|
|
|
|
include($ad_web);
|
|
echo "<br /><br />";
|
|
|
|
echo "<form action='nouv_club_fft_suite.php' method='post'>";
|
|
echo "<input type='hidden' name='type' value='$type'><input type='hidden' name='num_fft' value='$num_fft'>";
|
|
echo "<input type='submit' name='Valider' value='Valider'>";
|
|
echo "</form>";
|
|
|
|
echo "<br /><br />";
|
|
echo "<center><a href='extraction_fft.php'>Retour au menu de l'extracteur</a></center>";
|
|
|
|
include("deco_admin.php");
|
|
include("piedDePage.php");
|
|
/* sinon si la personne n'est pas autorisé la renvoyer àla page de login */
|
|
}
|
|
else
|
|
{
|
|
echo("Non autorisé - Redirection vers la page d'identification dans 2 secondes");
|
|
sleep(2);
|
|
include("admin_login.php");
|
|
}
|
|
?>
|