##Events mi-c
##
#
include("event_fct.php");
include("auth.php");
htmlhead();
?>
listevents();
if ((!empty($_POST['jour_ev'])&& is_numeric($_POST['jour_ev']))
&& (!empty($_POST['mois_ev'])&& is_numeric($_POST['jour_ev']))
&& !empty($_POST['nam_event'])){
$pjour = $_POST['jour_ev'];
$pmois = $_POST['mois_ev'];
$chkdat = checkdate($pmois, $pjour ,2006);
if ($chkdat == "1") createvent($_POST);
else echo "Date invalide";
}
?>
htmlfoot()
?>