<?php /** * @package OTA Hotel Management * @copyright e-Novate Pte Ltd 2012-2015 */ error_reporting(E_ALL | E_STRICT); include_once dirname(__FILE__) . "/../dailyfunc.php"; include_once dirname(__FILE__) . "/../PHPExcel/Classes/PHPExcel.php"; include_once dirname(__FILE__) . "/../PHPExcel/Classes/PHPExcel/Writer/Excel2007.php"; $lang = get_language(); load_language($lang); $logofile = Get_LogoFile(); date_default_timezone_set(TIMEZONE); // Get the current settings Get_HotelSettings($hotel, $altname, $company, $register, $ebridgeid, $tax1, $tax2, $phone, $fax, $IM, $street, $city, $citycode, $state, $postcode, $countrycode, $country, $logo, $latitude, $longitude, $language, $email, $web, $ota, $chaincode); ?> <table height="500" class="listing-table"> <tbody> <tr> <?php if (accessNew('reports') && $menu == 'shiftReport') { print_rightMenu_reports(); } elseif ($menu == 'myShift') { print_rightMenu_mySettings(); } ?> <td valign="top"> <?php if (is_ebridgeCustomer() && accessNew('reports') || is_ebridgeCustomer() && $menu == 'myShift') {
/** * Print the footer of the invoice * Use the details from the hotel settings to print the address * @param $pg [in] Page number * @param $px [in] Pixel size * @param $lc [in] Line count */ function print_customfooter($pg, $px, $lc) { $hotel = ""; $altname = ""; $company = ""; $register = ""; $ebridgeid = ""; $tax1 = ""; $tax2 = ""; $phone = ""; $fax = ""; $IM = ""; $street = ""; $city = ""; $citycode = ""; $state = ""; $postcode = ""; $countrycode = ""; $country = ""; $logo = ""; $latitude = ""; $longitude = ""; $lang = ""; $email = ""; $web = ""; $ota = ""; $chaincode = ""; Get_HotelSettings($hotel, $altname, $company, $register, $ebridgeid, $tax1, $tax2, $phone, $fax, $IM, $street, $city, $citycode, $state, $postcode, $countrycode, $country, $logo, $latitude, $longitude, $language, $email, $web, $ota, $chaincode); if ($register) { $register = "(" . $register . ")"; } echo "</table></td>\n"; echo "</tr>\n"; echo "<tr><td>"; echo "Signature:_______________________________ Date: <u>" . date('Y/m/d h:i') . "</u>"; echo "</td>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td style=\"height:27mm;\">\n"; echo "<table width=100%><tr><td></td><td align=center>" . $hotel . " " . $register . "</td><td></td></tr>\n"; echo "<tr><td></td><td align=center>" . $street . " " . $city . " " . $country . " " . $postcode . "</td><td></td></tr>\n"; echo "<tr><td></td><td align=center>T: " . $phone . " F: " . $fax . " E: " . $email . "</td><td align=right>" . $pg . "</td></tr></table>\n"; echo "</td>\n"; echo "</tr>\n"; }