header("Status: 301 Moved Permanently", false, 301);
header("Location: https://www.montgolfiere-luberon.fr/tarifs.php");
exit();
//////////////////////////////////////////////////////////////
// Espace Réservation
//
// Copyright (C) 2006 - 2007 Gefigram EURL
//
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
// Inclusion de Fichiers de traitement et Classes
//////////////////////////////////////////////////////////////
include("includes/class.phpmailer.php");
//////////////////////////////////////////////////////////////
// On démarre la session
//////////////////////////////////////////////////////////////
session_start();
//////////////////////////////////////////////////////////////
// Traitement de la demande de contact
//////////////////////////////////////////////////////////////
if(isset($_POST['Submit']) && $_POST['Submit']!="")
{
// On vide les variables de sortie
unset($OutPut);
unset($OutPutError);
// On génére le mail HTML
$html = file ('reservation-mail-html.php');
$html = implode ('', $html);
// On vérifie les champs obligatoires
if(!isset($_POST['Nom']) || $_POST['Nom']=="") $OutPutError .= "Votre nom est obligatoire ";
if(!isset($_POST['Telephone']) || $_POST['Telephone']=="") $OutPutError .= "Votre téléphone est obligatoire ";
if(!isset($_POST['Email']) || $_POST['Email']=="") $OutPutError .= "Votre email est obligatoire ";
if(!isset($_POST['DateVol']) || $_POST['DateVol']=="") $OutPutError .= "Votre date du vol est obligatoire ";
if(!isset($_POST['DateAlter']) || $_POST['DateAlter']=="") $OutPutError .= "Votre date alternative est obligatoire ";
if(!isset($_POST['Cgv']) || $_POST['Cgv']=="") $OutPutError .= "Pour valider votre demande de réservation, vous devez accepter les conditions générales de ventes ";
if(!isset($OutPutError) && $OutPutError=="")
{
// On memorise les infos
$_SESSION['Nom'] = $_POST['Nom'];
$_SESSION['Adresse'] = $_POST['Adresse'];
$_SESSION['CodePostal'] = $_POST['CodePostal'];
$_SESSION['Ville'] = $_POST['Ville'];
$_SESSION['Telephone'] = $_POST['Telephone'];
$_SESSION['Portable'] = $_POST['Portable'];
$_SESSION['Email'] = $_POST['Email'];
$_SESSION['DateVol'] = $_POST['DateVol'];
$_SESSION['DateAlter'] = $_POST['DateAlter'];
$_SESSION['Nombre'] = $_POST['Nombre'];
$_SESSION['Cadeau'] = $_POST['Cadeau'];
// On injecte les variables dans les fichiers mails
$html = str_replace('[[Nom]]', $_POST['Nom'], $html);
$html = str_replace('[[Adresse]]', $_POST['Adresse'], $html);
$html = str_replace('[[CodePostal]]', $_POST['CodePostal'], $html);
$html = str_replace('[[Ville]]', $_POST['Ville'], $html);
$html = str_replace('[[Telephone]]', $_POST['Telephone'], $html);
$html = str_replace('[[Portable]]', $_POST['Portable'], $html);
$html = str_replace('[[Email]]', $_POST['Email'], $html);
$html = str_replace('[[DateVol]]', $_POST['DateVol'], $html);
$html = str_replace('[[DateAlter]]', $_POST['DateAlter'], $html);
$html = str_replace('[[Nombre]]', $_POST['Nombre'], $html);
$html = str_replace('[[Cadeau]]', $_POST['Cadeau'], $html);
// On génére le mail TXT
$txt = file ('reservation-mail-txt.php');
$txt = implode ('', $txt);
// On injecte les variables dans les fichiers mails
$txt = str_replace('[[Nom]]', $_POST['Nom'], $txt);
$txt = str_replace('[[Adresse]]', $_POST['Adresse'], $txt);
$txt = str_replace('[[CodePostal]]', $_POST['CodePostal'], $txt);
$txt = str_replace('[[Ville]]', $_POST['Ville'], $txt);
$txt = str_replace('[[Telephone]]', $_POST['Telephone'], $txt);
$txt = str_replace('[[Portable]]', $_POST['Portable'], $txt);
$txt = str_replace('[[Email]]', $_POST['Email'], $txt);
$txt = str_replace('[[DateVol]]', $_POST['DateVol'], $txt);
$txt = str_replace('[[DateAlter]]', $_POST['DateAlter'], $txt);
$txt = str_replace('[[Nombre]]', $_POST['Nombre'], $txt);
$txt = str_replace('[[Cadeau]]', $_POST['Cadeau'], $txt);
// On créé le mail a envoyé
$mail = new PHPMailer();
if($_POST['Email'] != "") $mail->From = $_POST['Email'];
else $mail->From = "contact@montgolfiere-luberon.com";
$mail->AddReplyTo = "contact@montgolfiere-luberon.com";
$mail->FromName = "Vol Terre";
$mail->Host = "";
$mail->Mailer = "mail";
$mail->Subject = "[Vol Terre] - Demande de réservation ";
$mail->Body = $html;
$mail->AltBody = $txt;
$mail->AddAddress("contact@montgolfiere-luberon.com");
$mail->AddBcc("nicolasdani@gmail.com");
$mail->AddEmbeddedImage ("images/mail/mail_01.jpg", "header", "Header", "base64", "image/gif");
$mail->Send();
$OutPut .="Demande de réservation Vol Terre : Demande envoyée ! ";
header("Location: reservation-vol-montgolfiere.php");
}
}
?>
Réserver un vol en montgolfière
Réserver
un vol en
montgolfière
include("includes/menu.inc.php"); ?>
if($OutPut != "" || $OutPutError != "") { ?>
if($OutPut != "") { ?>
echo"$OutPut"; ?>
} ?>
if($OutPutError != "") {?>
echo"$OutPutError"; ?>
} ?>
} ?>
Réserver
votre vol en montgolfière
Formulaire de réservation 1/2
Pour réserver
votre vol en montgolfière, remplissez le formulaire, imprimez et renvoyez le accompagné d’un
chèque d’acompte correspondant à 30
% du montant total (ou 100 % dans
le cas d'un bon cadeau).