89 lines
3.2 KiB
PHP
Executable File
89 lines
3.2 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']==3 and isset($_SESSION['Id'])) {
|
|
$id_cap=$_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>Menu d'administration du championnat</h1></center><br />";
|
|
|
|
echo "<h3><center>A partir de ce menu, vous pourrez accéder aux différentes fonctionnalités de la gestion des championnats</center></h3>";
|
|
|
|
/* Controle du club du capitaine */
|
|
$requete="SELECT c.type, c.id_club, c.nom FROM club c, capitaines cap WHERE cap.id_club=c.id_club AND cap.id_capitaine='$id_cap'";
|
|
$reponse=mysqli_query($db_connection, $requete) or die ("Erreur no".mysqli_errno($db_connection)()." : ".mysqli_error($db_connection)()."<br>");
|
|
$club=mysqli_fetch_object($reponse);
|
|
$type_club=$club->type;
|
|
$id_club=$club->id_club;
|
|
|
|
echo "<table>";
|
|
echo "<tr><td><b>Administration de votre compte</b></td></tr>";
|
|
echo "<tr>";
|
|
echo "<td><a href='menu_champ_suite.php?action=modif_mdp'>Modifier votre mot de passe</a></td>";
|
|
echo "</tr>";
|
|
echo "<tr><td><b>Gestion des équipes</b></td></tr>";
|
|
echo "<tr>";
|
|
if($type_club=='corpo') {
|
|
echo "<td><a href='menu_champ_suite.php?action=vis_joueurs'>Visualiser la liste des joueurs d'un club</a></td>";
|
|
}
|
|
else {
|
|
echo "<td><a href='vis_liste_club_suite.php?club=$id_club'>Visualiser la liste des joueurs du club $club->nom</a></td>";
|
|
}
|
|
echo "</tr>";
|
|
echo "<tr>";
|
|
echo "<td><a href='menu_champ_suite.php?action=creer_equipe'>Créer une nouvelle équipe</a></td>";
|
|
echo "</tr>";
|
|
echo "<tr>";
|
|
echo "<td><a href='menu_champ_suite.php?action=gestion_equipes'>Gérer vos équipes existantes</a></td>";
|
|
echo "</tr>";
|
|
echo "<tr>";
|
|
echo "<td><a href='menu_champ_suite.php?action=message_convoc'>Envoyer un message aux membres de votre équipe.</a></td>";
|
|
echo "</tr>";
|
|
echo "<tr><td><b>Gestion des matchs de championnats</b></td></tr>";
|
|
echo "<tr>";
|
|
echo "<td><a href='menu_champ_suite.php?action=date_champ'>Dates des rencontres de championnat</a></td>";
|
|
echo "</tr>";
|
|
echo "<tr>";
|
|
echo "<td><a href='menu_champ_suite.php?action=dispo_champ'>Gestion de disponibilités des joueurs</a></td>";
|
|
echo "</tr>";
|
|
echo "<tr>";
|
|
echo "<td><a href='menu_champ_suite.php?action=prog_champ'>Programmation des matchs d'une rencontre</a></td>";
|
|
echo "</tr>";
|
|
echo "<tr>";
|
|
echo "<td><a href='menu_champ_suite.php?action=convoc_champ'>Convocation des joueurs aux matchs d'une rencontre</a></td>";
|
|
echo "</tr>";
|
|
echo "<tr>";
|
|
echo "<td><a href='menu_champ_suite.php?action=score_champ'>Saisie/Modification du score d'une rencontre</a></td>";
|
|
echo "</tr>";
|
|
|
|
echo "</table>";
|
|
|
|
echo "<br /><br />";
|
|
include("deco_champ.php");
|
|
include("piedDePage.php");
|
|
}
|
|
else {
|
|
echo("Non autorisé - Redirection vers la page d'identification dans 2 secondes");
|
|
sleep(2);
|
|
include("login_champ.php");
|
|
}
|
|
|
|
?>
|