$imgName = $img->getName();
     $dir = dirname("http://localhost/webprojet/projet_conf/projet_conf/server/images");
     $checkbox = '';
     $checkbox2 = '';
     if (!isset($_POST['checkbox_orateur']) && !isset($_POST['checkbox_entreprise'])) {
         $id_presentation = Presentation::insertPres($_POST['titre_presentation'], $_POST['desc_presentation'], $_POST['heure_debut'], $_POST['heure_fin'], $_POST['date'], $_POST['id_evt'], $_POST['select_type_presentation']);
         $presente = Presentation::insertPresenteOratExist($_POST['select_orateur']);
     } else {
         if (isset($_POST['checkbox_orateur']) && !isset($_POST['checkbox_entreprise'])) {
             $id_presentation = Presentation::insertPres($_POST['titre_presentation'], $_POST['desc_presentation'], $_POST['heure_debut'], $_POST['heure_fin'], $_POST['date'], $_POST['id_evt'], $_POST['select_type_presentation']);
             $id_orateur = Orateur::insertOrateurEntpExist($_POST['nom_orateur'], $_POST['prenom_orateur'], $_POST['courriel_orateur'], $_POST['tel_orateur'], $_POST['select_entreprise']);
             $presente = Presentation::insertPresenteNvOrateur();
         } else {
             if (isset($_POST['checkbox_orateur']) && isset($_POST['checkbox_entreprise'])) {
                 if (true == $img->validUpload()) {
                     $id_presentation = Presentation::insertPres($_POST['titre_presentation'], $_POST['desc_presentation'], $_POST['heure_debut'], $_POST['heure_fin'], $_POST['date'], $_POST['id_evt'], $_POST['select_type_presentation']);
                     $id_entreprise = Entreprise::insertEntreprise($_POST['nom_entreprise'], $_POST['adresse_entreprise'], $dir . '/images/' . $imgName, $_POST['url_entreprise']);
                     $id_orateur = Orateur::insertOrateurNvEntp($_POST['nom_orateur'], $_POST['prenom_orateur'], $_POST['courriel_orateur'], $_POST['tel_orateur']);
                     $presente = Presentation::insertPresenteNvOrateur();
                 }
             }
         }
     }
 }
 //Envoi les nouvelles infos pour la presentation et la met à jours.
 if (isset($_POST['modifier_presentation'])) {
     Presentation::updatePres($_POST['id_presentation'], $_POST['titre_presentation'], $_POST['description'], $_POST['date'], $_POST['heure_debut'], $_POST['heure_fin'], $_POST['orateurs'], $_POST['type_event']);
 }
 //Renvoi la liste des orateurs en fonction de la présentation
 if (isset($_REQUEST['id_presentation'])) {
     $orateur = Orateur::getOrateursArrayByPres($_REQUEST['id_presentation']);