+
+ |
+ {if $hotel}{$hotel->hotel_name|escape:'html':'UTF-8'}{/if}
+ |
+
+
+ |
+ {if $hotel && $hotel->city}{$hotel->city|escape:'html':'UTF-8'}{if $hotel_country}, {/if}{/if}{if $hotel_country}{$hotel_country|escape:'html':'UTF-8'}{/if}
+ |
+
+
+ {* ===== SECTION 1: GUEST INFORMATION ===== *}
+ {if $show_section_guest_info}
+ | |
+
+
+
+
+
+
+
+ {if $labels.title || $labels.full_name}
+
+ {if $labels.title && $labels.full_name}
+ | {l s=$labels.title pdf='true'}: |
+
+ □ {l s='Mr.' pdf='true'}
+ □ {l s='Ms.' pdf='true'}
+ |
+ {l s=$labels.full_name pdf='true'}: |
+ ________________________ |
+ {elseif $labels.title}
+ {l s=$labels.title pdf='true'}: |
+
+ □ {l s='Mr.' pdf='true'}
+ □ {l s='Ms.' pdf='true'}
+ |
+ {else}
+ {l s=$labels.full_name pdf='true'}: |
+ ________________________ |
+ {/if}
+
+ {/if}
+ {if $labels.phone || $labels.email}
+
+ {if $labels.phone && $labels.email}
+ | {l s=$labels.phone pdf='true'}: |
+ ________________________ |
+ {l s=$labels.email pdf='true'}: |
+ ________________________ |
+ {elseif $labels.phone}
+ {l s=$labels.phone pdf='true'}: |
+ ________________________ |
+ {else}
+ {l s=$labels.email pdf='true'}: |
+ ________________________ |
+ {/if}
+
+ {/if}
+ {if $labels.dob || $labels.nationality}
+
+ {if $labels.dob && $labels.nationality}
+ | {l s=$labels.dob pdf='true'}: |
+ ____ / ____ / ________ |
+ {l s=$labels.nationality pdf='true'}: |
+ ________________________ |
+ {elseif $labels.dob}
+ {l s=$labels.dob pdf='true'}: |
+ ____ / ____ / ________ |
+ {else}
+ {l s=$labels.nationality pdf='true'}: |
+ ________________________ |
+ {/if}
+
+ {/if}
+ {if $labels.city_country || $labels.postal_code}
+
+ {if $labels.city_country && $labels.postal_code}
+ | {l s=$labels.city_country pdf='true'}: |
+ ________________________ |
+ {l s=$labels.postal_code pdf='true'}: |
+ ________________________ |
+ {elseif $labels.city_country}
+ {l s=$labels.city_country pdf='true'}: |
+ ________________________ |
+ {else}
+ {l s=$labels.postal_code pdf='true'}: |
+ ________________________ |
+ {/if}
+
+ {/if}
+ {if $labels.address}
+
+ | {l s=$labels.address pdf='true'}: |
+ __________________________________________________________________________________ |
+
+ {/if}
+
+ |
+
+
+
+ |
+
+ {/if}
+
+ {* ===== SECTION 2: TRAVEL INFORMATION ===== *}
+ {if $show_section_travel_info}
+ | |
+
+
+
+
+
+
+
+ {if $labels.arrived_from || $labels.next_dest}
+
+ {if $labels.arrived_from && $labels.next_dest}
+ | {l s=$labels.arrived_from pdf='true'}: |
+ ________________________ |
+ {l s=$labels.next_dest pdf='true'}: |
+ ___________________ |
+ {elseif $labels.arrived_from}
+ {l s=$labels.arrived_from pdf='true'}: |
+ ________________________ |
+ {else}
+ {l s=$labels.next_dest pdf='true'}: |
+ ___________________ |
+ {/if}
+
+ {/if}
+ {if $labels.flight || $labels.vehicle}
+
+ {if $labels.flight && $labels.vehicle}
+ | {l s=$labels.flight pdf='true'}: |
+ ________________________ |
+ {l s=$labels.vehicle pdf='true'}: |
+ ___________________ |
+ {elseif $labels.flight}
+ {l s=$labels.flight pdf='true'}: |
+ ________________________ |
+ {else}
+ {l s=$labels.vehicle pdf='true'}: |
+ ___________________ |
+ {/if}
+
+ {/if}
+ {if $labels.purpose}
+
+ | {l s=$labels.purpose pdf='true'}: |
+ ________________________ |
+
+ {/if}
+
+ |
+
+
+
+ |
+
+ {/if}
+
+ {* ===== SECTION 3: BOOKING INFORMATION ===== *}
+ {if $show_section_booking_info}
+ | |
+
+
+
+
+
+
+
+ {if $labels.booking_ref || $labels.booking_rate}
+
+ {if $labels.booking_ref && $labels.booking_rate}
+ | {l s=$labels.booking_ref pdf='true'}: |
+ {$booking_reference|escape:'html':'UTF-8'} |
+ {l s=$labels.booking_rate pdf='true'}: |
+
+ {if $rate_per_night}{$rate_per_night|escape:'html':'UTF-8'}{else}__________{/if}
+ |
+ {elseif $labels.booking_ref}
+ {l s=$labels.booking_ref pdf='true'}: |
+ {$booking_reference|escape:'html':'UTF-8'} |
+ {else}
+ {l s=$labels.booking_rate pdf='true'}: |
+
+ {if $rate_per_night}{$rate_per_night|escape:'html':'UTF-8'}{else}__________{/if}
+ |
+ {/if}
+
+ {/if}
+ {if $labels.booking_arrival || $labels.booking_departure}
+
+ {if $labels.booking_arrival && $labels.booking_departure}
+ | {l s=$labels.booking_arrival pdf='true'}: |
+
+ {if $arrival_date_time}{$arrival_date_time|escape:'html':'UTF-8'}{else}____ / ____ / ____ ______{/if}
+ |
+ {l s=$labels.booking_departure pdf='true'}: |
+
+ {if $departure_date_time}{$departure_date_time|escape:'html':'UTF-8'}{else}____ / ____ / ____ ______{/if}
+ |
+ {elseif $labels.booking_arrival}
+ {l s=$labels.booking_arrival pdf='true'}: |
+
+ {if $arrival_date_time}{$arrival_date_time|escape:'html':'UTF-8'}{else}____ / ____ / ____ ______{/if}
+ |
+ {else}
+ {l s=$labels.booking_departure pdf='true'}: |
+
+ {if $departure_date_time}{$departure_date_time|escape:'html':'UTF-8'}{else}____ / ____ / ____ ______{/if}
+ |
+ {/if}
+
+ {/if}
+ {if $labels.booking_room_type || $labels.booking_room_number}
+
+ {if $labels.booking_room_type && $labels.booking_room_number}
+ | {l s=$labels.booking_room_type pdf='true'}: |
+ {$room_type|escape:'html':'UTF-8'} |
+ {l s=$labels.booking_room_number pdf='true'}: |
+ {$room_number|escape:'html':'UTF-8'} |
+ {elseif $labels.booking_room_type}
+ {l s=$labels.booking_room_type pdf='true'}: |
+ {$room_type|escape:'html':'UTF-8'} |
+ {else}
+ {l s=$labels.booking_room_number pdf='true'}: |
+ {$room_number|escape:'html':'UTF-8'} |
+ {/if}
+
+ {/if}
+ {if $labels.num_guests}
+
+ | {l s=$labels.num_guests pdf='true'}: |
+
+ {l s='Adults:' pdf='true'} {$adults|escape:'html':'UTF-8'}
+ {l s='Children:' pdf='true'} {$children|escape:'html':'UTF-8'}
+ |
+
+ {/if}
+
+ |
+
+
+
+ |
+
+ {/if}
+
+ {* ===== SECTION 4: IDENTIFICATION DOCUMENT ===== *}
+ {if $show_section_identification}
+ | |
+
+
+
+
+ {if $local_id}
+
+
+ □ {l s='LOCAL GUEST' pdf='true'}
+
+ {if $labels.id_proof}
+
+ | {l s=$labels.id_proof pdf='true'}: |
+ ________________________________ |
+
+ {/if}
+ {if $labels.id_number}
+
+ | {l s=$labels.id_number pdf='true'}: |
+ ________________________________ |
+
+ {/if}
+
+ |
+
+ {/if}
+ {if $int_id}
+
+
+ □ {l s='INTERNATIONAL GUEST' pdf='true'}
+
+ {if $labels.passport || $labels.place_of_issue}
+
+ {if $labels.passport && $labels.place_of_issue}
+ | {l s=$labels.passport pdf='true'}: |
+ ____________________ |
+ {l s=$labels.place_of_issue pdf='true'}: |
+ ____________________ |
+ {elseif $labels.passport}
+ {l s=$labels.passport pdf='true'}: |
+ ____________________ |
+ {else}
+ {l s=$labels.place_of_issue pdf='true'}: |
+ ____________________ |
+ {/if}
+
+ {/if}
+ {if $labels.date_of_issue || $labels.date_of_expiry}
+
+ {if $labels.date_of_issue && $labels.date_of_expiry}
+ | {l s=$labels.date_of_issue pdf='true'}: |
+ ____ / ____ / ____ |
+ {l s=$labels.date_of_expiry pdf='true'}: |
+ ____ / ____ / ____ |
+ {elseif $labels.date_of_issue}
+ {l s=$labels.date_of_issue pdf='true'}: |
+ ____ / ____ / ____ |
+ {else}
+ {l s=$labels.date_of_expiry pdf='true'}: |
+ ____ / ____ / ____ |
+ {/if}
+
+ {/if}
+ {if $labels.visa || $labels.valid_until}
+
+ {if $labels.visa && $labels.valid_until}
+ | {l s=$labels.visa pdf='true'}: |
+ ____________________ |
+ {l s=$labels.valid_until pdf='true'}: |
+ ____ / ____ / ____ |
+ {elseif $labels.visa}
+ {l s=$labels.visa pdf='true'}: |
+ ____________________ |
+ {else}
+ {l s=$labels.valid_until pdf='true'}: |
+ ____ / ____ / ____ |
+ {/if}
+
+ {/if}
+ {if $labels.arrival_in_country}
+
+ | {l s=$labels.arrival_in_country pdf='true'}: |
+ ____ / ____ / ____ |
+
+ {/if}
+
+ |
+
+ {/if}
+
+
+ |
+
+ {/if}
+
+ {* ===== SECTION 5: ADDITIONAL GUESTS ===== *}
+ {if $show_section_additional_guests}
+ | |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {if $labels.addguest_name}{/if}
+ {if $labels.addguest_id_type}{/if}
+ {if $labels.addguest_id_number}{/if}
+ {if $labels.addguest_nationality}{/if}
+
+ {section name=ag loop=$additional_guests_rows}
+
+ | {$smarty.section.ag.iteration} |
+ {if $labels.addguest_name}______________________________ | {/if}
+ {if $labels.addguest_id_type}________________ | {/if}
+ {if $labels.addguest_id_number}________________ | {/if}
+ {if $labels.addguest_nationality}____________ | {/if}
+
+ {/section}
+ {if !$additional_guests_rows}
+
+ | 1 |
+ {if $labels.addguest_name}______________________________ | {/if}
+ {if $labels.addguest_id_type}________________ | {/if}
+ {if $labels.addguest_id_number}________________ | {/if}
+ {if $labels.addguest_nationality}____________ | {/if}
+
+ {/if}
+
+ |
+
+
+
+ |
+
+ {/if}
+
+ {* ===== SECTION 6: BILLING & CORPORATE DETAILS ===== *}
+ {if $show_section_billing_corporate}
+ | |
+
+
+
+
+
+
+
+ {if $labels.company}
+
+ | {l s=$labels.company pdf='true'}: |
+ ______________________________________________ |
+
+ {/if}
+ {if $labels.tax_id}
+
+ | {l s=$labels.tax_id pdf='true'}: |
+ ______________________________________________ |
+
+ {/if}
+
+ |
+
+
+
+ |
+
+ {/if}
+
+ {* ===== SECTION 7: PAYMENT & DEPOSIT ===== *}
+ {if $show_section_payment_deposit}
+ | |
+
+
+
+
+
+
+
+ {if $labels.payment_method}
+
+ | {l s=$labels.payment_method pdf='true'}: |
+ ________________________________ |
+
+ {/if}
+ {if $labels.card_number || $labels.security_deposit}
+
+ {if $labels.card_number && $labels.security_deposit}
+ | {l s=$labels.card_number pdf='true'}: |
+ ________________________________ |
+ {l s=$labels.security_deposit pdf='true'}: |
+ __________________ |
+ {elseif $labels.card_number}
+ {l s=$labels.card_number pdf='true'}: |
+ ________________________________ |
+ {else}
+ {l s=$labels.security_deposit pdf='true'}: |
+ __________________ |
+ {/if}
+
+ {/if}
+
+ |
+
+
+
+ |
+
+ {/if}
+
+ {* ===== SECTION 8: GUEST SIGNATURE ===== *}
+ {if $show_section_guest_signature}
+
+ | |
+
+
+
+
+
+
+
+
+
+ {if $labels.signature && $labels.sig_date}
+ | {l s=$labels.signature pdf='true'}: |
+ ______________________________________ |
+ {l s=$labels.sig_date pdf='true'}: |
+ ____ / ____ / ________ |
+ {elseif $labels.signature}
+ {l s=$labels.signature pdf='true'}: |
+ ______________________________________ |
+ {else}
+ {l s=$labels.sig_date pdf='true'}: |
+ ____ / ____ / ________ |
+ {/if}
+
+
+ |
+
+
+
+ |
+
+ {/if}
+
+ {* ===== SECTION 9: PROPERTY REGULATIONS ===== *}
+ {if $show_section_property_regs}
+ | |
+
+
+
+
+
+
+
+
+
+ {if $labels.checkin_time}
+
+ |
+ {l s=$labels.checkin_time pdf='true'}:
+ {if $hotel && $hotel->check_in && $hotel->check_in != '00:00:00'}{$hotel->check_in|escape:'html':'UTF-8'}{else}__________{/if}
+
+ {l s=$labels.checkout_time pdf='true'}:
+ {if $hotel && $hotel->check_out && $hotel->check_out != '00:00:00'}{$hotel->check_out|escape:'html':'UTF-8'}{else}__________{/if}
+ |
+
+ {/if}
+ {if $labels.hotel_policies}
+
+
+ {l s=$labels.hotel_policies pdf='true'}:
+ {if $hotel && $hotel->policies && !($hotel->policies|@is_array)}
+ {$hotel->policies}
+ {else}
+ ______________________________
+ ______________________________
+ ______________________________
+ {/if}
+ |
+
+ {/if}
+
+
+ |
+
+ {/if}
+
+ {* ===== SECTION 10: FOR OFFICE USE ONLY ===== *}
+ {if $show_section_office_use}
+ | |
+
+
+
+
+
+
+
+ {if $labels.staff_name || $labels.office_checkin_time}
+
+ {if $labels.staff_name && $labels.office_checkin_time}
+ | {l s=$labels.staff_name pdf='true'}: |
+ ____________________ |
+ {l s=$labels.office_checkin_time pdf='true'}: |
+ ____________________ |
+ {elseif $labels.staff_name}
+ {l s=$labels.staff_name pdf='true'}: |
+ ____________________ |
+ {else}
+ {l s=$labels.office_checkin_time pdf='true'}: |
+ ____________________ |
+ {/if}
+
+ {/if}
+ {if $labels.id_verified || $labels.reg_no}
+
+ {if $labels.id_verified && $labels.reg_no}
+ | {l s=$labels.id_verified pdf='true'}: |
+ □ {l s='Yes' pdf='true'} □ {l s='No' pdf='true'} |
+ {l s=$labels.reg_no pdf='true'}: |
+ ____________________ |
+ {elseif $labels.id_verified}
+ {l s=$labels.id_verified pdf='true'}: |
+ □ {l s='Yes' pdf='true'} □ {l s='No' pdf='true'} |
+ {else}
+ {l s=$labels.reg_no pdf='true'}: |
+ ____________________ |
+ {/if}
+
+ {/if}
+
+ |
+
+
+
+ |
+
+ {/if}
+
+ {if isset($HOOK_DISPLAY_PDF)}
+
+ | |
+
+
+ |
+ {$HOOK_DISPLAY_PDF}
+ |
+
+ {/if}
+
diff --git a/themes/hotel-reservation-theme/category.tpl b/themes/hotel-reservation-theme/category.tpl
index 914cd6b87..a8dc9e157 100644
--- a/themes/hotel-reservation-theme/category.tpl
+++ b/themes/hotel-reservation-theme/category.tpl
@@ -24,6 +24,11 @@
*}
{block name='category'}
+ {block name='errors'}
+ {include file="$tpl_dir./errors.tpl"}
+ {/block}
+
+ {if !isset($errors) OR !sizeof($errors)}