if ($reservations->reservationMealType() == "hb") { $meal_type = "Half Board"; } if ($reservations->reservationMealType() == "fb") { $meal_type = "Full Board"; } if ($reservations->reservationMealType() == "ai") { $meal_type = "All Inclusive"; } if ($reservations->reservationMealType() == "") { $meal_type = "Not Selected"; } $no_of_rooms = $reservations->reservationNoOfRoom(); $check_in_date = str_replace("00:00:00", "", $reservations->reservationCheckInDate()); $check_out_date = str_replace("00:00:00", "", $reservations->reservationCheckOutDate()); $currency_type = $reservations->currencyType(); $payment_staus = $reservations->reservationPaymentStatus(); $pdf_message = ""; if ($payment_staus) { $pdf_message = "Your Reservation is Successful. Thank you for choosing Roomista.com as your booking engine"; } else { $pdf_message = "Sorry Reservation is Unsuccessful. Thank you for choosing Roomista.com as your booking engine"; } ob_start(); include dirname(__FILE__) . "/res/voucher_template.php"; $content = ob_get_clean(); require_once dirname(__FILE__) . '/../mPDF/mpdf.php'; try { $pdf = new mpdf('', strtoupper('A4'), 0, 'Arial, Helvetica, sans-serif', 20, 15, 20, 5, 0, 0, 'L'); $pdf->AddPage($orientation); // Document info
if ($reservations->reservationMealType() == "fb") { echo "Full Board"; } if ($reservations->reservationMealType() == "ai") { echo "All Inclusive"; } if ($reservations->reservationMealType() == "ro") { echo "Not Available"; } ?> </li> <li><span>No Of Rooms: </span> <?php echo($reservations->reservationNoOfRoom()); ?></li> </ul> <div class="price-details"> <p class="deposit">Total Price</p> <h3 class="total-price"> <?php echo number_format($reservations->reservationTotalPrice(), 2); ?> <?php echo($reservations->currencyType()); ?> </h3> </div> </div> </div> </div> </div> </div> <div id = "footer"> <div class="container"><span class="copy">© 2014 Roomista.com | All rights reserved</span></div> </div> <!-- JavaScript --> <script type="text/javascript" src="<?php echo HTTP_PATH; ?>js/jquery-1.9.1.js"></script> <script type='text/javascript' src='<?php echo HTTP_PATH; ?>js/jquery-ui.js'></script> <script type="text/javascript" src="<?php echo HTTP_PATH; ?>js/superfish.js"></script> <script type="text/javascript" src="<?php echo HTTP_PATH; ?>js/jquery.prettyPhoto.js"></script> <script type="text/javascript" src="<?php echo HTTP_PATH; ?>js/scripts.js"></script>
</li> <li><span>No Of Rooms: </span> <?php echo $reservations->reservationNoOfRoom(); ?> </li> </ul> <div class="price-details"> <p class="deposit">Total Price</p> <h3 class="total-price"> <?php echo $reservations->reservationTotalPrice(); ?> <?php echo $reservations->currencyType() . " LKR"; ?> </h3> </div> </div> </div> </div> <div id="footer"></div> </div> </div> <!-- JavaScript --> <script type="text/javascript" src="<?php echo HTTP_PATH; ?>
<tr style="background-color:#e3e3e3; border:solid 1px #ccc; margin-bottom:1px;"> <td width="34%" height="30" style="padding-left:10px;">From</td> <td width="31%" style="padding-left:2px;">To</td> <td width="35%" style="padding-left:10px;">Rates</td> </tr> <tr style="background-color:#fff; border:solid 1px #ccc; margin-bottom:1px;"> <td width="34%" height="30" style="padding-left:10px;"><?php echo date("d M Y", strtotime($check_in_date)); ?> </td> <td width="31%" style="padding-left:2px;"><?php echo date("d M Y", strtotime($check_out_date)); ?> </td> <td width="35%" style="padding-left:10px;"><?php echo "<strong>" . $reservations->currencyType() . " " . $reservations->reservationTotalPrice() . "</strong>"; ?> </td> </tr> <?php if ($reservations->reservationOfferAvailable() == 1) { $offer = unserialize(urldecode($reservations->reservationOfferData())); if ($offer['OfferAvailable'] == true) { ?> <tr style="background-color:#e3e3e3; border:solid 1px #ccc; margin-bottom:1px;"> <td colspan="3" width="100%" height="25" style="padding-left:10px;">Offer</td> </tr> <tr style="background-color:#fff; border:solid 1px #ccc; margin-bottom:1px;"> <td width="34%" height="30" style="padding-left:10px;"><?php echo $offer['Title']; ?>