Préventica Maroc
// INVITATION OFFICIELLE
jeudi 21 mars 2019 (9h30 -12h) à CASABLANCA - CCIS Casablanca-Settat (98 Boulevard Mohammed V, CASABLANCA)'; $stopform1='';} if ($submit=='Envoyer') { if ($societe!="" AND $prenom!="" AND $nom!="" AND $fonction!="" AND $email!="" AND $tel!="" AND $ville!="") { echo '

Merci ! Votre demande a bien été enregistrée.

Rendez-vous '.$rdv1.'

'; $stopform1=''; function sans_accents($str, $charset='utf-8') { $str = htmlentities($str, ENT_NOQUOTES, $charset); $str = preg_replace('#&([A-za-z])(?:acute|cedil|caron|circ|grave|orn|ring|slash|th|tilde|uml);#', '\1', $str); $str = preg_replace('#&([A-za-z]{2})(?:lig);#', '\1', $str); // pour les ligatures e.g. 'œ' $str = preg_replace('#&[^;]+;#', '', $str); // supprime les autres caractères return $str; } $societe=str_replace(",", " ", $societe); $nom=str_replace(",", " ", $nom); $prenom=str_replace(",", " ", $prenom); $fonction=str_replace(",", " ", $fonction); $societe = sans_accents($societe); // suppression des accents $societe = strtoupper($societe); // tout en majuscule $nom = sans_accents($nom); // suppression des accents $nom = strtoupper($nom); // tout en majuscule $prenom = strtolower($prenom); // tout en minuscule $prenom = ucfirst($prenom); // première lettre en minuscule $ville = sans_accents($ville); // suppression des accents $ville = strtoupper($ville); // tout en majuscule $societeb=mysql_escape_string($societe); $nomb=mysql_escape_string($nom); $prenomb=mysql_escape_string($prenom); $fonctionb=mysql_escape_string($fonction); $emailb=mysql_escape_string($email); $telb=mysql_escape_string($tel); $villeb=mysql_escape_string($ville); mysql_query("INSERT INTO events (source, societe, nom, prenom, fonction, email, tel, ville, option1, date) VALUES ('$source','$societeb','$nomb','$prenomb','$fonctionb','$emailb','$telb','$villeb','$cocktail','$date')"); $EMailb='international@preventica.com'; $subject="Matinales 2019 - ".$source.""; $message="Societe : ".$societe."
Nom Prénom : ".$nom." ".$prenom."
Fonction : ".$fonction."
Email : ".$email."
Tel : ".$tel."
Ville : ".$ville."

Cocktail : ".$cocktail.""; $headers .= "From: Preventica Maroc \n"; $headers .= "X-Sender: \n"; $headers .= "cc: \n"; $headers .= "cc: \n"; $headers .= "cc: \n"; $headers .= "cc: \n"; $headers .= "X-Mailer: PHP\n"; $headers .= "X-Priority: 3\n"; $headers .= "Return-Path: \n"; // Chemin de retour pour les erreurs $headers .= "Content-Type: text/html; charset=UTF-8\n"; // Type MIME $bool=mail($EMailb, $subject, $message, $headers); } else { $formok="no"; echo 'Vous n\'avez pas complété correctement les champs suivants :

'; if ($societe == "") {$no_societe='style="color:red;"';} if ($nom == "") {$no_nom='style="color:red;"';} if ($prenom == "") {$no_prenom='style="color:red;"';} if ($fonction == "") {$no_fonction='style="color:red;"';} if ($email == "") {$no_email='style="color:red;"';} if ($tel == "") {$no_tel='style="color:red;"';} if ($ville == "") {$no_ville='style="color:red;"';} } } else {echo 'Vous souhaitez participer aux matinales de la Prévention « PREVENTION DES RISQUES PROFESSIONNELS : LEVIER DE PERFORMANCE POUR L\'ENTREPRISE » à '.$_GET[ville].'
Merci de compléter le formulaire suivant.

';} $orig=' - '.$_GET[orig]; echo $stopform1; ?>
:
:
:
:
:
:
:

RENDEZ-VOUS :


9h30
Enregistrement des participants et Café d’accueil
10h
Allocution d'ouverture et de bienvenue par le Représentant de la CCIS CS
10h15
Intervention d'Experts Internationaux
11h30
Débats et échanges
12h00
Synthèse et recommandations, puis clôture par le représentant de PREVENTICA
';}?>