59 lines
2.1 KiB
PHP
Executable File
59 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");
|
|
echo "<center><h1>Modification d'une information du club</h1></center><br /><br />";
|
|
|
|
$id_info=$_GET['id_info'];
|
|
|
|
include("conf.php");
|
|
|
|
$requete="SELECT * FROM infos_site WHERE id_info='$id_info'";
|
|
$reponse=mysqli_query($db_connection, $requete) or die ("Erreur no".mysqli_errno($db_connection)()." : ".mysqli_error($db_connection)()."<br>");
|
|
$info=mysqli_fetch_object($reponse);
|
|
|
|
echo "<form action='modif_info_suite.php' method='post'>";
|
|
echo "<center><table>";
|
|
list($annee, $mois, $jour)=explode("-", $info->date);
|
|
$date="$jour/$mois/$annee";
|
|
echo "<tr><td>Entrer la date de l'information : </td><td><input type='text' name='date' maxlength='12' value='$date'>(jj/mm/aaaa)</td></tr>";
|
|
echo "<tr><td>Entrer votre prénom ainsi que votre nom : </td><td><input type='text' name='posteur' maxlength='50' value='$info->posteur'></td></tr>";
|
|
echo "<tr><td>Entrer le texte du message : </td><td><textarea name='info' rows='5' cols='40'>$info->information</textarea>";
|
|
echo "<input type='hidden' name='id_info' value='$id_info'>";
|
|
echo "<tr><td></td><td><input type='submit' name='valider' value='Valider'></td></tr>";
|
|
echo "</table></center>";
|
|
echo "</form>";
|
|
|
|
echo "<br /><br />";
|
|
echo "<center><a href='gestion_infos.php'>Retour à la gestion des infos</a></center>";
|
|
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");
|
|
}
|
|
|
|
?>
|