This commit is contained in:
Lab 8916100448256 2020-11-12 18:48:45 +01:00
parent 552b30c761
commit 320a5ecc2e
2 changed files with 20 additions and 15 deletions

View File

@ -41,17 +41,20 @@ $letype = mysqli_insert_id($connect);
else $letype = $_POST['type']; else $letype = $_POST['type'];
*/ */
$queradd = "INSERT INTO planning SET $queradd = "INSERT INTO planning SET
jour='".$_POST['jour']."', jour='".$_POST['jour']."',
heure='".$_POST['heure']."', heure='".$_POST['heure']."',
heurefin='".$_POST['heurefin']."', heurefin='".$_POST['heurefin']."',
theme='3',
intervenant='".$lacle."', intervenant='".$lacle."',
titre='".securitsearch($_POST['titre'])."', titre='".securitsearch($_POST['titre'])."',
description='".securitsearch($_POST['description'])."', description='".securitsearch($_POST['description'])."',
valid='1', -- theme='3', -- default null
type='1', -- valid='1', -- default 1
online='1'"; -- type='1', -- default null
-- onoff='0', -- default 0
online='1'
";
$resultadd = mysqli_query($connect,$queradd); $resultadd = mysqli_query($connect,$queradd);
$fiche = mysqli_insert_id($connect); $fiche = mysqli_insert_id($connect);
@ -65,7 +68,7 @@ else $letype = $_POST['type'];
$resultad1 = mysqli_query($connect,$querad1); $resultad1 = mysqli_query($connect,$querad1);
} }
envoiunmail("brunomv@hotmail.fr","TdC inscription en ligne","".$_POST['titre'].", intervention de : ".$_POST['prenom']." ".$_POST['nom'].""); envoiunmail("person-to-notify@domain.tld","[Prog] Inscription en ligne","".$_POST['titre']."\nIntervention de : ".$_POST['prenom']." ".$_POST['nom']."");
header("location: inscription.php?m=1"); header("location: inscription.php?m=1");
?> ?>

View File

@ -52,21 +52,23 @@ CREATE TABLE `planning` (
`jour` tinyint(5) NOT NULL, `jour` tinyint(5) NOT NULL,
`heure` varchar(5) NOT NULL, `heure` varchar(5) NOT NULL,
`heurefin` varchar(5) NOT NULL, `heurefin` varchar(5) NOT NULL,
`lieu` int(5) NOT NULL, `lieu` int(5),
`theme` int(5) NOT NULL, `theme` int(5),
`intervenant` int(11) NOT NULL, `intervenant` int(11) NOT NULL,
`titre` varchar(255) NOT NULL, `titre` varchar(255) NOT NULL,
`description` text NOT NULL, `description` text NOT NULL,
`valid` tinyint(3) NOT NULL, `valid` tinyint(3) NOT NULL DEFAULT 1,
`onoff` tinyint(3) NOT NULL, `onoff` tinyint(3) NOT NULL DEFAULT 0,
`type` int(5) NOT NULL, `type` int(5),
`referent` int(5) NOT NULL, `referent` int(5),
`secretaire` int(5) NOT NULL, `secretaire` int(5),
`rapporteur` int(5) NOT NULL, `rapporteur` int(5),
`online` int(5) NOT NULL `online` int(5) NOT NULL DEFAULT 1
) ENGINE=MyISAM DEFAULT CHARSET=utf8; ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --
-- Structure de la table `rapporteur` -- Structure de la table `rapporteur`
-- --