From 1f6e0c754b1fdf2abf9d4f80f28d577e0190d6a3 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Fri, 27 May 2016 16:25:38 +0200 Subject: [PATCH] Added basic template for hotel reservations. --- index.php | 1 + templates/mail_hotel.mustache | 50 +++++++++++++++++++++++++++++++++-- 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index c93cec5..79fdbdc 100644 --- a/index.php +++ b/index.php @@ -101,6 +101,7 @@ if (!$tpl_done && isset($_SESSION['access_token']) && $_SESSION['access_token']) $action = $form_type; require 'prep_mail.php'; $data['action'] = $action; + $data['action_uc'] = ucwords($action); $mail_html = $mtpl->render($data); echo '
'.$mail_html; diff --git a/templates/mail_hotel.mustache b/templates/mail_hotel.mustache index 0c369e6..bc8a628 100644 --- a/templates/mail_hotel.mustache +++ b/templates/mail_hotel.mustache @@ -1,3 +1,49 @@ -This is the Template for the {{action}} Mail! +From: Fake Reservation System <{{user.email}}> +To: {{user.name_first}} {{user.name_last}} <{{user.email}}> +Subject: [FRS] {{action_uc}} Reservation +Date: {{email_date}} +X-Mailer: FRS/1.0 +MIME-Version: 1.0 +Content-Type: text/html; charset=utf-8 -{{reservationFor_name.value}} + + +

+

YOUR RESERVATION DETAILS

+

+

+ Reservation number: {{reservationNumber.value}}
+ +
+ Reserved for: {{underName_name.value}}, {{underName_email.value}}
+
+
+ Hotel: {{reservationFor_name.value}}
+
+ + + + + +
+ Tel.: {{reservationFor_telephone.value}}
+
+ +
+ Checkin: {{checkinDate.value}}
+ + Checkout: {{checkoutDate.value}}
+ + Number of persons: {{numAdults.value}} adults, {{numChildren.value}} children
+ Price: {{price.value}} {{priceCurrency.value}}
+
+ Booked with:
+ +
+ {{bookingAgent_name.value}}
+
+
+
+

+ +