Chapters
Chapters
Chapters
Their aim is not only to be recognized by the public but to enhance their market as well. Unfortunately, some hotels are left behind by the fast pace of change and improvement with the latest technology. The Camp Holiday Resort and Recreation Area, which is located next to the ferry terminal in Babak, Island Garden City of Samal is one of these hotels that are being left behind in terms of technology usage. A year ago, there were improvements being done - twelve air-conditioned cabins and a two-storey hotel building were erected. It accommodates conventions and seminars, thus the hotel and cabins are necessary. Camp Holiday is now one of the tourist spots in Island Garden City of Samal. The stunning place and the good service they provide to their customers, attracts tourists. Unfortunately, due to the low resource of technology, tourists encounter problems regarding reservations and availability of the resort. Advertising of a particular resort or any product is highly important to attract more customers; unfortunately the resort is weak in this area. Customers must visit their resort to be able to ask for availability of their facilities. often fully booked they lose a lot of valued customers. Presented with these developments, the proponents intend to propose to develop an Online Booking System for Camp Holiday Resort and Recreation Area to interest the management and give them the means to connect to Information Technology. By this, their costumers can simply login to their computers and surf the internet to view availability of rooms and other function halls in a more convenient way. Due to the hassle customers experience with simply trying to make reservations, most especially since the resort is
Online Booking System for Camp Holiday Resort and Recreation Area
1.1
How will the proponents develop an Online Booking System for Camp Holiday Resort and Recreation Area that will make its booking easier and its transaction manageable?
1.1.2
Minor Statements:
How will the proponents develop an online booking system capable in accepting payments? With the use of the internet, the proponents will create a site that will accept booking and payments. In booking, the proponents will create a module that can check room availability. The proponents will also make use of PayPal for online payment services that will handle transactions regarding booking. After the customer made a booking, it will update the back-end system for the desk officer in-charge, and it will be notified that someone booked online.
How will the proponents create a module that will allow their customers to view information about the Resorts features and services? The proponents need to create a website that is not only for accepting payments online but also serves as a source of information about the resort. Aside from this feature, browsing customers would be able to check on the resorts facilities, amenities as well as promo packages. This website also shows the resorts rules and regulations and other terms of conditions with regards to the services they are offering.
Online Booking System for Camp Holiday Resort and Recreation Area
How will the proponents develop a module to validate the process on booking an online customer and to the walk-in guests? The proponents need to create and support the back-end application that will enable the front desk personnel to manipulate the system as to make adjustments on promotional offers, changes on room rates, discounted amenities and other amendments. This is an added function to its main purpose, which is to input bookings, checking-ins and outs, and accepting payments for each customer.
How will the proponents develop an effective back-end application for the front desk of the Camp Holiday Resort and Recreation Area? The proponents need to create an application that is capable and effective for the front desk to use. This booking system consists of usage of all services rendered by the resort and the orders being mandated by the customers. The proponents must take everything into account regarding the tasks involving between the front desk and the customers from recording guests personal information and services involve in checking in to printing auditing reports. This should have a back-end application to suit each part of the booking system.
Online Booking System for Camp Holiday Resort and Recreation Area
1.2
Current State of the Technology Hotels, resorts and other places of accommodation need to constantly upgrade
themselves in the field of technology, know-how and most modern trends in hospitality to remain spirited in their business. In today's fast paced life, consumers seek convenience, on the spot service and quality customer care. With booking software now accessible online, they prefer this instant service over conventional travel agencies. Consequently, hotels, resorts and accommodation suppliers are making their presence felt online to offer their services to their prospective customers. Online Booking System nowadays is here to help market the room inventory online and reach out to the consumers directly. It is a cost effective method to help create, sustain and expand the inventory online. Consumers are increasingly migrating from traditional travel agencies to book-it-yourself websites using online booking system. Therefore, it is little wonder that hotels, resorts and accommodation suppliers are looking to the online market to sell their inventory to get online booking over the internet. Marketing the inventory through online distributors can be expensive. Now they can reach consumers direct using Global property reservation system. Online Booking System is designed to simplify the task of online hotel reservation and hotel appointment booking on internet. Online Booking System has all the features you are ever likely to need including room availability checking, real-time updating, full search capability, reporting and sales analysis, plus other features. Online Booking Systems powerful control panel enables you to add and amend rates and sales criteria at any time - instantly - thus maximize internet sales effectiveness. You can offer discounts to travel agents and corporate clients plus special discounts when occupancy is low. Online booking system offers 'real-time' checking and updating of room availability; cancelled bookings can easily be handled and the rooms made available. Powerful reporting and sales analysis helps you to plan your internet marketing and optimize your investment.
Online Booking System for Camp Holiday Resort and Recreation Area
Agoda offers the best prices for hotels in Philippines, with 355 Hotels ready for instant reservation via their secure online booking engine. Agoda is an internet company which provides online hotel reservations services for properties focused primarily in the Asia Pacific Region, with offices in Singapore, Bangkok, Hong Kong, Kuala Lumpur, Phuket, Bali, Sydney, Tokyo, Seoul, Beijing, Shanghai, and Manila. They have every destination covered, including Manila, Cebu, Boracay, Tagaytay and Davao. They also offer last-minute bookings, both online and through their 24/7 live help customer support center. (http://www.agoda.com/asia/philippines.html) Online Booking System in Philippines provides a real-time access to availability, prices and reservation of all rooms in hotel database. Selecting the favorite hotel rooms and dates, you can reserve them at the same moment and receive the confirmation in a few seconds. In order to reserve a hotel rooms you need to provide the required information. The reservation is absolutely free. You pay only upon the hotel departure, except for the room types marked as 'Non-Refundable' or 'Special booking and cancellation conditions', when a hotel may charge your credit card in advance. Communicate directly with your guests and encourage repeat business through confirmation, cancellation, pre-stay, post-stay and promotional emails. Each customized email delivers reservation details and makes it easy to offer promotions and special offers and provides an opportunity to solicit customer comments online. Secure incremental revenue through the website before a guest even arrives through the dynamic packaging feature. Guests can pre-schedule any hotel amenity or service, upgrade their room type, add dining options, sign up for tee times, request spa services, etc. The possibilities are endless! Outside vendors can also be utilized, and are automatically notified via email when a package reservation service is confirmed. Efficiently collect guest history, mine information, analyze trends and make future rate and inventory decisions by utilizing hotels online reporting tools. It offers the most comprehensive reporting capabilities in the industry. Execute marketing campaigns based on reservation data and track online marketing initiatives with the Advertising Tracker by measuring clicks and resulting reservations and revenue. All reports can be customized and have the flexibility to be searched based on your needs. Reports can be downloaded into Excel for additional analysis and reporting. Online Booking System for Camp Holiday Resort and Recreation Area 5
Island Garden City of Samal is one of the best tourist spots in Davao, as well as in the whole Philippines. Beaches in Samal features the best white sands and clear waters plus satisfying resorts that include Canibad Beach, Bluejaz Resort, Paradise Island, Pearl Farm, Maxima Resort and all other world-class beach-bums destinations. The Camp Holiday Resort and Recreation Area is currently lacked of marketing strategy, they only use call and e-mail for reservation. Most of their guest costumers where able to have a reservation through walk-in since there is only a number of few people who knows their contact details, because they dont have yet a heavy advertisement about their resort. The customers information upon reservation is recorded in a Guest Reservation Form. The proponents decided to develop this project because most of the costumers prefer to book in advance online to avoid the hassles of phone calls or having to visit the place. It is a big benefit for the costumers because of the smooth and quick transactions that are convenient and saves time. Before, you had to personally visit the hotel to make reservations, now it is possible to do it from the comfort of your home through the use of the internet. To be able to keep up with this competition, Camp Holiday Resort and Recreation Area must put on a handful of online advertisements. Features such as Room availability checking, Real-time updating, Full search capability, Sales Analysis and Reporting, Rates, Amenities checking and Policies checking are easily accessed by the browsing customers online. To further promote the resort, the proponents will include panoramic view of the place and the rooms. As an additional feature, the proponents will also create a virtual tour of the resort, where customers will be able to see the place 360 degrees.
Online Booking System for Camp Holiday Resort and Recreation Area
1.3
To develop an Online Booking System that will improve business transactions involving in Camp Holiday Resort and Recreation Area; thus, provides them accurate and hasty system that will corresponds to the needs of the hotel.
1.3.2
Specific Objectives
The proposed system must have the ability to accept bookings online. Since customers are browsing over the resorts website, they can also at the same time place their bookings after checking on the amenities and other services. Payments are also done online. All of the online transactions are automatically recorded and stored to the database of the main server of the resort.
To be able to create a module that the customer can view and access the services that the resort render. o The module will serve as an information system about Camp Holiday Resort and Recreation Area, update on room availability, description of services offered, resorts policies, availability of the amenities and its panoramic view and rates as well as promos and packages.
To create a module for front desk application that can handle check-in transactions capable of validating booked guest and accept walk-in customers for the resort. o The proponents will create and support the back-end application that can access directly to their database regarding the booking made by the customer online. The application may allow the front desk officer to
Online Booking System for Camp Holiday Resort and Recreation Area
validate whether the customer has booked upon checking in through the itinerary receipt. To create an effective back-end application for the front desk of the Camp Holiday Resort and Recreation Area.
o
The proponents will create a back end application that has the capability to print official receipts, print billing receipts, store checking-in guest information, check room availability, and help validating guests who made an online billing on their website.
1.4
Scope and Limitation The current problems of Camp Holiday Resort and Recreation Area with their
current system will be eliminated by the proposed system which is the Online Booking System for Camp Holiday Resort and Recreation Area. This system will focus on handling online booking, accepting payments online, and storing data for check-in transactions. The proposed system will also focus only on the business process online of the Camp Holiday Resort and Recreation Area. Navigating through the site can be done easily for it is designed and structured to benefit users who may not be so familiar with online transactions. A visitor can view images of rooms, its amenities, the resort and hotel, location map of the resort and the panoramic view. If the visitor wants to book for a room, they have to fill up a registration form online. After the payments has been done, the customer will receive a confirmation or a unique code comprised of letters and numbers which they will present along with a valid ID upon arriving at the resorts reception. The application will require a log-in for security purposes, the person only allowed for access is a receptionist and an admin officer. The whole system will not cater the process in accounting system and payroll system of the Camp Holiday Resort and Recreation Area.
Online Booking System for Camp Holiday Resort and Recreation Area
Data that are recorded early on by the back-end application regarding day to day transactions will be summarized and automatically computed and then printed for the use of the accounting department. Proponents will not include payroll system of the hotel, although the system stores in its database the front desk officers and the manager (employees who are charged with using the back-end application), it doesnt compute any salary bonuses for them and neither does any transactions regarding payroll for them. The speed in viewing the panoramic view will depend on the speed of the internet connection. It is approximately twenty seconds before it will load the full image if the Internet connection is in 1Mbps.
Online Booking System for Camp Holiday Resort and Recreation Area
Chapter 2 2.1
THEORETICAL FRAMEWORK
Introduction Theoretical Framework will explain and show how the proponents develop their
proposed project. It will show what are the concepts and theories they used in order to come up with an effective output. This will explain how these concepts and theories being applied in the system. These concepts help the proponents to understand the flow of the system and its processes. A theoretical framework is a collection of interrelated concepts, like a theory but not necessarily so well worked-out. A theoretical framework guides the proponents research, determining what things they will measure, and what statistical relationships they will look for. 2.2 Methodology The proponents will use the System Development Life Cycle ( SLDC ) in making the methodology of the proposed study. SDLC is composed of sequence of events in development of an information system or application. The SDLC has seven phases in development: Project Planning, Requirement Determination, System Analysis, System Design, Implementation, Testing, and Maintenance. SDLC follows series of steps which is used for product progress. It is nothing but a ladder for project management in an organized manner. Nowadays a number of different process models are followed. Some of those are: 1. Waterfall Model 2. Spiral Model 3. RAD Online Booking System for Camp Holiday Resort and Recreation Area 10
4. Iterative Model 5. Sashimi Model Among the models mentioned above, the proponents will use the waterfall model. It is stated that the waterfall model is a popular version of systems development life cycle model for software engineering. Often considered the classic approach to the system development life cycle, the waterfall model describes a development method that is linear and sequential. Waterfall development has distinct goals for each phase of development. In a traditional waterfall model, the first phase must be successfully completed first before going to next phase and when you are already in the second phase, there is no turning back on the previous phase which is very ideal in system development. In line with this, the proponents would like to modify this approach wherein they can turn back to the previous one if they encounter some errors / problems in the current phase they are working on to make sure that user requirement and expectations will be met. (Refer to Chapter 3; 3.2.1, Figure 1.0) 2.2.1 Project Planning The main purpose of this phase is to generate a high-level view of the intended project. In this phase the proponents will think and discuss about the project objective, scope and limitation, system requirements as well as considering the feasibility study of the proposed system of Camp Holiday Resort and Recreation Area. The proponents will follow the requirements determination process in order to gather accurate information to develop the propose system. RDP has four components; obtain, understand, validate and evaluate. To obtain is to collect the pieces of information from which the customers or the target users requirements will be determined. The proponents will use different techniques such as interviewing, prototyping and observation. The proponents interviewed the manager of Camp Holiday Resort and Recreation
Online Booking System for Camp Holiday Resort and Recreation Area
11
Area, Mr. Glen Germino regarding the reservation process. The proponents look for an existing online reservation system as prototype in gathering information. In observation, the proponents study and understand them by the help of the thesis adviser as their facilitator during the discussion of the gathered data. To validate all the gathered information and the concepts as what the proponents have understood, they use the prototyping technique wherein they demonstrate the architectural design of a partial solution with their thesis adviser and thesis defense panelist. 2.2.2 Analysis During this phase, the proponents will discuss about the propose system base on the gathered information. In this phase, the proponents will thoroughly analyze the concepts of web application, structure and its framework that would help the proponents design for the propose system and after the group discussion, the proponents will validate their understanding with their thesis adviser. 2.2.3 Design After collecting and analyzing the gathered information, the proponents will now be ready to design the propose system. The proponents will follow the four stages of system design; data, architectural, user interface and procedural design. However, before proceeding to the actual design, the proponents will first develop the architectural structure of the flow of the propose system to ensure that the interface and database design will be functional and all the processes will be done in the system. For data design, the proponents will concentrate on the database design of the propose system with the use of entity relationship diagram, database physical design. In architectural design, the proponents will consider the coupling and cohesion concepts of object and classes involve in the system. User interface design, the proponents will design for the graphical user interface of the system thats fit to the users requirement and expectations. The website that would accept user input, online booking system, and the back-end application that
Online Booking System for Camp Holiday Resort and Recreation Area
12
would allow the proponents monitor its client and do system maintenance. In procedural design, the proponents will going to develop a data flow diagram.
2.2.4
Implementation The proponents will implement the final construction of the system and
final codes of the system will be written in this phase. Moreover, choosing a programming language and web scripting language should the proponents must also considered in this phase, a computer with internet connection is a requirement, a DNS ( Domain Name System ) registration, and web server to the system that available online. The proponents will divide the task evenly to ensure that every module that the proponents stated on the specific objective must be developed as well as the back-end application. 2.2.5 Testing In this phase, series of testing will happen. Testing must be done before the final deployment of delivery of the system to make sure the good quality of the software / system. The proponents will do the unit testing, integration testing, user acceptance and performance testing. 2.2.6 Maintenance The task and responsibilities of the system developer dont stop on the deployment of the system. During this phase, the proponents will perform the four types of system maintenance; corrective, adaptive, perfective and preventive. In performing the corrective maintenance, the proponents will correct / repair the faults or defects found results from design errors, logic and coding errors. These errors are from the bugs that the client will encounter. Adaptive maintenance, the proponents will consider the changes in the environment both hardware and software and make the system adapt that changes. Perfective maintenance, the proponents will accommodate the changes in users requirements. The proponents will enhance the functionalities and user interface of the system to improve its Online Booking System for Camp Holiday Resort and Recreation Area 13
performance. Preventive maintenance, the proponents will always checks the system.
2.3
Data Modeling Theory Data Modeling is a formal description of how may be structured and accessed.
Data modeling illustrates the relationship between the data and translates complex system designs into easily understood representations of the data flows and processes. It includes: 2.3.1 Use Case In the part of the Online Booking System for Camp Holiday Resort and Recreation Area, the guest user and receptionist have limited access only and can only do the following: Inquire Accommodation Availability, Make Reservation and Issue Invoice, while the Administrator can access everything in the system. (Refer to Chapter 3; 3.2.2, Figure 1.1) 2.3.2 Architectural Design Is the conceptual model that defines the structure, behavior, and
more views of a system. (Refer to Chapter 3; 3.2.3, Figure 1.2) 2.3.3 Context Free Diagram In software engineering and systems engineering is a diagram that
represents the actors outside a system that could interact with that system. This diagram is the highest level view of a system. The guest can make all his/her transactions via the web using the proponents system which is Online Booking System for Camp Holiday Resort and Recreation Area, while the receptionist can check and update the data(guest transaction) in the system that were done by the guest user via online. (Refer to Chapter 3; 3.2.4, Figure 1.3)
Online Booking System for Camp Holiday Resort and Recreation Area
14
2.3.4
DFD- Data Flow Diagram This is a graphical representation of the flow of data through information
system. The proponents use Data Flow Diagram in order to know and understand the flow and target users process. (Refer to Chapter 3; 3.2.5, Figure 1.4-1.7) o Data Process- transforms data values. It is represented by a circle. o Data Store- stores data passively for later access. A Data Store responds to request to store and access data. o External Agents- are shown as a rectangle. Represents sources or sinks. o Data flow- represents movement of data item. This is shown as arrows. 2.3.5 ERD- Entity Relationship Diagram An Entity Relationship Diagram (ERD) is a snapshot of data structures. ERDs show entities in a database and relationships between tables within that database. Illustrates the interrelationship between entities in a database. (Refer to Chapter 3; 3.2.6, Figure 1.8) o Entities - An entity is an object or concept about which you want to store information. o Weak Entity - Attributes are the properties or characteristics of an entity.
o
Relationship - Relationships illustrate how two entities share information in the database structure.
Online Booking System for Camp Holiday Resort and Recreation Area
15
o Cardinality - Cardinality specifies how many instances of an entity relate to one Instance of another entity.
2.4
Physical Data Modeling Is used to design the internal schema of a database, depicting the data tables, the data columns of those tables, and the relationship between the tables. The proponents use the Physical Data Model, this will serve as storage of all data, and the proponents also use Database normalization in order to reduce data redundancy.
2.5
Business Ethics Describe the policies within the business or organization. The proponents should consider the policies and regulations imposed by the organization so that they will meet the requirement of the user. The front-desk officers, managers and system admin of the Camp Holiday Resort and Recreation Area will be the main persons that will use the system, and are the first ones that will test themselves the system we have created, the business ethics that we have followed will help them in doing their jobs.
2.6
Security Concept It is used by the proponents to protect the data of each user. o User login each user has to provide his/her own username/password which will be provided by the Camp Holiday Admin.
2.7
Summary In Theoretical Framework, the proponents use Context Free Diagram to show the entire system as a single process, Data Flow Diagram in order to know
Online Booking System for Camp Holiday Resort and Recreation Area
16
and understand the flow and target users process, Entity Relationship Diagram to illustrate the interrelationship between entities in a database and Physical Data Model to explain and show what are the concepts and theories in order to come up to an effective output. Chapter 3 ONLINE BOOKING SYSTEM FOR CAMP HOLIDAY RESORT AND RECREATION AREA
3.1
Introduction Online Booking System for Camp Holiday Resort and Recreation Area was
proposed to help Camp Holiday do their services more efficiently. The proponents have made the system to accept check-in as well as check out, booking online and acceptance of payments for it. And also for the Restaurant to be able to charge to rooms of the guest by creating a module that add other charges to the guest. The entire system of the Camp Holiday Resort and Recreation Area is comprised of subsystems that overall will do a complete cycle of the business process of the hotel. 3.2 System Design Specification As a group, we have assigned modules for each member, which then we integrate after completion. We also keep track of the changes that we do to the database. The proponents use Data Flow Diagram (DFD) to simplify the process and flow of data. The proponents also use Entity Relationship Diagram (ERD) to create a database design that would help the system to easily store and manipulate data.
Online Booking System for Camp Holiday Resort and Recreation Area
17
3.2.1
Figure 1.0 Camp Holiday Resort and Recreation Area SDLC Diagram with Waterfall Model
Online Booking System for Camp Holiday Resort and Recreation Area
18
3.2.2
USE CASE
Make Reservation
Figure 1.1 Camp Holiday Resort and Recreation Area Use Case
Online Booking System for Camp Holiday Resort and Recreation Area
19
3.2.3
Architectural Design
Select Check in/ Check out Date Select Preferred Room/Number of rooms Guest Information Payment
GUEST USER
Internet
WEB SERVER
Figure 1.2 Camp Holiday Resort and Recreation Area Architectural Design
Online Booking System for Camp Holiday Resort and Recreation Area
20
Online Booking System for Camp Holiday Resort and Recreation Area
Figure 1.3 Camp Holiday Resort and Recreation Area Context Free Diagram
Online Booking System for Camp Holiday Resort and Recreation Area
21
Online Booking System for Camp Holiday Resort and Recreation Area
22
List of Accommodation
Accommodation Master
Accommodation Details
2. Guest Reservation
Guest Details
Guest Master
3. Guest Charges
Items Consumed
Charges Master
Payment Receipt
4. Guest Payment
Payment Details
Payment Master
Guest Payment Info Guest Billing Info RECEPTIONIST Guest Details Guest Accommodation Details
Figure 1.4 Camp Holiday Resort and Recreation Area DFD Level 0
Online Booking System for Camp Holiday Resort and Recreation Area
23
Guest
Select Date
Accommodation Master
Accommodation Available
Select Accommodatioin
Guest Master
Receptionist
Figure 1.5 Camp Holiday Resort and Recreation Area DFD Level 1, Accommodation Availability
Online Booking System for Camp Holiday Resort and Recreation Area
24
Guest
Guest Info
Guest Info
Guest Master
Guest Info Check-in Guest 2.1 Get Guest Info Check-in Info Receptionist
Figure 1.6 Camp Holiday Resort and Recreation Area DFD Level 1, Guest Registration
Online Booking System for Camp Holiday Resort and Recreation Area
25
Guest
Price
Services Master
Receptionist
Figure 1.7 Camp Holiday Resort and Recreation Area DFD Level 1 Billing
Online Booking System for Camp Holiday Resort and Recreation Area
26
GUEST
RESERVED
ROOMS
HAS
ROOM TYPES
HAS
PAYS
ACCOMMODATION
HAS
TRANSACTION
FACILITIES
RESTAURANT BILLING
Figure 1.8 Camp Holiday Resort and Recreation Area Entity Relationship Diagram(ERD)
Online Booking System for Camp Holiday Resort and Recreation Area
27
tbl_billing
tbl_accommodation
tbl_accommodationdetails
tbl_paymentdetails
Online Booking System for Camp Holiday Resort and Recreation Area
28
tbl_transaction
tbl_guest
tbl_reservation
tbl_amenities
Online Booking System for Camp Holiday Resort and Recreation Area
29
tbl_transactiondetails
tbl_services
tbl_room
tbl_useraccount
Online Booking System for Camp Holiday Resort and Recreation Area
30
tbl_basket
tbl_servicescategory
tbl_roomtype
Online Booking System for Camp Holiday Resort and Recreation Area
31
Figure 1.9 Camp Holiday Resort and Recreation Area Database Design
3.3 SYSTEM REQUIREMENT SPECIFICATION AND COSTING 3.3.1 Hardware Specifications Online Booking System for Camp Holiday Resort and Recreation Area 32
DEVICE
Web Browser (Preferably Google Chrome) Operating System(Windows Server) Flash Player MySQL Server Adobe Dreamweaver CS4
P999 ________________
38, 299.00
P24,930.00
Printing
Online Booking System for Camp Holiday Resort and Recreation Area
33
Online Booking System for Camp Holiday Resort and Recreation Area
34
Online Booking System for Camp Holiday Resort and Recreation Area roomlist_update 30mins
roomlist_validate 30mins
35 P50.00
P50.00
The proponents charged P100.00 per hour for every form. A total of 263 hours and 30 minutes, and accumulated the total amount of P24,930.00.
3.5 Summary In System Design Specification, the proponents use Architectural Design to know what the system is all about and for future reference during data maintenance, Context Free Diagram to show the entire system as a single process, Data Flow Diagram in order to know and understand the flow of the system, Entity Relationship Diagram to have a documentation for the interrelationship between entities in a database, and Database Design in order to know what to do in building the system.
Online Booking System for Camp Holiday Resort and Recreation Area
36
Chapter 4 PERFORMANCE ANALYSIS 4.1 Introduction In this chapter, the proponents tried different methods in developing the system. Such as on what part we must concentrate on the development for us to reach our target objective. It will also discuss experimentations on the solutions assumed and the result of each experiment. The proponents aim to acquire main functionality of the system that could check accommodation availability; getting the preferred arrival and departure date of the guest to acquire the available rooms, book a guest; getting the information both online, call and walk-in guest, generating bill; additional charges based on the items acquired by the guest, including data maintenance; adding new room type, number of rooms, facilities, services rendered by the Camp Holiday Resort and Recreational Area, and generating payments; save transaction ID in order payment record. 4.2 Experimental We agreed to meet every night after our training (OJT) in order to work as a team even on late nights so that if ever one member has a question about the system; it is quickly answered by one of our team mates. It was also useful when we had to share some useful methods.
Online Booking System for Camp Holiday Resort and Recreation Area
37
Booking for Online Guest Action Entry with a blank arrival and departure date Expected Result Display error message Please fill up Arrival/Departure date. Actual Resort Display error message Please fill up Arrival/Departure date. Remarks The User must be select arrival and departure date to check available accommodation The User must fill all required fields Diagram Figure 2.1
Figure 2.2
Table 1.0 Online Booking In this table shows that the online guest must select the correct arrival and departure date before the guest select his/her available rooms. After selecting the available rooms, the guest must fill all the required fields in the registration form. Log in form for Registered User
Online Booking System for Camp Holiday Resort and Recreation Area
38
password
Table 1.1 User Login In this table, it shows that the user must input valid username and password in order to proceed to the backend system.
Reservation for Walk-in Guest Action Failure to select reservation type Expected Result Display error message Select is not a correct reservation type. Display error message Please select correct arrival date. Display error message User fields should not be empty. The Reservation is Successfully Created! Actual Resort Display error message Select is not a correct reservation type. Display error message Please select correct arrival date. Display error message User fields should not be empty The Reservation is Successfully Created! Remarks The User must select desired reservation type Diagram Figure 2.4
Incorrect arrival and departure date selected Saving Guest info with empty fields Saving Guest info with complete details
The arrival date Figure 2.5 must be less than the departure date selected The User must Figure 2.6 fill up all fields. Figure 2.7
Table 1.2 Reservation for walk-in guest In this table shows that if the receptionist will cater for the walk-in guest the receptionist must select first the reservation type, Select the correct arrival and departure
Online Booking System for Camp Holiday Resort and Recreation Area
39
date, before selecting the available rooms, after selecting the rooms, the receptionist must input all the required fields information for the guest.
Master List Action Failure to fill up required fields for adding guest Failure to fill up required fields for adding room. Failure to fill up required fields for adding room type Failure to fill up required fields for adding facilities. Failure to fill up required fields for adding services. Expected Result Display error message fields should not be empty. Display error message fields should not be empty Display error message fields should not be empty Display error message fields should not be empty Display error message fields should not be empty Actual Resort Display error message fields should not be empty. Display error message fields should not be empty Display error message fields should not be empty Display error message fields should not be empty Display error message fields should not be empty Remarks The admin must fill up all required fields for adding guest. The admin must fill up all required fields for adding room. The admin must fill up all required fields for adding room type. The admin must fill up all required fields for adding facilities The admin must fill up all required fields for adding services Diagram Figure 2.8
Figure 2.9
Figure 3.0
Figure 3.1
Figure 3.2
Online Booking System for Camp Holiday Resort and Recreation Area
40
Table 1.3 Master List In this table shows that if the admin will add rooms, facilities and services for their resort, the admin must fill all the required fields.
4.3 Results and Analysis The proponents carried on interviews and perform some research about the current system of Camp Holiday Resort and Recreation Area that helps them producing the most effective solutions for every application that caters the needs of a user including the guest, receptionist and the admin. The proposed system will help project manager and developer to manage the project effectively following the current processes that our system has. For the online booking, the guest must first select his/her preferred arrival or departure date enable to acquire all the available accommodation based on the range of date he/she selected. After checking the accommodation availability, the guest can select his/her preferred room type, number of rooms he/she wants to acquire. If the guest already picked the preferred room type, the guest must give his/her information. Correct information is highly required for that will be the basis of the receptionist upon the arrival of the guest in the Camp Holiday Resort and Recreation Area together with his/her valid ID. For the receptionist side, they can accommodate walk-in guest same with the process in online booking, the guest must first select his/her preferred arrival or departure date enable to acquire all the available accommodation based on the range of date he/she selected. The receptionist can only check-in a reserved guest if the arrival date is already active. It can also add up additional charges if the
Online Booking System for Camp Holiday Resort and Recreation Area
41
guest acquire item from the amenities of the Camp Holiday Resort and Recreation Area. For the administrator side the admin has the control to add and modify the facilities and services of the resort the admin can also cater the reservation for walk in guest. And all the functionalities of the system, the administrator can only maintain it.
The proponents conducted an evaluation to test the system. Mr. Glen Germino, the manager of Camp Holiday Resort and Recreation Area took the said evaluation to check the functionality, capability and the limitations of the system.
Figure 4.3.1 Comment or Suggestion From the comment and suggestion he stated as shown in figure 4.3.1, the system is fully functional. The capability of the system meets the requirement of the client.
The proponents also conducted a system evaluation to other respondents. They also give a high rate to all the functionality of the system. (Refer to Appendix, Figure
Online Booking System for Camp Holiday Resort and Recreation Area
42
From the evaluation, the proponents tabulated, graph and interpret the results. (Refer to Table 4.3.2 System Performance Rate, Figure 4.3.3 System Average Rate)
Questions 1. Please rate on how effective the website when it comes to user friendly? How effective is the functionality of the Panoramic Virtual Tour?
2.
Average Performance 4
Interpretation Excellent
4.5
Excellent
How effective the Booking System in both online booking and walk-in booking?
3.
3.5
Above Average
Please rate on how effective the system when it comes to Data Maintenance?
4.
3.5
Above Average
3.5
Above Average
Online Booking System for Camp Holiday Resort and Recreation Area
43
Table 4.3.2 System Performance Rate This represents the average performance of the system and its corresponding interpretation from the evaluation conducted. The system got the highest rate based on its performance; the functionality meets the requirement of the client.
4.3.1 Constant Values The results that where plotted on System Performance Rate (Refer to table 4.3.2 above), where based on the constant values bellow.
1.0 1.8
= = = = =
4.3.2 Mean Diagram The graph bellow was obtained by using the Mean Diagram. In getting the Mean Diagram, the proponents provided each choice with specific values. Each choice that was answered by the interviewee was summed up and divides by the total number questions.
Online Booking System for Camp Holiday Resort and Recreation Area
44
Averag e
5 4.5 4 3.5 3 2.5 2 1.5 1 0.5 0 Question 1 Question 2 Question 3 Question 4 Question 5 Average
Figure 4.3.2 System Average Rate The graph shows the average rate of the system in every question from the results of the evaluation. This graph shows that the system capability and functionality is working effectively. 4.3.3 Overall Review of the Proposed System
4 3.5 3 2.5 2 1.5 1 0.5 0 Online Booking System for Camp Holiday Resort and Recreation Area
Online Booking System for Camp Holiday Resort and Recreation Area
45
The graph above shows the overall review of the Online Booking System for Camp Holiday Resort and Recreation Area. Base on the graph system reach the amount of 3.5 which is Above Average. 4.4 Summary In this section, the result of the series of interviews, researches and tests were being examined and considered. The proposed system entitled Camp holiday Resort and Recreation Area Online booking System help to provide to cater customer for booking through online and also to make advertisement of their resort. After the series of test, the proponent realized that our system is very important not only to our client but also to the user of the system. The testing helps us determine the ability of our system. And it could help us find the insufficient of the system. Every module conducted a series of test. First, the booking for guest through online and walk-in and test the other functionalities of the system at the admin side. Front end side consists of online transaction, like online booking, viewing of facilities and rates of the resort and all the information and services of the resort is attached in the frontend side. During the testing, the proponents encounter errors and problem of the system. The problems encounter during the testing is the inaccurate in terms of booking the rooms during the current date; the proponents make a solution to solve this problem. The Admin side will display the overview functionalities of the resort such as reservation for walk-in guest and the maintenance of the system. This side encounters certain problems specially the reservation for walk in customer. If there is an empty field during adding the information of the guest, message box displays that the fields should not be empty.
Online Booking System for Camp Holiday Resort and Recreation Area
46
CHAPTER 5 CONCLUSION After conducting interviews and researches the proponent developed system that helps not only to the owner of the system but also the users of the system. With the use of the system Online Booking System for Camp Holiday and Recreation Area, it helps them to achieve their goals cater services to their clients through online, help them market their room inventory online and reach out to their consumers directly. It is a cost effective method to help them create, sustain and expand their inventory online. For the Online transaction, it helps to the client to cater their customer though online not only to cater the customer but also to make advertisement of their resort. For the admin side, it helps them to cater their customer for offline transaction. It will give them the authority to access to all the features and preferences. They decide and they implement.
Online Booking System for Camp Holiday Resort and Recreation Area
47
And for the overall, the system will help them to improve their services, less chance of effort to cater their guest. Their guests can make confirmed reservations from anywhere in the world at anytime, day or night, from the rates and availability that they position through administrator's interface.
BIBLIOGRAPHY
E-Book: George Szifo, http://ezinearticles.com/?10-Advantages-of-Online-BookingSoftware&id=4397594 - Jun 01, 2010 Arnault, Web design SPIP and 360 virtual tours, http://www.openstudio.fr/jQueryvirtual-tour.html?lang=en
Online Booking System for Camp Holiday Resort and Recreation Area
48
ACKNOWLEDGEMENT
First and above all, we praise God, the almighty for providing us this opportunity and granting us the capability to proceed successfully. This thesis appears in its current form due to the assistance and guidance of several people. We would therefore like to offer our sincere thanks to all of them and express our deepest gratitude to the several people behind the success of this project. We wish to express our warm and sincere thanks to Sir Glen Germino the manager of Camp Holiday Resort and Recreation Area for helping and allowing us to access the information of the resort in the development of this project. We are deeply grateful to our beloved adviser and also at the same time our IT Project coordinator Ms. Charyl F. Yanong, for guiding us and inspiring us to push through with this project.
Online Booking System for Camp Holiday Resort and Recreation Area
49
Our warm thanks are due to Ms. Shiela Aringa Ildefonso and Ms. Charissa Pajaron, our grammarian for guiding us in the documentation of this project. To our dear parents, we would like to thank them for all the support that they gave, for the love and care, spiritual and financial support. To all our classmates and friends, thank you guy for the times that we have shared, through ups and downs.
APPENDICES
USERS MANUAL
Online Booking System for Camp Holiday Resort and Recreation Area
50
Figure 2.0 - Home Page This figure shows the Home Page of Camp Holiday Resort and Recreation Area.
Online Booking System for Camp Holiday Resort and Recreation Area
51
Figure 2.1 - Online Booking The user must select arrival and departure date, it will prompt a message box stated Please fill up Arrival / Departure date. if the textboxes are empty.
Online Booking System for Camp Holiday Resort and Recreation Area
52
Figure 2.2 - Guest Information This figure shows that the user must fill in the information that is required, if not, a message will display This field is required . Note that textboxes with asterisk ( * ) is required to fill in.
Online Booking System for Camp Holiday Resort and Recreation Area
53
Figure 2.3 - Login If the user input incorrect password a message will display Invalid Username and Password. If the user input a correct password they can Login to the system. Every user has their respective account to access.
Figure 2.4 - Walk-in Reservation This figure shows that a message - Select is not a correct Reservation Type will prompt if the Reservation Type is not valid.
Online Booking System for Camp Holiday Resort and Recreation Area
54
Figure 2.5 - Walk-in Reservation A message will prompt Please Select Correct Arrival Date. if the arrival date is ahead of day with the departure date.
Figure 2.6 - Personal Information This figure shows an error message if the textboxes are empty.
Online Booking System for Camp Holiday Resort and Recreation Area
55
Figure 2.7 - Reservation By clicking the button Finish and if the textboxes are fill in, a message will display Reservation Successfully Created...! .
Online Booking System for Camp Holiday Resort and Recreation Area
56
Figure 2.8 - Add Guests This figure shows that a message box will prompt if the required fields are empty.
Figure 2.9 - Add Room This figure shows that a message box will prompt if the required fields are empty.
Online Booking System for Camp Holiday Resort and Recreation Area
57
Figure 3.0 - Add Room Type This figure shows that a message box will prompt if the required fields are empty.
Figure 3.1 - Add Facilities This figure shows that a message box will prompt if the required fields are empty.
Online Booking System for Camp Holiday Resort and Recreation Area
58
Figure 3.2 - Add Services This figure shows that a message box will prompt if the required fields are empty.
Online Booking System for Camp Holiday Resort and Recreation Area
59
SOURCE CODE
SOURCE CODE
$server=mysql_connect ( $dbhost, $dbuser, $dbpass)or die("<h1>Server is currently unavailable</h1>"); $conn=mysql_select_db($dbname) or die(mysql_error()); ?>
Online Booking System for Camp Holiday Resort and Recreation Area
60
'yearscroll': true, // show year scroller 'weekstart': 0, // first day of week: 0-Su or 1-Mo 'centyear' : 70, // 2 digit years less than 'centyear' are in 20xx, othewise in 19xx. 'imgpath' : 'images/calendar/' // directory with calendar images } // date parsing function function f_tcalParseDate (s_date) {
var re_date = /^\s*(\d{1,2})\/(\d{1,2})\/(\d{2,4})\s*$/; if (!re_date.exec(s_date)) return alert ("Invalid date: '" + s_date + "'.\nAccepted format is mm/dd/yyyy.") var n_day = Number(RegExp.$2), n_month = Number(RegExp.$1), n_year = Number(RegExp.$3);
if (n_year < 100) n_year += (n_year < this.a_tpl.centyear ? 2000 : 1900); if (n_month < 1 || n_month > 12) return alert ("Invalid month value: '" + n_month + "'.\nAllowed range is 01-12."); var d_numdays = new Date(n_year, n_month, 0); if (n_day > d_numdays.getDate()) return alert("Invalid day of month value: '" + n_day + "'.\nAllowed range for selected month is 01 - " + d_numdays.getDate() + ".");
return new Date (n_year, n_month - 1, n_day); } // date generating function function f_tcalGenerDate (d_date) {
Online Booking System for Camp Holiday Resort and Recreation Area
61
return ( (d_date.getMonth() < 9 ? '0' : '') + (d_date.getMonth() + 1) + "/" + (d_date.getDate() < 10 ? '0' : '') + d_date.getDate() + "/" + d_date.getFullYear() ); }
Online Booking System for Camp Holiday Resort and Recreation Area
62
// create calendar icon this.s_iconId = 'tcalico_' + this.s_id; this.e_icon = f_getElement(this.s_iconId); if (!this.e_icon) { document.write('<img src="' + a_tpl.imgpath + 'cal.gif" id="' + this.s_iconId + '" onclick="A_TCALS[\'' + this.s_id + '\'].f_toggle()" class="tcalIcon" alt="Open Calendar" />'); this.e_icon = f_getElement(this.s_iconId); } // save received parameters this.a_cfg = a_cfg; this.a_tpl = a_tpl; }
// find input field if (!this.a_cfg.controlname) throw("TC: control name is not specified"); if (this.a_cfg.formname) { var e_form = document.forms[this.a_cfg.formname]; if (!e_form) throw("TC: form '" + this.a_cfg.formname + "' can not be found"); this.e_input = e_form.elements[this.a_cfg.controlname];
Online Booking System for Camp Holiday Resort and Recreation Area
63
if (!this.e_input || !this.e_input.tagName || this.e_input.tagName != 'INPUT') throw("TC: element '" + this.a_cfg.controlname + "' does not exist in " + (this.a_cfg.formname ? "form '" + this.a_cfg.controlname + "'" : 'this document'));
// dynamically create HTML elements if needed this.e_div = f_getElement('tcal'); if (!this.e_div) { this.e_div = document.createElement("DIV"); this.e_div.id = 'tcal'; document.body.appendChild(this.e_div); } this.e_shade = f_getElement('tcalShade'); if (!this.e_shade) { this.e_shade = document.createElement("DIV"); this.e_shade.id = 'tcalShade'; document.body.appendChild(this.e_shade); } this.e_iframe = f_getElement('tcalIF') if (b_ieFix && !this.e_iframe) { this.e_iframe = document.createElement("IFRAME"); this.e_iframe.style.filter = 'alpha(opacity=0)'; this.e_iframe.id = 'tcalIF'; this.e_iframe.src = this.a_tpl.imgpath + 'pixel.gif'; document.body.appendChild(this.e_iframe);
Online Booking System for Camp Holiday Resort and Recreation Area
64
// change icon and status this.e_icon.src = this.a_tpl.imgpath + 'no_cal.gif'; this.e_icon.title = 'Close Calendar'; this.b_visible = true; }
Online Booking System for Camp Holiday Resort and Recreation Area
65
// hide elements if (this.e_iframe) this.e_iframe.style.visibility = 'hidden'; if (this.e_shade) this.e_shade.style.visibility = 'hidden'; this.e_div.style.visibility = 'hidden';
// change icon and status this.e_icon = f_getElement(this.s_iconId); this.e_icon.src = this.a_tpl.imgpath + 'cal.gif'; this.e_icon.title = 'Open Calendar'; this.b_visible = false; }
var d_today = this.a_cfg.today ? this.f_parseDate(this.a_cfg.today) : f_tcalResetTime(new Date()); var d_selected = this.e_input.value == '' ? (this.a_cfg.selected ? this.f_parseDate(this.a_cfg.selected) : d_today) : this.f_parseDate(this.e_input.value);
Online Booking System for Camp Holiday Resort and Recreation Area
66
// selected by default d_date = d_selected; else if (typeof(d_date) == 'number') // get from number d_date = f_tcalResetTime(new Date(d_date)); else if (typeof(d_date) == 'string') // parse from string this.f_parseDate(d_date);
// first date to display var d_firstday = new Date(d_date); d_firstday.setDate(1); d_firstday.setDate(1 - (7 + d_firstday.getDay() - this.a_tpl.weekstart) % 7);
var a_class, s_html = '<table class="ctrl"><tbody><tr>' + (this.a_tpl.yearscroll ? '<td' + this.f_relDate(d_date, -1, 'y') + ' title="Previous Year"><img src="' + this.a_tpl.imgpath + 'prev_year.gif" /></td>' : '') + '<td' + this.f_relDate(d_date, -1) + ' title="Previous Month"><img src="' + this.a_tpl.imgpath + 'prev_mon.gif" /></td><th>' + this.a_tpl.months[d_date.getMonth()] + ' ' + d_date.getFullYear() + '</th><td' + this.f_relDate(d_date, 1) + ' title="Next Month"><img src="' + this.a_tpl.imgpath + 'next_mon.gif" /></td>' + (this.a_tpl.yearscroll ? '<td' + this.f_relDate(d_date, 1, 'y') + ' title="Next Year"><img src="' + this.a_tpl.imgpath + 'next_year.gif" /></td></td>' : '') + '</tr></tbody></table><table><tbody><tr class="wd">';
Online Booking System for Camp Holiday Resort and Recreation Area
67
// print calendar table var n_date, n_month, d_current = new Date(d_firstday); while (d_current.getMonth() == d_date.getMonth() || d_current.getMonth() == d_firstday.getMonth()) {
// print row heder s_html +='<tr>'; for (var n_wday = 0; n_wday < 7; n_wday++) {
// other month if (d_current.getMonth() != d_date.getMonth()) a_class[a_class.length] = 'othermonth'; // weekend if (d_current.getDay() == 0 || d_current.getDay() == 6) a_class[a_class.length] = 'weekend'; // today if (d_current.valueOf() == d_today.valueOf()) a_class[a_class.length] = 'today'; // selected if (d_current.valueOf() == d_selected.valueOf()) a_class[a_class.length] = 'selected';
Online Booking System for Camp Holiday Resort and Recreation Area
68
s_html += '<td onclick="A_TCALS[\'' + this.s_id + '\'].f_hide(' + d_current.valueOf() + ')"' + (a_class.length ? ' class="' + a_class.join(' ') + '">' : '>') + n_date + '</td>'
d_current.setDate(++n_date); while (d_current.getDate() != n_date && d_current.getMonth() == n_month) { d_current.setHours(d_current.getHours + 1); d_current = f_tcalResetTime(d_current); } } // print row footer s_html +='</tr>'; } s_html +='</tbody></table>';
var n_width = this.e_div.offsetWidth; var n_height = this.e_div.offsetHeight; var n_top = f_getPosition (this.e_icon, 'Top') + this.e_icon.offsetHeight; var n_left = f_getPosition (this.e_icon, 'Left') - n_width + this.e_icon.offsetWidth; if (n_left < 0) n_left = 0;
Online Booking System for Camp Holiday Resort and Recreation Area
69
this.e_shade.style.left = (n_left - 1) + 'px'; this.e_shade.style.top = (n_top - 1) + 'px'; this.e_shade.innerHTML = b_ieFix ? '<table><tbody><tr><td rowspan="2" colspan="2" width="6"><img src="' + this.a_tpl.imgpath + 'pixel.gif"></td><td width="7" height="7" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + this.a_tpl.imgpath + 'shade_tr.png\', sizingMethod=\'scale\');"><img src="' + this.a_tpl.imgpath + 'pixel.gif"></td></tr><tr><td height="' + (n_height - 7) + '" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + this.a_tpl.imgpath + 'shade_mr.png\', sizingMethod=\'scale\');"><img src="' + this.a_tpl.imgpath + 'pixel.gif"></td></tr><tr><td width="7" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + this.a_tpl.imgpath + 'shade_bl.png\', sizingMethod=\'scale\');"><img src="' + this.a_tpl.imgpath + 'pixel.gif"></td><td style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + this.a_tpl.imgpath + 'shade_bm.png\', sizingMethod=\'scale\');" height="7" align="left"><img src="' + this.a_tpl.imgpath + 'pixel.gif"></td><td style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + this.a_tpl.imgpath + 'shade_br.png\', sizingMethod=\'scale\');"><img src="' + this.a_tpl.imgpath + 'pixel.gif"></td></tr><tbody></table>' : '<table><tbody><tr><td rowspan="2" width="6"><img src="' + this.a_tpl.imgpath + 'pixel.gif"></td><td rowspan="2"><img src="' + this.a_tpl.imgpath + 'pixel.gif"></td><td width="7" height="7"><img src="' + this.a_tpl.imgpath + 'shade_tr.png"></td></tr><tr><td background="' + this.a_tpl.imgpath + 'shade_mr.png" height="' + (n_height - 7) + '"><img src="' + this.a_tpl.imgpath + 'pixel.gif"></td></tr><tr><td><img src="' + this.a_tpl.imgpath + 'shade_bl.png"></td><td background="' + this.a_tpl.imgpath + 'shade_bm.png" height="7" align="left"><img src="' + this.a_tpl.imgpath + 'pixel.gif"></td><td><img src="' + this.a_tpl.imgpath + 'shade_br.png"></td></tr><tbody></table>';
if (this.e_iframe) { this.e_iframe.style.left = n_left + 'px'; this.e_iframe.style.top = n_top + 'px'; this.e_iframe.style.width = (n_width + 6) + 'px'; this.e_iframe.style.height = (n_height + 6) +'px'; } return true; }
Online Booking System for Camp Holiday Resort and Recreation Area
70
e_elem = e_elemRef;
while (e_elem) { n_offset = e_elem["offset" + s_coord]; n_pos += n_offset; e_elem = e_elem.offsetParent; } // margin correction in some browsers if (b_ieMac) n_pos += parseInt(document.body[s_coord.toLowerCase() + 'Margin']); else if (b_safari) n_pos -= n_offset;
e_elem = e_elemRef; while (e_elem != document.body) { n_offset = e_elem["scroll" + s_coord]; if (n_offset && e_elem.style.overflow == 'scroll') n_pos -= n_offset; e_elem = e_elem.parentNode; } return n_pos; }
function f_tcalRelDate (d_date, d_diff, s_units) { var s_units = (s_units == 'y' ? 'FullYear' : 'Month'); var d_result = new Date(d_date); d_result['set' + s_units](d_date['get' + s_units]() + d_diff); if (d_result.getDate() != d_date.getDate())
Online Booking System for Camp Holiday Resort and Recreation Area
71
f_getElement = document.all ? function (s_id) { return document.all[s_id] } : function (s_id) { return document.getElementById(s_id) };
Online Booking System for Camp Holiday Resort and Recreation Area
72
re_webkit = /WebKit\/(\d+)/i; var b_mac = s_userAgent.indexOf('mac') != -1, b_ie5 = s_userAgent.indexOf('msie 5') != -1, b_ie6 = s_userAgent.indexOf('msie 6') != -1 && s_userAgent.indexOf('opera') == -1; var b_ieFix = b_ie5 || b_ie6, b_ieMac = b_mac && b_ie5, b_safari = b_mac && re_webkit.exec(s_userAgent) && Number(RegExp.$1) < 500;
Online Booking System for Camp Holiday Resort and Recreation Area
73
G.*, R.*
Online Booking System for Camp Holiday Resort and Recreation Area
74
$row = mysql_fetch_object($result); ?> <table style="font-family: Verdana; font-size:12px;"> <tr> <td>Name</td> <td>:</td> <td><?php echo $row->firstName." ".$row->middleInitial.". ".$row->lastName;?></td> </tr> <tr> <td>Company</td> <td>:</td> <td><?php echo $row->Company;?></td> </tr> <tr> <td>Address</td> <td>:</td> <td><?php echo $row->Address;?></td> </tr> </table> </div> <hr width="800px" align="left">
<hr width="800px" align="left"> <div style="font-size:12px;" > <table style="font-family: Verdana; font-size:12px;" align="center"> <thead> <tr> <th style="padding-right:30px;">Description</th>
Online Booking System for Camp Holiday Resort and Recreation Area
75
<th style="padding-left:30px; padding-right:30px;">Qty</th> <th style="padding-left:30px; padding-right:30px;">Unit Price</th> <th style="padding-left:30px; padding-right:30px;">Amount</th> </tr> </thead> <tbody> <tbody> <?php $sql2 = " SELECT FROM basket.*, service.Description, service.Price tbl_basket AS basket
while($row=mysql_fetch_array($rs)){ ?> <tr> <td align="center"><?php echo $row['Description']; ?></td> <td align="center"><?php echo $row['Qty']; ?></td> <td align="center"><?php echo $row['Price']; ?></td> <?php $qty = $row['Qty']; $price = $row['Price']; $sum = $qty * $price; ?> <input type="hidden" name="price" value="<?php echo $sum; ?>" /> <td align="center"><?php echo $sum; ?></td>
Online Booking System for Camp Holiday Resort and Recreation Area
76
</tr> <?php $sum1 = $sum + $sum1; } ?> <tr> <td colspan="2"></td> <th>Total</th> <th><?php echo $sum1; ?></th> </tr> </tbody> </table> </div> <hr width="800px" align="left"> <br /><br /><br /><br /><br /><br /> <hr width="300px" align="left"> Signature of Guest <br /><br /><br /><br /> I agree that my liability in this bill is not waived and agree to be held personally liable<br /> in the event that the indicated person, company or association fails to pay the full amount<br /> of these charges. <br /><br /><br /><br /> <hr width="800px" align="left"> <div align="center"> Thank you for staying with us. We hope to welcome you back soon. </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
77
</body> </html>
G.*, R.*
Online Booking System for Camp Holiday Resort and Recreation Area
78
$row = mysql_fetch_object($result); ?> <table style="font-family: Verdana; font-size:12px;"> <tr> <td>Name</td> <td>:</td> <td><?php echo $row->firstName." ".$row->middleInitial.". ".$row->lastName;?></td> </tr> <tr> <td>Company</td> <td>:</td> <td><?php echo $row->Company;?></td> </tr> <tr> <td>Address</td> <td>:</td> <td><?php echo $row->Address;?></td> </tr> </table> </div> <hr width="800px" align="left">
<hr width="800px" align="left"> <div style="font-size:12px;" > <table style="font-family: Verdana; font-size:12px;" align="center"> <thead> <tr> <th style="padding-right:30px;">Description</th>
Online Booking System for Camp Holiday Resort and Recreation Area
79
<th style="padding-left:30px; padding-right:30px;">Qty</th> <th style="padding-left:30px; padding-right:30px;">Unit Price</th> <th style="padding-left:30px; padding-right:30px;">Amount</th> </tr> </thead> <tbody> <tbody> <?php $sql2 = " SELECT FROM basket.*, service.Description, service.Price tbl_basket AS basket
while($row=mysql_fetch_array($rs)){ ?> <tr> <td align="center"><?php echo $row['Description']; ?></td> <td align="center"><?php echo $row['Qty']; ?></td> <td align="center"><?php echo $row['Price']; ?></td> <?php $qty = $row['Qty']; $price = $row['Price']; $sum = $qty * $price; ?> <input type="hidden" name="price" value="<?php echo $sum; ?>" /> <td align="center"><?php echo $sum; ?></td>
Online Booking System for Camp Holiday Resort and Recreation Area
80
</tr> <?php $sum1 = $sum + $sum1; } ?> <tr> <td colspan="2"></td> <th>Total</th> <th><?php echo $sum1; ?></th> </tr> </tbody> </table> </div> <hr width="800px" align="left"> <br /><br /><br /><br /><br /><br /> <hr width="300px" align="left"> Signature of Guest <br /><br /><br /><br /> I agree that my liability in this bill is not waived and agree to be held personally liable<br /> in the event that the indicated person, company or association fails to pay the full amount<br /> of these charges. <br /><br /><br /><br /> <hr width="800px" align="left"> <div align="center"> Thank you for staying with us. We hope to welcome you back soon. </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
81
</body> </html>
Online Booking System for Camp Holiday Resort and Recreation Area
82
var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left); } </script> <?php $do_delete = $_POST['deleteuser']; $id = $_POST['chk'];
if($do_delete){ $N = count($id);
for($i=0;$i < $N; $i++){ $sql = "DELETE FROM tbl_basket WHERE service_id = '".$id[$i]."'"; mysql_query($sql) or die(mysql_error()); } } ?> <div id="element-box2"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <?php $_SESSION['id'] = $_GET['id'];
$sqlString = "
SELECT
G.*, R.*
Online Booking System for Camp Holiday Resort and Recreation Area
83
$result = mysql_query($sqlString) or die(mysql_error()); $row = mysql_fetch_object($result); ?> <form action="<?php echo $PHP_SELF ?>" name="checkavailability" method="post"> <table border="0"> <tr> <td >Company Name</td> <td>:</td> <td style="color:#060; font-weight:bolder;"> <?php if($row->Company == ""){ echo " XXXXX "; } else { echo $row->Company; } ?> </td> </tr> <tr> <td>Name</td> <td>:</td> <td style="color:#060; font-weight:bolder;"> <?php echo $row->lastName.", ".$row->firstName." ".$row->middleInitial.".";?>
Online Booking System for Camp Holiday Resort and Recreation Area
84
</td> <td width="40px"><td> <td >Room Type</td> <td>:</td> <td style="color:#060; font-weight:bolder;"><?php echo $row->roomName;?></td> </tr> <tr> <td >Address</td> <td>:</td> <td style="color:#060; font-weight:bolder;"><?php echo $row->Address;?></td> <td width="40px"><td> <td >Room No.</td> <td>:</td> <td style="color:#060; font-weight:bolder;"><?php echo $row->roomNumber;?></td> </tr> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> <br /> <div id="toolbar-box"> <div class="t"> <div class="t">
Online Booking System for Camp Holiday Resort and Recreation Area
85
<div class="t"></div> </div> </div> <div class="m"> <form action="" method="post" name="adminForm" id="frm1"> <input type="hidden" name="deleteuser" /> <div class="toolbar" id="toolbar"> <table class="toolbar"> <tr> <td class="button" id="toolbar-delete"> <a href="javascript:getdelete('delete')" onclick="return confirm('Are you sure you want to DELETE?');"> <span class="icon-32-delete" title="Delete"></span> Delete </a> </td> <td class="button" id="toolbar-new"> <a href="javascript:void(0);" onClick="PopupCenter('Sub/Home/addcharges_menu.php','Add Charges',300,200);"> <span class="icon-32-new" title="New"></span> New </a> </td> <td></td> </tr> </table> </div> <div class="header icon-48-add-services">Additional Charges</div>
Online Booking System for Camp Holiday Resort and Recreation Area
86
<div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> <div class="clr"></div> <div id="element-box2"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div style="margin-right:50px;"> <table class="adminlist" width="100px;"> <thead> <tr> <th>#</th> <th><input type='checkbox' name='checkall' onclick='checkedAll(frm1);'></th> <th nowrap="nowrap">Description</th> <th nowrap="nowrap">Qty</th> <th class="title">Unit Price</th> <th nowrap="nowrap">Amount</th> </tr> </thead>
Online Booking System for Camp Holiday Resort and Recreation Area
87
<tbody> <?php $sql2 = " SELECT FROM INNER JOIN ON "; $rs=mysql_query($sql2); basket.*, service.Description, service.Price tbl_basket AS basket tbl_services AS service basket.service_id = service.service_id
$count = 1;
while($row=mysql_fetch_array($rs)){ ?> <tr> <td align="center"><?php echo $count; ?></td> <td align="center"> <input type="checkbox" value="<?php echo $row['service_id']; ?>" name="chk[]" id="chk" /> </td> <td align="center"><?php echo $row['Description']; ?></td> <td align="center"><?php echo $row['Qty']; ?></td> <td align="center"><?php echo $row['Price']; ?></td> <?php $qty = $row['Qty']; $price = $row['Price']; $sum = $qty * $price; ?> <input type="hidden" name="price" value="<?php echo $sum; ?>" />
Online Booking System for Camp Holiday Resort and Recreation Area
88
<td align="center"><?php echo $sum; ?></td> </tr> <?php $sum1 = $sum + $sum1; $count = $count + 1; } ?> <tr> <td colspan="4"></td> <th align="center" style="color:#00F; font-weight:bolder;">Total</th> <th align="center" style="color:#F00; font-weight:bolder;"><?php echo $sum1; ?></th> </tr> </tbody> </table> <tr> <td> <a href="domain.php?rel=AddChargesConfirm"> <input type="button" value="Confirm" style="font-size:16px; padding-left:15px; padding-right:15px; font-weight: bolder; cursor:pointer;"/> </a> </td> <td> <a href="domain.php?rel=Checkin"> <input type="button" value="Cancel" style="font-size:16px; padding-left:15px; padding-right:15px; font-weight: bolder; cursor:pointer;"/> </a>
Online Booking System for Camp Holiday Resort and Recreation Area
89
</td> </tr> </form> </div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
90
$id = $_SESSION['id'];
accommodation_id
$accommodation_id = $row->accommodation_id;
$sql2 = "
INSERT INTO
SELECT tbl_basket
$result3 = mysql_query($sql3) or die(mysql_error()); while($row3 = mysql_fetch_array($result3)){ $service_id = $row3['service_id']; $qty = $row3['Qty']; $addcharges[$service_id] = $qty;
Online Booking System for Camp Holiday Resort and Recreation Area
91
foreach($addcharges as $service_id => $qty){ $sql4 = " FROM WHERE "; $result4 = mysql_query($sql4) or die(mysql_error()); $row4 = mysql_fetch_object($result4); $amount = $qty * $row4->Price; $sql5 = " '$transaction_id', '$service_id', '$qty', $amount ) "; mysql_query($sql5) or die(mysql_error()); } INSERT INTO tbl_transactiondetails VALUES( '', SELECT tbl_services service_id = '$service_id' Price
$total = 0; $sql6 = " FROM WHERE "; $result6 = mysql_query($sql6) or die(mysql_error()); while($row6 = mysql_fetch_array($result6)){ $amount = $row6['Amount']; $total = $total + $amount; } SELECT tbl_transactiondetails transaction_id = '$transaction_id' Amount
Online Booking System for Camp Holiday Resort and Recreation Area
92
accommodation_id = '$accommodation_id',
Total = '$total', dateTransaction = NOW() WHERE "; mysql_query($sql7) or die(mysql_error()); ?> </body> </html> transaction_id = '$transaction_id'
$rs = mysql_query($sql); while($row=mysql_fetch_array($rs)) { ?> <option value="<?php echo $row['service_id']; ?>"><?php echo $row['Description']; ?></option>
Online Booking System for Camp Holiday Resort and Recreation Area
93
<?php } ?> </select> </td> </tr> <tr> <td>Qty:</td> <td> <input type="text" size="5" name="qty"></td> </tr> <tr> <td></td> <td><input type="submit" name="submit" value="Add"></td> </tr> </table> </form>
$sql = " Insert tbl_basket(service_id,qty) values('$id','$qty') "; if (mysql_query($sql)) { echo " <script> window.close(); if (window.opener && !window.opener.closed) { window.opener.location.reload();
Online Booking System for Camp Holiday Resort and Recreation Area
94
G.*, R.*
G.guest_id = R.guest_id
Online Booking System for Camp Holiday Resort and Recreation Area
95
WHERE ";
R.guest_id = $id
$result = mysql_query($sqlString) or die(mysql_error()); $row = mysql_fetch_object($result); ?> <table style="font-family: Verdana; font-size:12px;"> <tr> <td>Name</td> <td>:</td> <td><?php echo $row->firstName." ".$row->middleInitial.". ".$row->lastName;?></td> <td width="200px"><td> <td>Statement No.</td> <td>:</td> <td style="color:#F00; font-weight: bolder;"> <?php $sqlString2 = " SELECT FROM INNER JOIN ON INNER JOIN ON WHERE "; $result2 = mysql_query($sqlString2) or die(mysql_error()); $row2 = mysql_fetch_object($result2); echo $row2->billing_id; ?> </td> tbl_guest G G.guest_id = A.guest_id G.guest_id = $id B.billing_id tbl_billing B tbl_accommodation A A.accommodation_id = B.accommodation_id
Online Booking System for Camp Holiday Resort and Recreation Area
96
</tr> <tr> <td>Company</td> <td>:</td> <td> <?php if( $row->Company == ""){ echo " XXXXX "; } else { echo $row->Company; } ?> </td> </tr> <tr> <td>Address</td> <td>:</td> <td><?php echo $row->Address;?></td> </tr> </table> </div> <hr width="800px" align="left"> <div> <table style="font-family: Verdana; font-size:12px;"> <tr> <td>Room No.</td> <td>:</td> <td><?php echo $row->roomNumber; ?></td>
Online Booking System for Camp Holiday Resort and Recreation Area
97
</tr> <tr> <td>Room Type</td> <td>:</td> <td><?php echo $row->roomName;?></td> </tr> <tr> <td>Arrival</td> <td>:</td> <td> <?php $arrivalDate = strtotime($row->Arrival); echo date('m/d/Y', $arrivalDate); ?> </td> </tr> <tr> <td>Departure</td> <td>:</td> <td> <?php $departueDate = strtotime($row->Departure); echo date('m/d/Y', $departueDate); ?> </td> </tr> </table> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
98
<hr width="800px" align="left"> <div style="font-size:12px;" > <table style="font-family: Verdana; font-size:12px;" align="center" > <thead> <tr> <th style="padding-right:30px;">Date</th> <th style="padding-left:30px; padding-right:30px;">Transaction No.</th> <th style="padding-left:30px; padding-right:30px;">Description</th> <th style="padding-left:30px; padding-right:30px;">Payment</th> <th style="padding-left:30px; padding-right:30px;">Amount</th> <th style="padding-left:30px; padding-right:30px;">Balance</th> </tr> </thead> <tbody> <tbody> <?php $balance = 0; $sql2 = " FROM INNER JOIN ON INNER JOIN ON INNER JOIN ON INNER JOIN ON LEFT JOIN SELECT tbl_guest G tbl_reservation R G.guest_id = R.guest_id tbl_accommodation A G.guest_id = A.guest_id tbl_billing B A.accommodation_id = B.accommodation_id tbl_transaction T B.accommodation_id = T.accommodation_id tbl_transactiondetails TD G.*, R.*, A.*, B.*, T.*, TD.*, S.*
Online Booking System for Camp Holiday Resort and Recreation Area
99
while($row=mysql_fetch_array($rs)){ ?> <tr> <td align="center"> <?php $date = strtotime($row['dateTransaction']); echo date('m/d/Y', $date); ?> </td> <td align="center"><?php echo $row['transaction_id']; ?></td> <td align="center"> <?php if($row['Desc'] == ""){ echo $row['Description']; } elseif($row['Desc'] == "Payment Received") { echo $row['Desc']; } else { $departuredate = strtotime($row['Departure']); echo $row['Desc']." ".date("m/d/Y",$departuredate); } ?>
Online Booking System for Camp Holiday Resort and Recreation Area
100
</td> <td align="center"> <?php if($row['Desc'] == "Payment Received"){ echo $row['Total']; } ?> </td> <td align="center"> <?php if($row['Desc'] == ""){ echo $row['Amount']; } elseif($row['Desc'] == "Payment Received") { echo " "; } else { echo $row['Total']; } ?> </td> <td align="center"> <?php if($row['Desc'] == ""){ echo $balance = $balance + $row['Amount']; } elseif($row['Desc'] == "Payment Received") { echo $balance = $balance - $row['Total']; } else { echo $balance = $balance + $row['Total']; }
Online Booking System for Camp Holiday Resort and Recreation Area
101
?> </td> </tr> <?php } ?> <tr> <td colspan="4"></td> <th style="color:#00F; font-weight: bolder;">Current Balance</th> <th style="color:#F00; font-weight: bolder;"><?php echo $balance; ?></th> </tr> </tbody> </table> </div> <hr width="800px" align="left"> <br /><br /><br /><br /><br /><br /> <hr width="300px" align="left"> Signature of Guest <br /><br /><br /><br /> I agree that my liability in this bill is not waived and agree to be held personally liable<br /> in the event that the indicated person, company or association fails to pay the full amount<br /> of these charges. <br /><br /><br /><br /> <hr width="800px" align="left"> <div align="center"> Thank you for staying with us. We hope to welcome you back soon. </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
102
</body> </html>
$sql2 = "DELETE FROM tbl_basket "; mysql_query($sql2) or die("No users database!"); ?> <script type="text/javascript"> function PopupCenter(pageURL, title,w,h) { var left = (screen.width/2)-(w/2); var top = (screen.height/2)-(h/2); var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left); } function doSearch(phrase){ var words = phrase.value.toLowerCase().split(" "); var table = document.getElementById("filterable"); var ele; var on = 0; for (var r = 0; r < table.rows.length; r++){ ele = table.rows[r].innerHTML.replace(/<[^>]+>/g,""); var displayStyle = 'none'; for (var i = 0; i < words.length; i++) { if (ele.toLowerCase().indexOf(words[i])>=0){
Online Booking System for Camp Holiday Resort and Recreation Area
103
displayStyle = ''; on++; }else { displayStyle = 'none'; break; } } table.rows[r].style.display = displayStyle; } var n = document.getElementById("noresults"); if ( on == 0 && n ) { n.style.display = ""; document.getElementById("qt").innerHTML = phrase.value; }else{ n.style.display = "none"; } } </script>
<div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="domain.php?rel=Guests" method="post" name="adminForm" id="frm1"> <input type="hidden" name="deleteuser" />
Online Booking System for Camp Holiday Resort and Recreation Area
104
<div class="header icon-48-list-of-guest">List of Guests ( Check-in )</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> <div class="clr"></div> <div id="submenu-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <ul id="submenu"> <li><a href="domain.php?rel=Home&page=1" >Reservation</a></li> <li><a href="domain.php?rel=Checkin&page=1" class="active">Guests</a></li> <li><a href="domain.php?rel=Checkout&page=1">Check-out</a></li> </ul> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
105
</div> </div> <div id="element-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div style="font-weight: bolder; padding: 5px;"> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red;" onkeyup="doSearch(filter);" /> </div> <table class="adminlist"> <thead> <tr> <th width="5%">#</th> <th width="20%" nowrap="nowrap">Name</th> <th width="10%" nowrap="nowrap">Reservation Type</th> <th width="8%" class="title">Arrival</th> <th width="8%" nowrap="nowrap">Departure</th> <th width="28%" nowrap="nowrap">Room Name</th> <th width="6%" nowrap="nowrap">Room No.</th> <th width="15%" nowrap="nowrap" colspan="3">Action</th> </tr> </thead> <tbody id="filterable"> <?php
Online Booking System for Camp Holiday Resort and Recreation Area
106
G.guest_id, G.lastName, G.firstName, G.middleInitial, R.* tbl_guest G tbl_reservation R G.guest_id = R.guest_id R.Status = 'Check-in'
$count = 1;
while($row = mysql_fetch_array($result)){ ?> <tr> <td align="center"><?php echo $count; ?></td> <td align="center"> <?php echo $row['lastName'].", ".$row['firstName']." ". $row['middleInitial']."."; ?> </td> <td align="center"><?php echo $row['reservationType']; ?></td> <td align="center"> <?php $arrival = strtotime($row['Arrival']); echo date("m/d/Y", $arrival); ?> </td> <td align="center"> <?php $departure = strtotime($row['Departure']); echo date("m/d/Y", $departure);
Online Booking System for Camp Holiday Resort and Recreation Area
107
?> </td> <td align="center"><?php echo $row['roomName']; ?></td> <td align="center"><?php echo $row['roomNumber']; ?></td> <td align="center"> <a href="domain.php?rel=AddCharges&id=<?php echo $row['guest_id']; ?>"> <span title="Add Charges"> <img src="images/admin-icons/40-32-addcharges-icon.png" align="middle" /> </span> </a> </td> <td align="center"> <a href="javascript:void(0);" onClick="PopupCenter('popup.php?rel=Billing&id=<?php echo $row['guest_id']; ?>','Add Charges',900,600);"> <span title="Billing"> <img src="images/admin-icons/32-view-icon.png" align="middle" /> </span> </a> </td> <td align="center"> <a href="javascript:void(0);" onClick="PopupCenter('popup.php?rel=Payments2&id=<?php echo $row['guest_id']; ?>','Add Charges',900,400);"> <span title="Check-out"> <img src="images/admin-icons/32-checkout-icon.png" align="middle" /> </span> </a> </td>
Online Booking System for Camp Holiday Resort and Recreation Area
108
</tr> <?php } ?> <tr style="display:none; color:#F00; font-weight: bolder;" id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>".</td> </tr> </tbody> </table> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div> $count = $count + 1;
Online Booking System for Camp Holiday Resort and Recreation Area
109
tbl_reservation
Status = 'Check-in' WHERE "; mysql_query($sqlString) or die(mysql_error()); ?> </body> </html> reservation_id = $id
$sql2 = "DELETE FROM tbl_basket "; mysql_query($sql2) or die("No users database!"); ?> <script type="text/javascript"> function PopupCenter(pageURL, title,w,h) { var left = (screen.width/2)-(w/2); var top = (screen.height/2)-(h/2);
Online Booking System for Camp Holiday Resort and Recreation Area
110
var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left); } function doSearch(phrase){ var words = phrase.value.toLowerCase().split(" "); var table = document.getElementById("filterable"); var ele; var on = 0; for (var r = 0; r < table.rows.length; r++){ ele = table.rows[r].innerHTML.replace(/<[^>]+>/g,""); var displayStyle = 'none'; for (var i = 0; i < words.length; i++) { if (ele.toLowerCase().indexOf(words[i])>=0){ displayStyle = ''; on++; }else { displayStyle = 'none'; break; } } table.rows[r].style.display = displayStyle; } var n = document.getElementById("noresults"); if ( on == 0 && n ) { n.style.display = ""; document.getElementById("qt").innerHTML = phrase.value; }else{ n.style.display = "none";
Online Booking System for Camp Holiday Resort and Recreation Area
111
} } </script>
<div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="domain.php?rel=Guests" method="post" name="adminForm" id="frm1"> <input type="hidden" name="deleteuser" /> <div class="header icon-48-list-of-guest">List of Guests ( Check-out )</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> <div class="clr"></div> <div id="submenu-box"> <div class="t"> <div class="t"> <div class="t"></div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
112
</div> <div class="m"> <ul id="submenu"> <li><a href="domain.php?rel=Home&page=1" >Reservation</a></li> <li><a href="domain.php?rel=Checkin&page=1" >Guests</a></li> <li><a href="domain.php?rel=Checkout&page=1" class="active">Check-out</a></li> </ul> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
<div id="element-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div style="font-weight: bolder; padding: 5px;"> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red;" onkeyup="doSearch(filter);" />
Online Booking System for Camp Holiday Resort and Recreation Area
113
</div> <table class="adminlist"> <thead> <tr> <th width="5%">#</th> <th width="10%" nowrap="nowrap">Status</th> <th width="20%" nowrap="nowrap">Name</th> <th width="10%" nowrap="nowrap">Reservation Type</th> <th width="8%" class="title">Arrival</th> <th width="8%" nowrap="nowrap">Departure</th> <th width="28%" nowrap="nowrap">Room Name</th> <th width="6%" nowrap="nowrap">Room No.</th> <th width="5%" nowrap="nowrap" colspan="3">Action</th> </tr> </thead> <tbody id="filterable"> <?php $sql = " SELECT FROM INNER JOIN ON WHERE "; $result = mysql_query($sql) or die("No users database!"); G.guest_id, G.lastName, G.firstName, G.middleInitial, R.* tbl_guest G tbl_reservation R G.guest_id = R.guest_id R.Status = 'Check-out'
$count = 1;
while($row = mysql_fetch_array($result)){
Online Booking System for Camp Holiday Resort and Recreation Area
114
?> <tr> <td align="center"><?php echo $count; ?></td> <td align="center"><?php echo $row['Status']; ?></td> <td align="center"> <?php echo $row['lastName'].", ".$row['firstName']." ". $row['middleInitial']."."; ?> </td> <td align="center"><?php echo $row['reservationType']; ?></td> <td align="center"> <?php $arrival = strtotime($row['Arrival']); echo date("m/d/Y", $arrival); ?> </td> <td align="center"> <?php $departure = strtotime($row['Departure']); echo date("m/d/Y", $departure); ?> </td> <td align="center"><?php echo $row['roomName']; ?></td> <td align="center"><?php echo $row['roomNumber']; ?></td> <td align="center" colspan="3"> <a href="javascript:void(0);" onClick="PopupCenter('popup.php?rel=Payments&id=<?php echo $row['guest_id']; ?>','Add Charges',900,400);"> <span title="Official Receipt"> <img src="images/admin-icons/32-view-icon.png" align="middle" />
Online Booking System for Camp Holiday Resort and Recreation Area
115
</span> </a> </td> </tr> <?php } ?> <tr style="display:none; color:#F00; font-weight: bolder;" id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>".</td> </tr> </tbody> </table> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div> $count = $count + 1;
Online Booking System for Camp Holiday Resort and Recreation Area
116
function PopupCenter(pageURL, title,w,h) { var left = (screen.width/2)-(w/2); var top = (screen.height/2)-(h/2); var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left); } function doSearch(phrase){ var words = phrase.value.toLowerCase().split(" "); var table = document.getElementById("filterable"); var ele; var on = 0; for (var r = 0; r < table.rows.length; r++){ ele = table.rows[r].innerHTML.replace(/<[^>]+>/g,""); var displayStyle = 'none'; for (var i = 0; i < words.length; i++) { if (ele.toLowerCase().indexOf(words[i])>=0){ displayStyle = ''; on++; }else { displayStyle = 'none'; break; } } table.rows[r].style.display = displayStyle; } var n = document.getElementById("noresults"); if ( on == 0 && n ) { n.style.display = "";
Online Booking System for Camp Holiday Resort and Recreation Area
117
document.getElementById("qt").innerHTML = phrase.value; }else{ n.style.display = "none"; } } </script> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="domain.php?rel=Guests" method="post" name="adminForm" id="frm1"> <input type="hidden" name="deleteuser" /> <div class="header icon-48-list-of-guest">List of Reservation</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> <div class="clr"></div> <div id="submenu-box"> <div class="t"> <div class="t">
Online Booking System for Camp Holiday Resort and Recreation Area
118
<div class="t"></div> </div> </div> <div class="m"> <ul id="submenu"> <li><a href="domain.php?rel=Home&page=1" class="active">Reservation</a></li> <li><a href="domain.php?rel=Checkin&page=1">Guests</a></li> <li><a href="domain.php?rel=Checkout&page=1">Check-out</a></li> </ul> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> <div id="element-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div style="font-weight: bolder; padding: 5px;"> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red;" onkeyup="doSearch(filter);" /> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
119
<table class="adminlist"> <thead> <tr> <th width="5%">#</th> <th width="5%" nowrap="nowrap">Status</th> <th width="25%" nowrap="nowrap">Name</th> <th width="10%" nowrap="nowrap">Reservation Type</th> <th width="8%" class="title">Arrival</th> <th width="8%" nowrap="nowrap">Departure</th> <th width="28%" nowrap="nowrap">Room Name</th> <th width="6%" nowrap="nowrap">Room No.</th> <th width="15%" nowrap="nowrap" colspan="3">Action</th> </tr> </thead> <tbody id="filterable"> <?php $now = mktime(0,0,0,date("m"),date("d"),date("Y")); $datenow = date("Y-m-d", $now);
G.guest_id, G.lastName, G.firstName, G.middleInitial, R.* tbl_guest G tbl_reservation R G.guest_id = R.guest_id R.isReserved='YES' AND R.Arrival >= '$datenow' R.Arrival ASC
Online Booking System for Camp Holiday Resort and Recreation Area
120
$count = 1;
?> <tr> <td align="center"><?php echo $count; ?></td> <td align="center"><?php echo $row['Status']; ?></td> <td align="center"> <?php echo $row['lastName'].", ".$row['firstName']." ". $row['middleInitial']."."; ?> </td> <td align="center"><?php echo $row['reservationType']; ?></td> <td align="center"> <?php $arrival = strtotime($row['Arrival']); echo date("m/d/Y",$arrival); ?> </td> <td align="center"> <?php $departure = strtotime($row['Departure']); echo date("m/d/Y",$departure); ?> </td> <td align="center"><?php echo $row['roomName']; ?></td> <td align="center"><?php echo $row['roomNumber']; ?></td>
Online Booking System for Camp Holiday Resort and Recreation Area
121
<td align="center"> <?php if($row['Arrival'] == $datenow){?> <a href="domain.php?rel=ArrivalConfirm&id=<?php echo $row['reservation_id']; ?>" onclick="return confirm('Continue to Check-in?');"> <span title="Confirm"> <img src="images/admin-icons/32-confirm-icon.png" align="middle" /> </span> </a> <?php } ?> </td> <td align="center"> <a href="javascript:void(0);" onClick="PopupCenter('popup.php?rel=ViewDetails&id=<?php echo $row['reservation_id']; ?>', 'Add Charges',500,470);"> <span title="View Details"> <img src="images/admin-icons/32-view-icon.png" align="middle" /> </span> </a> </td> <td align="center"> <a href="domain.php?rel=ArrivalCancel&id=<?php echo $row['reservation_id']; ?>" onclick="return confirm('Are you sure you want to Cancel Reservation?');"> <span title="Cancel"> <img src="images/admin-icons/32-cancel-icon.png" align="middle" /> </span> </a> </td> </tr>
Online Booking System for Camp Holiday Resort and Recreation Area
122
<?php } ?>
$count = $count + 1;
<tr style="display:none; color:#F00; font-weight: bolder;" id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>".</td> </tr> </tbody> </table> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
123
tbl_reservation
reservation_id = $id
Online Booking System for Camp Holiday Resort and Recreation Area
124
tbl_reservation
Status = 'Check-in' WHERE "; mysql_query($sqlString) or die(mysql_error()); ?> </body> </html> reservation_id = $id
<link rel="stylesheet" type="text/css" href="css/template.css" /> <link rel="stylesheet" type="text/css" href="css/rounded.css" /> <link rel="stylesheet" type="text/css" href="css/styles.css"/> <link rel="stylesheet" type="text/css" href="css/messagebox.css"/> <link href="css/calendar.css" rel="stylesheet" type="text/css"/> <script src="js/filterTable.js" language="JavaScript"></script> <script src="js/calendar.js" language="JavaScript"></script> <script type="text/javascript" src="js/menu.js"></script> <script type="text/javascript" src="js/reservationtype.js"></script>
Online Booking System for Camp Holiday Resort and Recreation Area
125
</head> <body> <div id="toolbar-box5"> <div class="t"><div class="t"><div class="t"></div></div></div> <div class="m"> <div class="toolbar" id="toolbar"></div> <div class="header icon-48-list-of-guest">Personal Info</div> </div> <div class="b"><div class="b"><div class="b"></div></div></div> </div> <br /> <div id="element-box5"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <?php $id = $_GET['id']; $sqlString = " FROM WHERE "; $result = mysql_query($sqlString) or die("No users database!"); while($row = mysql_fetch_array($result)){ ?> <form> SELECT tbl_guest guest_id = $id *
Online Booking System for Camp Holiday Resort and Recreation Area
126
<table style="font-size: 12px; margin-left: 50px;"> <tr> <td >Company Name</td> <td>:</td> <td style="color:#060; font-weight:bolder;"> <?php if($row['Company'] == ""){ echo " XXXXX "; } else { echo $row['Company']; } ?> </td> </tr> <tr> <td >Name</td> <td>:</td> <td style="color:#060; font-weight:bolder;"> <?php echo $row['lastName'].", ".$row['firstName']." ". $row['middleInitial']."."; ?> </td> </tr> <tr> <td >Address</td> <td>:</td> <td style="color:#060; font-weight:bolder;"><?php echo $row['Address'];?></td> </tr> <tr> <td >Contact No.</td>
Online Booking System for Camp Holiday Resort and Recreation Area
127
<td>:</td> <td style="color:#060; font-weight:bolder;"><?php echo $row['contactNo'];?></td> </tr> <tr> <td >Email</td> <td>:</td> <td style="color:#060; font-weight:bolder;"><?php echo $row['Email'];?></td> </tr> </table> </form> <?php } ?> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> <br /> <div id="toolbar-box5"> <div class="t"><div class="t"><div class="t"></div></div></div> <div class="m"> <div class="toolbar" id="toolbar"></div> <div class="header icon-48-reservation">Reservation Info</div> </div> <div class="b"><div class="b"><div class="b"></div></div></div> </div> <br />
Online Booking System for Camp Holiday Resort and Recreation Area
128
<div id="element-box5"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <?php $id = $_GET['id']; $sqlString = " FROM WHERE "; $result = mysql_query($sqlString) or die("No users database!"); while($row = mysql_fetch_array($result)){ ?> <form> <table style="font-size: 12px; margin-left: 50px;"> <tr> <td >Status</td> <td>:</td> <td style="color:#F00; font-weight:bolder;"><?php echo $row['Status'];?></td> </tr> <tr> <td >Reservation Type</td> <td>:</td> <td style="color:#060; font-weight:bolder;"><?php echo $row['reservationType'];?></td> </tr> SELECT tbl_reservation guest_id = $id *
Online Booking System for Camp Holiday Resort and Recreation Area
129
<tr> <td >Arrival</td> <td>:</td> <td style="color:#060; font-weight:bolder;"> <?php $arrival = strtotime($row['Arrival']); echo date("m/d/Y",$arrival); ?> </td> </tr> <tr> <td >Departure</td> <td>:</td> <td style="color:#060; font-weight:bolder;"> <?php $departure = strtotime($row['Departure']); echo date("m/d/Y",$departure); ?> </td> </tr> <tr> <td >Room Type</td> <td>:</td> <td style="color:#060; font-weight:bolder;"><?php echo $row['roomName'];?></td> </tr> <tr> <td >Room No.</td> <td>:</td>
Online Booking System for Camp Holiday Resort and Recreation Area
130
<td style="color:#060; font-weight:bolder;"><?php echo $row['roomNumber'];?></td> </tr> <tr> <td >No. of Adults</td> <td>:</td> <td style="color:#060; font-weight:bolder;"><?php echo $row['numAdults'];?></td> </tr> <tr> <td >No. of Children</td> <td>:</td> <td style="color:#060; font-weight:bolder;"><?php echo $row['numChildren'];?></td> </tr> </table> </form> <?php } ?> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </body> </html>
Online Booking System for Camp Holiday Resort and Recreation Area
131
document.amenities.submit() ; }
if( amname == "" ){ alert('" FACILITIY NAME " Field should not be empty!'); document.amenities.amname.focus(); return false; } if( amdesc == "" ){ alert('" DESCRIPTION " Field should not be empty!'); document.amenities.amdesc.focus(); return false; }
$id = $_GET['id'];
Online Booking System for Camp Holiday Resort and Recreation Area
132
$sql = "SELECT * FROM tbl_amenities WHERE amenities_id = '$id'"; $result = mysql_query($sql) or die("No user database!");
$row = mysql_fetch_object($result); ?> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div class="toolbar" id="toolbar"> <form action="domain.php?rel=UpdateAmenities&subpage=upload" method="post" name="amenities" enctype="multipart/form-data"> <input type="hidden" name="updateamenities" /> <input type="hidden" name="id" value="<?php echo $row->amenities_id; ?>" /> <table class="toolbar"> <tr> <td class="button" id="toolbar-copy"> <a href="javascript:getUpdateAmenities('amenities')" onclick="return requiredFields()" style="color:#000000;"> <span class="icon-32-save" title="Copy"></span> Save </a> </td>
Online Booking System for Camp Holiday Resort and Recreation Area
133
<td class="button" id="toolbar-edit"> <a href="domain.php?rel=Amenities&page=1" style="color:#000000;"> <span class="icon-32-cancel" title="Edit"></span> Cancel </a> </td>
<td> </td> </tr> </table> </div> <div class="header1 icon-48-96-edit-amenities">Edit Facilities</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
134
</div> </div> <div class="m"> <table width="400" border="0"> <tbody> <tr> <td>Name</td> <td> <input type="text" name="amname" value="<?php echo $row->amenitiesName;?>" size="50" /> </td> </tr> <tr> <td>Description</td> <td> <textarea rows="10" cols="37" name="amdesc"> <?php echo $row->amenitiesDesc;?> </textarea> </td> </tr> <tr> <td>Image</td> <td> <input type="file" name="image" value="<?php echo $row->image;?>" size="50" /> </td> </tr> <tr>
Online Booking System for Camp Holiday Resort and Recreation Area
135
<td>isActive</td> <td> <select name="isactive"> <option value="Yes" <?php if($row->isActive == 'Yes') echo "selected='selected'"; ?>>Yes</option> <option value="No" <?php if($row->isActive == 'No') echo "selected='selected'"; ?>>No</option> </select> </td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
136
if( amname == "" ){ alert('" FACILITIY NAME " Field should not be empty!'); document.amenities.amname.focus(); return false; } if( amdesc == "" ){ alert('" DESCRIPTION " Field should not be empty!'); document.amenities.amdesc.focus(); return false; }
getSaveAmenities(selectedtype); return true; } </script> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div class="toolbar" id="toolbar"> <form action="domain.php?rel=ValidateAmenities&subpage=upload" method="post" name="amenities" enctype="multipart/form-data">
Online Booking System for Camp Holiday Resort and Recreation Area
137
<input type="hidden" name="saveamenities" /> <table class="toolbar"> <tr> <td class="button" id="toolbar-copy"> <a href="javascript:getSaveAmenities('amenities')" onclick="return requiredFields()" style="color:#000000;"> <span class="icon-32-save" title="Save"></span> Save </a> </td>
<td class="button" id="toolbar-edit"> <a href="domain.php?rel=Amenities&page=1" style="color:#000000;"> <span class="icon-32-cancel" title="Cancel"></span> Cancel </a> </td>
<td> </td> </tr> </table> </div> <div class="header1 icon-48-96-add-amenities">Add Facilities</div> <div class="clr"></div> </div> <div class="b"> <div class="b">
Online Booking System for Camp Holiday Resort and Recreation Area
138
<div id="element-box1"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <table width="400" border="0"> <tbody> <tr> <td align="right">Name</td> <td><input type="text" name="amname" size="50" /></td> </tr> <tr> <td align="right">Description</td> <td><textarea name="amdesc" cols="37" rows="5"></textarea></td> </tr> <tr> <td align="right">Image</td> <td><input type="file" name="image"/></td> </tr> <tr>
Online Booking System for Camp Holiday Resort and Recreation Area
139
<td align="right">isActive</td> <td> <select name="isactive"> <option value="Yes">Yes</option> <option value="No">No</option> </select> </td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
140
if( lname == "" ){ alert('" LAST NAME " Field should not be empty!'); document.guests.lname.focus(); return false; } if( fname == "" ){ alert('" FIRST NAME " Field should not be empty!'); document.guests.fname.focus(); return false; } if( mi == "" ){ alert('" MIDDLE INITIAL " Field should not be empty!'); document.guests.mi.focus(); return false; } if( contactno == "" ){ alert('" CONTACT NO. " Field should not be empty!'); document.guests.contactno.focus(); return false; } if( email == "" ){
Online Booking System for Camp Holiday Resort and Recreation Area
141
alert('"EMAIL ADDRESS " Field should not be empty!'); document.guests.email.focus(); return false; } if( filter.test(email)){ return true; }else{ alert('Please input a valid " EMAIL ADDRESS "!'); document.guests.email.focus(); return false; }
$id = $_GET['id'];
$sql = "SELECT * FROM tbl_guest WHERE guest_id = '$id'"; $result = mysql_query($sql) or die("No user database!");
Online Booking System for Camp Holiday Resort and Recreation Area
142
<div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div class="toolbar" id="toolbar"> <form action="domain.php?rel=UpdateGuest" method="post" name="guests" enctype="multipart/formdata"> <input type="hidden" name="updateguests" /> <input type="hidden" name="id" value="<?php echo $row->guest_id; ?>" /> <table class="toolbar"> <tr> <td class="button" id="toolbar-copy"> <a href="javascript:getUpdateGuests('guests')" onclick="return requiredFields()" style="color:#000000;"> <span class="icon-32-save" title="Copy"></span> Save </a> </td>
<td class="button" id="toolbar-edit"> <a href="domain.php?rel=Guests&page=1" style="color:#000000;"> <span class="icon-32-cancel" title="Edit"></span> Cancel </a> </td>
Online Booking System for Camp Holiday Resort and Recreation Area
143
<td> </td> </tr> </table> </div> <div class="header icon-48-edit-guests">Edit Guests</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
<div id="element-box1"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <table width="400" border="0"> <tbody> <tr> <td align="right">Last Name</td> <td>
Online Booking System for Camp Holiday Resort and Recreation Area
144
<input type="text" name="lname" value="<?php echo $row->lastName;?>" size="50" /> </td> </tr> <tr> <td align="right">First Name</td> <td> <input type="text" name="fname" value="<?php echo $row->firstName;?>" size="50" /></td> </tr> <tr> <td align="right">M.I.</td> <td> <input type="text" name="mi" maxlength="2" value="<?php echo $row->middleInitial;?>" size="10" /></td> </tr> <tr> <td align="right">Contact No.</td> <td> <input type="text" name="contactno" value="<?php echo $row->contactNo;?>" size="50" /></td> </tr> <tr> <td align="right">Email</td> <td> <input type="text" name="email" value="<?php echo $row->Email;?>" size="50" /></td> </tr>
Online Booking System for Camp Holiday Resort and Recreation Area
145
<tr> <td align="right">isActive</td> <td> <select name="isactive"> <option value="Yes" <?php if($row->isActive == "Yes") echo "selected='selected'"; ?>>Yes</option> <option value="No" <?php if($row->isActive == "No") echo "selected='selected'"; ?>>No</option> </select> </td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
146
if( lname == "" ){ alert('" LAST NAME " Field should not be empty!'); document.guests.lname.focus(); return false; } if( fname == "" ){ alert('" FIRST NAME " Field should not be empty!'); document.guests.fname.focus(); return false; } if( mi == "" ){ alert('" MIDDLE INITIAL " Field should not be empty!'); document.guests.mi.focus(); return false; } if( contactno == "" ){ alert('" CONTACT NO. " Field should not be empty!'); document.guests.contactno.focus(); return false;
Online Booking System for Camp Holiday Resort and Recreation Area
147
} if( email == "" ){ alert('"EMAIL ADDRESS " Field should not be empty!'); document.guests.email.focus(); return false; } if( filter.test(email)){ return true; }else{ alert('Please input a valid " EMAIL ADDRESS"!'); document.guests.email.focus(); return false; }
getSaveGuests(selectedtype); return true; } </script> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div class="toolbar" id="toolbar"> <form action="domain.php?rel=ValidateGuest&subpage=upload" method="post" name="guests" enctype="multipart/form-data">
Online Booking System for Camp Holiday Resort and Recreation Area
148
<input type="hidden" name="saveguests" /> <table class="toolbar"> <tr> <td class="button" id="toolbar-copy"> <a href="javascript:getSaveGuests('guests')" onclick="return requiredFields()" style="color:#000000;"> <span class="icon-32-save" title="Save"></span> Save </a> </td>
<td class="button" id="toolbar-edit"> <a href="domain.php?rel=Guests&page=1" style="color:#000000;"> <span class="icon-32-cancel" title="Cancel"></span> Cancel </a> </td>
<td> </td> </tr> </table> </div> <div class="header icon-48-add-guests">Add Guests</div> <div class="clr"></div> </div> <div class="b"> <div class="b">
Online Booking System for Camp Holiday Resort and Recreation Area
149
<div id="element-box1"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <table width="400" border="0"> <tbody> <tr> <td align="right">Last Name</td> <td><input type="text" name="lname" size="50" /></td> </tr> <tr> <td align="right">First Name</td> <td><input type="text" name="fname" size="50" /></td> </tr> <tr> <td align="right">M.I.</td> <td><input type="text" name="mi" size="10" maxlength="1" /></td> </tr> <tr>
Online Booking System for Camp Holiday Resort and Recreation Area
150
<td align="right">Contact No.</td> <td><input type="text" name="contactno" size="50" /></td> </tr> <tr> <td align="right">Email</td> <td><input type="text" name="email" size="50" /></td> </tr> <tr> <td align="right">isActive</td> <td> <select name="isactive"> <option value="Yes">Yes</option> <option value="No">No</option> </select> </td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
151
if( roomnum == "" ){ alert('" ROOM NUMBER " Field should not be empty!'); document.roomlists.roomnum.focus(); return false; } if( roomrate == "" ){ alert('" ROOM RATE " Field should not be empty!'); document.roomlists.roomrate.focus(); return false; }
Online Booking System for Camp Holiday Resort and Recreation Area
152
include("connection/connection.php");
$id = $_GET['id'];
$sql = "SELECT * FROM tbl_room WHERE room_id = '$id'"; $result = mysql_query($sql) or die("No user database!");
$row = mysql_fetch_object($result); ?> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div class="toolbar" id="toolbar"> <form action="domain.php?rel=UpdateRoomList" method="post" name="roomlists" enctype="multipart/form-data"> <input type="hidden" name="updateroomlist" /> <input type="hidden" name="id" value="<?php echo $row->room_id; ?>" /> <table class="toolbar"> <tr> <td class="button" id="toolbar-copy"> <a href="javascript:getUpdateRoomList('roomlists')" onclick="return requiredFields()" style="color:#000000;"> <span class="icon-32-save" title="Copy"></span>
Online Booking System for Camp Holiday Resort and Recreation Area
153
<td class="button" id="toolbar-edit"> <a href="domain.php?rel=RoomList&page=1" style="color:#000000;"> <span class="icon-32-cancel" title="Edit"></span> Cancel </a> </td>
<td> </td> </tr> </table> </div> <div class="header icon-48-edit-room">Edit Room</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
<div id="element-box1">
Online Booking System for Camp Holiday Resort and Recreation Area
154
<div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <table width="400" border="0"> <tbody> <tr> <td>Room Name</td> <td> <select name="roomtype_id"> <?php echo $sql="SELECT * FROM tbl_roomtype ORDER BY roomname ASC"; $rs=mysql_query($sql); while($rowe=mysql_fetch_object($rs)){ if(($rowe->roomType_id) == ($row->roomType_id)){ echo "<option value='$rowe->roomType_id' selected='selected'>".$rowe->roomName."</option>"; }else{ echo "<option value='$rowe->roomType_id'>".$rowe->roomName."</option>"; } } ?> </select> </td> </tr> <tr> <td>Room Number</td>
Online Booking System for Camp Holiday Resort and Recreation Area
155
<td> <input type="text" name="roomnum" value="<?php echo $row->roomNumber;?>" size="50" /> </td> </tr> <tr> <td>Rate</td> <td> <input type="text" name="roomrate" value="<?php echo $row->Rate;?>" size="50" /> </td> </tr> <tr> <td>isAvailable</td> <td> <select name="isavailable"> <option value="Yes" <?php if($row->isAvailable == 'Yes') echo "selected='selected'"; ?>>Yes</option> <option value="No" <?php if($row->isAvailable == 'No') echo "selected='selected'"; ?>>No</option> </select> </td> </tr> <tr> <td>isActive</td> <td> <select name="isactive"> <option value="Yes" <?php if($row->isActive == 'Yes') echo "selected='selected'"; ?>>Yes</option> <option value="No" <?php if($row->isActive == 'No') echo "selected='selected'"; ?>>No</option> </select>
Online Booking System for Camp Holiday Resort and Recreation Area
156
</td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
157
alert('" ROOM NUMBER " Field should not be empty!'); document.roomlists.roomnum.focus(); return false; } if( roomrate == "" ){ alert('" ROOM RATE " Field should not be empty!'); document.roomlists.roomrate.focus(); return false; }
getSaveRoomType(selectedtype); return true; } </script> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div class="toolbar" id="toolbar"> <form action="domain.php?rel=ValidateRoomList&subpage=upload" method="post" name="roomlists" enctype="multipart/form-data"> <input type="hidden" name="saveroomlists" /> <table class="toolbar"> <tr> <td class="button" id="toolbar-copy">
Online Booking System for Camp Holiday Resort and Recreation Area
158
<a href="javascript:getSaveRoomType('roomlists')" onclick="return requiredFields()" style="color:#000000;"> <span class="icon-32-save" title="Save"></span> Save </a> </td>
<td class="button" id="toolbar-edit"> <a href="domain.php?rel=RoomList&page=1" style="color:#000000;"> <span class="icon-32-cancel" title="Cancel"></span> Cancel </a> </td>
<td> </td> </tr> </table> </div> <div class="header icon-48-add-room">Add Room</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
159
<div id="element-box1"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <table width="400" border="0"> <tbody> <tr> <td>Room Name</td> <td> <select name="roomtype_id"> <?php $sql="SELECT * FROM tbl_roomtype ORDER BY roomName ASC"; $rs=mysql_query($sql); while($row=mysql_fetch_object($rs)) { echo"<option value='$row->roomType_id'>".$row->roomName."</option>"; } ?> </select> </td> </tr> <tr> <td>Room Number</td>
Online Booking System for Camp Holiday Resort and Recreation Area
160
<td><input type="text" name="roomnum" size="50" /></td> </tr> <tr> <td>Rate</td> <td><input type="text" name="roomrate" size="50" /></td> </tr> <tr> <td>isAvailable</td> <td> <select name="isavailable"> <option value="Yes">Yes</option> <option value="No">No</option> </select> </td> </tr> <tr> <td>isActive</td> <td> <select name="isactive"> <option value="Yes">Yes</option> <option value="No">No</option> </select> </td> </tr> </tbody> </table> </form> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
161
if( roomname == "" ){ alert('" ROOM NAME " Field should not be empty!'); document.roomtypes.roomname.focus(); return false; } if( roomtypedesc == "" ){ alert('" DESCRIPTION " Field should not be empty!'); document.roomtypes.roomtypedesc.focus();
Online Booking System for Camp Holiday Resort and Recreation Area
162
return false; }
$id = $_GET['id'];
$sql = "SELECT * FROM tbl_roomtype WHERE roomType_id = '$id'"; $result = mysql_query($sql) or die("No user database!");
$row = mysql_fetch_object($result); ?> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div class="toolbar" id="toolbar"> <form action="domain.php?rel=UpdateRoomType&subpage=upload" method="post" name="roomtypes" enctype="multipart/form-data">
Online Booking System for Camp Holiday Resort and Recreation Area
163
<input type="hidden" name="updateroomtype" /> <input type="hidden" name="id" value="<?php echo $row->roomType_id; ?>" /> <table class="toolbar"> <tr> <td class="button" id="toolbar-copy"> <a href="javascript:getUpdateRoomType('roomtypes')" onclick="return requiredFields()" style="color:#000000;"> <span class="icon-32-save" title="Copy"></span> Save </a> </td>
<td class="button" id="toolbar-edit"> <a href="domain.php?rel=RoomType&page=1" style="color:#000000;"> <span class="icon-32-cancel" title="Edit"></span> Cancel </a> </td>
<td> </td> </tr> </table> </div> <div class="header1 icon-48-96-edit-room-types">Edit Room Type</div> <div class="clr"></div> </div> <div class="b">
Online Booking System for Camp Holiday Resort and Recreation Area
164
<div id="element-box1"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <table width="400" border="0"> <tbody> <tr> <td>Room Name</td> <td> <input type="text" name="roomname" value="<?php echo $row->roomName;?>" size="50" /> </td> </tr> <tr> <td>Description</td> <td> <textarea rows="10" cols="37" name="roomtypedesc"> <?php echo $row->roomTypeDesc;?>
Online Booking System for Camp Holiday Resort and Recreation Area
165
</textarea> </td> </tr> <tr> <td>Image</td> <td> <input type="file" name="image" value="<?php echo $row->image;?>" size="50" /> </td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
166
if( roomname == "" ){ alert('" ROOM NAME " Field should not be empty!'); document.roomtypes.roomname.focus(); return false; } if( roomtypedesc == "" ){ alert('" DESCRIPTION " Field should not be empty!'); document.roomtypes.roomtypedesc.focus(); return false; }
getSaveRoomType(selectedtype); return true; } </script> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m">
Online Booking System for Camp Holiday Resort and Recreation Area
167
<div class="toolbar" id="toolbar"> <form action="domain.php?rel=ValidateRoomType&subpage=upload" method="post" name="roomtypes" enctype="multipart/form-data"> <input type="hidden" name="saveroomtypes" /> <table class="toolbar"> <tr> <td class="button" id="toolbar-copy"> <a href="javascript:getSaveRoomType('roomtypes')" onclick="return requiredFields()" style="color:#000000;"> <span class="icon-32-save" title="Save"></span> Save </a> </td>
<td class="button" id="toolbar-edit"> <a href="domain.php?rel=RoomType&page=1" style="color:#000000;"> <span class="icon-32-cancel" title="Cancel"></span> Cancel </a> </td>
<td> </td> </tr> </table> </div> <div class="header1 icon-48-96-add-room-types">Add Room Type</div> <div class="clr"></div>
Online Booking System for Camp Holiday Resort and Recreation Area
168
</div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
<div id="element-box1"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <table width="400" border="0"> <tbody> <tr> <td align="right">Room Name</td> <td><input type="text" name="roomname" size="50" /></td> </tr> <tr> <td align="right">Description</td> <td><textarea name="roomtypedesc" cols="37" rows="5"></textarea></td> </tr> <tr> <td align="right">Image</td>
Online Booking System for Camp Holiday Resort and Recreation Area
169
<td><input type="file" name="image"/></td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
if( category == "" ){ alert('" CATEGORY " Field should not be empty!');
Online Booking System for Camp Holiday Resort and Recreation Area
170
document.services.category.focus(); return false; } if( desc == "" ){ alert('" DESCRIPTION " Field should not be empty!'); document.services.description.focus(); return false; } if( price == "" ){ alert('" PRICE " Field should not be empty!'); document.services.price.focus(); return false; } getUpdateServices(selectedtype); return true; } </script> <?php include("connection/connection.php");
$id = $_GET['id'];
$sql = "SELECT * FROM tbl_services WHERE service_id = '$id'"; $result = mysql_query($sql) or die("No user database!");
Online Booking System for Camp Holiday Resort and Recreation Area
171
<div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div class="toolbar" id="toolbar"> <form action="domain.php?rel=UpdateServices" method="post" name="services" enctype="multipart/form-data"> <input type="hidden" name="updateservices" /> <input type="hidden" name="id" value="<?php echo $row->service_id; ?>" /> <table class="toolbar"> <tr> <td class="button" id="toolbar-copy"> <a href="javascript:getUpdateServices('guests')" onclick="return requiredFields()" style="color:#000000;"> <span class="icon-32-save" title="Copy"></span> Save </a> </td>
<td class="button" id="toolbar-edit"> <a href="domain.php?rel=Services&page=1" style="color:#000000;"> <span class="icon-32-cancel" title="Edit"></span> Cancel </a> </td>
Online Booking System for Camp Holiday Resort and Recreation Area
172
<td> </td> </tr> </table> </div> <div class="header icon-48-edit-services">Edit Services</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
<div id="element-box1"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <table width="400" border="0"> <tbody> <tr> <td align="right">Category</td>
Online Booking System for Camp Holiday Resort and Recreation Area
173
<td> <select name="category"> <?php echo $sql="SELECT * FROM tbl_servicescategory ORDER BY Category ASC"; $rs=mysql_query($sql); while($rowe=mysql_fetch_object($rs)){ if(($rowe->Category) == ($row->Category)){ echo "<option value='$rowe->Category' selected='selected'>".$rowe->Category."</option>"; }else{ echo "<option value='$rowe->Category'>".$rowe->Category."</option>"; } } ?> </select> </td> </tr> <tr> <td align="right">Description</td> <td> <input type="text" name="description" value="<?php echo $row->Description;?>" size="50" /></td> </tr> <tr> <td align="right">Price</td> <td> <input type="text" name="price" value="<?php echo $row->Price;?>" size="10" /></td> </tr>
Online Booking System for Camp Holiday Resort and Recreation Area
174
<tr> <td align="right">isActive</td> <td> <select name="isactive"> <option value="Yes" <?php if($row->isActive == "Yes") echo "selected='selected'"; ?>>Yes</option> <option value="No" <?php if($row->isActive == "No") echo "selected='selected'"; ?>>No</option> </select> </td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
175
function getSaveServices(selectedtype){ document.services.saveservices.value = selectedtype ; document.services.submit() ; } function requiredFields(){ var category, desc, price;
if( category == "" ){ alert('" CATEGORY " Field should not be empty!'); document.services.category.focus(); return false; } if( desc == "" ){ alert('" DESCRIPTION " Field should not be empty!'); document.services.description.focus(); return false; } if( price == "" ){ alert('" PRICE " Field should not be empty!'); document.services.price.focus(); return false; } getSaveGuests(selectedtype); return true;
Online Booking System for Camp Holiday Resort and Recreation Area
176
} </script> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div class="toolbar" id="toolbar"> <form action="domain.php?rel=ValidateServices&subpage=upload" method="post" name="services" enctype="multipart/form-data"> <input type="hidden" name="saveservices" /> <table class="toolbar"> <tr> <td class="button" id="toolbar-copy"> <a href="javascript:getSaveServices('services')" onclick="return requiredFields()" style="color:#000000;"> <span class="icon-32-save" title="Save"></span> Save </a> </td>
<td class="button" id="toolbar-edit"> <a href="domain.php?rel=Services&page=1" style="color:#000000;"> <span class="icon-32-cancel" title="Cancel"></span> Cancel </a>
Online Booking System for Camp Holiday Resort and Recreation Area
177
</td>
<td> </td> </tr> </table> </div> <div class="header icon-48-add-services">Add Services</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
<div id="element-box1"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <table width="400" border="0"> <tbody> <tr>
Online Booking System for Camp Holiday Resort and Recreation Area
178
<td align="right">Category</td> <td> <select name="category"> <?php $sql="SELECT * FROM tbl_servicescategory ORDER BY Category ASC"; $rs=mysql_query($sql); while($row=mysql_fetch_object($rs)) { echo"<option value='$row->Category'>".$row->Category."</option>"; } ?> </select> </td> <td> <a href="javascript:void(0);" onClick="PopupCenter('popup.php?rel=AddCategory','Add Charges',300,185);"> <input type="button" value="Add Category" style="font-size:16px; padding-left:15px; padding-right:15px; font-weight: bolder; cursor:pointer;"/> </a> </td> </tr> <tr> <td align="right">Description</td> <td colspan="2"><input type="text" name="description" size="50" /></td> </tr> <tr> <td align="right">Price</td>
Online Booking System for Camp Holiday Resort and Recreation Area
179
<td colspan="2"><input type="text" name="price" size="10"></td> </tr> <tr> <td align="right">isActive</td> <td colspan="2"> <select name="isactive"> <option value="Yes">Yes</option> <option value="No">No</option> </select> </td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
180
function getEditAmenities(){ for(i = 0; i < adminForm.chk.length; i++){ if(adminForm.chk[i].checked){ cc = adminForm.chk[i].value; window.location = "domain.php?rel=EditAmenities&id="+cc+""; } } }
checked=false; function checkedAll(frm1) { var aa= document.getElementById('frm1'); if (checked == false){ checked = true } else { checked = false } for (var i =0; i < aa.elements.length; i++){ aa.elements[i].checked = checked; } } function doSearch(phrase){ var words = phrase.value.toLowerCase().split(" ");
Online Booking System for Camp Holiday Resort and Recreation Area
181
var table = document.getElementById("filterable"); var ele; var on = 0; for (var r = 0; r < table.rows.length; r++){ ele = table.rows[r].innerHTML.replace(/<[^>]+>/g,""); var displayStyle = 'none'; for (var i = 0; i < words.length; i++) { if (ele.toLowerCase().indexOf(words[i])>=0){ displayStyle = ''; on++; }else { displayStyle = 'none'; break; } } table.rows[r].style.display = displayStyle; } var n = document.getElementById("noresults"); if ( on == 0 && n ) { n.style.display = ""; document.getElementById("qt").innerHTML = phrase.value; }else{ n.style.display = "none"; } } </script> <?php $do_delete = $_POST['deleteamenities'];
Online Booking System for Camp Holiday Resort and Recreation Area
182
if($do_delete){ $N = count($id);
for($i=0;$i < $N; $i++){ $sql = "DELETE FROM tbl_amenities WHERE amenities_id = '".$id[$i]."'"; mysql_query($sql) or die(mysql_error()); } } ?> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="domain.php?rel=Amenities&subpage=upload" method="post" name="adminForm" id="frm1"> <input type="hidden" name="deleteamenities" /> <div class="toolbar" id="toolbar"> <table class="toolbar"> <tr> <td class="button" id="toolbar-delete"> <a href="javascript:getDeleteAmenities('delete')" onclick="return confirm('Are you sure you want to DELETE?');"> <span class="icon-32-delete" title="Delete"></span>
Online Booking System for Camp Holiday Resort and Recreation Area
183
Delete </a> </td> <td class="button" id="toolbar-edit"> <a href="javascript:getEditAmenities()"> <span class="icon-32-edit" title="Edit"></span> Edit </a> </td> <td class="button" id="toolbar-new"> <a href="domain.php?rel=NewAmenities"> <span class="icon-32-new" title="New"></span> New </a> </td> <td></td> </tr> </table> </div> <div class="header1 icon-48-96-amenities">Types of Facilities</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
184
<div class="clr"></div> <div id="submenu-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <ul id="submenu"> <li><a href="domain.php?rel=Guests&page=1">Guests</a></li> <li><a href="domain.php?rel=RoomList&page=1">Rooms</a></li> <li><a href="domain.php?rel=RoomType&page=1">Room Types</a></li> <li><a href="domain.php?rel=Amenities&page=1" class="active">Facilities</a></li> <li><a href="domain.php?rel=Services&page=1">Services</a></li> </ul> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
185
<div class="m"> <div style="font-weight: bolder; padding: 5px;"> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red;" onkeyup="doSearch(filter);" /> </div> <table class="adminlist"> <thead> <tr> <th width="5%">#</th> <th width="5%"><input type='checkbox' name='checkall' onclick='checkedAll(frm1);'></th> <th width="10%" nowrap="nowrap">Image</th> <th width="35%" nowrap="nowrap">Name</th> <th width="45%" class="title">Description</th> <th width="10%" nowrap="nowrap">isActive</th> </tr> </thead> <tbody id="filterable"> <?php $sql = " SELECT FROM ORDER BY * tbl_amenities isActive='YES' DESC ";
Online Booking System for Camp Holiday Resort and Recreation Area
186
$count = 1;
while($row = mysql_fetch_array($result)){
?> <tr> <td align="center"><?php echo $count; ?></td> <td align="center"> <input type="checkbox" value="<?php echo $row['amenities_id']; ?>" name="chk[]" id="chk" onselect="return getEditAmenities()" /> </td> <td align="center"> <?php if($row['image'] != "Sub/Master/images/thumbs/"){ ?> <img src="<?php echo $row['file_thumb']; ?>" width="100" height="75"/> <?php } ?> </td> <td align="center"><?php echo $row['amenitiesName']; ?></td> <td align="center"><?php echo $row['amenitiesDesc']; ?></td> <td align="center"><?php echo $row['isActive']; ?></td> </tr> <?php } ?> <tr style="display:none; color:#F00; font-weight: bolder;" id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>".</td> </tr> </tbody> </table> $count = $count + 1;
Online Booking System for Camp Holiday Resort and Recreation Area
187
<div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
188
$do_update_amenities = $_POST['updateamenities'];
if($do_update_amenities){ if (isset($_GET['subpage']) && $_GET['subpage'] == 'upload') { // Uploading/Resizing Script $id = $_POST['id']; $image = $_POST["image"]; $amname = $_POST['amname']; $amdesc = $_POST['amdesc']; $isactive = $_POST['isactive'];
$url = $_FILES['image']['name']; // Set $url To Equal The Filename For Later Use $file_ext = strrchr($_FILES['image']['name'], '.'); // Get The File Extention In The Format Of , // For Instance, .jpg, .gif or .php if ($_FILES['image']['type'] == "image/jpg" || $_FILES['image']['type'] == "image/jpeg" || $_FILES['image']['type'] == "image/pjpeg") {
$copy = copy($_FILES['image']['tmp_name'], "$idir" . $_FILES['image']['name']); // Move Image From Temporary // Location To Permanent Location if ($copy) { // If The Script Was Able To Copy The Image To It's Permanent Location $simg = imagecreatefromjpeg("$idir" . $url); // Make A New Temporary Image To Create // The Thumbanil From $currwidth = imagesx($simg); // Current Image Width $currheight = imagesy($simg); // Current Image Height
Online Booking System for Camp Holiday Resort and Recreation Area
189
if ($currheight > $currwidth) { // If Height Is Greater Than Width $zoom = $twidth / $currheight; // Length Ratio For Width $newheight = $theight; // Height Is Equal To Max Height $newwidth = $currwidth * $zoom; // Creates The New Width } else { // Otherwise, Assume Width Is Greater Than Height
// (Will Produce Same Result If Width Is Equal To Height) $zoom = $twidth / $currwidth; // Length Ratio For Height $newwidth = $twidth; // Width Is Equal To Max Width $newheight = $currheight * $zoom; // Creates The New Height } $dimg = imagecreate($newwidth, $newheight); // Make New Image For Thumbnail imagetruecolortopalette($simg, false, 256); // Create New Color Pallete $palsize = ImageColorsTotal($simg); for ($i = 0; $i < $palsize; $i++) { // Counting Colors In The Image $colors = ImageColorsForIndex($simg, $i); // Number Of Colors Used ImageColorAllocate($dimg, $colors['red'], $colors['green'], $colors['blue']); // Tell The Server What // Colors This Image Will Use } imagecopyresized($dimg, $simg, 0, 0, 0, 0, $newwidth, $newheight, $currwidth, $currheight); // Copy Resized Image To The // New Image (So We Can Save It) imagejpeg($dimg, "$tdir" . $url); // Saving The Image imagedestroy($simg); // Destroying The Temporary Image imagedestroy($dimg); // Destroying The Other Temporary Image
echo "<div style='padding-top: 100px; padding-bottom: 100px'>"; print "<div class='success'>Facilities Successfully Updated...!</div>";
Online Booking System for Camp Holiday Resort and Recreation Area
190
echo "</div>";
amenitiesName = '$amname', amenitiesDesc = '$amdesc', file_thumb = '$thumb', file_width = '$twidth', file_height = '$theight', isActive = '$isactive' WHERE amenities_id = '$id' ";
mysql_query($sqlString) or die(mysql_error());
} else { echo "<div style='padding-top: 100px; padding-bottom: 100px'>"; print "<div class='error'> Wrong filetype (has to be a .jpg or .jpeg) Yours is $file_ext. </div>"; print " <script> function gotoUrl(){ location.href='domain.php?rel=EditAmenities; } window.setTimeout('gotoUrl()',1900); </script> ";
Online Booking System for Camp Holiday Resort and Recreation Area
191
echo "</div>"; } } else if($_FILES['image']['type'] == "") { echo "<div style='padding-top: 100px; padding-bottom: 100px'>"; print "<div class='warning'>No Image to Display. Choose a file Correctly.</div>"; print " <script> function gotoUrl(){ location.href='domain.php?rel=EditAmenities'; } window.setTimeout('gotoUrl()',2000); </script> "; echo "</div>"; } else { echo "<div style='padding-top: 100px; padding-bottom: 100px'>"; print "<div class='error'>Wrong filetype (has to be a .jpg or .jpeg) Yours is $file_ext.</div>"; print " <script> function gotoUrl(){ location.href='domain.php?rel=EditAmenities'; } window.setTimeout('gotoUrl()',1900); </script> "; echo "</div>"; } } } ?> </body> </html>
Online Booking System for Camp Holiday Resort and Recreation Area
192
$do_save_amenities = $_POST['saveamenities'];
if($do_save_amenities){ if (isset($_GET['subpage']) && $_GET['subpage'] == 'upload') { // Uploading/Resizing Script $image = $_POST["image"]; $amname = $_POST['amname']; $amdesc = $_POST['amdesc']; $isactive = $_POST['isactive'];
Online Booking System for Camp Holiday Resort and Recreation Area
193
$url = $_FILES['image']['name']; // Set $url To Equal The Filename For Later Use $file_ext = strrchr($_FILES['image']['name'], '.'); // Get The File Extention In The Format Of , // For Instance, .jpg, .gif or .php if ($_FILES['image']['type'] == "image/jpg" || $_FILES['image']['type'] == "image/jpeg" || $_FILES['image']['type'] == "image/pjpeg") {
$copy = copy($_FILES['image']['tmp_name'], "$idir" . $_FILES['image']['name']); // Move Image From Temporary // Location To Permanent Location if ($copy) { // If The Script Was Able To Copy The Image To It's Permanent Location $simg = imagecreatefromjpeg("$idir" . $url); // Make A New Temporary Image To Create // The Thumbanil From $currwidth = imagesx($simg); // Current Image Width $currheight = imagesy($simg); // Current Image Height if ($currheight > $currwidth) { // If Height Is Greater Than Width $zoom = $twidth / $currheight; // Length Ratio For Width $newheight = $theight; // Height Is Equal To Max Height $newwidth = $currwidth * $zoom; // Creates The New Width } else { // Otherwise, Assume Width Is Greater Than Height
// (Will Produce Same Result If Width Is Equal To Height) $zoom = $twidth / $currwidth; // Length Ratio For Height $newwidth = $twidth; // Width Is Equal To Max Width $newheight = $currheight * $zoom; // Creates The New Height } $dimg = imagecreate($newwidth, $newheight); // Make New Image For Thumbnail imagetruecolortopalette($simg, false, 256); // Create New Color Pallete
Online Booking System for Camp Holiday Resort and Recreation Area
194
$palsize = ImageColorsTotal($simg); for ($i = 0; $i < $palsize; $i++) { // Counting Colors In The Image $colors = ImageColorsForIndex($simg, $i); // Number Of Colors Used ImageColorAllocate($dimg, $colors['red'], $colors['green'], $colors['blue']); // Tell The Server What // Colors This Image Will Use } imagecopyresized($dimg, $simg, 0, 0, 0, 0, $newwidth, $newheight, $currwidth, $currheight); // Copy Resized Image To The // New Image (So We Can Save It) imagejpeg($dimg, "$tdir" . $url); // Saving The Image imagedestroy($simg); // Destroying The Temporary Image imagedestroy($dimg); // Destroying The Other Temporary Image
$sqlString = "INSERT INTO tbl_amenities ( amenitiesName, amenitiesDesc, file_thumb, file_width, file_height, isActive )VALUES ( '$img', '$amname',
image,
Online Booking System for Camp Holiday Resort and Recreation Area
195
mysql_query($sqlString) or die(mysql_error());
} else { print "<div class='error'>Wrong filetype (has to be a .jpg or .jpeg) Yours is $file_ext.</div>"; print " <script> function gotoUrl(){ location.href='domain.php?rel=EditAmenities'; } window.setTimeout('gotoUrl()',1900); </script> "; } } else if($_FILES['image']['type'] == "") { print "<div class='warning'>No Image to Display. Choose a file Correctly.</div>"; print " <script> function gotoUrl(){ location.href='domain.php?rel=EditAmenities'; } window.setTimeout('gotoUrl()',2000); </script> "; } else { print "<div class='error'>Wrong filetype (has to be a .jpg or .jpeg) Yours is $file_ext.</div>"; print " <script>
Online Booking System for Camp Holiday Resort and Recreation Area
196
function getEditGuest(){ for(i = 0; i < adminForm.chk.length; i++){ if(adminForm.chk[i].checked){ cc = adminForm.chk[i].value; window.location = "domain.php?rel=EditGuest&id="+cc+""; }
Online Booking System for Camp Holiday Resort and Recreation Area
197
} } checked=false; function checkedAll(frm1) { var aa = document.getElementById('frm1'); if (checked == false){ checked = true } else { checked = false } for (var i =0; i < aa.length; i++){ aa[i].checked = checked; } } function doSearch(phrase){ var words = phrase.value.toLowerCase().split(" "); var table = document.getElementById("filterable"); var ele; var on = 0; for (var r = 0; r < table.rows.length; r++){ ele = table.rows[r].innerHTML.replace(/<[^>]+>/g,""); var displayStyle = 'none'; for (var i = 0; i < words.length; i++) { if (ele.toLowerCase().indexOf(words[i])>=0){ displayStyle = ''; on++; }else { displayStyle = 'none';
Online Booking System for Camp Holiday Resort and Recreation Area
198
break; } } table.rows[r].style.display = displayStyle; } var n = document.getElementById("noresults"); if ( on == 0 && n ) { n.style.display = ""; document.getElementById("qt").innerHTML = phrase.value; }else{ n.style.display = "none"; } } </script> <?php $do_delete = $_POST['deleteuser']; $id = $_POST['chk'];
if($do_delete){ $N = count($id);
for($i=0;$i < $N; $i++){ $sql = "DELETE FROM tbl_guest WHERE guest_id = '" . $id[$i] . "'"; mysql_query($sql) or die(mysql_error()); } } ?> <div id="toolbar-box">
Online Booking System for Camp Holiday Resort and Recreation Area
199
<div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="domain.php?rel=Guests" method="post" name="adminForm" id="frm1"> <input type="hidden" name="deleteuser" /> <div class="toolbar" id="toolbar"> <table class="toolbar"> <tr> <td class="button" id="toolbar-delete"> <a href="javascript:getdelete('delete')" onclick="return confirm('Are you sure you want to DELETE?');"> <span class="icon-32-delete" title="Delete"></span> Delete </a> </td> <td class="button" id="toolbar-edit"> <a href="javascript: getEditGuest()"> <span class="icon-32-edit" title="Edit"></span> Edit </a> </td> <td class="button" id="toolbar-new"> <a href="domain.php?rel=NewGuest"> <span class="icon-32-new" title="New"></span> New
Online Booking System for Camp Holiday Resort and Recreation Area
200
</a> </td> <td></td> </tr> </table> </div> <div class="header icon-48-list-of-guest">List of Guests</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> <div class="clr"></div> <div id="submenu-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <ul id="submenu"> <li><a href="domain.php?rel=Guests&page=1" class="active">Guests</a></li> <li><a href="domain.php?rel=RoomList&page=1">Rooms</a></li> <li><a href="domain.php?rel=RoomType&page=1">Room Types</a></li> <li><a href="domain.php?rel=Amenities&page=1">Facilities</a></li>
Online Booking System for Camp Holiday Resort and Recreation Area
201
<li><a href="domain.php?rel=Services&page=1">Services</a></li> </ul> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
<div id="element-box4"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div>
<div class="m"> <div style="font-weight: bolder; padding: 5px;"> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red;" onkeyup="doSearch(filter);" /> </div> <table class="adminlist"> <thead> <tr>
Online Booking System for Camp Holiday Resort and Recreation Area
202
<th width="5%">#</th> <th width="5%"><input type='checkbox' name='checkall' onclick='checkedAll(frm1);'></th> <th width="20%" nowrap="nowrap">Last Name</th> <th width="20%" class="title">First Name</th> <th width="5%" nowrap="nowrap">MI</th> <th width="20%" nowrap="nowrap">Contact No.</th> <th width="20%" nowrap="nowrap">Email</th> <th width="5%" nowrap="nowrap">isActive</th> </tr> </thead> <tbody id="filterable"> <?php $sql = "SELECT * FROM tbl_guest ORDER BY isActive='YES' "; $result = mysql_query($sql) or die("No users database!");
$count = 1;
while($row = mysql_fetch_array($result)){ ?> <tr> <td align="center"><?php echo $count; ?></td> <td align="center"> <input type="checkbox" value="<?php echo $row['guest_id']; ?>" name="chk[]" id="chk" onselect="return getEditGuest()" /> </td> <td align="center"><?php echo $row['lastName']; ?></td>
Online Booking System for Camp Holiday Resort and Recreation Area
203
<td align="center"><?php echo $row['firstName']; ?></td> <td align="center"><?php echo $row['middleInitial']; ?></td> <td align="center"><?php echo $row['contactNo']; ?></td> <td align="center"><?php echo $row['Email']; ?></td> <td align="center"><?php echo $row['isActive']; ?></td> </tr> <?php } ?> <tr style="display:none; color:#F00; font-weight: bolder;" id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>".</td> </tr> </tbody> </table> </form> <div class="clr"></div> </div> $count = $count + 1;
<div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
204
<script> function gotoUrl(){ location.href='domain.php?rel=Guests'; } window.setTimeout('gotoUrl()',1500); </script> </head> <body> <?php include("connection/connection.php");
$do_update_guests = $_POST['updateguests'];
if($do_update_guests){ $id = $_POST['id']; $firstname = $_POST['fname']; $lastname = $_POST['lname']; $mi = strtoupper($_POST['mi']); $contactno = $_POST['contactno']; $email = $_POST['email']; $isactive = $_POST['isactive'];
Online Booking System for Camp Holiday Resort and Recreation Area
205
$do_save_guest = $_POST['saveguests'];
if($do_save_guest){
Online Booking System for Camp Holiday Resort and Recreation Area
206
$firstname = $_POST['fname']; $lastname = $_POST['lname']; $mi = strtoupper($_POST['mi']); $contactno = $_POST['contactno']; $email = $_POST['email']; $isactive = $_POST['isactive'];
$sql = "INSERT INTO tbl_guest( lastname, middleinitial, contactno, email, isactive ) VALUES ( '$firstname', '$lastname', '$mi', '$contactno', '$email', '$isactive')";
firstname,
Online Booking System for Camp Holiday Resort and Recreation Area
207
function getEditRoomList(){ for(i = 0; i < adminForm.chk.length; i++){ if(adminForm.chk[i].checked){ cc = adminForm.chk[i].value; window.location = "domain.php?rel=EditRoomList&id="+cc+""; } } }
checked=false; function checkedAll(frm1) { var aa= document.getElementById('frm1'); if (checked == false){ checked = true } else { checked = false } for (var i =0; i < aa.elements.length; i++){ aa.elements[i].checked = checked; } } function doSearch(phrase){
Online Booking System for Camp Holiday Resort and Recreation Area
208
var words = phrase.value.toLowerCase().split(" "); var table = document.getElementById("filterable"); var ele; var on = 0; for (var r = 0; r < table.rows.length; r++){ ele = table.rows[r].innerHTML.replace(/<[^>]+>/g,""); var displayStyle = 'none'; for (var i = 0; i < words.length; i++) { if (ele.toLowerCase().indexOf(words[i])>=0){ displayStyle = ''; on++; }else { displayStyle = 'none'; break; } } table.rows[r].style.display = displayStyle; } var n = document.getElementById("noresults"); if ( on == 0 && n ) { n.style.display = ""; document.getElementById("qt").innerHTML = phrase.value; }else{ n.style.display = "none"; } } </script> <?php
Online Booking System for Camp Holiday Resort and Recreation Area
209
if($do_delete){ $N = count($id);
for($i=0;$i < $N; $i++){ $sql = "DELETE FROM tbl_room WHERE room_id = '" . $id[$i] . "'"; mysql_query($sql) or die(mysql_error()); } } ?> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="domain.php?rel=RoomList" method="post" name="adminForm" id="frm1"> <input type="hidden" name="deleteroomlist" /> <div class="toolbar" id="toolbar"> <table class="toolbar"> <tr> <td class="button" id="toolbar-delete"> <a href="javascript:getDeleteRoomList('delete')" onclick="return confirm('Are you sure you want to DELETE?');"> <span class="icon-32-delete" title="Delete"></span>
Online Booking System for Camp Holiday Resort and Recreation Area
210
Delete </a> </td> <td class="button" id="toolbar-edit"> <a href="javascript:getEditRoomList()"> <span class="icon-32-edit" title="Edit"></span> Edit </a> </td> <td class="button" id="toolbar-new"> <a href="domain.php?rel=NewRoomList"> <span class="icon-32-new" title="New"></span> New </a> </td> <td></td> </tr> </table> </div> <div class="header icon-48-list-of-rooms">List of Rooms</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
211
<div class="clr"></div> <div id="submenu-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <ul id="submenu"> <li><a href="domain.php?rel=Guests&page=1">Guests</a></li> <li><a href="domain.php?rel=RoomList&page=1" class="active">Rooms</a></li> <li><a href="domain.php?rel=RoomType&page=1">Room Types</a></li> <li><a href="domain.php?rel=Amenities&page=1">Facilities</a></li> <li><a href="domain.php?rel=Services&page=1">Services</a></li> </ul> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
212
<div class="m"> <div style="font-weight: bolder; padding: 5px;"> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red;" onkeyup="doSearch(filter);" /> </div> <table class="adminlist"> <thead> <tr> <th width="5%">#</th> <th width="5%"><input type='checkbox' name='checkall' onclick='checkedAll(frm1);'></th> <th width="15%" class="title">Room No.</th> <th width="40%" nowrap="nowrap">Room Name</th> <th width="10%" class="title">Rate</th> <th width="10%" class="title">isAvailable</th> <th width="5%" class="title">isActive</th> </tr> </thead> <tbody id="filterable"> <?php $sql = " SELECT FROM INNER JOIN ON RT.roomName, R.* tbl_roomtype RT tbl_room R RT.roomType_id = R.roomType_id
Online Booking System for Camp Holiday Resort and Recreation Area
213
ORDER BY
$count = 1;
while($row = mysql_fetch_array($result)){
?> <tr> <td align="center"><?php echo $count; ?></td> <td align="center"> <input type="checkbox" value="<?php echo $row['room_id']; ?>" name="chk[]" id="chk" onselect="return getEditRoomList()" /> </td> <td align="center"><?php echo $row['roomNumber']; ?></td> <td align="center"><?php echo $row['roomName']; ?></td> <td align="center"><?php echo $row['Rate']; ?></td> <td align="center"><?php echo $row['isAvailable']; ?></td> <td align="center"><?php echo $row['isActive']; ?></td> </tr> <?php } ?> <tr style="display:none; color:#F00; font-weight: bolder;" id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>".</td> </tr> </tbody> </table> $count = $count + 1;
Online Booking System for Camp Holiday Resort and Recreation Area
214
<div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div>
$do_update_roomlists = $_POST['updateroomlist'];
Online Booking System for Camp Holiday Resort and Recreation Area
215
if($do_update_roomlists){ $id = $_POST['id']; $roomtype_id = $_POST['roomtype_id']; $roomnumber = $_POST['roomnum']; $isAvailable = $_POST['isavailable']; $isActive = $_POST['isactive'];
Online Booking System for Camp Holiday Resort and Recreation Area
216
$do_save_roomlists = $_POST['saveroomlists'];
if($do_save_roomlists){ $roomtype_id = $_POST['roomtype_id']; $roomnum = $_POST['roomnum']; $roomrate = $_POST['roomrate']; $isAvailable = $_POST['isavailable']; $isActive = $_POST['isactive'];
$sql = "INSERT INTO tbl_room( roomType_id, roomNumber, Rate, isAvailable, isActive ) VALUES ( '$roomtype_id', '$roomnum', '$roomrate', '$isAvailable', '$isActive' )";
Online Booking System for Camp Holiday Resort and Recreation Area
217
function getEditRoomType(){ for(i = 0; i < adminForm.chk.length; i++){ if(adminForm.chk[i].checked){ cc = adminForm.chk[i].value; window.location = "domain.php?rel=EditRoomType&id="+cc+""; } } }
Online Booking System for Camp Holiday Resort and Recreation Area
218
var aa= document.getElementById('frm1'); if (checked == false){ checked = true } else { checked = false } for (var i =0; i < aa.elements.length; i++){ aa.elements[i].checked = checked; } } function doSearch(phrase){ var words = phrase.value.toLowerCase().split(" "); var table = document.getElementById("filterable"); var ele; var on = 0; for (var r = 0; r < table.rows.length; r++){ ele = table.rows[r].innerHTML.replace(/<[^>]+>/g,""); var displayStyle = 'none'; for (var i = 0; i < words.length; i++) { if (ele.toLowerCase().indexOf(words[i])>=0){ displayStyle = ''; on++; }else { displayStyle = 'none'; break; } } table.rows[r].style.display = displayStyle;
Online Booking System for Camp Holiday Resort and Recreation Area
219
} var n = document.getElementById("noresults"); if ( on == 0 && n ) { n.style.display = ""; document.getElementById("qt").innerHTML = phrase.value; }else{ n.style.display = "none"; } } </script> <?php $do_delete = $_POST['deleteroomtype']; $id = $_POST['chk'];
if($do_delete){ $N = count($id);
for($i=0;$i < $N; $i++){ $sql = "DELETE FROM tbl_roomtype WHERE roomType_id = '" . $id[$i] . "'"; mysql_query($sql) or die(mysql_error()); } } ?> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
220
</div> <div class="m"> <form action="domain.php?rel=RoomType&subpage=upload" method="post" name="adminForm" id="frm1"> <input type="hidden" name="deleteroomtype" /> <div class="toolbar" id="toolbar"> <table class="toolbar"> <tr> <td class="button" id="toolbar-delete"> <a href="javascript:getDeleteRoomType('delete')" onclick="return confirm('Are you sure you want to DELETE?');"> <span class="icon-32-delete" title="Delete"></span> Delete </a> </td> <td class="button" id="toolbar-edit"> <a href="javascript:getEditRoomType()"> <span class="icon-32-edit" title="Edit"></span> Edit </a> </td> <td class="button" id="toolbar-new"> <a href="domain.php?rel=NewRoomType"> <span class="icon-32-new" title="New"></span> New </a> </td> <td></td>
Online Booking System for Camp Holiday Resort and Recreation Area
221
</tr> </table> </div> <div class="header1 icon-48-96-room-types">Types of Rooms</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> <div class="clr"></div> <div id="submenu-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <ul id="submenu"> <li><a href="domain.php?rel=Guests&page=1">Guests</a></li> <li><a href="domain.php?rel=RoomList&page=1">Rooms</a></li> <li><a href="domain.php?rel=RoomType&page=1" class="active">Room Types</a></li> <li><a href="domain.php?rel=Amenities&page=1">Facilities</a></li> <li><a href="domain.php?rel=Services&page=1">Services</a></li> </ul> <div class="clr"></div>
Online Booking System for Camp Holiday Resort and Recreation Area
222
</div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
<div id="element-box4"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div>
<div class="m"> <div style="font-weight: bolder; padding: 5px;"> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red;" onkeyup="doSearch(filter);" /> </div> <table class="adminlist"> <thead> <tr> <th width="5%">#</th> <th width="5%"><input type='checkbox' name='checkall' onclick='checkedAll(frm1);'></th> <th width="10%" nowrap="nowrap">Room Image</th>
Online Booking System for Camp Holiday Resort and Recreation Area
223
<th width="35%" nowrap="nowrap">Room Name</th> <th width="45%" class="title">Description</th> </tr> </thead> <tbody id="filterable"> <?php $sql = "SELECT * FROM tbl_roomtype "; $result = mysql_query($sql) or die("No users database!");
$count = 1;
while($row = mysql_fetch_array($result)) {
?> <tr> <td align="center"><?php echo $count; ?></td> <td align="center"> <input type="checkbox" value="<?php echo $row['roomType_id']; ?>" name="chk[]" id="chk" onselect="return getEditRoomType()" /> </td> <td align="center"> <?php if($row['image'] != "Sub/Master/images/thumbs/"){ ?> <img src="<?php echo $row['file_thumb']; ?>" width="100" height="75"/> <?php } ?> </td> <td align="center"><?php echo $row['roomName']; ?></td> <td align="center"><?php echo $row['roomTypeDesc']; ?></td>
Online Booking System for Camp Holiday Resort and Recreation Area
224
</tr> <?php } ?> <tr style="display:none; color:#F00; font-weight: bolder;" id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>".</td> </tr> </tbody> </table> </form> <div class="clr"></div> </div> $count = $count + 1;
<div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
225
$do_update_roomtypes = $_POST['updateroomtype'];
if($do_update_roomtypes){ if (isset($_GET['subpage']) && $_GET['subpage'] == 'upload') { // Uploading/Resizing Script $id = $_POST['id']; $image = $_POST['image']; $roomname = $_POST['roomname']; $roomtypedesc = $_POST['roomtypedesc'];
$url = $_FILES['image']['name']; // Set $url To Equal The Filename For Later Use $file_ext = strrchr($_FILES['image']['name'], '.'); // Get The File Extention In The Format Of , // For Instance, .jpg, .gif or .php if ($_FILES['image']['type'] == "image/jpg" || $_FILES['image']['type'] == "image/jpeg" || $_FILES['image']['type'] == "image/pjpeg") {
Online Booking System for Camp Holiday Resort and Recreation Area
226
$copy = copy($_FILES['image']['tmp_name'], "$idir" . $_FILES['image']['name']); // Move Image From Temporary // Location To Permanent Location if ($copy) { // If The Script Was Able To Copy The Image To It's Permanent Location $simg = imagecreatefromjpeg("$idir" . $url); // Make A New Temporary Image To Create // The Thumbanil From $currwidth = imagesx($simg); // Current Image Width $currheight = imagesy($simg); // Current Image Height if ($currheight > $currwidth) { // If Height Is Greater Than Width $zoom = $twidth / $currheight; // Length Ratio For Width $newheight = $theight; // Height Is Equal To Max Height $newwidth = $currwidth * $zoom; // Creates The New Width } else { // Otherwise, Assume Width Is Greater Than Height
// (Will Produce Same Result If Width Is Equal To Height) $zoom = $twidth / $currwidth; // Length Ratio For Height $newwidth = $twidth; // Width Is Equal To Max Width $newheight = $currheight * $zoom; // Creates The New Height } $dimg = imagecreate($newwidth, $newheight); // Make New Image For Thumbnail imagetruecolortopalette($simg, false, 256); // Create New Color Pallete $palsize = ImageColorsTotal($simg); for ($i = 0; $i < $palsize; $i++) { // Counting Colors In The Image $colors = ImageColorsForIndex($simg, $i); // Number Of Colors Used ImageColorAllocate($dimg, $colors['red'], $colors['green'], $colors['blue']); // Tell The Server What // Colors This Image Will Use } imagecopyresized($dimg, $simg, 0, 0, 0, 0,
Online Booking System for Camp Holiday Resort and Recreation Area
227
$newwidth, $newheight, $currwidth, $currheight); // Copy Resized Image To The // New Image (So We Can Save It) imagejpeg($dimg, "$tdir" . $url); // Saving The Image imagedestroy($simg); // Destroying The Temporary Image imagedestroy($dimg); // Destroying The Other Temporary Image
roomName = '$roomname', roomTypeDesc = '$roomtypedesc', file_thumb = '$thumb', file_width = '$twidth', file_height = '$theight' WHERE roomType_id = '$id' ";
mysql_query($sqlString) or die(mysql_error());
} else { print "<div class='error'>Wrong filetype (has to be a .jpg or .jpeg) Yours is $file_ext.</div>"; print " <script> function gotoUrl(){ location.href='domain.php?rel=EditRoomType'; }
Online Booking System for Camp Holiday Resort and Recreation Area
228
window.setTimeout('gotoUrl()',1900); </script> "; } } else if($_FILES['image']['type'] == "") { print "<div class='warning'>No Image to Display. Choose a file Correctly.</div>"; print " <script> function gotoUrl(){ location.href='domain.php?rel=EditRoomType'; } window.setTimeout('gotoUrl()',2000); </script> "; } else { print "<div class='error'>Wrong filetype (has to be a .jpg or .jpeg) Yours is $file_ext.</div>"; print " <script> function gotoUrl(){ location.href='domain.php?rel=EditRoomType'; } window.setTimeout('gotoUrl()',1900); </script> "; } } } ?> </body> </html>
Online Booking System for Camp Holiday Resort and Recreation Area
229
<script> function gotoUrl(){ location.href='domain.php?rel=RoomType'; } window.setTimeout('gotoUrl()',2000); </script> </head> <body> <?php // INSERT ROOM TYPE include("connection/connection.php");
$do_save_roomtypes = $_POST['saveroomtypes'];
if($do_save_roomtypes){ if (isset($_GET['subpage']) && $_GET['subpage'] == 'upload') { // Uploading/Resizing Script $image = $_POST["image"]; $roomname = $_POST['roomname']; $roomtypedesc = $_POST['roomtypedesc'];
$url = $_FILES['image']['name']; // Set $url To Equal The Filename For Later Use $file_ext = strrchr($_FILES['image']['name'], '.'); // Get The File Extention In The Format Of , // For Instance, .jpg, .gif or .php
Online Booking System for Camp Holiday Resort and Recreation Area
230
$copy = copy($_FILES['image']['tmp_name'], "$idir" . $_FILES['image']['name']); // Move Image From Temporary // Location To Permanent Location if ($copy) { // If The Script Was Able To Copy The Image To It's Permanent Location $simg = imagecreatefromjpeg("$idir" . $url); // Make A New Temporary Image To Create // The Thumbanil From $currwidth = imagesx($simg); // Current Image Width $currheight = imagesy($simg); // Current Image Height if ($currheight > $currwidth) { // If Height Is Greater Than Width $zoom = $twidth / $currheight; // Length Ratio For Width $newheight = $theight; // Height Is Equal To Max Height $newwidth = $currwidth * $zoom; // Creates The New Width } else { // Otherwise, Assume Width Is Greater Than Height
// (Will Produce Same Result If Width Is Equal To Height) $zoom = $twidth / $currwidth; // Length Ratio For Height $newwidth = $twidth; // Width Is Equal To Max Width $newheight = $currheight * $zoom; // Creates The New Height } $dimg = imagecreate($newwidth, $newheight); // Make New Image For Thumbnail imagetruecolortopalette($simg, false, 256); // Create New Color Pallete $palsize = ImageColorsTotal($simg); for ($i = 0; $i < $palsize; $i++) { // Counting Colors In The Image $colors = ImageColorsForIndex($simg, $i); // Number Of Colors Used ImageColorAllocate($dimg, $colors['red'], $colors['green'], $colors['blue']);
Online Booking System for Camp Holiday Resort and Recreation Area
231
// Tell The Server What // Colors This Image Will Use } imagecopyresized($dimg, $simg, 0, 0, 0, 0, $newwidth, $newheight, $currwidth, $currheight); // Copy Resized Image To The // New Image (So We Can Save It) imagejpeg($dimg, "$tdir" . $url); // Saving The Image imagedestroy($simg); // Destroying The Temporary Image imagedestroy($dimg); // Destroying The Other Temporary Image
$sqlString = "INSERT INTO tbl_roomtype ( image, roomName, roomTypeDesc, file_thumb, file_width, file_height )VALUES ( '$img', '$roomname', '$roomtypedesc', '$thumb', '$twidth', '$theight' )";
Online Booking System for Camp Holiday Resort and Recreation Area
232
mysql_query($sqlString) or die(mysql_error());
} else { print "<div class='error'>Wrong filetype (has to be a .jpg or .jpeg) Yours is $file_ext.</div>"; print " <script> function gotoUrl(){ location.href='domain.php?rel=EditRoomType'; } window.setTimeout('gotoUrl()',1900); </script> "; } } else if($_FILES['image']['type'] == "") { print "<div class='warning'>No Image to Display. Choose a file Correctly.</div>"; print " <script> function gotoUrl(){ location.href='domain.php?rel=EditRoomType'; } window.setTimeout('gotoUrl()',2000); </script> "; } else { print "<div class='error'>Wrong filetype (has to be a .jpg or .jpeg) Yours is $file_ext.</div>"; print " <script> function gotoUrl(){ location.href='domain.php?rel=EditRoomType'; } window.setTimeout('gotoUrl()',1900); </script> "; }
Online Booking System for Camp Holiday Resort and Recreation Area
233
function getEditServices(){ for(i = 0; i < adminForm.chk.length; i++){ if(adminForm.chk[i].checked){ cc = adminForm.chk[i].value; window.location = "domain.php?rel=EditServices&id="+cc+""; } } } checked=false; function checkedAll(frm1) { var aa = document.getElementById('frm1'); if (checked == false){
Online Booking System for Camp Holiday Resort and Recreation Area
234
checked = true } else { checked = false } for (var i =0; i < aa.length; i++){ aa[i].checked = checked; } } function doSearch(phrase){ var words = phrase.value.toLowerCase().split(" "); var table = document.getElementById("filterable"); var ele; var on = 0; for (var r = 0; r < table.rows.length; r++){ ele = table.rows[r].innerHTML.replace(/<[^>]+>/g,""); var displayStyle = 'none'; for (var i = 0; i < words.length; i++) { if (ele.toLowerCase().indexOf(words[i])>=0){ displayStyle = ''; on++; }else { displayStyle = 'none'; break; } } table.rows[r].style.display = displayStyle; } var n = document.getElementById("noresults");
Online Booking System for Camp Holiday Resort and Recreation Area
235
if ( on == 0 && n ) { n.style.display = ""; document.getElementById("qt").innerHTML = phrase.value; }else{ n.style.display = "none"; } } </script> <?php $do_delete = $_POST['deleteservices']; $id = $_POST['chk'];
if($do_delete){ $N = count($id);
for($i=0;$i < $N; $i++){ $sql = "DELETE FROM tbl_services WHERE service_id = '" . $id[$i] . "'"; mysql_query($sql) or die(mysql_error()); } } ?> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m">
Online Booking System for Camp Holiday Resort and Recreation Area
236
<form action="domain.php?rel=Services" method="post" name="adminForm" id="frm1"> <input type="hidden" name="deleteservices" /> <div class="toolbar" id="toolbar"> <table class="toolbar"> <tr> <td class="button" id="toolbar-delete"> <a href="javascript:getDeleteServices('delete')" onclick="return confirm('Are you sure you want to DELETE?');"> <span class="icon-32-delete" title="Delete"></span> Delete </a> </td> <td class="button" id="toolbar-edit"> <a href="javascript: getEditServices()"> <span class="icon-32-edit" title="Edit"></span> Edit </a> </td> <td class="button" id="toolbar-new"> <a href="domain.php?rel=NewServices"> <span class="icon-32-new" title="New"></span> New </a> </td> <td></td> </tr> </table> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
237
<div class="header icon-48-list-of-services">List of Services</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> <div class="clr"></div> <div id="submenu-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <ul id="submenu"> <li><a href="domain.php?rel=Guests&page=1">Guests</a></li> <li><a href="domain.php?rel=RoomList&page=1">Rooms</a></li> <li><a href="domain.php?rel=RoomType&page=1">Room Types</a></li> <li><a href="domain.php?rel=Amenities&page=1">Facilities</a></li> <li><a href="domain.php?rel=Services&page=1" class="active">Services</a></li> </ul> <div class="clr"></div> </div> <div class="b"> <div class="b">
Online Booking System for Camp Holiday Resort and Recreation Area
238
<div id="element-box4"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div>
<div class="m"> <div style="font-weight: bolder; padding: 5px;"> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red;" onkeyup="doSearch(filter);" /> </div> <table class="adminlist"> <thead> <tr> <th width="5%">#</th> <th width="5%"><input type='checkbox' name='checkall' onclick='checkedAll(frm1);'></th> <th width="20%" nowrap="nowrap">Category</th> <th width="20%" class="title">Description</th> <th width="5%" nowrap="nowrap">Price</th> <th width="5%" nowrap="nowrap">isActive</th>
Online Booking System for Camp Holiday Resort and Recreation Area
239
</tr> </thead> <tbody id="filterable"> <?php $sql = " SELECT FROM ORDER BY * tbl_services isActive='YES' ";
$count = 1;
while($row = mysql_fetch_array($result)){ ?> <tr> <td align="center"><?php echo $count; ?></td> <td align="center"> <input type="checkbox" value="<?php echo $row['service_id']; ?>" name="chk[]" id="chk" onselect="return getEditGuest()" /> </td> <td align="center"><?php echo $row['Category']; ?></td> <td align="center"><?php echo $row['Description']; ?></td> <td align="center"><?php echo $row['Price']; ?></td> <td align="center"><?php echo $row['isActive']; ?></td> </tr> <?php } ?> <tr style="display:none; color:#F00; font-weight: bolder;" id="noresults"> $count = $count + 1;
Online Booking System for Camp Holiday Resort and Recreation Area
240
<td colspan="9">No Records Found that start with "<span id="qt"></span>".</td> </tr> </tbody> </table> </form> <div class="clr"></div> </div>
<div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div>
<link rel="stylesheet" type="text/css" href="css/template.css" /> <link rel="stylesheet" type="text/css" href="css/rounded.css" /> <link rel="stylesheet" type="text/css" href="css/styles.css"/>
Online Booking System for Camp Holiday Resort and Recreation Area
241
<link rel="stylesheet" type="text/css" href="css/messagebox.css"/> <link href="css/calendar.css" rel="stylesheet" type="text/css"/> <script src="js/filterTable.js" language="JavaScript"></script> <script src="js/calendar.js" language="JavaScript"></script> <script type="text/javascript" src="js/menu.js"></script> <script type="text/javascript" src="js/reservationtype.js"></script> </head> <body> <div id="toolbar-box5"> <div class="t"><div class="t"><div class="t"></div></div></div> <div class="m"> <div class="toolbar" id="toolbar"></div> <div class="header icon-48-add-services">Add Category</div> </div> <div class="b"><div class="b"><div class="b"></div></div></div> </div> <br /> <div id="element-box5"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="popup.php?rel=ValidateCategory" method="post"> <table style="font-size: 12px; margin-left: 50px;"> <tr> <td>Category</td>
Online Booking System for Camp Holiday Resort and Recreation Area
242
<td> <input type="text" name="category"> </td> </tr> <tr> <td colspan="2" align="right"> <input type="submit" value="Add" style="font-size:16px; padding-left:15px; padding-right:15px; font-weight: bolder; cursor:pointer;"/> </td> </tr> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </body> </html>
Online Booking System for Camp Holiday Resort and Recreation Area
243
<link rel="stylesheet" type="text/css" href="css/rounded.css" /> <link rel="stylesheet" type="text/css" href="css/styles.css"/> <link rel="stylesheet" type="text/css" href="css/messagebox.css"/> <link href="css/calendar.css" rel="stylesheet" type="text/css"/> <script src="js/filterTable.js" language="JavaScript"></script> <script src="js/calendar.js" language="JavaScript"></script> <script type="text/javascript" src="js/menu.js"></script> <script type="text/javascript" src="js/reservationtype.js"></script> </head> <body> <div id="toolbar-box5"> <div class="t"><div class="t"><div class="t"></div></div></div> <div class="m"> <div class="toolbar" id="toolbar"></div> <div style="font-size:14px; font-weight:bolder; color:#060; margin-top:auto; margin-left:auto; padding-left: 10px;"> Category Successfully Created...!</div> </div> <div class="b"><div class="b"><div class="b"></div></div></div> </div> <?php include("connection/connection.php");
$category = strtoupper($_POST['category']);
Online Booking System for Camp Holiday Resort and Recreation Area
244
$do_update_services = $_POST['updateservices'];
if($do_update_services){ $id = $_POST['id']; $category = $_POST['category']; $description = $_POST['description']; $price = $_POST['price']; $isactive = $_POST['isactive'];
Online Booking System for Camp Holiday Resort and Recreation Area
245
Online Booking System for Camp Holiday Resort and Recreation Area
246
$do_save_services = $_POST['saveservices'];
if($do_save_services){
$sql = "INSERT INTO tbl_services( Description, Price, isactive ) VALUES ( '$category', '$description', '$price', '$isactive')";
Category,
Online Booking System for Camp Holiday Resort and Recreation Area
247
date_default_timezone_set('Asia/Taipei'); ?> <html> <head> <script language="javascript" type="text/javascript"> function CheckAllFields() { var txtArrival, txtDeparture, txtReserve
if( txtReserve == "-- Select --"){ alert('-- Select -- is not a correct Reservation Type!'); return false; } if( txtArrival == "" ){ alert('Arrival field must be filled in!'); return false; } if( txtDeparture == "" ){ alert('Departure field must be filled in!'); return false; } if(txtArrival >= txtDeparture){ alert('Please Select Correct Arrival Date.'); return false; }
Online Booking System for Camp Holiday Resort and Recreation Area
248
return true; } </script> </head> <div id="toolbar-box"> <div class="t"><div class="t"><div class="t"></div></div></div> <div class="m"> <div class="toolbar" id="toolbar"></div> <div class="header icon-48-user">Reservation Details</div> </div> <div class="b"><div class="b"><div class="b"></div></div></div></div> <div id="element-box1"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="<?php echo $PHP_SELF ?>" name="checkavailability" method="post"> <table border="0"> <tr> <td>Reservation Type</td> <td> <select name="reservetype" style="width:90px;"> <option value="-- Select --">-- Select --</option> <option value="Walk-in" <?php if($_POST['reservetype'] == 'Walk-in') echo "selected='selected'"; ?>>Walk-in</option> <option value="Call"
Online Booking System for Camp Holiday Resort and Recreation Area
249
<?php if($_POST['reservetype'] == 'Call') echo "selected='selected'"; ?>>Call</option> </select> </td> </tr> <tr> <td>Arrival</td> <td colspan="2"> <input name="arrival" id="arrival" value="<?php echo $_POST['arrival'];?>" type="text" size="11px" readonly/> <script language="JavaScript"> new tcal ({ // form name 'formname': 'checkavailability', // input name 'controlname': 'arrival' }); </script> </td> </tr> <tr> <td>Departure</td> <td colspan="2"> <input name="departure" id="departure" value="<?php echo $_POST['departure'];?>" type="text" size="11px" readonly/> <script language="JavaScript"> new tcal ({ // form name 'formname': 'checkavailability',
Online Booking System for Camp Holiday Resort and Recreation Area
250
// input name 'controlname': 'departure' }); </script> </td> </tr> <tr> <td>No. of Adults</td> <td> <select name="adults" style="width:90px;"> <option value="1" <?php if($_POST['adults'] == '1') echo "selected='selected'"; ?> >1</option> <option value="2" <?php if($_POST['adults'] == '2') echo "selected='selected'"; ?>>2</option> <option value="3" <?php if($_POST['adults'] == '3') echo "selected='selected'"; ?>>3</option> <option value="4" <?php if($_POST['adults'] == '4') echo "selected='selected'"; ?>>4</option> </select> </td> </tr> <tr> <td>No. of Children</td> <td> <select name="children" style="width:90px;"> <option value="0" <?php if($_POST['children'] == '0') echo "selected='selected'"; ?>>0</option> <option value="1" <?php if($_POST['children'] == '1') echo "selected='selected'"; ?>>1</option> <option value="2" <?php if($_POST['children'] == '2') echo "selected='selected'"; ?>>2</option> <option value="3" <?php if($_POST['children'] == '3') echo "selected='selected'"; ?>>3</option> <option value="4" <?php if($_POST['children'] == '4') echo "selected='selected'"; ?>>4</option> </select> </td>
Online Booking System for Camp Holiday Resort and Recreation Area
251
</tr> <tr> <td>Room</td> <td> <select name="roomtype"> <?php $sqlString = " SELECT * FROM tbl_roomtype"; $rs = mysql_query($sqlString); while($row=mysql_fetch_object($rs)){ echo "<option value='$row->roomType_id'>".$row->roomName."</option>"; } ?> </select> </td> <td> <input type="submit" id="submit" name="submit" style="font-size:16px; padding-left:15px; padding-right:15px; font-weight: bolder; cursor:pointer;" value="Check Availability" onClick="return CheckAllFields()"/> </td> </tr> <?php if(isset($_POST['submit'])){ echo " <tr>
Online Booking System for Camp Holiday Resort and Recreation Area
252
</td> </tr> "; } ?> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> <br /> <?php if(isset($_POST['submit'])){ $arrivaltime $departuretime $_SESSION['arrival'] = strtotime($_POST['arrival']); = strtotime($_POST['departure']); = date('Y-m-d',$arrivaltime);
Online Booking System for Camp Holiday Resort and Recreation Area
253
<div class='toolbar' id='toolbar'></div> <div class='header icon-48-user'>"; $sql = " SELECT FROM WHERE "; $resultsql = mysql_query($sql); while ($row = mysql_fetch_object($resultsql)){ echo $_SESSION['roomname'] = $row->roomName; } tbl_roomtype roomType_id = '".$_SESSION['roomtype']."' roomName
echo </div>
"</div>
echo "<div id='element-box2'> <div class='t'> <div class='t'> <div class='t'></div> </div> </div> <div class='m'>";
Online Booking System for Camp Holiday Resort and Recreation Area
254
FROM tbl_room WHERE roomType_id = '".$_SESSION['roomtype']."' "; $resultCount = mysql_query($sqlCount); $data = mysql_fetch_row($resultCount); $total_rooms = $data[0];
for ($i=1;$i<=$total_rooms;$i++) { if (!($i%$rooms_per_floor)) { //go to the next floor $floor++; //$restart_counter=0; echo '<div class="clear"></div>'; } //$restart_counter++; // give rooms a number //$roomnum=$floor.'0'.$restart_counter; if($_SESSION['roomtype'] == 1) $roomnum=100+$i; if($_SESSION['roomtype'] == 2) $roomnum=200+$i; if($_SESSION['roomtype'] == 3) $roomnum=300+$i; //room is always available unless proven otherwise $available=true;
// select the room and make sure it is not "deleted" or "cancelled" $sqlString = " FROM WHERE AND $result = mysql_query($sqlString); SELECT tbl_reservation roomNumber = $roomnum isReserved = 'Yes' "; roomNumber, Arrival, Departure
Online Booking System for Camp Holiday Resort and Recreation Area
255
if (mysql_num_rows($result)) { while ($object = mysql_fetch_object($result)){ $check_in = $object->Arrival; $check_out = $object->Departure; if ($check_in < $_SESSION['departure'] and $check_out > $_SESSION['arrival']) { // there is a reservation for that room // the check-in date is before the desired checkout date // and the checkout date is after the desired check-in date // so this indicates that the room is not available // for the desired period $available=false; } } } if ($available) { echo '<div class="available"> <input type="checkbox" name="'.$i.'" value="'.$roomnum.'">Room '.$roomnum.'</div>'; } else { echo '<div class="unavailable"> <input type="checkbox" disabled="disabled">Room '.$roomnum.'</div>'; } }
echo "<br /><br /><br /><br /><br /><input type='submit' style='font-size:16px; padding-left:15px; padding-right:15px; font-weight: bolder; cursor:pointer;' id='reserveroom' name='reserveroom' value='Reserve' />";
Online Booking System for Camp Holiday Resort and Recreation Area
256
echo "<input type='button' value='Cancel' style='font-size:16px; padding-left:15px; padding-right:15px; font-weight: bolder; cursor:pointer;' onclick=\"javascript:location.href='domain.php?rel=Availability'\" />"; echo "</form>";
echo "</div> <div class='b'> <div class='b'> <div class='b'></div> </div> </div> </div>"; } ?> </html>
Online Booking System for Camp Holiday Resort and Recreation Area
257
$totalcharge = $_SESSION['totalcharge'];
Company,
Online Booking System for Camp Holiday Resort and Recreation Area
258
Address, contactNo, Email, isActive) VALUES ( '$company', '$lastname', '$firstname', '$middleinitial', '$address', '$contactno', '$email', 'Yes') ";
mysql_query($sqlGuest) or die(mysql_error());
MAX(guest_id)
foreach ($_SESSION['rooms'] as $key => $value){ mysql_query("INSERT INTO tbl_reservation VALUES( '$guest_id', '$value', '$roomname', '$arrival', '$departure', '$numadults', '',
Online Booking System for Camp Holiday Resort and Recreation Area
259
MAX(reservation_id)
$sqlAccommodation = " INSERT INTO tbl_accommodation VALUES ( '', '$guest_id', '".$_SESSION['name']."', NOW(), 'Yes', '$reservation_id') "; mysql_query($sqlAccommodation) or die(mysql_error());
MAX(accommodation_id)
Online Booking System for Camp Holiday Resort and Recreation Area
260
$sqlTransac = " INSERT INTO tbl_transaction VALUES ('', '$accommodation_id', 'Rent Due on', '$totalcharge', NOW()) "; mysql_query($sqlTransac) or die(mysql_error());
$sqlTransacPay = " VALUES ('', '$accommodation_id', 'Payment Received', '$amount', NOW()) ";
mysql_query($sqlTransacPay) or die(mysql_error());
if($paymentmode == "CreditCard"){ $sqlPayment = " INSERT INTO tbl_payment VALUES ( '', '$accommodation_id', '$paymentmode', '$receiptno', '$ccamount', '".$_SESSION['name']."', NOW()) "; mysql_query($sqlPayment) or die(mysql_error()); }else{ $sqlPayment = " INSERT INTO tbl_payment
Online Booking System for Camp Holiday Resort and Recreation Area
261
VALUES ( '', '$accommodation_id', '$paymentmode', '0', '$amount', '".$_SESSION['name']."', NOW()) "; mysql_query($sqlPayment) or die(mysql_error()); }
$sql4 = " INSERT INTO tbl_billing VALUES ( '', '$accommodation_id', '".$_SESSION['name']."', NOW() ) "; mysql_query($sql4) or die(mysql_error()); ?> </body> </html>
Online Booking System for Camp Holiday Resort and Recreation Area
262
} function getSavePersonalInfo(selectedtype){ document.personalinfo.info.value = selectedtype ; document.personalinfo.submit() ; } function requiredFields(){ var lname, fname, mi, contactno, email; var filter = /^.+@.+\..{2,3}$/;
Online Booking System for Camp Holiday Resort and Recreation Area
263
if( lname == "" ){ alert('" LAST NAME " Field should not be empty!'); document.personalinfo.lastname.focus(); return false; } if( fname == "" ){ alert('" FIRST NAME " Field should not be empty!'); document.personalinfo.firstname.focus(); return false; } if( mi == "" ){ alert('" MIDDLE INITIAL " Field should not be empty!'); document.personalinfo.mi.focus(); return false; } if( contactno == "" ){ alert('" CONTACT NO. " Field should not be empty!'); document.personalinfo.contactno.focus(); return false; } if( email == "" ){
Online Booking System for Camp Holiday Resort and Recreation Area
264
alert('"EMAIL ADDRESS " Field should not be empty!'); document.personalinfo.email.focus(); return false; } if( filter.test(email)){ return true; }else{ alert('Please input a valid " EMAIL ADDRESS"!'); document.personalinfo.email.focus(); return false; }
getSavePersonalInfo(selectedtype); return true; } </script> </head> <body> <div id="toolbar-box"> <div class="t"><div class="t"><div class="t"></div></div></div> <div class="m"> <div class="toolbar" id="toolbar"></div> <div class="header icon-48-96-reservationrates" style="padding-left:80px;">Reservation/Rates Information</div> </div> <div class="b"><div class="b"><div class="b"></div></div></div></div> <div id="element-box2"> <div class="t">
Online Booking System for Camp Holiday Resort and Recreation Area
265
<div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="domain.php?rel=Reserved" method="post" name="personalinfo" enctype="multipart/form-data"> <input type="hidden" name="info" /> <table> <tr> <td>Reservation Type</td> <td>:</td> <td style="color:#060; font-weight:bolder;"><?php echo $_SESSION['reservetype'];?></td> <td width="20px"><td> <td>No. of Nights</td> <td>:</td> <td style="color:#060; font-weight:bolder;"> <?php $arrival = $_SESSION['arrival']; $departure = $_SESSION['departure']; $dateDiff = strtotime($departure) - strtotime($arrival); echo $totalnights = floor($dateDiff/(60*60*24)); ?> </td> </tr> <tr> <td>Arrival</td> <td>:</td> <td style="color:#060; font-weight:bolder;"><?php echo $arrival;?></td>
Online Booking System for Camp Holiday Resort and Recreation Area
266
<td width="20px"><td> <td>No. of Guests</td> <td>:</td> <td style="color:#060; font-weight:bolder;"> <?php echo $_SESSION['numadults'] + $_SESSION['numchildren'];?> </td> </tr> <tr> <td>Departure</td> <td>:</td> <td style="color:#060; font-weight:bolder;"><?php echo $departure;?></td> <td width="20px"><td> <td>Room Rate</td> <td>:</td> <?php $roomid = $_SESSION['roomtype']; $sqlString = " FROM WHERE "; $rs = mysql_query($sqlString); $row = mysql_fetch_object($rs) ?> <td style="color:#060; font-weight:bolder;">P <?php echo $row->Rate;?> per night</td> </tr> <tr> <td>Room Type</td> <td>:</td> SELECT tbl_room roomType_id = $roomid *
Online Booking System for Camp Holiday Resort and Recreation Area
267
<td style="color:#060; font-weight:bolder;"><?php echo $_SESSION['roomname'];?></td> <td width="20px"><td> <td>Total Charges</td> <td>:</td> <td style="color:#F00; font-weight:bolder;"> P <?php echo $totalcharge = ($totalnights * $row->Rate); $_SESSION['totalcharge'] = $totalcharge; ?> </td> </tr> <tr> <td valign="top" width="120px">Room Number/s</td> <td valign="top">:</td> <td style="color:#060; font-weight:bolder;"> <?php $sqlCount = " SELECT COUNT(room_id) FROM tbl_room WHERE roomType_id = '".$_SESSION['roomtype']."' "; $resultCount = mysql_query($sqlCount); $data = mysql_fetch_row($resultCount); $total_rooms = $data[0];
$_SESSION['rooms'] = array(); for ($i=1;$i<=$total_rooms;$i++){ if ($_POST[$i]) { echo 'Room #'.$_POST[$i].'<br/>'; // we are pushing the selected rooms in an array array_push($_SESSION['rooms'],$_POST[$i]);
Online Booking System for Camp Holiday Resort and Recreation Area
268
} } ?> </td> <td width="20px"><td> <td>Initial Payment</td> <td>:</td> <td style="color:#F00; font-weight:bolder;"> P <?php echo $row->Rate; ?> </td> </tr> </table> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> <br /> <div style="float:left;"> <div id="toolbar-box1"> <div class="t"><div class="t"><div class="t"></div></div></div> <div class="m"> <div class="toolbar" id="toolbar"></div> <div class="header icon-48-list-of-guest">Personal Information</div> </div> <div class="b"><div class="b"><div class="b"></div></div></div></div>
Online Booking System for Camp Holiday Resort and Recreation Area
269
<br /> <div id="element-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <table> <tr> <td>Company Name</td> <td><input type="text" name="companyname" size="82px"></td> </tr> <tr> <td>Last Name</td> <td><input type="text" name="lastname" size="50px"></td> </tr> <tr> <td>First Name</td> <td><input type="text" name="firstname" size="50px"></td> </tr> <tr> <td>Middle Initial</td> <td><input type="text" name="mi" size="5px" maxlength="1"></td> </tr> <tr> <td>Address</td> <td><input type="text" name="address" size="82px"></td>
Online Booking System for Camp Holiday Resort and Recreation Area
270
</tr> <tr> <td>Contact No.</td> <td><input type="text" name="contactno" size="50px"></td> </tr> <tr> <td>Email</td> <td><input type="text" name="email" size="50px"></td> </tr> </table> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div> <div style="margin-left:600px;"> <div id="toolbar-box1"> <div class="t"><div class="t"><div class="t"></div></div></div> <div class="m"> <div class="toolbar" id="toolbar"></div> <div class="header icon-48-payment">Payment Details</div> </div> <div class="b"><div class="b"><div class="b"></div></div></div></div> <br /> <div id="element-box">
Online Booking System for Camp Holiday Resort and Recreation Area
271
<div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <table> <tr> <td width="120px">Payment Mode</td> <td> <select name="paymentmode" onChange="showPaymentMode(this.value)"> <option value="Cash">Cash</option> <option value="CreditCard">CreditCard</option> </select> </td> </tr> </table> <div id="cash"> <table> <tr> <td width="120px">Amount</td> <td><input type="text" name="amount"></td> </tr> </table> </div> <div id="creditcard" style="display:none;"> <table> <tr>
Online Booking System for Camp Holiday Resort and Recreation Area
272
<td width="120px">Receipt No.</td> <td><input type="text" name="receiptno"></td> </tr> <tr> <td width="120px">Amount</td> <td><input type="text" name="ccamount"></td> </tr> </table> </div> <tr> <td></td> <td width="120px"> <input type="submit" name="submit" value="Finish" onclick="return requiredFields()" style="font-size:16px; padding-left:25px; padding-right:25px; font-weight: bolder; cursor:pointer;"> </td> </tr> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div> </body>
Online Booking System for Camp Holiday Resort and Recreation Area
273
</html>
uname = String(document.users.uname.value); pword = String(document.users.pword.value); lname = String(document.users.lname.value); fname = String(document.users.fname.value); mi = String(document.users.mi.value); position = String(document.users.position.value);
if( uname == "" ){ alert('" USERNAME " Field should not be empty...!'); document.users.uname.focus(); return false; } if( pword == "" ){ alert('" PASSWORD " Field should not be empty!'); document.users.pword.focus(); return false; }
Online Booking System for Camp Holiday Resort and Recreation Area
274
if( lname == "" ){ alert('" LAST NAME " Field should not be empty!'); document.users.lname.focus(); return false; } if( fname == "" ){ alert('" FIRST NAME " Field should not be empty!'); document.users.fname.focus(); return false; } if( mi == "" ){ alert('" MIDDLE INITIAL " Field should not be empty!'); document.users.mi.focus(); return false; } if( position == "" ){ alert('" POSITION " Field should not be empty!'); document.users.position.focus(); return false; }
Online Booking System for Camp Holiday Resort and Recreation Area
275
$id = $_GET['id'];
$sql = "SELECT * FROM tbl_useraccount WHERE userAccount_id = '$id'"; $result = mysql_query($sql) or die("No user database!");
$row = mysql_fetch_object($result); ?> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div class="toolbar" id="toolbar"> <form action="domain.php?rel=UpdateUser" method="post" name="users" enctype="multipart/formdata"> <input type="hidden" name="updateusers" /> <input type="hidden" name="id" value="<?php echo $row->userAccount_id; ?>" /> <table class="toolbar"> <tr> <td class="button" id="toolbar-copy"> <a href="javascript:getupdateusers('users')" onclick="return requiredFields()" style="color:#000000;"> <span class="icon-32-save" title="Copy"></span> Save </a>
Online Booking System for Camp Holiday Resort and Recreation Area
276
</td>
<td class="button" id="toolbar-edit"> <a href="domain.php?rel=Users&page=1" style="color:#000000;"> <span class="icon-32-cancel" title="Edit"></span> Cancel </a> </td>
<td> </td> </tr> </table> </div> <div class="header icon-48-edit-user">Edit User</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
277
<div class="t"></div> </div> </div> <div class="m"> <table width="400" border="0"> <tbody> <tr> <td align="right" >Username</td> <td> <input type="text" name="uname" value="<?php echo $row->Username;?>" size="50" /> </td> </tr> <tr> <td align="right">Password</td> <td> <input type="password" name="pword" value="<?php echo $row->Password;?>" size="50" /> </td> </tr> <tr> <td align="right">Last Name</td> <td> <input type="text" name="lname" value="<?php echo $row->lastName;?>" size="50" /> </td> </tr> <tr>
Online Booking System for Camp Holiday Resort and Recreation Area
278
<td align="right">First Name</td> <td> <input type="text" name="fname" value="<?php echo $row->firstName;?>" size="50" /> </td> </tr> <tr> <td align="right">M.I.</td> <td> <input type="text" name="mi" maxlength="2" value="<?php echo $row->middleInitial;?>" size="10" /> </td> </tr> <tr> <td align="right">Position</td> <td> <input type="text" name="position" value="<?php echo $row->Position;?>" size="10" /> </td> </tr> <tr> <td align="right">Access Level</td> <td> <select name="accesslevel"> <option value="1" <?php if($row->accessLevel == 1) echo "selected='selected'"; ?>>1</option> <option value="2" <?php if($row->accessLevel == 2) echo "selected='selected'"; ?>>2</option> <option value="3" <?php if($row->accessLevel == 3) echo "selected='selected'"; ?>>3</option> </select>
Online Booking System for Camp Holiday Resort and Recreation Area
279
</td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
280
position = String(document.users.position.value);
if( uname == "" ){ alert('" USERNAME " Field should not be empty!'); document.users.uname.focus(); return false; } if( pword == "" ){ alert('" PASSWORD " Field should not be empty!'); document.users.pword.focus(); return false; } if( lname == "" ){ alert('" LAST NAME " Field should not be empty!'); document.users.lname.focus(); return false; } if( fname == "" ){ alert('" FIRST NAME " Field should not be empty!'); document.users.fname.focus(); return false; } if( mi == "" ){ alert('" MIDDLE INITIAL " Field should not be empty!'); document.users.mi.focus(); return false; } if( position == "" ){
Online Booking System for Camp Holiday Resort and Recreation Area
281
alert('" POSITION " Field should not be empty!'); document.users.position.focus(); return false; }
getsaveusers(selectedtype); return true; } </script> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div class="toolbar" id="toolbar"> <form action="domain.php?rel=ValidateUser&subpage=upload" method="post" name="users" enctype="multipart/form-data"> <input type="hidden" name="saveusers" /> <table class="toolbar"> <tr> <td class="button" id="toolbar-copy"> <a href="javascript:getsaveusers('users')" onclick="return requiredFields()" style="color:#000000;"> <span class="icon-32-save" title="Save"> </span> Save </a>
Online Booking System for Camp Holiday Resort and Recreation Area
282
</td>
<td class="button" id="toolbar-edit"> <a href="domain.php?rel=Users&page=1" style="color:#000000;"> <span class="icon-32-cancel" title="Cancel"> </span> Cancel </a> </td>
<td> </td> </tr> </table> </div> <div class="header icon-48-add-user">Add User</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> <div id="element-box1"> <div class="t"> <div class="t"> <div class="t"></div>
Online Booking System for Camp Holiday Resort and Recreation Area
283
</div> </div> <div class="m"> <table width="400" border="0"> <tbody> <tr> <td align="right">Username</td> <td><input type="text" name="uname" size="50" o/></td> </tr> <tr> <td align="right">Password</td> <td><input type="password" name="pword" size="50" /></td> </tr> <tr> <td align="right">Last Name</td> <td><input type="text" name="lname" size="50" /></td> </tr> <tr> <td align="right">First Name</td> <td><input type="text" name="fname" size="50" /></td> </tr> <tr> <td align="right">M.I.</td> <td><input type="text" name="mi" size="5" maxlength="1" /></td> </tr> <tr> <td align="right">Position</td> <td><input type="text" name="position" size="50" /></td>
Online Booking System for Camp Holiday Resort and Recreation Area
284
</tr> <tr> <td align="right">Access Level</td> <td> <select name="accesslevel"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> </td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
285
document.adminForm.deleteuser.value = selectedtype; document.adminForm.submit(); } function getEditUser(){ for(i = 0; i < adminForm.chk.length; i++){ if(adminForm.chk[i].checked){ cc = adminForm.chk[i].value; window.location = "domain.php?rel=EditUser&id="+cc+""; } } } checked=false; function checkedAll(frm1) { var aa = document.getElementById('frm1'); if (checked == false){ checked = true } else { checked = false } for (var i =0; i < aa.length; i++){ aa[i].checked = checked; } } function doSearch(phrase){ var words = phrase.value.toLowerCase().split(" "); var table = document.getElementById("filterable"); var ele; var on = 0;
Online Booking System for Camp Holiday Resort and Recreation Area
286
for (var r = 0; r < table.rows.length; r++){ ele = table.rows[r].innerHTML.replace(/<[^>]+>/g,""); var displayStyle = 'none'; for (var i = 0; i < words.length; i++) { if (ele.toLowerCase().indexOf(words[i])>=0){ displayStyle = ''; on++; }else { displayStyle = 'none'; break; } } table.rows[r].style.display = displayStyle; } var n = document.getElementById("noresults"); if ( on == 0 && n ) { n.style.display = ""; document.getElementById("qt").innerHTML = phrase.value; }else{ n.style.display = "none"; } } </script> <?php $do_delete = $_POST['deleteuser']; $id = $_POST['chk'];
if($do_delete){
Online Booking System for Camp Holiday Resort and Recreation Area
287
$N = count($id);
for($i=0;$i < $N; $i++){ $sql = "DELETE FROM tbl_useraccount WHERE userAccount_id = '" . $id[$i] . "'"; mysql_query($sql) or die(mysql_error()); } } ?> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="domain.php?rel=Users" method="post" name="adminForm" id="frm1"> <input type="hidden" name="deleteuser"/> <div class="toolbar" id="toolbar"> <table class="toolbar"> <tr> <td class="button" id="toolbar-delete"> <a href="javascript:getdelete('delete')" onclick="return confirm('Are you sure you want to DELETE?');"> <span class="icon-32-delete" title="Delete"></span> Delete </a> </td>
Online Booking System for Camp Holiday Resort and Recreation Area
288
<td class="button" id="toolbar-edit"> <a href="javascript: getEditUser()"> <span class="icon-32-edit" title="Edit"></span> Edit </a> </td>
<td class="button" id="toolbar-new"> <a href="domain.php?rel=NewUser&id=0&level=1"> <span class="icon-32-new" title="New"> </span> New </a> </td> <td></td> </tr> </table> </div> <div class="header icon-48-registered-user">Registered Users</div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> <div class="clr"></div>
Online Booking System for Camp Holiday Resort and Recreation Area
289
<div id="element-box4"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div style="font-weight: bolder; padding: 5px;"> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red;" onkeyup="doSearch(filter);" /> </div> <table class="adminlist" > <thead> <tr> <th width="5%">#</th> <th width="5%"><input type='checkbox' name='checkall' onclick='checkedAll(frm1);' /></th> <th width="15%" nowrap="nowrap">Username</th> <th width="15%" nowrap="nowrap">Password</th> <th width="20%" nowrap="nowrap">Last Name</th> <th width="20%" class="title">First Name</th> <th width="5%" nowrap="nowrap">MI</th> <th width="10%" nowrap="nowrap">Position</th> <th width="5%" nowrap="nowrap">Access Level</th> </tr> </thead>
Online Booking System for Camp Holiday Resort and Recreation Area
290
<tbody id="filterable"> <?php $sql = " SELECT FROM ORDER BY * tbl_useraccount accessLevel ";
$count = 1;
while($row = mysql_fetch_array($result)){ ?> <tr> <td align="center"><?php echo $count; ?></td> <td align="center"> <input type="checkbox" value="<?php echo $row['userAccount_id']; ?>" name="chk[]" id="chk" onselect="return getEditUser()" /> </td> <td align="center"><?php echo $row['Username']; ?></td> <td align="center"><?php echo $row['Password']; ?></td> <td align="center"><?php echo $row['lastName']; ?></td> <td align="center"><?php echo $row['firstName']; ?></td> <td align="center"><?php echo $row['middleInitial']; ?></td> <td align="center"><?php echo $row['Position']; ?></td> <td align="center"><?php echo $row['accessLevel']; ?></td> </tr> <?php $count = $count + 1; }
Online Booking System for Camp Holiday Resort and Recreation Area
291
?> <tr style="display:none; color:#F00; font-weight: bolder;" id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>".</td> </tr> </tbody> </table> </form> <div class="clr"></div> </div>
<div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
292
<?php include("connection/connection.php");
$do_update_user = $_POST['updateusers'];
if($do_update_user){ $id = $_POST['id']; $username = $_POST['uname']; $password = $_POST['pword']; $firstname = $_POST['fname']; $lastname = $_POST['lname']; $mi = strtoupper($_POST['mi']); $position = $_POST['position']; $accesslevel = $_POST['accesslevel'];
password = '$password', firstname = '$firstname', lastname = '$lastname', middleinitial = '$mi', position = '$position', accesslevel = '$accesslevel' WHERE userAccount_id = '$id'";
Online Booking System for Camp Holiday Resort and Recreation Area
293
$do_save_user = $_POST['saveusers'];
if($do_save_user){ $uname = $_POST['uname']; $pword = $_POST['pword']; $firstname = $_POST['fname']; $lastname = $_POST['lname']; $mi = strtoupper($_POST['mi']); $position = $_POST['position']; $accesslevel = $_POST['accesslevel'];
Online Booking System for Camp Holiday Resort and Recreation Area
294
$sql = "INSERT INTO tbl_useraccount( username, password, firstname, lastname, middleinitial, position, accesslevel ) VALUES ( '$uname', '$pword', '$firstname', '$lastname', '$mi', '$position', '$accesslevel')";
Online Booking System for Camp Holiday Resort and Recreation Area
295
include("connection/connection.php");
if($_SESSION['login'] == 0){ header("location: index.php?ref=Home"); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr" id="minwidth" > <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Camp Holiday Resort and Recreation Area</title>
<link rel="stylesheet" type="text/css" href="css/template.css" /> <link rel="stylesheet" type="text/css" href="css/rounded.css" /> <link rel="stylesheet" type="text/css" href="css/styles.css"/> <link rel="stylesheet" type="text/css" href="css/messagebox.css"/> <link href="css/calendar.css" rel="stylesheet" type="text/css"/> <script src="js/filterTable.js" language="JavaScript"></script> <script src="js/calendar.js" language="JavaScript"></script> <script type="text/javascript" src="js/menu.js"></script> <script type="text/javascript" src="js/reservationtype.js"></script> <?php $rel = $_GET['rel'];
Online Booking System for Camp Holiday Resort and Recreation Area
296
$ACCEPT_FILE['RoomList'] $ACCEPT_FILE['NewRoomList']
= 'Master/roomlist.php'; = 'Master/Sub_RoomList/New.php';
Online Booking System for Camp Holiday Resort and Recreation Area
297
$ACCEPT_FILE['EditRoomList']
= 'Master/Sub_RoomList/Edit.php';
Online Booking System for Camp Holiday Resort and Recreation Area
298
$contentname = $ACCEPT_FILE[$rel]; if($_SESSION['login'] == 1 || $_SESSION['login'] == 2){ if (!isSet($contentname)) $contentname = "Home/reservation.php"; } if($_SESSION['login'] == 3 ){ if (!isSet($contentname)) $contentname = "Restaurant/reservation.php"; } ?> </head> <body id="minwidth-body"> <div id="border-top" class="h_green"> <div> <div> <span class="title">Camp Holiday Resort and Recreation Area</span> </div> </div> </div> <div id="header-box"> <div id="module-status"> <span class="logout"> <b>You are logged in as <font color="#FF0000"><?php echo $_SESSION['name']; ?></font></b> </span> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
299
<div id="module-menu"> <ul id="menu" > <?php if($_SESSION['login'] == 1 || $_SESSION['login'] == 2){ ?> <li class="node"> <a href="domain.php?rel=Home&page=1" style="cursor:pointer;"> <img src="images/admin-icons/Home-icon-32.png" align="middle" /> Home</a> </li> <?php } if($_SESSION['login'] == 1 || $_SESSION['login'] == 2){ ?> <li class="node"> <a href="domain.php?rel=Availability&page=1" style="cursor:pointer;"> <img src="images/admin-icons/Clipboard-icon-32.png" align="middle" /> Reservations</a> </li> <?php } if($_SESSION['login'] == 1){ ?> <li class="node"> <a href="domain.php?rel=Guests&page=1" style="cursor:pointer;"> <img src="images/admin-icons/Administrator-icon-32.png" align="middle" /> Master</a> </li> <?php } if($_SESSION['login'] == 1){ ?> <li class="node">
Online Booking System for Camp Holiday Resort and Recreation Area
300
<a href="domain.php?rel=Users&page=1" style="cursor:pointer;"> <img src="images/admin-icons/User-Group-icon-32.png" align="middle" /> Admin</a> </li> <?php } if($_SESSION['login'] == 3){ ?> <li class="node"> <a href="domain.php?rel=Restaurant&page=1" style="cursor:pointer;"> <img src="images/admin-icons/Clipboard-icon-32.png" align="middle" /> Restaurant</a></li> <li class="node"> <?php } if($_SESSION['login'] == 1){ ?> <li class="node"> <a href="domain.php?rel=DailyReports&page=1" style="cursor:pointer;"> <img src="images/admin-icons/Files-icon-32.png" align="middle" /> Reports</a> </li> <?php } ?> <li class="node" onclick="return confirm('Are you sure you want to EXIT?');"> <a href="index.php?ref=Logout" style="cursor:pointer;"> <img src="images/admin-icons/32-exit-icon.png" align="middle" /> Logout</a> </li> </ul> </div> <div class="clr"></div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
301
<div id="content-box"> <div class="border"> <div class="padding"> <?php include("Sub/$contentname"); ?> <div class="clr"></div> </div> </div> </div> <div id="border-bottom"><div><div></div></div></div> <br /><br /><br /><br /><br /> </body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr" > <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Camp Holiday Resort and Recreation Area</title>
Online Booking System for Camp Holiday Resort and Recreation Area
302
<body onload="javascript:setFocus()"> <div id="border-top" class="h_green"> <div> <div> <span class="title">Camp Holiday Resort and Recreation Area</span> </div> </div> </div> <div id="content-box"> <div class="padding"> <div id="element-box" class="login"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <h1>Administrative Zone</h1>
Online Booking System for Camp Holiday Resort and Recreation Area
303
</div> </div> </div> <div class="m"> <form action="" method="post" name="login" id="form-login" style="clear: both;"> <p id="form-login-username"> <label for="modlgn_username">Username</label> <input name="username" id="modlgn_username" type="text" class="inputbox" size="15" /> </p>
<p id="form-login-password"> <label for="modlgn_passwd">Password</label> <input name="password" id="modlgn_passwd" type="password" class="inputbox" size="15" /> </p> <div class="button_holder"> <div class="button1"> <div class="next"> <a onclick="login.submit();">Login</a> </div> </div> </div> <p id="form-login-lang" style="clear: both;"> </p> <p align="center"> <?php if ($_POST["username"]!="" && $_POST["password"]!=""){
Online Booking System for Camp Holiday Resort and Recreation Area
304
include("connection/connection.php");
$sql="SELECT * FROM tbl_useraccount WHERE username='$Uname' AND password='$Pword'"; $rs = mysql_query($sql) or die("Error! Login...");
if($row = mysql_fetch_object($rs)){ $_SESSION['name'] = $row->firstName; if($row->accessLevel == "1"){$_SESSION['login'] = 1;} if($row->accessLevel == "2"){$_SESSION['login'] = 2;} if($row->accessLevel == "3"){$_SESSION['login'] = 3;} echo "<script language='javascript'> location.href='domain.php?rel=Home' </script>"; }else{ echo "<b><font color='red' size='2'>Invalid Username and Password.</font></b>"; } } ?> </p> <div class="clr"></div> <input name="submit" type="submit" style="border: 0; padding: 0; margin: 0; width: 0px; height: 0px;" value="Login" /> </form> <div class="clr"></div>
Online Booking System for Camp Holiday Resort and Recreation Area
305
</div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
<p>Use a valid username and password to gain access to the Administrator Back-end.</p> <p> <a href="../index.php">Return to site Home Page</a> </p> <div id="lock"></div> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div>
<noscript> Warning! JavaScript must be enabled for proper operation of the Administrator back-end. </noscript> <div class="clr"></div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
306
include("connection/connection.php");
$ref = $_GET['rel'];
$ACCEPT_FILE = array();
Online Booking System for Camp Holiday Resort and Recreation Area
307
session_start();
include("connection/connection.php");
$ref = $_GET['ref'];
$server=mysql_connect ( $dbhost, $dbuser, $dbpass)or die("<h1>Server is currently unavailable</h1>"); $conn=mysql_select_db($dbname) or die(mysql_error()); ?>
Online Booking System for Camp Holiday Resort and Recreation Area
308
//submit reserveation if($_GET["rel"] == 'submitguest') //when proceed is clicked { //print_r($_SESSION); //insert guest inserttodb("tbl_guest","(firstName,lastName,middleInitial,Address,Email,contactNo,isActive) VALUES ('".$_SESSION['fname']."','".$_SESSION['lname']."','".$_SESSION["mi"]."','". $_SESSION['add']."','".$_SESSION['eadd']."','".$_SESSION["connum"] ."','Yes')"); //get last guest id $SMaxGuestId = " SELECT MAX(guest_id) FROM tbl_guest "; $result = mysql_query($SMaxGuestId); $datagues = mysql_fetch_array($result); $guest_id = $datagues[0]; //insert db in loop $i = 0;
Online Booking System for Camp Holiday Resort and Recreation Area
309
$enddate2 = $enddate2[2]."-".$enddate2[0]."-".$enddate2[1];
$sql = "SELECT * FROM tbl_reservation LEFT JOIN (tbl_room,tbl_roomtype) ON (tbl_room.roomNumber = tbl_reservation.roomNumber AND tbl_room.roomType_id= tbl_roomtype.roomType_id) WHERE tbl_reservation.Arrival >= '".$startdate2."' AND tbl_reservation.Departure <= '".$enddate2."' AND tbl_room.roomType_id = '".$value."' ORDER BY tbl_room.roomNumber ASC"; //query un available rooms (filtered with date and roomtype id) $result = mysql_query($sql); $numrow = mysql_num_rows($result);
if($numrow != 0) //if not all the rooms are available { while($row = mysql_fetch_array($result)) //concunt the statement in the next query { $text .= "AND tbl_room.roomNumber != '".$row['roomNumber']."' "; }
$sql2 = "SELECT tbl_roomtype . * , tbl_room . * FROM tbl_roomtype, tbl_room WHERE tbl_roomtype.roomType_id = tbl_room.roomType_id ".$text." AND tbl_roomtype.roomType_id = '".$value."'"; $result2 = mysql_query($sql2); while($row2 = mysql_fetch_array($result2)) { $roomnum = $row2['roomNumber']; //query all the available rooms
Online Booking System for Camp Holiday Resort and Recreation Area
310
$roomnumarray[] = $roomnum;
foreach($roomnumarray as $valId2) { echo $sql = "SELECT * from tbl_roomtype LEFT JOIN tbl_room ON (tbl_room.roomType_id= tbl_roomtype.roomType_id) WHERE tbl_room.roomNumber = $valId2"; //query all the available rooms $result = mysql_query($sql); $row = mysql_fetch_array($result);
inserttodb("tbl_reservation","(guest_id,roomNumber,roomName, Arrival,Departure,numAdults,numChildren,dateReservation,reservationType,isReserved,Status) VALUES('$guest_id', '".$valId2."', '".$row['roomName']."', '$startdate2', '$enddate2', '".$_SESSION['numguest']."', '".$_SESSION['numkids']."', DATE(NOW()), 'On-line', 'Yes', 'Pending') "); } $i++;
Online Booking System for Camp Holiday Resort and Recreation Area
311
$sql2 = "SELECT tbl_roomtype . * , tbl_room . * FROM tbl_roomtype, tbl_room WHERE tbl_roomtype.roomType_id = tbl_room.roomType_id AND tbl_roomtype.roomType_id = '".$value."'"; $result2 = mysql_query($sql2); //query all the available rooms
foreach($roomnumarray as $valId2) { $sql = "SELECT * from tbl_roomtype LEFT JOIN tbl_room ON (tbl_room.roomType_id= tbl_roomtype.roomType_id) WHERE tbl_room.roomNumber = $valId2"; //query all the available rooms $result = mysql_query($sql); $row = mysql_fetch_array($result);
Online Booking System for Camp Holiday Resort and Recreation Area
312
inserttodb("tbl_reservation","(guest_id,roomNumber,roomName, Arrival,Departure,numAdults,numChildren,dateReservation,reservationType,isReserved,Status) VALUES('$guest_id', '".$valId2."', '".$row['roomName']."', '$startdate2', '$enddate2', '".$_SESSION['numguest']."', '".$_SESSION['numkids']."', DATE(NOW()), 'On-line', 'Yes', 'Pending') "); } $i++; } } echo "<meta content='0;index.php' http-equiv='refresh' />"; /*inserttodb("tbl_guest","(firstName,lastName,middleInitial,Address,Email,contactNo,isActive) VALUES ('".$_SESSION['fname']."','".$_SESSION['lname']."','".$_SESSION["mi"]."','". $_SESSION['add']."','".$_SESSION['eadd']."','".$_SESSION["connum"] ."','Yes')"); */ //print_r($_SESSION); } if($_GET['rel'] == 'cancel') { echo $sql = "SELECT * FROM tbl_reservation LEFT JOIN (tbl_guest) ON (tbl_reservation.guest_id = tbl_guest.guest_id) where tbl_reservation.reservation_id = '".$_GET['id']."'"; $result = mysql_query($sql); while($row = mysql_fetch_array($result)){
Online Booking System for Camp Holiday Resort and Recreation Area
313
$message = "I want to cancel my reservation with reservation id '".$row['reservation_id'].". thank you.'"; $subject = $row['lastName']." ".$row['firstName']." ".$row['middleInitial']." Request Cancelation."; mail("postmaster@localhost", "Subject: $subject", $message, "From: .'".$row['Email']."'." ); echo "<script>alert('We will call you for virification for this process. thank you!')</script>"; echo "<meta content='0;user.php?login=1&default=1' http-equiv='refresh' />"; } } ?>
<div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar.php"); ?> <div id="bodycontent"> <h2 class="postheader" style="margin:50px;"> Bridal Packages </h2> <center><img src="img/packages-wedding.jpg" width="400" height="300" /></center> <div style="padding:50px;"> <ul> <li> Php 42,000.00 net - Buffet Lunch or Dinner. Packages for 100 persons. </li> <br /> <li> FACILITIES TO BE PROVIDED:<br /><br /> <div align="center"> <table>
Online Booking System for Camp Holiday Resort and Recreation Area
314
<tr> <td>-</td> <td>Backdrop</td> </tr> <tr> <td>-</td> <td>Overnight Room Accommodation</td> </tr> <tr> <td>-</td> <td>Wedding GuestBook</td> </tr> <tr> <td>-</td> <td>Floral Arrangement for the Guest Tables</td> </tr> <tr> <td>-</td> <td>Place Cards for the Presidential Table</td> </tr> <tr> <td>-</td> <td>Decorated wedding bell with candies and coins</td> </tr> <tr> <td>-</td> <td>Imported Balloons</td> </tr>
Online Booking System for Camp Holiday Resort and Recreation Area
315
<tr> <td>-</td> <td>Sparkling wine for the ceremonial toast</td> </tr> <tr> <td>-</td> <td>Floral centerpiece for buffet table</td> </tr> </table> </div> </li> </ul> </div> </div> </div> </div>
<div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar.php"); ?> <!--CONTENTBODY--> <div id="bodycontent"> <h2 class="postheader" style="margin:50px;"> Cabin Rooms </h2> <center><img src="img/Facilities/25 - cabinroom.jpg" width="400" height="300" /></center>
Online Booking System for Camp Holiday Resort and Recreation Area
316
<div style="padding:50px;"> <ul> <li>Available in Double Bed.</li> <li>Free welcome drink for two (2) at the Restaurant.</li> <li>Free use of Swimming Pool.</li> <li>Free accommodation for children 8 yrs. old & below if sharing with parents.</li> <li>Maximum of four (4) occupants, extra bed at Php 300 each.</li> <li>Free 24/7 Internet access at the Lobby.</li> <li>Check out time is at 12:00 noon.</li> <li>Rates include government tax & service charge.</li> <li>Php 1800.00 per night.</li> </ul> </div> </div> <!--/CONTENTBODY--> </div> </div>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="favicon.ico" /> <link rel="stylesheet" type="text/css" href="css/jquery.panorama.css" media="screen" /> <script type="text/javascript" src="js/jquery-1.4.2.js"></script>
Online Booking System for Camp Holiday Resort and Recreation Area
317
<script type="text/javascript" src="js/jquery.panorama.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("img.advancedpanorama").panorama({ auto_start: 0, start_position: 1527 }); }); </script> <script type="text/javascript" src="js/cvi_text_lib.js"></script> <script type="text/javascript" src="js/jquery.advanced-panorama.js"></script> <script type="text/javascript" src="js/jquery.flipv.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('.thickbox').fancybox(); }); </script>
<style type="text/css"> body { /*background: #595959;*/ text-align: center; } h1 { color: white; margin-bottom: 2em; font-family: Verdana; font-weight: normal;
Online Booking System for Camp Holiday Resort and Recreation Area
318
font-size: 25px; } #page { text-align: center; color: white; } #page a { color: white; } #page .panorama-viewport { border: 20px solid #414141; margin-left: auto; margin-right: auto; } #page p { margin-bottom: 1em; } </style> <div id="page"> <img src="img/cafeteria.png" class="advancedpanorama" width="4500" height="375" usemap="testmap" alt="Cafeteria" /> <map id="testmap" name="testmap"> <area shape="rect" coords="2146,152,2215,243" href="panoramic.php" class="thickbox" alt="This way to Beach Shore" /> <area shape="rect" coords="641,192,712,293" href="out.php" class="thickbox" alt="Move here" /> <area shape="rect" coords="3680,140,3747,250" href="pool.php" class="thickbox" alt="This way to Swimming Pool" /> </map> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
319
<form action="" method="post"> <div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar.php"); ?> <!--CONTENTBODY--> <div id="bodycontent"> <div class="layout-cell content"> <div class="post"> <div class="post-body"> <div class="post-inner article"> <h2 class="postheader">Contact Us</h2> <blockquote> <p> <B>Any comments, ideas and/or suggestions - all are welcomed. </B><br /> Please take the time to fill out our short form below. Let us know your ideas to bring even more encouragement and hope to our Resort. </p>
Online Booking System for Camp Holiday Resort and Recreation Area
320
</blockquote> <table class="table1"> <tr valign="top"> <td class="menu_title1" width="48%"> <div align="left"> <span class="testimonialsBOLD">Name</span>:<br> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> <input name="name" id="name" class="textfiled" size="30" maxlength="30"> </font> </div> </td> </tr> <tr valign="top"> <td class="menu_title1"> <div align="left"><span class="testimonialsBOLD">Email Address</span>:<br> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> <input name="email" id="email" class="textfiled" size="30"> </font> </div> </td> </tr> <tr valign="top"> <td colspan="2" class="menu_title1"> <div align="left"><span class="testimonialsBOLD">Message: </span><br> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> <textarea name="msg" id="msg" cols="50" rows="10" class="textfiled"></textarea> </font> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
321
</td> </tr> <tr valign="top"> <td colspan="2" class="menu_title1"> <div align="left"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> <input name="Submit" class="buttons" value="Send" type="submit"> </font> </div> </td> </tr> </table>
<?php function spamcheck($field){ // // filter_var() sanitizes the e-mail address using FILTER_SANITIZE_EMAIL
if (isset($_REQUEST['email'])){
Online Booking System for Camp Holiday Resort and Recreation Area
322
// //
$email = $_REQUEST['email'] ; $subject = $_REQUEST['name'] ; $message = $_REQUEST['msg'] ; mail("genrique72928@gmail.com", "Subject: $name", $message, "From: $email" ); } } // // // // // ?> </div> </div> </div> </div> </div> </div> </div> </form> <?php include("footer.php"); ?> $to = "genrique72928@gmail.com"; $subject = $_POST['name']; $txt = $_POST['msg']; $headers = $_POST['email']; mail($to,$subject,$txt,$headers);
Online Booking System for Camp Holiday Resort and Recreation Area
323
Online Booking System for Camp Holiday Resort and Recreation Area
324
<td>Overnight Room Accommodation</td> </tr> <tr> <td>-</td> <td>18 candles</td> </tr> <tr> <td>-</td> <td>18 Roses</td> </tr> <tr> <td>-</td> <td>Mother Candle</td> </tr> <tr> <td>-</td> <td>Balloons</td> </tr> <tr> <td>-</td> <td>Four Pillars Floral Arrangement</td> </tr> <tr> <td>-</td> <td>Floral Arrangement for the Guest Tables</td> </tr> <tr> <td>-</td>
Online Booking System for Camp Holiday Resort and Recreation Area
325
<td>Covered Cake Table</td> </tr> </table> </div> </li> </ul> </div> </div> </div> </div> <?php include("footer.php"); ?>
<script type="text/javascript" src="lightbox/js/jquery.js"></script> <script type="text/javascript" src="lightbox/js/jquery.lightbox-0.5.js"></script> <link rel="stylesheet" type="text/css" href="lightbox/css/jquery.lightbox-0.5.css" media="screen" /> <form action="" method="post"> <div class="content-layout"> <div class="content-layout-row">
<?php include("sidebar.php"); ?> <div id="bodycontent"> <div class="layout-cell content"> <div class="post"> <div class="post-body"> <div class="post-inner article"> <h2 class="postheader"> Facilities </h2>
Online Booking System for Camp Holiday Resort and Recreation Area
326
<div class="postcontent">
<blockquote> <p> Whether youre staying at the resort for business or for pleasure, Camp Holiday Resort and Recreational Area has the facilities, amenities, and services designed to fit all your needs. Its warm, efficient, and friendly staff are also available cater to your requests. </p> </blockquote> <br /> <?php include("connection/connection.php");
to
SELECT tbl_amenities
$result = mysql_query($sqlString); while($row = mysql_fetch_array($result)){ ?> <table class="table"> <tr> <td colspan="2"> <h4 class="postheader"><?php echo $row['amenitiesName'];?></h4> <hr style=" margin-left: 10px; width: 630px;"/> </td> </tr> <tr> <td>
Online Booking System for Camp Holiday Resort and Recreation Area
327
<a href="admin/<?php echo $row['image'];?>" rel="lightbox" title="<?php echo $row['amenitiesName'];?>"> <img src="admin/<?php echo $row['file_thumb']; ?>" align="left" /> </a> </td> <td> <p style="padding-left: 20px;"> <?php echo $row['amenitiesDesc'];?> </p> </td> </tr> </table> <?php } ?> </div> </div> </div> </div> </div> </div> </div> </div>
</form> <script type="text/javascript"> $(function() { $('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel }); </script>
Online Booking System for Camp Holiday Resort and Recreation Area
328
Online Booking System for Camp Holiday Resort and Recreation Area
329
<script type="text/javascript">
var fname = document.getElementById('firstname').value; var lname = document.getElementById('lastname').value; var mi = document.getElementById('middleinitial').value; var add = document.getElementById('address').value; var eadd = document.getElementById('eadd').value; var nat = document.getElementById('nationality').value; var passno = document.getElementById('passportno').value; var com = document.getElementById('company').value; var pi = document.getElementById('placeissued').value; var connum = document.getElementById('connum').value;
} });
Online Booking System for Camp Holiday Resort and Recreation Area
330
$("#orderform").validate({ rules: { firstname: "required", lastname: "required", username: { required: true, minlength: 2 }, password: { required: true, minlength: 5 }, confirm_password: { required: true, minlength: 5, equalTo: "#password" }, email: { required: true, email: true }, topic: { required: "#newsletter:checked", minlength: 2 }, agree: "required" }, messages: {
Online Booking System for Camp Holiday Resort and Recreation Area
331
firstname: "Please enter your firstname", lastname: "Please enter your lastname", username: { required: "Please enter a username", minlength: "Your username must consist of at least 2 characters" }, password: { required: "Please provide a password", minlength: "Your password must be at least 5 characters long" }, confirm_password: { required: "Please provide a password", minlength: "Your password must be at least 5 characters long", equalTo: "Please enter the same password as above" }, email: "Please enter a valid email address", agree: "Please accept our policy" } });
// propose username by combining first- and lastname $("#username").focus(function() { var firstname = $("#firstname").val(); var lastname = $("#lastname").val(); if(firstname && lastname && !this.value) { this.value = firstname + "." + lastname; } });
Online Booking System for Camp Holiday Resort and Recreation Area
332
//code to hide topic selection, disable for demo var newsletter = $("#newsletter"); // newsletter topics are optional, hide at first var inital = newsletter.is(":checked"); var topics = $("#newsletter_topics")[inital ? "removeClass" : "addClass"]("gray"); var topicInputs = topics.find("input").attr("disabled", !inital); // show when newsletter is checked newsletter.click(function() { topics[this.checked ? "removeClass" : "addClass"]("gray"); topicInputs.attr("disabled", !this.checked); }); }); </script>
</body> </html>
session_start();
include("admin/connection/connection.php"); date_default_timezone_set('Asia/Taipei'); //all function will be added here usage postval("buttonname","textboxname1,textboxname1") function dateDiff($dformat, $endDate, $beginDate) {
Online Booking System for Camp Holiday Resort and Recreation Area
333
$date_parts1=explode($dformat, $beginDate); $date_parts2=explode($dformat, $endDate); $start_date=gregoriantojd($date_parts1[0], $date_parts1[1], $date_parts1[2]); $end_date=gregoriantojd($date_parts2[0], $date_parts2[1], $date_parts2[2]); return $end_date - $start_date; }
function inserttodb($tablename, $parameter) { $sql = "INSERT INTO ".$tablename." ".$parameter." "; mysql_query($sql); } function redirectto($time,$url) { echo "<meta http-equiv='refresh' content='".$time.";url=".$url."'>"; }
function loginguest($btnname) {
if(isset($_POST[$btnname])) {
$sql="SELECT * FROM tbl_guest WHERE username='$Uname' AND password='$Pword'"; $rs = mysql_query($sql) or die("Error! Login...");
Online Booking System for Camp Holiday Resort and Recreation Area
334
if($row = mysql_fetch_object($rs)){ $_SESSION['name'] = $row->firstName; $_SESSION['guestid'] = $row->guest_id; $_SESSION['login'] = 1; echo "<script language='javascript'> location.href='user.php?login=1&default=1' </script>"; }else{ echo "<b><font color='red' size='2'>Invalid Username and Password.</font></b>"; } } } ?>
Online Booking System for Camp Holiday Resort and Recreation Area
335
<td><div align="center" style="font-weight:bold">====></div></td> <td><div align="center" style="color:#990000; font-weight:bold">Reservation<br /> Requirements</div></td> <td><div align="center" style="font-weight:bold">====></div></td> <td><div align="center" class="style1">Reservation<br /> Confirmation</div></td> <td><div align="center" style="font-weight:bold">====></div></td> <td><div align="center">Reservation<br /> Confirmed</div></td> </tr> </table> <?php echo "<br><div align='center' id='header'>Reservation Details</div><br>" ; ?> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-left:15px">
<tr> <td width="34%" valign="top">Preffered Room Type(s):</td> <td width="40%"><?php $check = explode(",",$_GET["numval"]); $numroom = explode(",",$_GET["numroom"]); $_SESSION['check'] = $check; $_SESSION['numroom'] = $numroom;
$_SESSION['selroomid'];
$sql = "SELECT * FROM tbl_roomtype,tbl_room WHERE tbl_roomtype.roomType_id = tbl_room.roomType_id AND tbl_roomtype.roomType_id = $value group by tbl_room.roomType_id";
Online Booking System for Camp Holiday Resort and Recreation Area
336
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)) { echo " <div style=''>".$row['roomName']."</div><div style='font-size:11px;'><img height='50px' width='50px' src='admin/".$row['image']."' /></div><div id='rate'>Rate: ".$row['Rate']."</div>"; } } foreach ($check as $value) {
$sql = "SELECT * FROM tbl_roomtype,tbl_room WHERE tbl_roomtype.roomType_id = tbl_room.roomType_id AND tbl_roomtype.roomType_id = $value group by tbl_room.roomType_id"; $result = mysql_query($sql);
} foreach ($numroom as $value2) { $rate1 = $rate * $value2; } $rate2 = $rate2 + $rate1; } ?>
Online Booking System for Camp Holiday Resort and Recreation Area
337
foreach ($numroom as $value2) { echo "<div id='divnoroom'><br>No. of rooms: ".$value2."</div>"; } ?> </td> </tr> <tr> <td width="34%">Arrival Date:</td> <td colspan="2"><?php echo $_SESSION['sdate']; ?></td> </tr> <tr> <td><p>Departure Date:</p></td> <td colspan="2"><?php echo $_SESSION['edate']; ?></td> </tr> <tr> <td>Number of Night(s):</td> <td colspan="2"><?php echo $_SESSION['dateDiff']; ?></td> </tr> <tr> <td>Number of Adult(s):</td> <td colspan="2"><?php echo $_SESSION['numguest']; ?></td> </tr> <tr> <td>Number of Children:</td> <td colspan="2"><?php echo $_SESSION['numkids']; ?></td> </tr> <tr> <td>Total Payment:</td>
Online Booking System for Camp Holiday Resort and Recreation Area
338
<?php $total = $rate2 * $_SESSION['dateDiff']; ?> <td colspan="2">P<?php echo $_SESSION['total'] = $total; ?></td> </tr> </table> <div align="center" id="header">Guest Information</div>
<div class="content-layout-row"> <div class="layout-cell"> <div class="overview-table-inner"> <blockquote> <p> (<b style="color:#FF0000">*</b>) = Required Field! </p> </blockquote> </div> </div><!-- end cell --> </div> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-left:15px"> <tr> <td width="206"></td> </tr> <tr> <td width="206"><label for="firstname">First name:</label></td> <td width="391" style="color:#FF0000">
Online Booking System for Camp Holiday Resort and Recreation Area
339
<input type="text" name="firstname" id="firstname" class="required" > *</td> <td width="304"> </td> </tr> <tr> <td><label for="lastname">Last name:</label></td> <td style="color:#FF0000"> <input type="text" name="lastname" id="lastname" class="required"> *</td> <td> </td> </tr> <tr> <td><label for="middleinitial">M.I</label></td> <td style="color:#FF0000"><input type="text" name="middleinitial" id="middleinitial" class="required" maxlength="1"> *</td> <td> </td> </tr> <tr> <td><label for="address">Address:</label></td> <td style="color:#FF0000"><input type="text" name="address" id="address" class="required"> *</td> <td> </td> </tr> <tr> <td><label for="eadd">Email Address:</label></td> <td style="color:#FF0000"><input type="text" name="eadd" id="eadd" class="required email"> *</td> <td> </td> </tr> <tr> <td><label for="nationality">Nationality:</label></td> <td>
Online Booking System for Camp Holiday Resort and Recreation Area
340
<input type="text" name="nationality" id="nationality"></td> <td> </td> </tr> <tr> <td><label for="passportno">Passport No:</label></td> <td> <input type="text" name="passportno" id="passportno"></td> <td> </td> </tr> <tr> <td><label for="company">Company:</label></td> <td> <input type="text" name="company" id="company"></td> <td> </td> </tr> <tr> <td><label for="placeissued">Place Issued:</label></td> <td> <input type="text" name="placeissued" id="placeissued"></td> <td> </td> </tr> <tr> <td><label for="telno">Contact. No.:</label></td> <td style="color:#FF0000"><input type="text" name="connum" id="connum" class="required"> *</td> <td> </td> </tr>
<tr>
Online Booking System for Camp Holiday Resort and Recreation Area
341
<td colspan="3"> </td> </tr> <tr> <td> </td> <td align="center"></td> <td align="center"></td> </tr> </table> <div style="margin-left:300px;"><input type="submit" name="submitguess" id="submitguess" value="Submit" onClick="javascript:get_guess_val();"><input type="button" name="cancel" id="cancel" value="Cancel" onClick="tb_remove()"></div>
Online Booking System for Camp Holiday Resort and Recreation Area
342
<td><div align="center" style="color:#990000; font-weight:bold">Reservation<br /> Confirmation</div></td> <td><div align="center" style="font-weight:bold">====></div></td> <td><div align="center">Reservation<br /> Confirmed</div></td> </tr> </table> <?php echo "<br><div align='center' id='header'>Reservation Details</div><br>" ; ?>
<tr> <td width="34%" valign="top">Preffered Room Type(s):</td> <td width="40%"><?php $check = explode(",",$_GET["numval"]); $numroom = explode(",",$_GET["numroom"]);
foreach ($check as $value) { $sql = "SELECT * FROM tbl_roomtype,tbl_room WHERE tbl_roomtype.roomType_id = tbl_room.roomType_id AND tbl_roomtype.roomType_id = $value group by tbl_room.roomType_id"; $result = mysql_query($sql);
while($row = mysql_fetch_array($result)) {
Online Booking System for Camp Holiday Resort and Recreation Area
343
echo " <div style=''>".$row['roomName']."</div><div style='font-size:11px;'><img height='50px' width='50px' src='admin/".$row['image']."' /></div><div id='rate'>Rate".$row['Rate']."</div>"; } }
?></td> <td width="26%" valign="middle"><?php foreach ($numroom as $value2) { echo "<div id='divnoroom'><br>No. of rooms: ".$value2."</div>"; } ?></td> </tr> <tr> <td width="34%">Arrival Date:</td> <td colspan="2"><?php echo $_SESSION['sdate']; ?></td> </tr> <tr> <td><p>Departure Date:</p></td> <td colspan="2"><?php echo $_SESSION['edate']; ?></td> </tr> <tr> <td>Number of Night(s):</td> <td colspan="2"><?php echo $_SESSION['dateDiff']; ?></td> </tr> <tr> <td>Number of Adult(s):</td> <td colspan="2"><?php echo $_SESSION['numguest']; ?></td>
Online Booking System for Camp Holiday Resort and Recreation Area
344
</tr> <tr> <td>Number of Children:</td> <td colspan="2"><?php echo $_SESSION['numkids']; ?></td> </tr> <tr> <td>Total Payment:</td> <td colspan="2">P<?php echo $_SESSION['total'];?></td> </tr> <tr> <td> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-left:15px"> <tr> <td width="34%">Firstname:</td> <td><?php echo $_GET['fname']; ?></td> </tr> <tr> <td width="34%">Lastname:</td> <td><?php echo $_GET['lname']; ?></td> </tr> <tr> <td width="34%">MI:</td> <td><?php echo $_GET['mi']; ?></td> </tr> <tr> <td width="34%">Address:</td>
Online Booking System for Camp Holiday Resort and Recreation Area
345
<td><?php echo $_GET['add']; ?></td> </tr> <tr> <td width="34%">Email Address:</td> <td><?php echo $_GET['eadd']; ?></td> </tr> <tr> <td width="34%">Cell No:</td> <td><?php echo $_GET['connum']; ?></td> </tr> </table>
<?php
//print_r($arrayrow); //print_r($_SESSION); $_SESSION["fname"] = $_GET['fname']; $_SESSION["lname"] = $_GET['lname']; $_SESSION["mi"] = $_GET['mi']; $_SESSION["add"] = $_GET['add']; $_SESSION["eadd"] = $_GET['eadd']; $_SESSION["ceadd"] = $_GET['fname']; /* $_SESSION["nat"] = $_GET['nat'];
Online Booking System for Camp Holiday Resort and Recreation Area
346
<br /> <br /> <br /> <table border="1" width=100%><tr><td><div align=center><b>Terms and Conditions</b></div>
<ul><li> All prices are quoted above are inclusive of goverment tax.</li>
<li>Deposit-A 50% deposit will be required upon signing of contract fifteen(15)days prior to the event.</li> Reservation will not be confirmed unless the contract is signed by both parties and required deposit is made. <li>Adjustments if any; either by the client, will have to be made at least seven(7) days before the scheduled reservation .</li>
<li>Cancellation - Any cancellation of reservation should be made atlest fifteen(15) days before the schedule reservation. if cancellation is made after the specified time, 50% of the deposit will be portified to cover for the incidental expenses incurred.</li>
<li>No Show - if the reservation is cancelled without any notice given, the resort will have the right to charge the client the total cost of the reservation made.</li>
<li>Full Payment - Full payment of account should be made immediately upon completion of services after the function; in cash.</li>
Online Booking System for Camp Holiday Resort and Recreation Area
347
<li>There is a certain limit on the liabilities of the supplier, in case of any problem.</li>
<li>Any additional expenses incurred during the function will be on a pax account basis</li>
</ul></td>
</tr></table> <br /> </form> <form action="https://www.sandbox.paypal.com/us/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="upload" value="1"> <input type="hidden" name="business" value="campho_1297986459_biz@gmail.com"> value="Total Room Transaction">
<input type="hidden" name="amount_1" value="<?php echo $_SESSION['total'];?>"> <input type='hidden' name='handling' value='0'> <input type='hidden' name='return' value='http://localhost/chrnew/validator.php?status=Sucess!'> <input type='hidden' name='cancel_return' value='http://localhost/chrnew/validator.php?status=cancel'>
<input type='hidden' name='currency_code' value='PHP'> <input type="hidden" name="cpp_ headerback_ color" value="#000000" /> <div align=center> <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"></div> <div align=center><img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></div> </form>
Online Booking System for Camp Holiday Resort and Recreation Area
348
?>
<link rel="stylesheet" type="text/css" media="screen" href="datepicker/datePicker.css"> <link rel="stylesheet" type="text/css" media="screen" href="datepicker/demo.css"> <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" /> <link rel="stylesheet" href="css/style.ie6.css" type="text/css" media="screen" /> <link rel="stylesheet" href="css/style.ie7.css" type="text/css" media="screen" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Camp Holiday Resort and Recreation Area</title>
Online Booking System for Camp Holiday Resort and Recreation Area
349
<script type="text/javascript" src="datepicker/firebug.js"></script> <script type="text/javascript" src="datepicker/jquery.min.js"></script> <script type="text/javascript" src="datepicker/date.js"></script> <script type="text/javascript" src="datepicker/jquery.datePicker.js"></script> <script language="javascript">AC_FL_RunContent = 0;</script> <script src="js/AC_RunActiveContent.js" language="javascript"></script>
<script type="text/javascript" charset="utf-8"> $(function() { $('.date-pick').datePicker() $('#start-date').bind( 'dpClosed', function(e, selectedDates) { var d = selectedDates[0]; if (d) { d = new Date(d); $('#end-date').dpSetStartDate(d.addDays(1).asString()); } } ); $('#end-date').bind( 'dpClosed', function(e, selectedDates) { var d = selectedDates[0]; if (d) {
Online Booking System for Camp Holiday Resort and Recreation Area
350
d = new Date(d); $('#start-date').dpSetEndDate(d.addDays(-1).asString()); } } ); }); </script> <script type="text/javascript"> //Load Ajax page static
function ajaxpage(url,containerid){ //get value from an textbox id var startdatejs = document.getElementById('start-date').value; var enddatejs = document.getElementById('end-date').value; var numguestjs = document.getElementById('no_guest').value; var numkidsjs = document.getElementById('no_kids').value; if(startdatejs == "" || enddatejs == "" || numguestjs == "" || numkidsjs == "") { alert("Please fill up Arrival/Departure date."); } else {
Online Booking System for Camp Holiday Resort and Recreation Area
351
var page_request = false if (window.XMLHttpRequest) // if Mozilla, Safari etc page_request = new XMLHttpRequest() else if (window.ActiveXObject){ // if IE try { page_request = new ActiveXObject("Msxml2.XMLHTTP") } catch (e){ try{ page_request = new ActiveXObject("Microsoft.XMLHTTP") } catch (e){} } } else return false page_request.onreadystatechange=function(){ loadpage(page_request, containerid) } //page loader page_request.open('GET', url+'? sdate='+startdatejs+'&edate='+enddatejs+'&numguest='+numguestjs+'&numkids='+numkidsjs, true) page_request.send(null) }
Online Booking System for Camp Holiday Resort and Recreation Area
352
function loadobjs(){ if (!document.getElementById) return for (i=0; i<arguments.length; i++){ var file=arguments[i] var fileref="" if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding if (file.indexOf(".js")!=-1){ //If object is a js file fileref=document.createElement('script') fileref.setAttribute("type","text/javascript"); fileref.setAttribute("src", file); } else if (file.indexOf(".css")!=-1){ //If object is a css file fileref=document.createElement("link") fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", file); } } if (fileref!=""){ document.getElementsByTagName("head").item(0).appendChild(fileref) loadedobjects+=file+" " //Remember this object as being already added to page } } }
Online Booking System for Camp Holiday Resort and Recreation Area
353
function ajaxpagedynamic(url,containerid){ var page_request = false if (window.XMLHttpRequest) // if Mozilla, Safari etc page_request = new XMLHttpRequest() else if (window.ActiveXObject){ // if IE try { page_request = new ActiveXObject("Msxml2.XMLHTTP") } catch (e){ try{ page_request = new ActiveXObject("Microsoft.XMLHTTP") } catch (e){} } } else return false page_request.onreadystatechange=function(){ loadpage(page_request, containerid) }
Online Booking System for Camp Holiday Resort and Recreation Area
354
//page loader page_request.open('GET', url, true) page_request.send(null) } function loadpage(page_request, containerid){ if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)) document.getElementById(containerid).innerHTML=page_request.responseText } function loadobjs(){ if (!document.getElementById) return for (i=0; i<arguments.length; i++){ var file=arguments[i] var fileref="" if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding if (file.indexOf(".js")!=-1){ //If object is a js file fileref=document.createElement('script') fileref.setAttribute("type","text/javascript"); fileref.setAttribute("src", file); } else if (file.indexOf(".css")!=-1){ //If object is a css file fileref=document.createElement("link") fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", file); } }
Online Booking System for Camp Holiday Resort and Recreation Area
355
if (fileref!=""){ document.getElementsByTagName("head").item(0).appendChild(fileref) loadedobjects+=file+" " //Remember this object as being already added to page } } } </script> <script type="text/javascript"> var user = document.getElementById('user').value; if(user != 0) { alert(user); ajaxpagedynamic('guestprev.php?numval='+valid+'&numroom='+valtext, 'bodycontent'); } else { ajaxpagedynamic('guestinfo.php?numval='+valid+'&numroom='+valtext, 'bodycontent'); } } function incre(name,name2) { var val = parseInt(document.getElementById(name).value); var roomlimit = parseInt(document.getElementById(name2).value); if(roomlimit == val) { alert('Limit Exceed'); } else
Online Booking System for Camp Holiday Resort and Recreation Area
356
{ var val2 = (val + 1); document.getElementById(name).value = val2; } } function dec(name) { var val = parseInt(document.getElementById(name).value); if(val == 0){ alert("Limit to Zero"); } else { var val2 = (val - 1); document.getElementById(name).value = val2; } } function submitguest() { ajaxpagedynamic('action.php?rel=submitguest', 'bodycontent'); alert('Thank you for your Reservation. Looking forward for seeing you!'); window.location = "index.php"; } function userreview() { ajaxpagedynamic('user/review.php?rel=reserve', 'bodycontent'); } </script>
Online Booking System for Camp Holiday Resort and Recreation Area
357
</head> <body> <div id="page-background-simple-gradient"> <div id="page-background-gradient"></div> </div> <div id="main"> <div class="sheet"> <div class="sheet-body"> <div class="header"> <div class="header-jpeg"></div> </div> <!--MENUBAR--> <div class="nav"> <div class="l"></div> <div class="r"></div> <div class="nav-center"> <ul class="menu"> <?php if($_SESSION['guestid'] != ''){ ?> <li><a href="user.php?login=1&default=1" class="active">Home</a></li> <?php }else{ ?> <li><a href="index.php" class="active">Home</a></li> <?php } ?> <li> <a href="#">Rooms</a> <ul> <li><a href="hotelroom.php">Hotel Room</a></li> <li><a href="cabinroom.php">Airconditioned Cabin Room </a></li> </ul>
Online Booking System for Camp Holiday Resort and Recreation Area
358
</li> <li><a href="facilities.php">Facilities</a></li> <li> <a href="#">Packages</a> <ul> <li><a href="bridalpackages.php">Bridal Package </a></li> <li><a href="debutpackages.php">Debut Package </a></li> <li><a href="seminarpackages.php">Live-in Seminar Package </a></li> </ul> </li> <li> <a href="#">Gallery</a> <ul> <li><a href="panoramic.php">Panoramic View </a></li> <li><a href="photogallery.php">Photo Gallery </a></li> </ul> </li> <li><a href="location.php">Location</a></li> <li><a href="contact.php">Contact Us</a></li> </ul> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
359
<h2 class="postheader" style="margin:50px;"> Hotel Rooms </h2> <center><img src="img/Facilities/24 - hotelroom.jpg" width="400" height="300" /></center> <div style="padding:50px;"> <ul> <li>Available in Single or Double Bed.</li> <li>Free use of Swimming Pool.</li> <li>Free accommodation for children 8 yrs. old & below if sharing with parents.</li> <li>Maximum of four (4) occupants, extra bed at Php 300 each.</li> <li>Free 24/7 Internet access at the Lobby.</li> <li>Check out time is at 12:00 noon.</li> <li>Rates include government tax & service charge.</li> <li>Php 1500.00 per night.</li> </ul> </div> </div> </div> </div> <?php include("footer.php"); ?>
Online Booking System for Camp Holiday Resort and Recreation Area
360
<div id="bodycontent"> <div class="cleared"></div> <div class="content-layout overview-table"> <div class="content-layout-row"> <div class="layout-cell"> <div class="overview-table-inner"> <br /> <h2 class="postheader">Welcome to Camp Holiday Resort</h2> <br /><br /><br /><br /> <object width="400" height="300"> <param name="movie" value="swf/main.swf"> <embed src="swf/header.swf" width="400" height="300"> </embed> </object> <p> Camp Holiday Resort & Recreation Area is one of the newer resort complexes on Samal Island. Located directly off the Samal Ferry Wharf, it is situated in as convenient an area as you will find on the island. <br /><br /> The accommodations at Camp Holiday consist of a hotel, private cottages, and open cottages. The hotel rooms and private cottages are fully air-conditioned, with cable television and have clean, modern bathrooms with cold & hot showers. The prices range from: <br /><br /> <table style="margin-left:50px;"> <tr> <td>Day Tour</td>
Online Booking System for Camp Holiday Resort and Recreation Area
361
<td style=" padding-left:10px; padding-right: 10px;">-</td> <td>Php 80.00/person</td> </tr> <tr> <td>Overnight</td> <td style=" padding-left:10px; padding-right: 10px;">-</td> <td>Php 150.00/person</td> </tr> <tr> <td>Hotel Room</td> <td style=" padding-left:10px; padding-right: 10px;">-</td> <td>Php 1,500.00/night</td> </tr> <tr> <td>Cabin Room</td> <td style=" padding-left:10px; padding-right: 10px;">-</td> <td>Php 1,800.00/night</td> </tr> </table> <br /><br /> The rest of the complex includes the lobby, which provides free WiFi, an open dining room/common area, swimming pool and beach front with nipa huts. There is also a convenience store and gas station (PHOENIX) right around the corner from the complex that can provide most of the basic necessities you might need during your stay. </p> <br /><br />
Online Booking System for Camp Holiday Resort and Recreation Area
362
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="http://www.facebook.com/pages/Camp-Holiday-Resort-and-Recreation-Area/152465284809298" width="260" show_faces="true" stream="true" header="false"></fb:like-box> </div> </div><!-- end cell -->
</div><!-- end row --> </div><!-- end table --> </div> </div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
363
include("sidebar.php"); ?> <div id="bodycontent"> <div class="layout-cell content"> <div class="post"> <div class="post-body"> <div class="post-inner article"> <div class="postcontent"> <h2 class="postheader"> Resort Location </h2> <br /> <iframe width="600" height="450" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms? ie=UTF8&hl=en&t=h&source=embed&msa=0&msid=202630926012432903365. 0004897f97b1b2f3b3b72&ll=7.121318,125.674329&spn=0.002129,0.002677&output=emb ed"></iframe><br /><small>View <a href="http://maps.google.com/maps/ms? ie=UTF8&hl=en&t=h&source=embed&msa=0&msid=202630926012432903365. 0004897f97b1b2f3b3b72&ll=7.121318,125.674329&spn=0.002129,0.002677" style="color:#0000FF;text-align:left">Camp Holiday Resort and Recreation Area</a> in a larger map</small> <br /> <p><h4>Camp Holiday Resort and Recreation Area Location</h4> Camp Holiday Beach Resort is, like it's name implies, a camping resort. <br />It's located next the ferry terminal in Babak, Island Garden City of Samal. </p> </div> <div class="cleared"></div> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
364
Online Booking System for Camp Holiday Resort and Recreation Area
365
$(document).ready(function(){ $("img.advancedpanorama").panorama({ auto_start: 0, start_position: 1527 }); }); </script> <script type="text/javascript" src="js/cvi_text_lib.js"></script> <script type="text/javascript" src="js/jquery.advanced-panorama.js"></script> <script type="text/javascript" src="js/jquery.flipv.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('.thickbox').fancybox(); }); </script>
<style type="text/css"> body { /*background: #595959;*/ text-align: center; } h1 { color: white; margin-bottom: 2em; font-family: Verdana; font-weight: normal; font-size: 25px; }
Online Booking System for Camp Holiday Resort and Recreation Area
366
#page { text-align: center; color: white; } #page a { color: white; } #page .panorama-viewport { border: 20px solid #414141; margin-left: auto; margin-right: auto; } #page p { margin-bottom: 1em; } </style> </head> <body> <div id="page"> <img src="img/out.png" class="advancedpanorama" width="4500" height="375" usemap="testmap" alt="Inside Camp Holiday Resort" /> <map id="testmap" name="testmap"> <area shape="rect" coords="1313,156,1378,243" href="cafeteria.php" class="thickbox" alt="Move here" /> <area shape="rect" coords="712,138,778,231" href="panoramic.php" class="thickbox" alt="This way to Beach Shore" /> <area shape="rect" coords="1862,146,1925,249" href="pool.php" class="thickbox" alt="This way to Swimming Pool" /> </map> </div>
Online Booking System for Camp Holiday Resort and Recreation Area
367
<div id="page">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="favicon.ico" /> <link rel="stylesheet" type="text/css" href="css/jquery.panorama.css" media="screen" /> <script type="text/javascript" src="js/jquery-1.4.2.js"></script> <script type="text/javascript" src="js/jquery.panorama.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("img.advancedpanorama").panorama({ auto_start: 0, start_position: 1527 }); }); </script> <script type="text/javascript" src="js/cvi_text_lib.js"></script> <script type="text/javascript" src="js/jquery.advanced-panorama.js"></script> <script type="text/javascript" src="js/jquery.flipv.js"></script>
Online Booking System for Camp Holiday Resort and Recreation Area
368
<style type="text/css"> body { /*background: #595959;*/ text-align: center; } h1 { color: white; margin-bottom: 2em; font-family: Verdana; font-weight: normal; font-size: 25px; } #page { text-align: center; color: white; } #page a { color: white; } #page .panorama-viewport { border: 20px solid #414141; margin-left: auto;
Online Booking System for Camp Holiday Resort and Recreation Area
369
margin-right: auto; } #page p { margin-bottom: 1em; } </style> <form action="" method="post"> <div class="content"> <img src="img/beachArea.png" class="advancedpanorama" width="4500" height="375" usemap="testmap" alt="Beach Shore Area" /> <map id="testmap" name="testmap"> <area shape="rect" coords="2209,56,2404,157" href="cafeteria.php" class="thickbox" alt="This way to Cafeteria" /> <area shape="rect" coords="1246,147,1289,206" href="sugbahanan.php" class="thickbox" alt="This way to Sugbahanan" /> </map> </div> </form> </div> <?php include("footer.php"); ?>
Online Booking System for Camp Holiday Resort and Recreation Area
370
echo '<form method="post" id="checkout" name="checkout" action="'.$submit_url_test.'">'; foreach($_GET as $key=>$val) { echo'<input type="hidden" name="'.$key.'" value="'.$val.'">'; } echo'</form>';
echo' <script type="text/javascript"> function gotoUrl(){ document.checkout.submit(); } window.setTimeout(\'gotoUrl()\',3); </script> connecting to paypal...<br> creating secure connection... '; ?>
Online Booking System for Camp Holiday Resort and Recreation Area
371
<div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar.php"); ?> <div id="bodycontent"> <h2 class="postheader" style="margin:50px;"> Photo Gallery </h2> <div style="padding:50px;"> <table border="0"> <tr> <td> <a href="img/Gallery/5.jpg" rel="lightbox" title="Entrance"> <img src="img/Gallery/5.jpg" width="150" height="113" /> </a> </td> <td> <a href="img/Gallery/2.jpg" rel="lightbox" title="Beach 1"> <img src="img/Gallery/2.jpg" width="150" height="113" /> </a> </td> <td> <a href="img/Gallery/3.jpg" rel="lightbox" title="Cottage Area"> <img src="img/Gallery/3.jpg" width="150" height="113" /> </a> </td> <td> <a href="img/Gallery/4.jpg" rel="lightbox" title="Cabin Room"> <img src="img/Gallery/4.jpg" width="150" height="113" /> </a> </td>
Online Booking System for Camp Holiday Resort and Recreation Area
372
</tr> <tr> <td> <a href="img/Gallery/1.jpg" rel="lightbox" title="Beach 2"> <img src="img/Gallery/1.jpg" width="150" height="113" /> </a> </td> <td> <a href="img/Gallery/6.jpg" rel="lightbox" title="Swimming Pool"> <img src="img/Gallery/6.jpg" width="150" height="113" /> </a> </td> <td> <a href="img/Gallery/7.jpg" rel="lightbox" title="Beach 3"> <img src="img/Gallery/7.jpg" width="150" height="113" /> </a> </td> <td> <a href="img/Gallery/8.jpg" rel="lightbox" title="Tree"> <img src="img/Gallery/8.jpg" width="150" height="113" /> </a> </td> </tr> <tr> <td></td> <td> <a href="img/Gallery/9.jpg" rel="lightbox" title="Restaurant 1"> <img src="img/Gallery/9.jpg" width="150" height="113" />
Online Booking System for Camp Holiday Resort and Recreation Area
373
</a> </td> <td> <a href="img/Gallery/10.jpg" rel="lightbox" title="Restaurant 2"> <img src="img/Gallery/10.jpg" width="150" height="113" /> </a> </td> <td></td> </tr> </table> </div> </div> </div> </div> <script type="text/javascript"> $(function() { $('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel }); </script> <?php include("footer.php"); ?>
Online Booking System for Camp Holiday Resort and Recreation Area
374
<tr> <td><div align="center" class="style1">Check<br /> Availability</div></td> <td> <div align="center" style="font-weight:bold">====></div> </td> <td><div align="center" style="color:#990000; font-weight:bold" >Available<br /> Accommodation</div></td> <td><div align="center" style="font-weight:bold">====></div></td> <td><div align="center">Reservation<br /> Requirements</div></td> <td><div align="center" style="font-weight:bold">====></div></td> <td><div align="center" class="style1">Reservation<br /> Confirmation</div></td> <td><div align="center" style="font-weight:bold">====></div></td> <td><div align="center">Reservation<br /> Confirmed</div></td> </tr> </table> <?php
Online Booking System for Camp Holiday Resort and Recreation Area
375
echo "<br><div align='center' id='header'>Reservation Details</div><br>"; ?> <table width="75%" border="0" cellspacing="0" cellpadding="0" style="margin-left:15px"> <tr> <td width="35%">Arrival Date:</td> <td width="65%"><?php echo $startdate; ?></td> </tr> <tr> <td><p>Departure Date:</p></td> <td><?php echo $enddate; ?></td> </tr> <tr> <td>Number of Night(s):</td> <td><?php echo $dateDiff; ?></td> </tr> <tr> <td>Number of Adults(s):</td> <td><?php echo $numguest; ?></td> </tr> <tr> <td>Number of Children:</td> <td><?php echo $numkids; ?></td> </tr> <tr> <td> </td> </tr> </table> <input name="user" id="user" type="hidden" value="<?php echo $_SESSION['guestid'];?>" />
Online Booking System for Camp Holiday Resort and Recreation Area
376
$sql = "SELECT tbl_roomtype.*,tbl_room.*,tbl_reservation.* FROM tbl_roomtype,tbl_room,tbl_reservation WHERE tbl_roomtype.roomType_id = tbl_room.roomType_id AND tbl_room.roomNumber=tbl_reservation.roomNumber AND tbl_reservation.Arrival >= '".$startdate2."' AND tbl_reservation.Departure <= '".$enddate2."' ORDER BY tbl_room.roomNumber ASC";
$result = mysql_query($sql);
if (!$result) { echo 'Could not run query: ' . mysql_error(); exit; } while($row = mysql_fetch_array($result)) { $text .= "AND tbl_room.room_id != '".$row['room_id']."' "; } $sql2 = "SELECT tbl_roomtype . * , tbl_room . *,count(tbl_room.room_id) FROM tbl_roomtype, tbl_room WHERE tbl_roomtype.roomType_id = tbl_room.roomType_id ".$text." GROUP BY tbl_room.roomType_id";
Online Booking System for Camp Holiday Resort and Recreation Area
377
// } $result2 = mysql_query($sql2); $numrow = mysql_num_rows($result2); $ii=0; if($numrow != 0){ ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="96%"><div align="center" id="header">Room Type</div></td> </tr> <input name="numrow" id="numrow" type="hidden" value="<?php echo $numrow;?>" /> <?php while($row2 = mysql_fetch_array($result2)) {
?> <tr align="center" valign="bottom"> <td><fieldset id="fieldsetpage"><legend><?php echo $row2['roomName'];?></legend> <div id="accomcontent"> <img src="<?php echo 'admin/'.$row2['image'];?>" height="225px" width="300px" align="left" /> <h5>Available Rooms: <?php echo $row2["count(tbl_room.room_id)"];?></h5> <h5>Rate: <?php echo $row2['Rate'];?></h5> <h5>Max Occupant:<?php echo $numguest+$numkids;?></h5>
<div>
Online Booking System for Camp Holiday Resort and Recreation Area
378
<input name="textboxid<?php echo $ii?>" id="textboxid<?php echo $ii?>" type="hidden" value="<?php echo $row2['roomType_id'];?>" /> <input name="textboxroomnum<?php echo $ii?>" id="textboxroomnum<?php echo $ii?>" type="hidden" value="<?php echo $row2["count(tbl_room.room_id)"];?>" /> <input name="textbox<?php echo $ii?>" id="textbox<?php echo $ii?>" type="text" value="0" /> <input name="textbox<?php echo $ii?>" id="textbox<?php echo $ii?>" type="button" onClick="javascript:dec(this.name);" style="width:35px;" value="<<<">|<input type="button" name="textbox<?php echo $ii?>" onClick="javascript:incre(this.name,'textboxroomnum<?php echo $ii;? >');" style="width:35px;" value=">>>"> </div> </div> </fieldset></td> </tr> <?php $ii++; } //session all needed information $_SESSION['sdate'] = $startdate; $_SESSION['edate'] = $enddate; $_SESSION['numguest'] = $numguest; $_SESSION['numkids'] = $numkids; $_SESSION['dateDiff'] = $dateDiff; //$_SESSION['Rate'] = $row2;
?> <tr> <td><p> <span class="button-wrapper"> <span class="l"> </span> <span class="r"> </span>
Online Booking System for Camp Holiday Resort and Recreation Area
379
</span> </p></td> </tr> </table> <?php } else { ?> <div align="center" style="margin-top:100px;">NO ROOMS AVAILABLE IN THIS RANGE OF DATE.</div> <?php } ?>
<div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar.php"); ?> <div id="bodycontent"> <h2 class="postheader" style="margin:50px;"> Live-In Seminar Packages </h2> <center><img src="img/packages-seminar.jpg" width="400" height="300" /></center> <div style="padding:50px;"> <ul>
Online Booking System for Camp Holiday Resort and Recreation Area
380
<li> Php 1,505.00 net/pax - Inclusive of 3 meals and 2 snacks w/ room accommodation <br /> ( TRIPLE SHARING ). ( FOR HOTEL ROOMS APPLIED ) </li> <br /> <li> TOTAL NUMBER OF ROOMS AVAILABLE:<br /><br /> <div align="center"> <table> <tr> <td>Hotel Rooms</td> <td> </td> <td>22</td> </tr> <tr> <td>Air-conditioned Cottages</td> <td> </td> <td>12</td> </tr> <tr> <td></td> <td></td> <td>---</td> </tr> <tr>
Online Booking System for Camp Holiday Resort and Recreation Area
381
<td align="right">Total</td> <td></td> <td>34</td> </tr> </table> </div> </li> <br /> <li> FACILITIES TO BE PROVIDED:<br /><br /> <div align="center"> <table> <tr> <td>-</td> <td>Basic Sound System</td> </tr> <tr> <td>-</td> <td>Microphones</td> </tr> <tr> <td>-</td> <td>White Board w/ Marker</td> </tr> <tr> <td>-</td> <td>Welcome Streamer or Backdrop - Tarpaulin(1)</td> </tr>
Online Booking System for Camp Holiday Resort and Recreation Area
382
Online Booking System for Camp Holiday Resort and Recreation Area
383
</div> <label>Number of Adult(s): </label> <select name="no_guest" id="no_guest" style="width:50px;"> <?php $i=1; while($i<=4){ ?> <option><?php echo $i;?></option> <?php $i++; } ?> </select> <label>Number of Children: </label> <select name="no_kids" id="no_kids" style="width:50px;"> <?php $i=0; while($i<=4){ ?> <option><?php echo $i;?></option> <?php $i++; } ?> </select> <?php $startdate = $_POST["start-date"]; ?> <br /><br /><br /> <input type="button" name="checkval" id="checkval" class="button" value="CHECK AVAILABILITY"
Online Booking System for Camp Holiday Resort and Recreation Area
384
onclick="javascript:ajaxpage('selectaccommodation.php','bodycontent');" /> </ol> </div> </div> </div> <br /> <?php //submit loginform if($_GET['login']==1){ ?> <div align="center" id="header">Guest Info</div> <span style="float:right;"><a href="logout.php">logout</a></span>WELCOME <?php echo $_SESSION['name']; ?> <br /> <br /> <a href="#bodycontent">Review</a> <?php } else { ?> <br /> <div class="vmenublockcontent"> <div class="vmenublockcontent-body"> <div id="logindiv"> <?php loginguest('btnlogin'); ?>
Online Booking System for Camp Holiday Resort and Recreation Area
385
<div align="center" id="header">Davao Sales Office</div> <div class="vmenublockcontent"> <div class="vmenublockcontent-body"> <!-- block-content --> <div style="margin-top: 20px; margin-bottom: 20px;"> <b>SAMCO Bldg.,F. Bangoy St.,<br /> Davao City</b><br /> Tel no. (082) 304-6483<br />Cellphone no. 0918-9354278<br /> Email: <a href="https://mail.google.com/mail/?shva=1#compose">campholidayresort@gmail.com</a> <br /> </div> <!-- /block-content --> </div> </div>
<br />
<div align="center" id="header">Resort</div> <div class="vmenublockcontent"> <div class="vmenublockcontent-body"> <!-- block-content --> <div style="margin-top: 20px;"> <b>Kinawitnon Babak District,</b><br /> Island Ganden City of Samal<br />Tel no. 303-3294<br /> </div> <!-- /block-content -->
Online Booking System for Camp Holiday Resort and Recreation Area
386
function clock() { var offsetTime = +8 var now = new Date(); var stime = now.getTime() + (now.getTimezoneOffset() * 60000) + offsetTime * 3600000 var PhilTime = new Date(now); //var sdays = PhilTime.getDay(); var mnths = PhilTime.getMonth(); //var scs = PhilTime.getSeconds(); var hr24 = PhilTime.getHours(); var hrs = PhilTime.getHours(); var mins = PhilTime.getMinutes(); var ampm = "";
Online Booking System for Camp Holiday Resort and Recreation Area
387
months[2] = "March"; months[3] = "April"; months[4] = "May"; months[5] = "June"; months[6] = "July"; months[7] = "August"; months[8] = "September"; months[9] = "October"; months[10] = "November"; months[11] = "December";
/*if(scs<10){ scs = "0"+scs; }*/ if(hr24<=12){ ampm = "AM" } else{ ampm = "PM" } if(hr24>=12){ hrs = hrs-12; } if(hr24==0){ hrs = 12; } if(hrs<10){ hrs = "0"+hrs;
Online Booking System for Camp Holiday Resort and Recreation Area
388
var outStr = PhilTime.getDate()+' '+months[mnths]+' '+PhilTime.getFullYear()+' '+hrs+':'+mins+ampm; document.getElementById('clockDiv').innerHTML='PH Time, ' +outStr; setTimeout('clock()',1000);
} clock(); </script>
Online Booking System for Camp Holiday Resort and Recreation Area
389
<blockquote> <p> “About Camp Holiday Resort and Recreation Area here!” <br /> -Gian Kristoffer Enrique </p> </blockquote> </div> </div> <div class="layout-cell"> <div class="overview-table-inner"> </div> </div> </div> </div> </div> </div> </div> </form> <?php if($_GET['merchant_return_link'] != '') { echo "<script>alert('Thank You for staying with us! We hope to welcome you back soon.');</script>"; echo "<meta content='0;action.php?rel=submitguest' http-equiv='refresh' />";
Online Booking System for Camp Holiday Resort and Recreation Area
390
SURVEY QUESTIONNAIRE
Online Booking System for Camp Holiday Resort and Recreation Area
391
Online Booking System for Camp Holiday Resort and Recreation Area
392
Attached Proof/Basis for computation Online Booking System for Camp Holiday Resort and Recreation Area 393
Greetings!
We thank you for giving us this opportunity of submitting a proposal on our meal & room rates for your reference.
________________________________________________________________________
1,500.00/night
1,800.00/night
Online Booking System for Camp Holiday Resort and Recreation Area
394
P 80.00/pax net
P 150.00/pax net
____________________________________________________________________
Each Hotel room and Air-conditioned cottages is good for 2, maximum of 3 persons per room. Extra person with beddings: P 300.00/pax
Online Booking System for Camp Holiday Resort and Recreation Area
395
Breakfast (Plated) Breakfast (Buffet) Lunch and Dinner Buffet net/pax AM & PM Snacks
= P 165.00 250.00 net/pax = P 230.00 & P 190.00 net/pax = P 260.00, P 270.00 & P 280.00 = P 90.00 & P 120.00 net/pax
600 450
= =
300 225
= =
Whole =
Online Booking System for Camp Holiday Resort and Recreation Area
396
Half
Php 25,000 for first 8 hours Php 5,000 for every succeeding hour
Whole = Half =
Online Booking System for Camp Holiday Resort and Recreation Area
397
A. All prices quoted above are inclusive of government tax. B. Deposit A 50% deposit will be required upon signing of contract fifteen (15) days prior to the event. Reservation will not be confirmed unless the contract is signed by both parties and the required deposit is made. C. Adjustments if any; either by the client, will have to be made at least seven (7) days before the scheduled reservation. D. Cancellation Any cancellation of reservation should be made at least fifteen (15) days before the scheduled reservation. If cancellation is made after the specified time, 50% of the deposit will be fortified to cover for the incidental expenses incurred. E. No Show If the reservation is cancelled without any notice given, the resort will have the right to charge the client the total cost of reservation made. F. Full Payment Full payment of account should be made immediately upon completion of services after the function; in cash. G. Any additional expenses incurred during the function will be on a pax account basis.
Should you find our proposal to your satisfaction, you may call us @ Tel. # 303-3294 or 304-6483.
Online Booking System for Camp Holiday Resort and Recreation Area
398
Thank you.
Main Course : Grilled Pork Chop Spicy Soy Chicken Sweet & Sour Fish Fillet Plain Rice Dessert : Butterscotch w/ Softdrinks in bottle
Main Course : Fish Fillet w/ Tartar Sauce Sweet & Sour Pork Seafood Chopsuey Guisado Plain Rice Dessert : Fresh Fruits w/ Softdrinks in bottle
Online Booking System for Camp Holiday Resort and Recreation Area
399
Main Course : Pork Hawaiian Kalderetang Baka Chicken Curry Plain Rice Dessert : Brownies w/ Softdrinks in bottle
Main Course : Pork Binagoongan Chopsuey Guisado Sugbanok ( broiler ) Plain Rice Dessert : Mocha Chiffon Cake w/ Softdrinks in bottle
Main Course : Inihaw na Panga Inihaw na Pork Tiyan Chicken B-B-Q Plain Rice Dessert : Fresh Fruits in Platter w/ Cream . w/ Softdrinks in bottle
Main Course : Inihaw na Pusit Inihaw na Tanguige Pork B-B-Q Plain Rice Dessert : Maja Mais w/ Softdrinks in bottle
Online Booking System for Camp Holiday Resort and Recreation Area
401
Appetizer
: Kinilaw
Main Course : Kare-kare w/ bago-ong Inihaw na Tuna Belly Fried Lumpia Plain Rice Dessert : Tropical Fruit Salad w/ Softdrinks in bottle
Online Booking System for Camp Holiday Resort and Recreation Area
402
Main Course : Chicken Pastel Breaded Fish w/ Tartar Sauce Bam-I Plain Rice Dessert : Maja Mais
w/ Softdrinks in bottle
Main Course : Chicken Mexicaine Sweet & Sour Fish Fillet Pancit Canton Plain Rice Dessert : Fresh Fruit in Platter
w/ Softdrinks in bottle
Main Course : Chicken Ala Queen Fish Fillet w/ Tartar Sauce Sotanghon Guisado
Online Booking System for Camp Holiday Resort and Recreation Area
403
w/ Softdrinks in bottle
Menu D Salad Main Dish : Macaroni Salad : Pan Fried Chicken Piccata Sweet & Sour Fish Fillet Bam-I Plain Rice Dessert : Fruit Custard
w/ Softdrinks in bottle
BREAKFAST (BUFFET)
Php 230.00 net/pax
Menu A Fresh Juices : Mango Juice Orange Juice Fresh Fruits : Watermelon
Online Booking System for Camp Holiday Resort and Recreation Area
404
Pineapple Papaya Breads Main Course : Soft Rolls w/ Butter & preserves : Breaded Sweet & Sour fish Chicken Fricasse Egg Omelet Garlic Rice .. Hot Coffee or Tea Menu B Fresh Juices : Mango Juice Orange Juice
Fresh Fruits
Breads
Main Course
.. Menu C
Online Booking System for Camp Holiday Resort and Recreation Area
405
Fresh Juices
Fresh Fruits
Breads
Main course
: Chicken Teriyaki Fried Fish Fillet w/ Tartar Sauce Shrimp Omelet Garlic Rice
BREAKFAST (BUFFET)
Php 190.00 net/pax
Online Booking System for Camp Holiday Resort and Recreation Area
406
Orange Juice
Fresh Fruits:
Watermelon Papaya
Breads:
Main Course:
Fresh Fruits:
Watermelon Pineapple
Breads:
Main Course:
Online Booking System for Camp Holiday Resort and Recreation Area
407
Fresh Fruits:
Watermelon Pineapple
Breads:
Main course:
BREAKFAST (PLATED)
Online Booking System for Camp Holiday Resort and Recreation Area
408
Fresh eggs cooked to your style with a choice of Ham, Bacon or Sausage with Breakfast Rolls or Toasted Bread served with Hot Coffee or Tea
OTHERS
P 35.00 P 88.00
Online Booking System for Camp Holiday Resort and Recreation Area
409
P 40.00 P 60.00
Egg Omelet w/ Bacon & Mushroom.. P 65.00 Cornflakes w/ Sliced Banana.. Pork Tocino. Longganisa.. Beef Tapa Bacon.. Corned Beef Sausage Daing na Bangus.. P 67.00 P 67.00 P 67.00 P125.00 P120.00 P 67.00 P 60.00 P100.00
Online Booking System for Camp Holiday Resort and Recreation Area
410
Plated Snacks
Binignit (Guinataan)
Online Booking System for Camp Holiday Resort and Recreation Area
411
Softdrinks
Online Booking System for Camp Holiday Resort and Recreation Area
412
PERSONAL INFORMATION Birthday Age Civil Status Fathers Name Occupation Mothers Name Occupation : : : : : : : June 4,1987 23 years old Single Roland B. Enrique Sr. Qualimed Pharma Regional Manager (Visayas,Mindanao) Maria Evelyn D. Enrique House Wife
2000 -2004
Tertiary
System Technology Institute (STI College Davao) # 506 Lim Bldg., J.P. Laurel Ave., Acacia Corner, Davao City Bachelor of Science in Information Technology (BSIT) 2011 Present
Online Booking System for Camp Holiday Resort and Recreation Area
413
PERSONAL INFORMATION Birthday Age Civil Status Fathers Name Occupation Mothers Name Occupation : : : : : : : June 20,1990 20 years old Single Agripino Gulayan Jr. Barangay Councilor Glory Jane Gulayan House Wife
EDUCATIONAL BACKGROUND Primary : San Juan Elementary School R.Castillo St. Agdao Davao City 2003 -2004 Secondary : Holy Cross of Agdao Agdao Davao City 2006 -2007
Tertiary
System Technology Institute (STI College Davao) # 506 Lim Bldg., J.P. Laurel Ave., Acacia Corner, Davao City Bachelor of Science in Information Technology (BSIT) 2011 Present
Online Booking System for Camp Holiday Resort and Recreation Area
414
PERSONAL INFORMATION Birthday Age Civil Status Fathers Name Occupation Mothers Name Occupation : : : : : : : March 6, 1983 28 years old Single Ludevico M. Tan Deceased Agripina C. Tan Teacher
EDUCATIONAL BACKGROUND Primary : Davao City Special School SPED Bangkal, Davao City 1995 - 1996 Secondary : Davao City National High School F. Torres Street, Davao City 1999 - 2000 Tertiary : System Technology Institute (STI College Davao) # 506 Lim Bldg., J.P. Laurel Ave., Acacia Corner, Davao City Bachelor of Science in Information Technology (BSIT) 2011 Present
Online Booking System for Camp Holiday Resort and Recreation Area
415