Chapter 1 INTRODUCTION Hotels nowadays adapt new technology to improve their business transactions.

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.1

Statement of the Problem 1.1.1 • Major Statement:

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 resort’s facilities, amenities as well as promo packages. This website also shows the resort’s 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

2

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 guest’s 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

3

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 System’s 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

4

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 hotel’s 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 don’t have yet a heavy advertisement about their resort. The customer’s 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

6

1.3

Objectives 1.3.1 • General Objectives

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

To create a site that is capable in accepting booking through online.
o

The proposed system must have the ability to accept bookings online. Since customers are browsing over the resort’s 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, resort’s 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

7

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 resort’s 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

8

The speed in viewing the panoramic view will depend on the speed of the internet connection.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. it doesn’t compute any salary bonuses for them and neither does any transactions regarding payroll for them. Online Booking System for Camp Holiday Resort and Recreation Area 9 . It is approximately twenty seconds before it will load the full image if the Internet connection is in 1Mbps. although the system stores in its database the front desk officers and the manager (employees who are charged with using the back-end application).

2. Nowadays a number of different process models are followed. This will explain how these concepts and theories being applied in the system. Requirement Determination. System Design. System Analysis. RAD Online Booking System for Camp Holiday Resort and Recreation Area 10 . SDLC follows series of steps which is used for product progress. Some of those are: 1. and Maintenance. A theoretical framework guides the proponent’s research. It will show what are the concepts and theories they used in order to come up with an effective output. Spiral Model 3. Implementation. These concepts help the proponents to understand the flow of the system and its processes. It is nothing but a ladder for project management in an organized manner. Testing. and what statistical relationships they will look for. The SDLC has seven phases in development: Project Planning. Waterfall Model 2. A theoretical framework is a collection of interrelated concepts. determining what things they will measure.2 Methodology The proponents will use the System Development Life Cycle ( SLDC ) in making the methodology of the proposed study.Chapter 2 2. SDLC is composed of sequence of events in development of an information system or application.1 THEORETICAL FRAMEWORK Introduction Theoretical Framework will explain and show how the proponents develop their proposed project. like a theory but not necessarily so well worked-out.

It is stated that the waterfall model is a popular version of systems development life cycle model for software engineering.1. Sashimi Model Among the models mentioned above. the first phase must be successfully completed first before going to next phase and when you are already in the second phase. scope and limitation.1 Project Planning The main purpose of this phase is to generate a high-level view of the intended project. system requirements as well as considering the feasibility study of the proposed system of Camp Holiday Resort and Recreation Area.0) 2. prototyping and observation. obtain. (Refer to Chapter 3.2. understand. the waterfall model describes a development method that is linear and sequential. The proponents will follow the requirements determination process in order to gather accurate information to develop the propose system. In a traditional waterfall model. 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. the proponents will use the waterfall model. RDP has four components. In this phase the proponents will think and discuss about the project objective. Figure 1. The proponents will use different techniques such as interviewing. Iterative Model 5. 3. Often considered the classic approach to the system development life cycle. The proponents interviewed the manager of Camp Holiday Resort and Recreation Online Booking System for Camp Holiday Resort and Recreation Area 11 . there is no turning back on the previous phase which is very ideal in system development. validate and evaluate. In line with this.4. Waterfall development has distinct goals for each phase of development. To obtain is to collect the pieces of information from which the customer’s or the target user’s requirements will be determined.2.

2. In observation. the proponents will consider the coupling and cohesion concepts of object and classes involve in the system. However. data. structure and its framework that would help the proponents design for the propose system and after the group discussion. the proponents will concentrate on the database design of the propose system with the use of entity relationship diagram. Glen Germino regarding the reservation process.2 Analysis During this phase. Mr. 2. To validate all the gathered information and the concepts as what the proponents have understood. 2. database physical design. the proponents will now be ready to design the propose system.3 Design After collecting and analyzing the gathered information. In architectural design. the proponents study and understand them by the help of the thesis adviser as their facilitator during the discussion of the gathered data. the proponents will thoroughly analyze the concepts of web application. user interface and procedural design. User interface design. the proponents will validate their understanding with their thesis adviser. online booking system. the proponents will discuss about the propose system base on the gathered information.Area. architectural. 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. the proponents will design for the graphical user interface of the system that’s fit to the user’s requirement and expectations. they use the prototyping technique wherein they demonstrate the architectural design of a partial solution with their thesis adviser and thesis defense panelist. and the back-end application that Online Booking System for Camp Holiday Resort and Recreation Area 12 . The website that would accept user input. The proponents will follow the four stages of system design. In this phase. For data design.2. before proceeding to the actual design. The proponents look for an existing online reservation system as prototype in gathering information.

In procedural design.2. Adaptive maintenance.would allow the proponents monitor its client and do system maintenance.2. the proponents will accommodate the changes in user’s requirements. 2. During this phase.6 Maintenance The task and responsibilities of the system developer don’t stop on the deployment of the system. corrective. Testing must be done before the final deployment of delivery of the system to make sure the good quality of the software / system. user acceptance and performance testing. choosing a programming language and web scripting language should the proponents must also considered in this phase. Moreover. 2. adaptive. a computer with internet connection is a requirement. These errors are from the bugs that the client will encounter. series of testing will happen. a DNS ( Domain Name System ) registration. The proponents will do the unit testing. integration testing. 2. the proponents will consider the changes in the environment both hardware and software and make the system adapt that changes. the proponents will perform the four types of system maintenance. 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. and web server to the system that available online.2. the proponents will going to develop a data flow diagram. Perfective maintenance. In performing the corrective maintenance. the proponents will correct / repair the faults or defects found results from design errors. logic and coding errors. 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 .4 Implementation The proponents will implement the final construction of the system and final codes of the system will be written in this phase. perfective and preventive.5 Testing In this phase.

(Refer to Chapter 3.4. 3. (Refer to Chapter 3. 2. the proponents will always checks the system.1) 2. This diagram is the highest level view of a system. Preventive maintenance. Figure 1.3. 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. Make Reservation and Issue Invoice. Figure 1. and more views of a system.2.2 Architectural Design Is the conceptual model that defines the structure. the guest user and receptionist have limited access only and can only do the following: Inquire Accommodation Availability.3.1 Use Case In the part of the Online Booking System for Camp Holiday Resort and Recreation Area. (Refer to Chapter 3.3) Online Booking System for Camp Holiday Resort and Recreation Area 14 . while the Administrator can access everything in the 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. 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. while the receptionist can check and update the data(guest transaction) in the system that were done by the guest user via online.2.performance.3 Data Modeling Theory Data Modeling is a formal description of how may be structured and accessed.2.3.2) 2. behavior.2. Figure 1.3. 3.

Illustrates the interrelationship between entities in a database.4-1. Figure 1.7) o Data Process. o Relationship . A Data Store responds to request to store and access data. 3.represents movement of data item.8) o Entities .are shown as a rectangle. 2.6.5 ERD. o External Agents. o Data Store.3.5.Entity Relationship Diagram An Entity Relationship Diagram (ERD) is a snapshot of data structures. 3.4 DFD.Attributes are the properties or characteristics of an entity.2. o Data flow. o Weak Entity . Represents sources or sinks.transforms data values. ERDs show entities in a database and relationships between tables within that database.Data Flow Diagram This is a graphical representation of the flow of data through information system.An entity is an object or concept about which you want to store information. The proponents use Data Flow Diagram in order to know and understand the flow and target user’s process.stores data passively for later access. Figure 1. (Refer to Chapter 3. (Refer to Chapter 3.2. Online Booking System for Camp Holiday Resort and Recreation Area 15 .2.3.Relationships illustrate how two entities share information in the database structure. It is represented by a circle. This is shown as arrows.

2.4 Physical Data Modeling Is used to design the internal schema of a database. and are the first ones that will test themselves the system we have created. 2. the business ethics that we have followed will help them in doing their jobs. 2. and the relationship between the tables.5 Business Ethics Describe the policies within the business or organization. this will serve as storage of all data. o User login – each user has to provide his/her own username/password which will be provided by the Camp Holiday Admin.Cardinality specifies how many instances of an entity relate to one Instance of another entity. the proponents use Context Free Diagram to show the entire system as a single process. 2. managers and system admin of the Camp Holiday Resort and Recreation Area will be the main persons that will use the system. and the proponents also use Database normalization in order to reduce data redundancy.7 Summary In Theoretical Framework. The proponents should consider the policies and regulations imposed by the organization so that they will meet the requirement of the user.6 Security Concept It is used by the proponents to protect the data of each user. The proponents use the Physical Data Model. The front-desk officers. the data columns of those tables.o Cardinality . depicting the data tables. Data Flow Diagram in order to know Online Booking System for Camp Holiday Resort and Recreation Area 16 .

Chapter 3 ONLINE BOOKING SYSTEM FOR CAMP HOLIDAY RESORT AND RECREATION AREA 3. 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 .and understand the flow and target user’s process.2 System Design Specification As a group. The proponents have made the system to accept check-in as well as check out. booking online and acceptance of payments for it. 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 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. we have assigned modules for each member. 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.1 Introduction Online Booking System for Camp Holiday Resort and Recreation Area was proposed to help Camp Holiday do their services more efficiently. which then we integrate after completion. 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. 3.

1 SDLC Diagram with Waterfall Model 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 .2.3.

3.2.2 USE CASE Inquire Accommodation Availability Make Reservation GUEST USER Issue Invoice ADMINISTRATOR Data Maintenance RECEPTIONIST User Registration Figure 1.1 Camp Holiday Resort and Recreation Area Use Case Online Booking System for Camp Holiday Resort and Recreation Area 19 .

2 Camp Holiday Resort and Recreation Area Architectural Design Online Booking System for Camp Holiday Resort and Recreation Area 20 .2.3 Architectural Design     Select Check in/ Check out Date Select Preferred Room/Number of rooms Guest Information Payment List of Available Accommodation Itinerary (Confirmation Code) GUEST USER Internet List of Available Accommodation Itinerary (Confirmation Code) WEB SERVER Check Accommodation Availability Room Details Guest Information Payment Details Figure 1.3.

4 Data Flow Diagram Level 0 Diagram (Context Free) Inquire Accommodation Availability Room Details Guest Information GUEST Payment Details Accommodation Availability Itinerary (Confirmation Code) Bill Details Guest Reservation Details Guest Bill Details RECEPTIONIST Itinerary (Confirmation Code) Online Booking System for Camp Holiday Resort and Recreation Area Figure 1.3.2.3 Camp Holiday Resort and Recreation Area Context Free Diagram Online Booking System for Camp Holiday Resort and Recreation Area 21 .

2.1 DFD Level 0 Diagram Online Booking System for Camp Holiday Resort and Recreation Area 22 .5 Data Flow Diagram 3.2.5.3.

Guest Payment Payment Details Payment Master Guest Payment Info Guest Billing Info RECEPTIONIST Guest Details Guest Accommodation Details Figure 1.2.2 DFD Level 1 Diagram Online Booking System for Camp Holiday Resort and Recreation Area 23 . Guest Reservation Guest Details Guest Master Charge Items Consumed Bill Info 3. Check Accommodation Availability List of Accommodation Accommodation Master Accommodation Details Guest Details Itinerary 2.5.4 Camp Holiday Resort and Recreation Area DFD Level 0 3. Guest Charges Items Consumed Charges Master Payment Receipt 4.Request Accommodation Availability Available Accommodation GUEST 1.

2.2 Accommodation Selection Accommodation Info Select Accommodatioin Guest Master Receptionist Figure 1.5 Camp Holiday Resort and Recreation Area DFD Level 1. Accommodation Availability 3.Guest Select Date 1.1 Search Available Accommodation Accommodation List w/ Status Accommodation Master Accommodation Available Accommodation Availability 1.3 DFD Level 1 Diagram Online Booking System for Camp Holiday Resort and Recreation Area 24 .5.

2.6 Camp Holiday Resort and Recreation Area DFD Level 1.1 Get Guest Info Check-in Info Receptionist Figure 1.5.1 Get Guest Info Guest Info Guest Master Guest Info Check-in Guest 2. Guest Registration 3.4 DFD Level 1 Diagram Online Booking System for Camp Holiday Resort and Recreation Area 25 .Guest Guest Info 2.

6 Entity Relationship Diagram Online Booking System for Camp Holiday Resort and Recreation Area 26 .7 Camp Holiday Resort and Recreation Area DFD Level 1 Billing 3.2.2 Record All Item Taken Item Taken Info Services Master 3.1 Check Billing Item Price Price Guest Bill Info 3.Guest Charge Item Consumed 3.3 Compute All Items Calculated Charges Info Receptionist Guest Bill Info Figure 1.

2.7 Physical Database Schema tbl_payment Online Booking System for Camp Holiday Resort and Recreation Area 27 .GUEST RESERVED ROOMS HAS ROOM TYPES HAS PAYS ACCOMMODATION HAS TRANSACTION FACILITIES GENERATES INCLUDES CHARGES ISA RESTAURANT BILLING Figure 1.8 Camp Holiday Resort and Recreation Area Entity Relationship Diagram(ERD) 3.

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 3.8 Database Design Online Booking System for Camp Holiday Resort and Recreation Area 31 .2.

3 SYSTEM REQUIREMENT SPECIFICATION AND COSTING 3.3.Figure 1.1 Hardware Specifications Online Booking System for Camp Holiday Resort and Recreation Area 32 .9 Camp Holiday Resort and Recreation Area Database Design 3.

000 P3.000 System Unit Mouse Keyboard Monitor Printer 3.2 Software Specifications • • • • • Web Browser (Preferably Google Chrome) Operating System(Windows Server) Flash Player MySQL Server Adobe Dreamweaver CS4 Downloadable P9.00 Total = P25.3.3.00 P24.000 Downloadable P2.DEVICE • • • • • ESTIMATED COST P15.000 3.00 Lines of codes Functionality and capability P800.3 Connectivity Requirements • Internet Connection with at least 1Mb/s P999 ________________ Total = 3.930.4 Development Cost  Human Workforce • •  `` 38.3. 299.000 P4.730.00 Printing Online Booking System for Camp Holiday Resort and Recreation Area 33 .000 P150 P150 P4.

3.4 Human Workforce Breakdown Online Booking System for Camp Holiday Resort and Recreation Area 34 .

00 P300.00 Online Booking System for Camp Holiday Resort and Recreation Area roomlist_update 30mins roomlist_validate 30mins 35 P50.00 P1.00 P400.00 P300.00 .00 P200.00 P500.00 P500.00 P500.00 P100.00 P600.Human Workforce Breakdown (100 per Hour) Form Name printpreview printpreviewBilling Table 3.00 P300.00 P100.00 P300.00 P50.00 P300.00 P500.200.00 P700.200.00 P3.200.00 P50.00 P1.00 P500.00 P1.00 P400.4 Human Workforce Breakdown addcharges addcharges_confirm addcharges_menu addcharges_menu_insert billing checkin checkin_info checkout reservation reservation_cancel reservation_confirm reservation_viewdetails Edit(amaneties) New(amaneties) Edit(guest) New(guest) Edit(room_list) New(room_list) Edit(room_type) New(room_type) Edit(services) New(services) amenities amenities_update amenities_validate guestlist guestlist_update roomlist Number of Hours 2hrs 3hrs 9hrs 1hr 5hrs 1hr 30hrs 12hrs 1hr 12hrs 12hrs 2hrs 2hrs 5hrs 3hrs 5hrs 3hrs 5hrs 3hrs 5hrs 3hrs 5hrs 3hrs 5hrs 7hrs 5hrs 4hrs 6hrs 30mins 4hrs Total Cost per Form P200.00 P900.00 P300.000.00 P500.00 P100.00 P200.00 P500.00 P500.

00. 3. and Database Design in order to know what to do in building the system. Entity Relationship Diagram to have a documentation for the interrelationship between entities in a database.The proponents charged P100.930. Data Flow Diagram in order to know and understand the flow of the system. Context Free Diagram to show the entire system as a single process. Online Booking System for Camp Holiday Resort and Recreation Area 36 . the proponents use Architectural Design to know what the system is all about and for future reference during data maintenance. A total of 263 hours and 30 minutes.00 per hour for every form.5 Summary In System Design Specification. and accumulated the total amount of P24.

call and walk-in guest. 4. it is quickly answered by one of our team mates. Such as on what part we must concentrate on the development for us to reach our target objective. save transaction ID in order payment record. book a guest. getting the preferred arrival and departure date of the guest to acquire the available rooms. additional charges based on the items acquired by the guest. Online Booking System for Camp Holiday Resort and Recreation Area 37 . It was also useful when we had to share some useful methods.1 Introduction In this chapter. number of rooms. the proponents tried different methods in developing the system. 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.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. generating bill. including data maintenance. getting the information both online. services rendered by the Camp Holiday Resort and Recreational Area. adding new room type. facilities. and generating payments.Chapter 4 PERFORMANCE ANALYSIS 4.

” Remarks The User must be select arrival and departure date to check available accommodation The User must fill all required fields Diagram Figure 2.3 Online Booking System for Camp Holiday Resort and Recreation Area 38 .  Log in form for Registered User Action Entry with wrong USERNAME and PASSWORD.” Display error message “This field is required Figure 2. the guest must fill all the required fields in the registration form.2 Table 1.1 Failure to fill up required fields Display error message “This field is required. After selecting the available rooms.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. 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. Expected Result Display error message “Invalid Username and Password” Actual Resort Display error message “Invalid Username and Password” Remarks The user must enter the valid username and Diagram Figure 2.

” Display error message “Please select correct arrival date. Figure 2.5 must be less than the departure date selected The User must Figure 2.  Reservation for Walk-in Guest Action Failure to select reservation type Expected Result Display error message “Select is not a correct reservation type. Select the correct arrival and departure Online Booking System for Camp Holiday Resort and Recreation Area 39 .” Display error message “Please select correct arrival date.6 fill up all fields.” Display error message “User fields should not be empty.1 User Login In this table.4 Incorrect arrival and departure date selected Saving Guest info with empty fields Saving Guest info with complete details The arrival date Figure 2.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.7 Table 1.” The Reservation is Successfully Created! Actual Resort Display error message “Select is not a correct reservation type. it shows that the user must input valid username and password in order to proceed to the backend system.” 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.password Table 1.

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. Failure to fill up required fields for adding services. before selecting the available rooms. The admin must fill up all required fields for adding room.  Master List Action Failure to fill up required fields for adding guest Failure to fill up required fields for adding room. Expected Result Display error message “fields should not be empty. after selecting the rooms. 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.1 Figure 3. The admin must fill up all required fields for adding room type. Failure to fill up required fields for adding room type Failure to fill up required fields for adding facilities.0 Figure 3.8 Figure 2.date. the receptionist must input all the required fields information for the guest.2 Online Booking System for Camp Holiday Resort and Recreation Area 40 .9 Figure 3.

facilities and services for their resort. 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. For the receptionist side. 4. The proposed system will help project manager and developer to manage the project effectively following the current processes that our system has. After checking the accommodation availability.Table 1. number of rooms he/she wants to acquire.3 Master List In this table shows that if the admin will add rooms. If the guest already picked the preferred room type. the guest must give his/her information.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. 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. the guest can select his/her preferred room type. 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. It can also add up additional charges if the Online Booking System for Camp Holiday Resort and Recreation Area 41 . they can accommodate walk-in guest same with the process in online booking. receptionist and the admin. The receptionist can only check-in a reserved guest if the arrival date is already active. the admin must fill all the required fields.

the system is fully functional. The proponents also conducted a system evaluation to other respondents.3. The proponents conducted an evaluation to test the system.1.1 Comment or Suggestion From the comment and suggestion he stated as shown in figure 4. Figure 4. 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. capability and the limitations of the system. Glen Germino. the administrator can only maintain it.5 Survey Questionnaires) Online Booking System for Camp Holiday Resort and Recreation Area 42 .3. The capability of the system meets the requirement of the client. Figure 4. And all the functionalities of the system.guest acquire item from the amenities of the Camp Holiday Resort and Recreation Area. the manager of Camp Holiday Resort and Recreation Area took the said evaluation to check the functionality. (Refer to Appendix. They also give a high rate to all the functionality of the system. Mr.3.3.4 to 4.

3.5 Above Average Please rate on how effective the system when it comes to Data Maintenance? 4. graph and interpret the results. the proponents tabulated. (Refer to Table 4. Figure 4. 3.5 Excellent How effective the Booking System in both online booking and walk-in booking? 3. Please rate on how effective the website when it comes to user friendly? How effective is the functionality of the Panoramic Virtual Tour? 2.5 Above Average How effective the system when it comes to Billing System? 5. Average Performance 4 Interpretation Excellent 4.3 System Average Rate) Questions 1.5 Above Average Online Booking System for Camp Holiday Resort and Recreation Area 43 .2 System Performance Rate. 3.3.From the evaluation.3.

where based on the constant values bellow. 1.3.2 above). Online Booking System for Camp Holiday Resort and Recreation Area 44 . 4.5 – 4. the functionality meets the requirement of the client.7 – 3.3.8 = = = = = Extremely Poor Below Average Average Above Average Excellent 1.2 System Performance Rate This represents the average performance of the system and its corresponding interpretation from the evaluation conducted.1 Constant Values The results that where plotted on System Performance Rate (Refer to table 4. the proponents provided each choice with specific values.4 3. In getting the Mean Diagram.Table 4.2 Mean Diagram The graph bellow was obtained by using the Mean Diagram. The system got the highest rate based on its performance. Each choice that was answered by the interviewee was summed up and divides by the total number questions.3.0 – 1.6 2.9 – 2.3.2 4.3 – 5 4.

4.5 1 0.Averag e 5 4.3 Overall Review of the Proposed System 4 3.3 Overall Review of the proposed System Online Booking System for Camp Holiday Resort and Recreation Area 45 .2 System Average Rate The graph shows the average rate of the system in every question from the results of the evaluation.5 3 2.5 2 1.3.3.5 1 0.3.5 3 2.5 0 Online Booking System for Camp Holiday Resort and Recreation Area Figure 4.5 4 3.5 2 1. This graph shows that the system capability and functionality is working effectively.5 0 Question 1 Question 2 Question 3 Question 4 Question 5 Average Figure 4.

And it could help us find the insufficient of the system. The problems encounter during the testing is the inaccurate in terms of booking the rooms during the current date. like online booking.5 which is Above Average. Base on the graph system reach the amount of 3. If there is an empty field during adding the information of the guest. researches and tests were being examined and considered. viewing of facilities and rates of the resort and all the information and services of the resort is attached in the frontend side. Front end side consists of online transaction. message box displays that the fields should not be empty. Every module conducted a series of test. 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. the proponents encounter errors and problem of the system. This side encounters certain problems specially the reservation for walk in customer. the proponent realized that our system is very important not only to our client but also to the user of the system. the result of the series of interviews. the proponents make a solution to solve this problem. After the series of test. First. The Admin side will display the overview functionalities of the resort such as reservation for walk-in guest and the maintenance of the system. During the testing. The testing helps us determine the ability of our system. Online Booking System for Camp Holiday Resort and Recreation Area 46 .4 Summary In this section.The graph above shows the overall review of the Online Booking System for Camp Holiday Resort and Recreation Area. the booking for guest through online and walk-in and test the other functionalities of the system at the admin side. 4.

it helps them to cater their customer for offline transaction. For the Online transaction. It is a cost effective method to help them create. help them market their room inventory online and reach out to their consumers directly. sustain and expand their inventory online. It will give them the authority to access to all the features and preferences. They decide and they implement.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. 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. Online Booking System for Camp Holiday Resort and Recreation Area 47 . 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.

Web design SPIP and 360 ° virtual tours.com/products/Online-Hotel-Reservation-Management-system/ Online Booking System for Camp Holiday Resort and Recreation Area 48 . less chance of effort to cater their guest. http://www. Their guests can make confirmed reservations from anywhere in the world at anytime. 2010 Arnault.openstudio.openstudio.com/?10-Advantages-of-Online-BookingSoftware&id=4397594 . day or night.And for the overall.dotcomtechno. BIBLIOGRAPHY E-Book: George Szifo.fr/jquery-virtual-tour/ http://www. http://ezinearticles.Jun 01.fr/jQueryvirtual-tour. from the rates and availability that they position through administrator's interface.html?lang=en World Wide Web (www): http://www. the system will help them to improve their services.

ph/ http://www. Online Booking System for Camp Holiday Resort and Recreation Area 49 .com/ http://www.com/ http://www. Yanong.com/php/ ACKNOWLEDGEMENT First and above all. Charyl F. the almighty for providing us this opportunity and granting us the capability to proceed successfully. We are deeply grateful to our beloved adviser and also at the same time our IT Project coordinator Ms.thepinnacledavao.marcopolohotels.html http://www.w3schools. for guiding us and inspiring us to push through with this project.com.http://www.google. we praise God. This thesis appears in its current form due to the assistance and guidance of several people.apoview. 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 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.com/hotels/philippines/davao/marco_polo_davao/index.

To our dear parents. To all our classmates and friends. through ups and downs. Shiela Aringa Ildefonso and Ms. for the love and care. APPENDICES USER’S MANUAL Online Booking System for Camp Holiday Resort and Recreation Area 50 . spiritual and financial support. thank you guy for the times that we have shared. Charissa Pajaron. we would like to thank them for all the support that they gave. our grammarian for guiding us in the documentation of this project.Our warm thanks are due to Ms.

Online Booking System for Camp Holiday Resort and Recreation Area 51 .Figure 2.Home Page This figure shows the Home Page of Camp Holiday Resort and Recreation Area.0 .

Online Booking The user must select arrival and departure date. it will prompt a message box stated “ Please fill up Arrival / Departure date.1 .Figure 2. “ if the textboxes are empty. Online Booking System for Camp Holiday Resort and Recreation Area 52 .

Guest Information This figure shows that the user must fill in the information that is required. Online Booking System for Camp Holiday Resort and Recreation Area 53 .2 .Figure 2. a message will display “This field is required “. Note that textboxes with asterisk ( * ) is required to fill in. if not.

Every user has their respective account to access.Figure 2.4 . Online Booking System for Camp Holiday Resort and Recreation Area 54 .Walk-in Reservation This figure shows that a message “ .3 . Figure 2.” If the user input a correct password they can Login to the system.Login If the user input incorrect password a message will display “Invalid Username and Password.Select – is not a correct Reservation Type ” will prompt if the Reservation Type is not valid.

5 . Online Booking System for Camp Holiday Resort and Recreation Area 55 .6 .Walk-in Reservation A message will prompt “Please Select Correct Arrival Date.Figure 2.Personal Information This figure shows an error message if the textboxes are empty.” if the arrival date is ahead of day with the departure date. Figure 2.

Reservation By clicking the button Finish and if the textboxes are fill in. a message will display “ Reservation Successfully Created..Figure 2. Online Booking System for Camp Holiday Resort and Recreation Area 56 ..7 .! ”.

Figure 2.9 . Online Booking System for Camp Holiday Resort and Recreation Area 57 .8 .Add Room This figure shows that a message box will prompt if the required fields are empty.Figure 2.Add Guests This figure shows that a message box will prompt if the required fields are empty.

Figure 3.0 .Add Room Type This figure shows that a message box will prompt if the required fields are empty. Figure 3.1 . Online Booking System for Camp Holiday Resort and Recreation Area 58 .Add Facilities This figure shows that a message box will prompt if the required fields are empty.

Figure 3.Add Services This figure shows that a message box will prompt if the required fields are empty.2 . Online Booking System for Camp Holiday Resort and Recreation Area 59 .

'May'.*/ <?php $dbhost = "localhost".admin / functions / myfunction. 'October'.*/ // JavaScript Document // default settings var A_TCALDEF = { 'months' : ['January'.js -------------------------------------------------. 'weekdays' : ['Su'. $conn=mysql_select_db($dbname) or die(mysql_error()). $d2) { return strtotime($d1)-strtotime($d2). $server=mysql_connect ( $dbhost. 'June'. 'November'.admin / js / calendar. 'April'. 'February'. 'Fr'. 'Th'. 'We'. 'Tu'. 'December']. $dbpass)or die("<h1>Server is currently unavailable</h1>").admin / connection / connection. 'Sa']. 'Mo'. $dbpass = "". $dbname = "db_campholiday". 'March'.php ---------------------------------. ?> /*----------------------. $dbuser.php ----------------------------------. Online Booking System for Camp Holiday Resort and Recreation Area 60 . 'September'.SOURCE CODE SOURCE CODE /*----------------------. } ?> /*----------------------.*/ <?php function compareDates ($d1. $dbuser = "root". 'July'. 'August'.

\nAllowed range is 01-12.'yearscroll': true. var d_numdays = new Date(n_year." + d_numdays.exec(s_date)) return alert ("Invalid date: '" + s_date + "'. // 2 digit years less than 'centyear' are in 20xx. // show year scroller 'weekstart': 0. // first day of week: 0-Su or 1-Mo 'centyear' : 70.").\nAccepted format is mm/dd/yyyy. if (n_year < 100) n_year += (n_year < this. if (n_month < 1 || n_month > 12) return alert ("Invalid month value: '" + n_month + "'."). n_day).getDate()) return alert("Invalid day of month value: '" + n_day + "'.$1). } // date generating function function f_tcalGenerDate (d_date) { Online Booking System for Camp Holiday Resort and Recreation Area 61 .centyear ? 2000 : 1900).2})\/(\d{2. n_month = Number(RegExp. if (!re_date. othewise in 19xx.getDate() + ".") var n_day = Number(RegExp. n_month. n_month .$3). if (n_day > d_numdays.2})\/(\d{1. 0). return new Date (n_year. 'imgpath' : 'images/calendar/' // directory with calendar images } // date parsing function function f_tcalParseDate (s_date) { var re_date = /^\s*(\d{1.4})\s*$/.$2).1. n_year = Number(RegExp.a_tpl.\nAllowed range for selected month is 01 .

a_tpl) { // apply default template if not specified if (!a_tpl) a_tpl = A_TCALDEF.f_show = f_tcalShow. window. this. this.A_TCALSIDX) window. // assign methods this.getDate() < 10 ? '0' : '') + d_date.id ? a_cfg. // register in global collections if (!window.A_TCALS) window.getFullYear() ).getDate() + "/" + d_date.A_TCALS = []. this.A_TCALS[this.A_TCALSIDX[window.A_TCALSIDX.f_toggle = f_tcalToggle. if (!window. Online Booking System for Camp Holiday Resort and Recreation Area 62 .length] = this.s_id] = this. } // implementation function tcal (a_cfg.s_id = a_cfg.getMonth() + 1) + "/" + (d_date.A_TCALSIDX = [].return ( (d_date. window.length.f_hide = f_tcalHide.getMonth() < 9 ? '0' : '') + (d_date.id : A_TCALS.

s_id + '\'].this.write('<img src="' + a_tpl.e_icon = f_getElement(this.a_cfg.a_cfg.a_cfg. this.gif" id="' + this.s_iconId + '" onclick="A_TCALS[\'' + this. // create calendar icon this. if (!e_form) throw("TC: form '" + this.f_generDate = f_tcalGenerDate.formname]. this. } function f_tcalShow (d_date) { // find input field if (!this.elements[this.controlname]. if (this.formname) { var e_form = document.f_update = f_tcalUpdate.s_iconId = 'tcalico_' + this.e_input = e_form.e_icon = f_getElement(this.s_iconId).formname + "' can not be found").f_parseDate = f_tcalParseDate.f_toggle()" class="tcalIcon" alt="Open Calendar" />').e_icon) { document. this.a_cfg = a_cfg.a_tpl = a_tpl.s_id.forms[this.a_cfg.a_cfg.controlname) throw("TC: control name is not specified").imgpath + 'cal. Online Booking System for Camp Holiday Resort and Recreation Area 63 . } // save received parameters this.s_iconId). this. this. this. this.f_relDate = f_tcalRelDate. if (!this.

appendChild(this.e_div.e_shade).formname ? "form '" + this.appendChild(this. } this.controlname + "'" : 'this document')).src = this.e_input.e_div).createElement("DIV").tagName != 'INPUT') throw("TC: element '" + this.body. this.a_cfg. Online Booking System for Camp Holiday Resort and Recreation Area 64 .style.e_input.createElement("IFRAME"). document. // dynamically create HTML elements if needed this.e_shade.e_iframe. if (!this.a_cfg.body.body.controlname). this.e_iframe.a_tpl.e_shade = document.id = 'tcalIF'.a_cfg.id = 'tcal'.filter = 'alpha(opacity=0)'.gif'. if (!this.tagName || this.e_iframe = f_getElement('tcalIF') if (b_ieFix && !this.controlname + "' does not exist in " + (this. document. this.e_iframe) { this.e_input = f_getElement(this.id = 'tcalShade'.a_cfg.e_shade = f_getElement('tcalShade').e_shade) { this.e_iframe).e_div = document.} else this.createElement("DIV"). if (!this. } this.e_input || !this.imgpath + 'pixel.appendChild(this.e_div) { this.e_div = f_getElement('tcal'). this.e_iframe = document. document.e_iframe. this.

b_visible = true.f_generDate(new Date(n_date)).style.b_visible) return.e_icon.title = 'Close Calendar'.s_iconId).} // hide all calendars f_tcalHideAll().visibility = 'visible'. // generate HTML and show calendar this. this.visibility = 'visible'.e_input.src = this.imgpath + 'no_cal.f_update()) return.a_tpl. } function f_tcalHide (n_date) { if (n_date) this.visibility = 'visible'.e_icon.e_icon = f_getElement(this. // change icon and status this. // no action if not visible if (!this. this.style. this.style.e_div.value = this.e_iframe. if (this.gif'. Online Booking System for Camp Holiday Resort and Recreation Area 65 . this.e_iframe) this. if (!this.e_shade.

today) : f_tcalResetTime(new Date()).e_input. if (this.e_shade) this.today ? this.a_cfg.f_parseDate(this.f_hide() : this.style.e_iframe) this.// hide elements if (this.visibility = 'hidden'.e_iframe. this.e_icon.selected ? this.a_cfg.b_visible = false.style.a_tpl.s_iconId).b_visible ? this. // figure out date to display if (!d_date) Online Booking System for Camp Holiday Resort and Recreation Area 66 .f_parseDate(this.selected) : d_today) : this. } function f_tcalToggle () { return this.e_icon = f_getElement(this.f_show(). } function f_tcalUpdate (d_date) { var d_today = this. this.a_cfg.visibility = 'hidden'. this.e_shade. this.imgpath + 'cal.value).a_cfg.f_parseDate(this.value == '' ? (this. // change icon and status this.e_input.e_icon.visibility = 'hidden'.title = 'Open Calendar'.gif'. var d_selected = this.e_div.style.src = this.

else if (typeof(d_date) == 'string') // parse from string this.gif" /></td></td>' : '') + '</tr></tbody></table><table><tbody><tr class="wd">'.imgpath + 'next_year. s_html = '<table class="ctrl"><tbody><tr>' + (this. // first date to display var d_firstday = new Date(d_date). 1. 'y') + ' title="Next Year"><img src="' + this. -1.a_tpl.f_parseDate(d_date).a_tpl.imgpath + 'prev_mon.setDate(1 .months[d_date.imgpath + 'next_mon.imgpath + 'prev_year.getDay() .a_tpl. i < 7.gif" /></td><th>' + this.this.gif" /></td>' : '') + '<td' + this.a_tpl. i++) Online Booking System for Camp Holiday Resort and Recreation Area 67 .getFullYear() + '</th><td' + this. 1) + ' title="Next Month"><img src="' + this.yearscroll ? '<td' + this.f_relDate(d_date.a_tpl.a_tpl.setDate(1).a_tpl.getMonth()] + ' ' + d_date.a_tpl. if (!d_date) return false.f_relDate(d_date. // print weekdays titles for (var i = 0. d_firstday.f_relDate(d_date. else if (typeof(d_date) == 'number') // get from number d_date = f_tcalResetTime(new Date(d_date)).yearscroll ? '<td' + this. d_firstday. -1) + ' title="Previous Month"><img src="' + this.// selected by default d_date = d_selected.(7 + d_firstday. var a_class.gif" /></td>' + (this.f_relDate(d_date. 'y') + ' title="Previous Year"><img src="' + this.weekstart) % 7).

// other month if (d_current. Online Booking System for Camp Holiday Resort and Recreation Area 68 .length] = 'selected'.getDay() == 0 || d_current. for (var n_wday = 0.getMonth() != d_date.valueOf()) a_class[a_class.valueOf() == d_today.weekdays[(this. n_wday++) { a_class = [].valueOf() == d_selected. // weekend if (d_current.getMonth()) { // print row heder s_html +='<tr>'.getMonth()) a_class[a_class.getMonth() == d_firstday. n_month.s_html += '<th>' + this. // selected if (d_current. n_wday < 7.weekstart + i) % 7] + '</th>'. // today if (d_current.getMonth() == d_date. while (d_current.getDay() == 6) a_class[a_class.getMonth() || d_current. // print calendar table var n_date.length] = 'othermonth'.length] = 'today'. d_current = new Date(d_firstday). n_date = d_current.a_tpl. n_month = d_current.getDate().a_tpl. s_html += '</tr>' .getMonth().length] = 'weekend'.valueOf()) a_class[a_class.

var n_top = f_getPosition (this. 'Top') + this. var n_width = this.e_div.setHours(d_current. positions and sizes this.e_shade.s_id + '\'].getHours + 1). Online Booking System for Camp Holiday Resort and Recreation Area 69 .getMonth() == n_month) { d_current.offsetWidth.length ? ' class="' + a_class.style.top = n_top + 'px'.innerHTML = s_html.e_div.setDate(++n_date).n_width + this. } } // print row footer s_html +='</tr>'. while (d_current. this. } s_html +='</tbody></table>'.e_div.width = (n_width + 8) + 'px'.offsetWidth.valueOf() + ')"' + (a_class.e_icon.f_hide(' + d_current. // update HTML.style. this.join(' ') + '">' : '>') + n_date + '</td>' d_current.offsetHeight. 'Left') .offsetHeight. var n_left = f_getPosition (this.left = n_left + 'px'.e_div. if (n_left < 0) n_left = 0.style. var n_height = this.e_icon. d_current = f_tcalResetTime(d_current).e_icon. this.e_div.e_icon.s_html += '<td onclick="A_TCALS[\'' + this.getDate() != n_date && d_current.

e_shade.width = (n_width + 6) + 'px'.AlphaImageLoader(src=\'' + this.imgpath + 'pixel.left = n_left + 'px'.e_shade.png" height="7" align="left"><img src="' + this. this.top = n_top + 'px'.style."><img src="' + this.a_tpl. sizingMethod=\'scale\').a_tpl.gif"></td></tr><tr><td width="7" style="filter:progid:DXImageTransform.png"></td></tr><tr><td background="' + this.a_tpl.Microsoft.Microsoft.AlphaImageLoader(src=\'' + this. this."><img src="' + this.style.left = (n_left .imgpath + 'shade_bl.imgpath + 'pixel. } return true.Microsoft."><img src="' + this.a_tpl.imgpath + 'shade_bm.height = (n_height + 6) +'px'. sizingMethod=\'scale\').7) + '"><img src="' + this.a_tpl.imgpath + 'pixel.style.a_tpl.imgpath + 'pixel.AlphaImageLoader(src=\'' + this.AlphaImageLoader(src=\'' + this. } function f_getPosition (e_elemRef.a_tpl.1) + 'px'.a_tpl.a_tpl.a_tpl.a_tpl.png" height="' + (n_height .png\'.gif"></td><td width="7" height="7" style="filter:progid:DXImageTransform.a_tpl.e_iframe.Microsoft. this.png"></td></tr><tbody></table>'. n_offset.gif"></td><td><img src="' + this. this."><img src="' + this.a_tpl.a_tpl.style. if (this.top = (n_top .e_iframe.gif"></td><td style="filter:progid:DXImageTransform.imgpath + 'shade_bl.imgpath + 'pixel.a_tpl.a_tpl.e_iframe. sizingMethod=\'scale\').a_tpl. sizingMethod=\'scale\').gif"></td><td rowspan="2"><img src="' + this.imgpath + 'pixel. sizingMethod=\'scale\').imgpath + 'shade_tr.gif"></td></tr><tbody></table>' : '<table><tbody><tr><td rowspan="2" width="6"><img src="' + this.imgpath + 'shade_br. Online Booking System for Camp Holiday Resort and Recreation Area 70 .gif"></td></tr><tr><td height="' + (n_height .style.1) + 'px'. s_coord) { var n_pos = 0.png"></td><td background="' + this.e_iframe.Microsoft.imgpath + 'pixel.AlphaImageLoader(src=\'' + this.innerHTML = b_ieFix ? '<table><tbody><tr><td rowspan="2" colspan="2" width="6"><img src="' + this.gif"></td><td width="7" height="7"><img src="' + this.this.imgpath + 'shade_mr.imgpath + 'shade_br.png\'.e_shade." height="7" align="left"><img src="' + this.gif"></td></tr><tr><td><img src="' + this.a_tpl.style.imgpath + 'pixel.imgpath + 'shade_bm.imgpath + 'pixel.png\'.a_tpl.imgpath + 'pixel.e_iframe) { this.imgpath + 'shade_tr.7) + '" style="filter:progid:DXImageTransform.a_tpl.png\'.imgpath + 'shade_mr.png\'. this.gif"></td><td style="filter:progid:DXImageTransform.

getDate() != d_date. s_units) { var s_units = (s_units == 'y' ? 'FullYear' : 'Month').overflow == 'scroll') n_pos -= n_offset.body[s_coord.body) { n_offset = e_elem["scroll" + s_coord]. d_diff. e_elem = e_elem. d_result['set' + s_units](d_date['get' + s_units]() + d_diff). n_pos += n_offset.e_elem = e_elemRef. while (e_elem != document.getDate()) Online Booking System for Camp Holiday Resort and Recreation Area 71 . } return n_pos.style. } function f_tcalRelDate (d_date.toLowerCase() + 'Margin']). else if (b_safari) n_pos -= n_offset. while (e_elem) { n_offset = e_elem["offset" + s_coord]. } // margin correction in some browsers if (b_ieMac) n_pos += parseInt(document. e_elem = e_elem.offsetParent. var d_result = new Date(d_date). e_elem = e_elemRef. if (d_result.parentNode. if (n_offset && e_elem.

return d_date. return ' onclick="A_TCALS[\'' + this. i++) window.all ? function (s_id) { return document. Online Booking System for Camp Holiday Resort and Recreation Area 72 . d_date. f_tcalHideAll.addEventListener('scroll'. d_date.A_TCALSIDX.d_result. false).all[s_id] } : function (s_id) { return document.setHours(0).valueOf() + ')"'. } function f_tcalResetTime (d_date) { d_date.setSeconds(0). // global variables var s_userAgent = navigator. i < window.attachEvent('onscroll'.s_id + '\'].A_TCALSIDX[i]. if (window. d_date.f_update(' + d_result. if (document.f_hide().getElementById(s_id) }.length. } f_getElement = document. f_tcalHideAll).setDate(0).setMilliseconds(0).setMinutes(0).addEventListener) window.attachEvent) window.userAgent. } function f_tcalHideAll () { for (var i = 0.toLowerCase().

indexOf('opera') == -1. if (ele.rows[r]. /*----------------------.admin / js / filterTable.style.getElementById("menu").value. i++) { sfEls[i]. var b_ieFix = b_ie5 || b_ie6.$1) < 500. else table.toLowerCase(). b_ie6 = s_userAgent. } } /*----------------------.admin / js / menu.innerHTML. var b_mac = s_userAgent.replace(/<[^>]+>/g. b_ie5 = s_userAgent. b_safari = b_mac && re_webkit. r < table.indexOf(suche)>=0 ) table.re_webkit = /WebKit\/(\d+)/i.getElementById(adminlist).js -----------------------------------------------------.length. cellNr){ var suche = term. for (var r = 1.cells[cellNr].rows.display = ''.onmouseover=function() { this."").display = 'none'.exec(s_userAgent) && Number(RegExp. b_ieMac = b_mac && b_ie5. r++){ ele = table.indexOf('msie 6') != -1 && s_userAgent. for (var i=0.rows[r]. i<sfEls.js -----------------------------------------------.style. var ele.*/ function filter (term.onmouseout=function() { Online Booking System for Camp Holiday Resort and Recreation Area 73 . adminlist.*/ sfHover = function() { var sfEls = document.indexOf('msie 5') != -1.rows[r]. } sfEls[i].length.toLowerCase(). var table = document.className+=" sfhover".indexOf('mac') != -1.getElementsByTagName("LI").

"").this. $id = $_SESSION['id']. padding-top:10px.php --------------------------------------.guest_id R.guest_id = $id $result = mysql_query($sqlString) or die(mysql_error()).php")."> Camp Holiday Resort and Recreation Area </div> <div align="center" >Island Garden City of Samal</div> <div style="padding-top:30px.admin / Print / printpreview. SELECT tbl_guest G tbl_reservation R G."> <div style="width: 800px."> <?php include("connection/connection.attachEvent("onload".className=this. R. margin-left:auto. font-size:12px. /*----------------------."> <div align="center"><a href="#">Print this page</a></div> <div align="center" style="font-size:24px. sfHover). $sqlString = " FROM INNER JOIN ON WHERE ".className.replace(new RegExp(" sfhover\\b").guest_id = R. margin-right:auto. } } } if (window.attachEvent) window. font-weight:bolder.* G. Online Booking System for Camp Holiday Resort and Recreation Area 74 .*/ <html> <head> </head> <body style="font-family: Verdana.*.

" align="center"> <thead> <tr> <th style="padding-right:30px. font-size:12px.?></td> </tr> <tr> <td>Address</td> <td>:</td> <td><?php echo $row->Address."."> <tr> <td>Name</td> <td>:</td> <td><?php echo $row->firstName.$row->lastName.?></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. ".?></td> </tr> <tr> <td>Company</td> <td>:</td> <td><?php echo $row->Company.$row = mysql_fetch_object($result).">Description</th> Online Booking System for Camp Holiday Resort and Recreation Area 75 ." > <table style="font-family: Verdana.$row->middleInitial.

">Amount</th> </tr> </thead> <tbody> <tbody> <?php $sql2 = " SELECT FROM basket. padding-right:30px. ?></td> Online Booking System for Camp Holiday Resort and Recreation Area 76 . service. ?></td> <?php $qty = $row['Qty']. padding-right:30px.">Qty</th> <th style="padding-left:30px.service_id while($row=mysql_fetch_array($rs)){ ?> <tr> <td align="center"><?php echo $row['Description'].<th style="padding-left:30px.Price tbl_basket AS basket INNER JOIN tbl_services AS service ON ". ?> <input type="hidden" name="price" value="<?php echo $sum. service. ?>" /> <td align="center"><?php echo $sum.Description. basket. padding-right:30px. $rs=mysql_query($sql2). $price = $row['Price']. $sum = $qty * $price.*. ?></td> <td align="center"><?php echo $row['Price'].service_id = service.">Unit Price</th> <th style="padding-left:30px. ?></td> <td align="center"><?php echo $row['Qty'].

We hope to welcome you back soon. ?></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.</tr> <?php $sum1 = $sum + $sum1. </div> </div> Online Booking System for Camp Holiday Resort and Recreation Area 77 . <br /><br /><br /><br /> <hr width="800px" align="left"> <div align="center"> Thank you for staying with us. company or association fails to pay the full amount<br /> of these charges. } ?> <tr> <td colspan="2"></td> <th>Total</th> <th><?php echo $sum1.

margin-left:auto.</body> </html> /*----------------------. padding-top:10px."> Camp Holiday Resort and Recreation Area </div> <div align="center" >Island Garden City of Samal</div> <div style="padding-top:30px. SELECT tbl_guest G tbl_reservation R G.guest_id = R. font-size:12px."> Billing </div> <div align="center" style="font-size:24px. font-weight:bolder. margin-right:auto. $sqlString = " FROM INNER JOIN ON WHERE "."> <div align="center"><a href="#">Print this page</a></div> <div align="center" style="font-size:24px.php").admin / Print / printpreviewBilling.* G.php ------------------------------. R."> <div style="width: 800px. padding-top:10px. $id = $_SESSION['id'].*."> <?php include("connection/connection.guest_id R.*/ <html> <head> </head> <body style="font-family: Verdana. font-weight:bolder.guest_id = $id $result = mysql_query($sqlString) or die(mysql_error()). Online Booking System for Camp Holiday Resort and Recreation Area 78 .

font-size:12px.$row = mysql_fetch_object($result).?></td> </tr> <tr> <td>Company</td> <td>:</td> <td><?php echo $row->Company." ".">Description</th> Online Booking System for Camp Holiday Resort and Recreation Area 79 . "." > <table style="font-family: Verdana. ?> <table style="font-family: Verdana."> <tr> <td>Name</td> <td>:</td> <td><?php echo $row->firstName.?></td> </tr> <tr> <td>Address</td> <td>:</td> <td><?php echo $row->Address.". font-size:12px.$row->lastName.$row->middleInitial." align="center"> <thead> <tr> <th style="padding-right:30px.?></td> </tr> </table> </div> <hr width="800px" align="left"> <hr width="800px" align="left"> <div style="font-size:12px.

?></td> Online Booking System for Camp Holiday Resort and Recreation Area 80 . ?></td> <td align="center"><?php echo $row['Price'].<th style="padding-left:30px.">Amount</th> </tr> </thead> <tbody> <tbody> <?php $sql2 = " SELECT FROM basket. padding-right:30px. ?></td> <td align="center"><?php echo $row['Qty']. service.Price tbl_basket AS basket INNER JOIN tbl_services AS service ON ".*. padding-right:30px. $sum = $qty * $price. service. basket.">Unit Price</th> <th style="padding-left:30px.">Qty</th> <th style="padding-left:30px. ?>" /> <td align="center"><?php echo $sum.Description. $price = $row['Price']. ?> <input type="hidden" name="price" value="<?php echo $sum.service_id while($row=mysql_fetch_array($rs)){ ?> <tr> <td align="center"><?php echo $row['Description']. ?></td> <?php $qty = $row['Qty']. padding-right:30px.service_id = service. $rs=mysql_query($sql2).

?></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. } ?> <tr> <td colspan="2"></td> <th>Total</th> <th><?php echo $sum1. We hope to welcome you back soon. </div> </div> Online Booking System for Camp Holiday Resort and Recreation Area 81 . company or association fails to pay the full amount<br /> of these charges.</tr> <?php $sum1 = $sum + $sum1. <br /><br /><br /><br /> <hr width="800px" align="left"> <div align="center"> Thank you for staying with us.

php").value = selectedtype. Online Booking System for Camp Holiday Resort and Recreation Area 82 . i++){ aa[i].width/2)-(w/2). title.h) { var left = (screen. document.adminForm.w.length. } checked=false. i < aa.submit().height/2)-(h/2).deleteuser.admin / Sub / Home / addcharges. } } function PopupCenter(pageURL.adminForm. ?> <script> function getdelete ( selectedtype ){ document. var top = (screen.checked = checked. if (checked == false){ checked = true } else { checked = false } for (var i =0. include("connection/connection.</body> </html> /*----------------------.php ------------------------------.getElementById('frm1').*/ <?php session_start(). function checkedAll(frm1) { var aa = document.

$id = $_POST['chk']. for($i=0.*."'". top='+top+'. location=no. status=no. resizable=no. left='+left). } </script> <?php $do_delete = $_POST['deleteuser']. $i++){ $sql = "DELETE FROM tbl_basket WHERE service_id = '".$id[$i]. R. if($do_delete){ $N = count($id). copyhistory=no. scrollbars=no. } } ?> <div id="element-box2"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <?php $_SESSION['id'] = $_GET['id'].$i < $N. height='+h+'.* Online Booking System for Camp Holiday Resort and Recreation Area 83 . directories=no. $sqlString = " SELECT G. mysql_query($sql) or die(mysql_error()). 'toolbar=no.open (pageURL. title.var targetWin = window. width='+w+'. menubar=no.

?> Online Booking System for Camp Holiday Resort and Recreation Area 84 ."> <?php echo $row->lastName. tbl_guest G tbl_reservation R G. ?> <form action="<?php echo $PHP_SELF ?>" name="checkavailability" method="post"> <table border="0"> <tr> <td >Company Name</td> <td>:</td> <td style="color:#060.$row->firstName.". ". font-weight:bolder. $row = mysql_fetch_object($result). } ?> </td> </tr> <tr> <td>Name</td> <td>:</td> <td style="color:#060.guest_id R.".guest_id = '"."' $result = mysql_query($sqlString) or die(mysql_error()). } else { echo $row->Company. font-weight:bolder.$row->middleInitial.FROM INNER JOIN ON WHERE "." ".guest_id = R."> <?php if($row->Company == ""){ echo " XXXXX ".$_SESSION['id'].".

font-weight:bolder."><?php echo $row->roomName.?></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 . font-weight:bolder."><?php echo $row->roomNumber.?></td> <td width="40px"><td> <td >Room No.?></td> </tr> <tr> <td >Address</td> <td>:</td> <td style="color:#060. font-weight:bolder.</td> <td>:</td> <td style="color:#060."><?php echo $row->Address.</td> <td width="40px"><td> <td >Room Type</td> <td>:</td> <td style="color:#060.

php'.'Add Charges'."> <span class="icon-32-delete" title="Delete"></span> Delete </a> </td> <td class="button" id="toolbar-new"> <a href="javascript:void(0)."> <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 .200)." onClick="PopupCenter('Sub/Home/addcharges_menu.<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?').300.

'></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 .<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).

basket. service. ?>" /> Online Booking System for Camp Holiday Resort and Recreation Area 88 . ?></td> <td align="center"><?php echo $row['Price']. ?></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'].<tbody> <?php $sql2 = " SELECT FROM INNER JOIN ON ". ?></td> <td align="center"><?php echo $row['Qty']. $rs=mysql_query($sql2).*. while($row=mysql_fetch_array($rs)){ ?> <tr> <td align="center"><?php echo $count.Description.Price tbl_basket AS basket tbl_services AS service basket.service_id $count = 1. service. ?></td> <?php $qty = $row['Qty']. $price = $row['Price']. ?> <input type="hidden" name="price" value="<?php echo $sum.service_id = service. $sum = $qty * $price.

padding-right:15px.<td align="center"><?php echo $sum. cursor:pointer.php?rel=Checkin"> <input type="button" value="Cancel" style="font-size:16px. } ?> <tr> <td colspan="4"></td> <th align="center" style="color:#00F. padding-right:15px."/> </a> Online Booking System for Camp Holiday Resort and Recreation Area 89 . padding-left:15px. padding-left:15px."><?php echo $sum1. font-weight: bolder.php?rel=AddChargesConfirm"> <input type="button" value="Confirm" style="font-size:16px. cursor:pointer. font-weight: bolder. $count = $count + 1."/> </a> </td> <td> <a href="domain.">Total</th> <th align="center" style="color:#F00. font-weight:bolder. font-weight:bolder. ?></td> </tr> <?php $sum1 = $sum + $sum1. ?></th> </tr> </tbody> </table> <tr> <td> <a href="domain.

. </script> </head> <body> <?php include("connection/connection.php"). Online Booking System for Camp Holiday Resort and Recreation Area 90 .php?rel=Checkin'.href='domain.1500).</td> </tr> </form> </div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div> /*----------------------. } window..*/ <html> <head> <script> function gotoUrl(){ location.setTimeout('gotoUrl()'.!</div>".php -------------------.admin / Sub / Home / addcharges_confirm. print "<div class='success'>Added Charges Successfully.

$accommodation_id = $row->accommodation_id. $addcharges[$service_id] = $qty. Online Booking System for Camp Holiday Resort and Recreation Area 91 . accommodation_id tbl_accommodation guest_id = $id $result = mysql_query($sql) or die(mysql_error()). while($row3 = mysql_fetch_array($result3)){ $service_id = $row3['service_id']. $sql2 = " INSERT INTO tbl_transaction VALUES( ''. $sql3 = " FROM ". ''. '$accommodation_id'. $transaction_id = mysql_insert_id(). $result2 = mysql_query($sql2) or die(mysql_error()). SELECT tbl_basket * $result3 = mysql_query($sql3) or die(mysql_error()). $row = mysql_fetch_object($result). 0. $qty = $row3['Qty']. NOW() ) ". $sql = " SELECT FROM WHERE ".$id = $_SESSION['id'].

$sql6 = " FROM WHERE ". $sql5 = " '$transaction_id'. $total = $total + $amount. '$service_id'. } INSERT INTO tbl_transactiondetails VALUES( ''. $amount = $qty * $row4->Price. while($row6 = mysql_fetch_array($result6)){ $amount = $row6['Amount']. $result4 = mysql_query($sql4) or die(mysql_error()). SELECT tbl_services service_id = '$service_id' Price $total = 0. '$qty'. $result6 = mysql_query($sql6) or die(mysql_error()). $amount ) ". mysql_query($sql5) or die(mysql_error()). } SELECT tbl_transactiondetails transaction_id = '$transaction_id' Amount Online Booking System for Camp Holiday Resort and Recreation Area 92 . $row4 = mysql_fetch_object($result4).} foreach($addcharges as $service_id => $qty){ $sql4 = " FROM WHERE ".

Total = '$total'. $sql = " SELECT FROM ORDER BY * tbl_services Category ASC". ?>"><?php echo $row['Description']../. ?></option> Online Booking System for Camp Holiday Resort and Recreation Area 93 .php ----------------------.admin / Sub / Home / addcharges_menu. $rs = mysql_query($sql).php" method="post"> <table> <tr> <td>Description:</td> <td> <select name="selectmenu"> <?php include(". dateTransaction = NOW() WHERE ". mysql_query($sql7) or die(mysql_error()). while($row=mysql_fetch_array($rs)) { ?> <option value="<?php echo $row['service_id'].php")./connection/connection. $sql7 = " SET UPDATE tbl_transaction accommodation_id = '$accommodation_id'.*/ <form name="menu" action="addcharges_menu_insert..$total. ?> </body> </html> transaction_id = '$transaction_id' /*----------------------.

opener.qty) values('$id'.php --------------. $id = $_POST['selectmenu']./connection/connection.admin / Sub / Home / addcharges_menu_insert.close().'$qty') ". $qty = $_POST['qty']. if (window.closed) { window.location.opener && !window. Online Booking System for Camp Holiday Resort and Recreation Area 94 ..php").reload(). $sql = " Insert tbl_basket(service_id.opener./.*/ <?php include(". if (mysql_query($sql)) { echo " <script> window..<?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> /*----------------------.

$sqlString = " FROM INNER JOIN ON SELECT tbl_guest G tbl_reservation R G.*/ <?php date_default_timezone_set('Asia/Taipei').php ------------------------------------. } ?> /*----------------------.guest_id Online Booking System for Camp Holiday Resort and Recreation Area 95 . margin-right:auto. padding-top:10px. font-size:12px.guest_id = R."> <div style="width: 800px."> Billing </div> <div align="center" style="font-size:24px."> Camp Holiday Resort and Recreation Area </div> <div align="center" >Island Garden City of Samal</div> <div style="padding-top:30px.php"). padding-top:10px. ?> <html> <body style="font-family: Verdana.*.admin / Sub / Home / billing.* G.} </script> ". font-weight:bolder."> <?php include("connection/connection. font-weight:bolder. margin-left:auto."> <div align="center"><a href="javascript:window.print()">Print this page</a></div> <div align="center" style="font-size:24px. $id = $_GET['id']. R.

$result2 = mysql_query($sqlString2) or die(mysql_error())." ". ?> </td> tbl_guest G G.guest_id = A. font-weight: bolder.guest_id = $id $result = mysql_query($sqlString) or die(mysql_error()). $row = mysql_fetch_object($result).guest_id = $id B.billing_id tbl_billing B tbl_accommodation A A. ".accommodation_id = B. ?> <table style="font-family: Verdana. R.</td> <td>:</td> <td style="color:#F00.accommodation_id Online Booking System for Camp Holiday Resort and Recreation Area 96 . $row2 = mysql_fetch_object($result2)."> <?php $sqlString2 = " SELECT FROM INNER JOIN ON INNER JOIN ON WHERE ". echo $row2->billing_id.$row->middleInitial.guest_id G."> <tr> <td>Name</td> <td>:</td> <td><?php echo $row->firstName.".WHERE ".$row->lastName. font-size:12px.?></td> <td width="200px"><td> <td>Statement No.

} else { echo $row->Company."> <tr> <td>Room No. } ?> </td> </tr> <tr> <td>Address</td> <td>:</td> <td><?php echo $row->Address.</td> <td>:</td> <td><?php echo $row->roomNumber. font-size:12px.</tr> <tr> <td>Company</td> <td>:</td> <td> <?php if( $row->Company == ""){ echo " XXXXX ".?></td> </tr> </table> </div> <hr width="800px" align="left"> <div> <table style="font-family: Verdana. ?></td> Online Booking System for Camp Holiday Resort and Recreation Area 97 .

$departueDate). ?> </td> </tr> <tr> <td>Departure</td> <td>:</td> <td> <?php $departueDate = strtotime($row->Departure). ?> </td> </tr> </table> </div> Online Booking System for Camp Holiday Resort and Recreation Area 98 . echo date('m/d/Y'.</tr> <tr> <td>Room Type</td> <td>:</td> <td><?php echo $row->roomName. $arrivalDate). echo date('m/d/Y'.?></td> </tr> <tr> <td>Arrival</td> <td>:</td> <td> <?php $arrivalDate = strtotime($row->Arrival).

padding-right:30px. T.* Online Booking System for Camp Holiday Resort and Recreation Area 99 .</th> <th style="padding-left:30px.guest_id = A. font-size:12px. padding-right:30px.*.guest_id = R.*.">Amount</th> <th style="padding-left:30px.">Description</th> <th style="padding-left:30px. S. R.accommodation_id tbl_transaction T B.<hr width="800px" align="left"> <div style="font-size:12px. padding-right:30px.">Balance</th> </tr> </thead> <tbody> <tbody> <?php $balance = 0.guest_id tbl_accommodation A G. $sql2 = " FROM INNER JOIN ON INNER JOIN ON INNER JOIN ON INNER JOIN ON LEFT JOIN SELECT tbl_guest G tbl_reservation R G." align="center" > <thead> <tr> <th style="padding-right:30px. padding-right:30px. padding-right:30px.accommodation_id tbl_transactiondetails TD G.*.*. A.guest_id tbl_billing B A. B.accommodation_id = T." > <table style="font-family: Verdana.">Transaction No.*. TD.">Payment</th> <th style="padding-left:30px.*.accommodation_id = B.">Date</th> <th style="padding-left:30px.

} elseif($row['Desc'] == "Payment Received") { echo $row['Desc'].transaction_id = TD. } else { $departuredate = strtotime($row['Departure']). $date).service_id G.service_id = S. echo $row['Desc'].$departuredate). } ?> Online Booking System for Camp Holiday Resort and Recreation Area 100 .transaction_id tbl_services S TD.ON LEFT JOIN ON WHERE ".date("m/d/Y". echo date('m/d/Y'. $rs=mysql_query($sql2). ?> </td> <td align="center"><?php echo $row['transaction_id']." ". T. ?></td> <td align="center"> <?php if($row['Desc'] == ""){ echo $row['Description'].guest_id = $id while($row=mysql_fetch_array($rs)){ ?> <tr> <td align="center"> <?php $date = strtotime($row['dateTransaction']).

} else { echo $row['Total']. } elseif($row['Desc'] == "Payment Received") { echo " ".</td> <td align="center"> <?php if($row['Desc'] == "Payment Received"){ echo $row['Total']. } Online Booking System for Camp Holiday Resort and Recreation Area 101 . } ?> </td> <td align="center"> <?php if($row['Desc'] == ""){ echo $row['Amount'].$row['Total']. } ?> </td> <td align="center"> <?php if($row['Desc'] == ""){ echo $balance = $balance + $row['Amount']. } elseif($row['Desc'] == "Payment Received") { echo $balance = $balance . } else { echo $balance = $balance + $row['Total'].

</div> </div> Online Booking System for Camp Holiday Resort and Recreation Area 102 . font-weight: bolder. ?></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."><?php echo $balance.">Current Balance</th> <th style="color:#F00. company or association fails to pay the full amount<br /> of these charges.?> </td> </tr> <?php } ?> <tr> <td colspan="4"></td> <th style="color:#00F. font-weight: bolder. We hope to welcome you back soon. <br /><br /><br /><br /> <hr width="800px" align="left"> <div align="center"> Thank you for staying with us.

admin / Sub / Home / checkin.php"). height='+h+'. scrollbars=no. directories=no. r++){ ele = table."").php -----------------------------------.toLowerCase(). var on = 0.w. resizable=no.</body> </html> /*----------------------.toLowerCase(). var targetWin = window. status=no. r < table. mysql_query($sql2) or die("No users database!").length.length.split(" "). ?> <script type="text/javascript"> function PopupCenter(pageURL.innerHTML. title. top='+top+'. var top = (screen. i++) { if (ele. location=no.height/2)-(h/2). include("connection/connection. for (var i = 0.rows[r]. $sql2 = "DELETE FROM tbl_basket ". menubar=no. copyhistory=no.*/ <?php session_start(). title.open (pageURL.h) { var left = (screen.value. var displayStyle = 'none'.indexOf(words[i])>=0){ Online Booking System for Camp Holiday Resort and Recreation Area 103 . var table = document.rows. left='+left). 'toolbar=no.width/2)-(w/2). width='+w+'. for (var r = 0.getElementById("filterable"). date_default_timezone_set('Asia/Taipei'). i < words. } function doSearch(phrase){ var words = phrase.replace(/<[^>]+>/g. var ele.

if ( on == 0 && n ) { n.getElementById("qt").display = "". }else{ n. document.style.getElementById("noresults"). } } </script> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="domain.style. break.style. } var n = document.display = "none".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 .innerHTML = phrase. } } table.displayStyle = ''.value.rows[r]. }else { displayStyle = 'none'. on++.display = displayStyle.

php?rel=Home&page=1" >Reservation</a></li> <li><a href="domain.<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=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> <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. padding: 5px."> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red.</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." onkeyup="doSearch(filter).</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 .

$sql = " SELECT FROM INNER JOIN ON WHERE ";

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'

$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"> <?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;

/*----------------------- admin / Sub / Home / checkin_info.php ----------------------------- */
<html> <head> <script> function gotoUrl(){ location.href='domain.php?rel=Checkin'; } window.setTimeout('gotoUrl()',1500); </script> </head>

Online Booking System for Camp Holiday Resort and Recreation Area

109

<body> <?php include("connection/connection.php"); $id = $_GET['id'];

$sqlString = " SET

UPDATE isReserved = 'No',

tbl_reservation

Status = 'Check-in' WHERE "; mysql_query($sqlString) or die(mysql_error()); ?> </body> </html> reservation_id = $id

/*----------------------- admin / Sub / Home / checkout.php ---------------------------------- */
<?php session_start(); include("connection/connection.php"); date_default_timezone_set('Asia/Taipei');

$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

png" align="middle" /> Online Booking System for Camp Holiday Resort and Recreation Area 115 . $row['middleInitial']. ?></td> <td align="center"> <?php echo $row['lastName']. ?></td> <td align="center"> <?php $arrival = strtotime($row['Arrival']).". ?></td> <td align="center"><?php echo $row['roomNumber']. ?> </td> <td align="center"><?php echo $row['roomName']."> <span title="Official Receipt"> <img src="images/admin-icons/32-view-icon. ?></td> <td align="center"><?php echo $row['Status'].900.'Add Charges'. $arrival)." ". echo date("m/d/Y". $departure).400). ". ?> </td> <td align="center"><?php echo $row['reservationType'].". ?> </td> <td align="center"> <?php $departure = strtotime($row['Departure']).php?rel=Payments&id=<?php echo $row['guest_id'].?> <tr> <td align="center"><?php echo $count.". ?>'." onClick="PopupCenter('popup. echo date("m/d/Y". ?></td> <td align="center" colspan="3"> <a href="javascript:void(0).$row['firstName'].

/*----------------------. font-weight: bolder. ?> <script type="text/javascript"> Online Booking System for Camp Holiday Resort and Recreation Area 116 . date_default_timezone_set('Asia/Taipei').php -------------------------------. include("connection/connection.</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." id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>".admin / Sub / Home / reservation. color:#F00.*/ <?php session_start().php").</span> </a> </td> </tr> <?php } ?> <tr style="display:none.

r < table. i++) { if (ele.function PopupCenter(pageURL. on++. for (var i = 0. var top = (screen.split(" ").display = displayStyle. break.length. var targetWin = window. status=no. 'toolbar=no.""). location=no.replace(/<[^>]+>/g.open (pageURL.toLowerCase().rows[r]. if ( on == 0 && n ) { n. } } table. var displayStyle = 'none'.innerHTML. } function doSearch(phrase){ var words = phrase.h) { var left = (screen. } var n = document. resizable=no. }else { displayStyle = 'none'. title.style. scrollbars=no.indexOf(words[i])>=0){ displayStyle = ''. r++){ ele = table. left='+left). var on = 0. directories=no. Online Booking System for Camp Holiday Resort and Recreation Area 117 .w. copyhistory=no. height='+h+'.length. i < words.height/2)-(h/2). for (var r = 0.display = "".getElementById("filterable").getElementById("noresults").rows. top='+top+'. menubar=no.rows[r].style. var table = document. title.toLowerCase().width/2)-(w/2).value. var ele. width='+w+'.

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 .getElementById("qt").display = "none". }else{ n.document. } } </script> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="domain.value.innerHTML = phrase.style.

" onkeyup="doSearch(filter).php?rel=Checkin&page=1">Guests</a></li> <li><a href="domain."> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red.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.<div class="t"></div> </div> </div> <div class="m"> <ul id="submenu"> <li><a href="domain." /> </div> Online Booking System for Camp Holiday Resort and Recreation Area 119 .php?rel=Home&page=1" class="active">Reservation</a></li> <li><a href="domain. padding: 5px.

$datenow = date("Y-m-d". Online Booking System for Camp Holiday Resort and Recreation Area 120 .date("d").0. G.Arrival >= '$datenow' R. G.date("Y")).middleInitial.0.isReserved='YES' AND R.Arrival ASC $result = mysql_query($sql) or die("No users database!").guest_id.firstName. $sql = " SELECT FROM INNER JOIN ON WHERE ORDER BY ". G.guest_id R. G.* tbl_guest G tbl_reservation R G.lastName. R.</th> <th width="15%" nowrap="nowrap" colspan="3">Action</th> </tr> </thead> <tbody id="filterable"> <?php $now = mktime(0.<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.date("m"). $now).guest_id = R.

$count = 1.". $datenow = date("Y-m-d". ?></td> <td align="center"><?php echo $row['Status']. ?></td> <td align="center"> <?php echo $row['lastName']. $now).date("Y")).0. ?></td> <td align="center"><?php echo $row['roomNumber']. ?></td> Online Booking System for Camp Holiday Resort and Recreation Area 121 . ?> <tr> <td align="center"><?php echo $count.date("m"). ?> </td> <td align="center"><?php echo $row['roomName']." ". while($row = mysql_fetch_array($result)){ $now = mktime(0. $row['middleInitial']. ".". ?> </td> <td align="center"> <?php $departure = strtotime($row['Departure']). echo date("m/d/Y". echo date("m/d/Y".0. ?></td> <td align="center"> <?php $arrival = strtotime($row['Arrival']). ?> </td> <td align="center"><?php echo $row['reservationType'].$arrival).$departure).$row['firstName'].date("d").".

"> <span title="View Details"> <img src="images/admin-icons/32-view-icon.<td align="center"> <?php if($row['Arrival'] == $datenow){?> <a href="domain. 'Add Charges'. ?>" onclick="return confirm('Are you sure you want to Cancel Reservation?'). ?>" onclick="return confirm('Continue to Check-in?').php?rel=ViewDetails&id=<?php echo $row['reservation_id'].png" align="middle" /> </span> </a> </td> <td align="center"> <a href="domain.png" align="middle" /> </span> </a> <?php } ?> </td> <td align="center"> <a href="javascript:void(0).php?rel=ArrivalConfirm&id=<?php echo $row['reservation_id']." onClick="PopupCenter('popup. ?>'.500.470).php?rel=ArrivalCancel&id=<?php echo $row['reservation_id']."> <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 ."> <span title="Confirm"> <img src="images/admin-icons/32-confirm-icon.

} window.*/ <html> <head> <script> function gotoUrl(){ location.<?php } ?> $count = $count + 1.</td> </tr> </tbody> </table> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div> /*----------------------.php?rel=Home'. color:#F00." id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>".php ---------------------.1000). <tr style="display:none. font-weight: bolder.href='domain.admin / Sub / Home / reservation_cancel.setTimeout('gotoUrl()'. </script> </head> <body> Online Booking System for Camp Holiday Resort and Recreation Area 123 .

$id = $_GET['id']. $id = $_GET['id'].php").1500).setTimeout('gotoUrl()'.admin / Sub / Home / reservation_confirm. tbl_reservation reservation_id = $id mysql_query($sqlString) or die(mysql_error()).href='domain. ?> </body> </html> /*----------------------.*/ <html> <head> <script> function gotoUrl(){ location. </script> </head> <body> <?php include("connection/connection.php"). Online Booking System for Camp Holiday Resort and Recreation Area 124 .<?php include("connection/connection.php --------------------. $sqlString = " SET Status = 'Cancel' WHERE ". UPDATE isReserved = 'No'.php?rel=Checkin'. } window.

js"></script> Online Booking System for Camp Holiday Resort and Recreation Area 125 . include("connection/connection.js" language="JavaScript"></script> <script type="text/javascript" src="js/menu.css"/> <link href="css/calendar.js"></script> <script type="text/javascript" src="js/reservationtype. mysql_query($sqlString) or die(mysql_error()).*/ <?php session_start(). ?> <html> <head> <title>View Details</title> <link rel="stylesheet" type="text/css" href="css/template.php"). tbl_reservation Status = 'Check-in' WHERE ".admin / Sub / Home / reservation_viewdetails.css" rel="stylesheet" type="text/css"/> <script src="js/filterTable.css" /> <link rel="stylesheet" type="text/css" href="css/styles.js" language="JavaScript"></script> <script src="js/calendar.css" /> <link rel="stylesheet" type="text/css" href="css/rounded.php ---------------. date_default_timezone_set('Asia/Taipei').css"/> <link rel="stylesheet" type="text/css" href="css/messagebox. ?> </body> </html> reservation_id = $id /*----------------------.$sqlString = " SET UPDATE isReserved = 'No'.

$sqlString = " FROM WHERE ". while($row = mysql_fetch_array($result)){ ?> <form> SELECT tbl_guest guest_id = $id * Online Booking System for Camp Holiday Resort and Recreation Area 126 .</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']. $result = mysql_query($sqlString) or die("No users database!").

"><?php echo $row['Address'].".</td> Online Booking System for Camp Holiday Resort and Recreation Area 127 . } else { echo $row['Company'].<table style="font-size: 12px."> <tr> <td >Company Name</td> <td>:</td> <td style="color:#060.$row['firstName']. ". } ?> </td> </tr> <tr> <td >Name</td> <td>:</td> <td style="color:#060. font-weight:bolder.?></td> </tr> <tr> <td >Contact No.". font-weight:bolder. font-weight:bolder."> <?php if($row['Company'] == ""){ echo " XXXXX "."." "."> <?php echo $row['lastName']. $row['middleInitial']. ?> </td> </tr> <tr> <td >Address</td> <td>:</td> <td style="color:#060. margin-left: 50px.

<td>:</td> <td style="color:#060. font-weight:bolder. 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 ."><?php echo $row['contactNo'].?></td> </tr> <tr> <td >Email</td> <td>:</td> <td style="color:#060.

margin-left: 50px.?></td> </tr> SELECT tbl_reservation guest_id = $id * Online Booking System for Camp Holiday Resort and Recreation Area 129 . $sqlString = " FROM WHERE ". font-weight:bolder. $result = mysql_query($sqlString) or die("No users database!")."><?php echo $row['Status']. while($row = mysql_fetch_array($result)){ ?> <form> <table style="font-size: 12px."><?php echo $row['reservationType']. font-weight:bolder.<div id="element-box5"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <?php $id = $_GET['id']."> <tr> <td >Status</td> <td>:</td> <td style="color:#F00.?></td> </tr> <tr> <td >Reservation Type</td> <td>:</td> <td style="color:#060.

font-weight:bolder."> <?php $arrival = strtotime($row['Arrival'])."><?php echo $row['roomName'].</td> <td>:</td> Online Booking System for Camp Holiday Resort and Recreation Area 130 ."> <?php $departure = strtotime($row['Departure']).?></td> </tr> <tr> <td >Room No. ?> </td> </tr> <tr> <td >Room Type</td> <td>:</td> <td style="color:#060. font-weight:bolder. font-weight:bolder. echo date("m/d/Y".$departure). ?> </td> </tr> <tr> <td >Departure</td> <td>:</td> <td style="color:#060.$arrival).<tr> <td >Arrival</td> <td>:</td> <td style="color:#060. echo date("m/d/Y".

of Children</td> <td>:</td> <td style="color:#060. font-weight:bolder."><?php echo $row['numAdults'].<td style="color:#060."><?php echo $row['numChildren'].?></td> </tr> <tr> <td >No. Online Booking System for Camp Holiday Resort and Recreation Area 131 .?></td> </tr> </table> </form> <?php } ?> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </body> </html> /*----------------------.admin / Sub / Master / Sub_Amenities / Edit.php -----------------. font-weight:bolder.?></td> </tr> <tr> <td >No.*/ <script language="JavaScript" type="text/javascript"> function getUpdateAmenities(selectedtype){ document. font-weight:bolder.value = selectedtype .updateamenities."><?php echo $row['roomNumber']. of Adults</td> <td>:</td> <td style="color:#060.amenities.

} getUpdateAmenities(selectedtype).php"). return false.value).amenities.focus().amname. if( amname == "" ){ alert('" FACILITIY NAME " Field should not be empty!').amenities.document.value).amenities.amenities. document.amdesc. amdesc = String(document.amname.amenities. } if( amdesc == "" ){ alert('" DESCRIPTION " Field should not be empty!'). return false. } function requiredFields(){ var amname. document. return true. } </script> <?php include("connection/connection.focus(). amdesc. $id = $_GET['id']. amname = String(document. Online Booking System for Camp Holiday Resort and Recreation Area 132 .submit() .amdesc.

?>" /> <table class="toolbar"> <tr> <td class="button" id="toolbar-copy"> <a href="javascript:getUpdateAmenities('amenities')" onclick="return requiredFields()" style="color:#000000. $result = mysql_query($sql) or die("No user database!"). $row = mysql_fetch_object($result)."> <span class="icon-32-save" title="Copy"></span> Save </a> </td> Online Booking System for Camp Holiday Resort and Recreation Area 133 . ?> <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.$sql = "SELECT * FROM tbl_amenities WHERE amenities_id = '$id'".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.

php?rel=Amenities&page=1" style="color:#000000.<td class="button" id="toolbar-edit"> <a href="domain."> <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> <div id="element-box1"> <div class="t"> <div class="t"> <div class="t"></div> Online Booking System for Camp Holiday Resort and Recreation Area 134 .

?>" 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.</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> Online Booking System for Camp Holiday Resort and Recreation Area 135 .

amenities. } function requiredFields(){ var amname.amenities. ?>>No</option> </select> </td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> /*----------------------.value = selectedtype .php ----------------.saveamenities.<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'".admin / Sub / Master / Sub_Amenities / New.*/ <script language="JavaScript" type="text/javascript"> function getSaveAmenities(selectedtype){ document. Online Booking System for Camp Holiday Resort and Recreation Area 136 . amdesc.submit() . document.

} </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. amdesc = String(document.amname = String(document.focus().amenities. if( amname == "" ){ alert('" FACILITIY NAME " Field should not be empty!').value). return true. } getSaveAmenities(selectedtype).amname.amenities. document.amdesc.amenities. return false.amname. document.focus().amenities.amdesc. } if( amdesc == "" ){ alert('" DESCRIPTION " Field should not be empty!').php?rel=ValidateAmenities&subpage=upload" method="post" name="amenities" enctype="multipart/form-data"> Online Booking System for Camp Holiday Resort and Recreation Area 137 .value). return false.

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 ."> <span class="icon-32-save" title="Save"></span> Save </a> </td> <td class="button" id="toolbar-edit"> <a href="domain.<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.

<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">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 .

value = selectedtype .submit().<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> /*----------------------.admin / Sub / Master / Sub_Guests / Edit. Online Booking System for Camp Holiday Resort and Recreation Area 140 .php ---------------------.3}$/.guests. fname.+@..*/ <script language="JavaScript" type="text/javascript"> function getUpdateGuests(selectedtype) { document. email.updateguests. mi.{2.guests.+\. document. var filter = /^. contactno. } function requiredFields(){ var lname.

document. " Field should not be empty!'). } if( mi == "" ){ alert('" MIDDLE INITIAL " Field should not be empty!'). contactno = String(document.guests.fname. return false.guests.focus().fname.mi. return false. if( lname == "" ){ alert('" LAST NAME " Field should not be empty!').guests.value).value). document.email.mi. email = String(document.guests. fname = String(document. return false.guests. mi = String(document.value).contactno.lname = String(document. } if( email == "" ){ Online Booking System for Camp Holiday Resort and Recreation Area 141 . } if( fname == "" ){ alert('" FIRST NAME " Field should not be empty!').guests.value). } if( contactno == "" ){ alert('" CONTACT NO.contactno.focus(). document.focus().lname.guests. return false.focus(). document.guests.value).lname.guests.

$result = mysql_query($sql) or die("No user database!").email.focus(). ?> <div id="toolbar-box"> Online Booking System for Camp Holiday Resort and Recreation Area 142 . } if( filter.alert('"EMAIL ADDRESS " Field should not be empty!'). document.php"). return false. } getUpdateGuests(selectedtype) return true.test(email)){ return true. return false.guests. $id = $_GET['id'].focus().email. }else{ alert('Please input a valid " EMAIL ADDRESS "!'). $sql = "SELECT * FROM tbl_guest WHERE guest_id = '$id'". } </script> <?php include("connection/connection. document. $row = mysql_fetch_object($result).guests.

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.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 .<div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div class="toolbar" id="toolbar"> <form action="domain."> <span class="icon-32-save" title="Copy"></span> Save </a> </td> <td class="button" id="toolbar-edit"> <a href="domain. ?>" /> <table class="toolbar"> <tr> <td class="button" id="toolbar-copy"> <a href="javascript:getUpdateGuests('guests')" onclick="return requiredFields()" style="color:#000000.

<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 .

?>" size="50" /></td> </tr> <tr> <td align="right">M.</td> <td> <input type="text" name="mi" maxlength="2" value="<?php echo $row->middleInitial.?>" 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 .<input type="text" name="lname" value="<?php echo $row->lastName.?>" size="10" /></td> </tr> <tr> <td align="right">Contact No.?>" size="50" /> </td> </tr> <tr> <td align="right">First Name</td> <td> <input type="text" name="fname" value="<?php echo $row->firstName.</td> <td> <input type="text" name="contactno" value="<?php echo $row->contactNo.I.

contactno. } function requiredFields(){ var lname. fname. mi. Online Booking System for Camp Holiday Resort and Recreation Area 146 .guests.submit() .admin / Sub / Master / Sub_ Guests / New.<tr> <td align="right">isActive</td> <td> <select name="isactive"> <option value="Yes" <?php if($row->isActive == "Yes") echo "selected='selected'". email.guests.*/ <script language="JavaScript" type="text/javascript"> function getSaveGuests(selectedtype){ document.saveguests. document. ?>>No</option> </select> </td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> /*----------------------. ?>>Yes</option> <option value="No" <?php if($row->isActive == "No") echo "selected='selected'".value = selectedtype .php --------------------.

document. return false. email = String(document.guests. if( lname == "" ){ alert('" LAST NAME " Field should not be empty!').value).focus().focus().+@.mi. document.fname. } if( contactno == "" ){ alert('" CONTACT NO.{2.lname. } if( fname == "" ){ alert('" FIRST NAME " Field should not be empty!').focus().mi. lname = String(document.fname.value).3}$/. mi = String(document. } if( mi == "" ){ alert('" MIDDLE INITIAL " Field should not be empty!'). return false.value). Online Booking System for Camp Holiday Resort and Recreation Area 147 .contactno.+\.guests.contactno..guests.focus().var filter = /^. return false.value).email.guests. document.guests.guests. document.guests.lname. return false.value). fname = String(document.guests. contactno = String(document.guests. " Field should not be empty!').

document. return false.guests.email. }else{ alert('Please input a valid " EMAIL ADDRESS"!'). } getSaveGuests(selectedtype). } if( filter.} if( email == "" ){ alert('"EMAIL ADDRESS " Field should not be empty!').guests. } </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.email. return true.test(email)){ return true.focus(). document.focus().php?rel=ValidateGuest&subpage=upload" method="post" name="guests" enctype="multipart/form-data"> Online Booking System for Camp Holiday Resort and Recreation Area 148 . return false.

"> <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 .php?rel=Guests&page=1" style="color:#000000."> <span class="icon-32-save" title="Save"></span> Save </a> </td> <td class="button" id="toolbar-edit"> <a href="domain.<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.

</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 .<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><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="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> /*----------------------.*/ <script language="JavaScript" type="text/javascript"> Online Booking System for Camp Holiday Resort and Recreation Area 151 .php -----------------.admin / Sub / Master / Sub_RoomList / Edit.<td align="right">Contact No.

return true.roomlists.function getUpdateRoomList(selectedtype) { document. document.roomlists.roomlists.focus().submit().value). roomrate = String(document.roomlists. roomnum = String(document. if( roomnum == "" ){ alert('" ROOM NUMBER " Field should not be empty!').roomnum.value = selectedtype .value).roomlists. document. return false. roomrate.focus().roomnum. } if( roomrate == "" ){ alert('" ROOM RATE " Field should not be empty!'). document. } getUpdateRoomList(selectedtype).roomrate.updateroomlist. } </script> <?php Online Booking System for Camp Holiday Resort and Recreation Area 152 . } function requiredFields(){ var roomnum. return false.roomlists.roomrate.

$sql = "SELECT * FROM tbl_room WHERE room_id = '$id'"."> <span class="icon-32-save" title="Copy"></span> Online Booking System for Camp Holiday Resort and Recreation Area 153 . $row = mysql_fetch_object($result).include("connection/connection.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. $result = mysql_query($sql) or die("No user database!"). ?> <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. $id = $_GET['id'].php").

"> <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 .php?rel=RoomList&page=1" style="color:#000000.Save </a> </td> <td class="button" id="toolbar-edit"> <a href="domain.

$rs=mysql_query($sql).$rowe->roomName. }else{ echo "<option value='$rowe->roomType_id'>". } } ?> </select> </td> </tr> <tr> <td>Room Number</td> Online Booking System for Camp Holiday Resort and Recreation Area 155 .<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"."</option>". while($rowe=mysql_fetch_object($rs)){ if(($rowe->roomType_id) == ($row->roomType_id)){ echo "<option value='$rowe->roomType_id' selected='selected'>".$rowe->roomName."</option>".

?>" size="50" /> </td> </tr> <tr> <td>Rate</td> <td> <input type="text" name="roomrate" value="<?php echo $row->Rate.<td> <input type="text" name="roomnum" value="<?php echo $row->roomNumber. ?>>No</option> </select> </td> </tr> <tr> <td>isActive</td> <td> <select name="isactive"> <option value="Yes" <?php if($row->isActive == 'Yes') echo "selected='selected'".?>" 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> Online Booking System for Camp Holiday Resort and Recreation Area 156 . ?>>Yes</option> <option value="No" <?php if($row->isActive == 'No') echo "selected='selected'".

php ----------------.roomlists. roomrate. } function requiredFields(){ var roomnum.value).roomlists. if( roomnum == "" ){ Online Booking System for Camp Holiday Resort and Recreation Area 157 .value).roomrate. document.saveroomlists.roomlists.admin / Sub / Master / Sub_ RoomList / New.roomlists. roomnum = String(document.</td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> /*----------------------.roomnum. roomrate = String(document.*/ <script language="JavaScript" type="text/javascript"> function getSaveRoomType(selectedtype) { document.submit() .value = selectedtype .

return false.roomrate.alert('" ROOM NUMBER " Field should not be empty!'). return false. document.roomlists.focus().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 . } if( roomrate == "" ){ alert('" ROOM RATE " Field should not be empty!'). document.roomnum.focus(). 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.roomlists. } getSaveRoomType(selectedtype).

"> <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 .<a href="javascript:getSaveRoomType('roomlists')" onclick="return requiredFields()" style="color:#000000.php?rel=RoomList&page=1" style="color:#000000."> <span class="icon-32-save" title="Save"></span> Save </a> </td> <td class="button" id="toolbar-edit"> <a href="domain.

$row->roomName.<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"."</option>". while($row=mysql_fetch_object($rs)) { echo"<option value='$row->roomType_id'>". $rs=mysql_query($sql). } ?> </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 .

roomtypedesc = String(document.*/ <script language="JavaScript" type="text/javascript"> function getUpdateRoomType( selectedtype ) { document.roomname. document.roomtypes. if( roomname == "" ){ alert('" ROOM NAME " Field should not be empty!').roomtypes.value).<div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> /*----------------------.roomtypedesc. document.roomtypes.value = selectedtype . Online Booking System for Camp Holiday Resort and Recreation Area 162 . } function requiredFields(){ var roomname.updateroomtype.roomtypes. roomtypedesc.php ----------------.submit().roomname. return false.roomtypedesc. document. } if( roomtypedesc == "" ){ alert('" DESCRIPTION " Field should not be empty!'). roomname = String(document.value).roomtypes.focus().focus().roomtypes.admin / Sub / Master / Sub_RoomType / Edit.

$result = mysql_query($sql) or die("No user database!").php"). return true. $id = $_GET['id']. ?> <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.return false. $sql = "SELECT * FROM tbl_roomtype WHERE roomType_id = '$id'". } getUpdateRoomList(selectedtype).php?rel=UpdateRoomType&subpage=upload" method="post" name="roomtypes" enctype="multipart/form-data"> Online Booking System for Camp Holiday Resort and Recreation Area 163 . } </script> <?php include("connection/connection. $row = mysql_fetch_object($result).

<input type="hidden" name="updateroomtype" /> <input type="hidden" name="id" value="<?php echo $row->roomType_id."> <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 .php?rel=RoomType&page=1" style="color:#000000. ?>" /> <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.

<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>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 .

*/ <script language="JavaScript" type="text/javascript"> function getSaveRoomType(selectedtype){ document.?>" 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 .roomtypes.roomtypes.submit() .php ---------------.admin / Sub / Master / Sub_ RoomType / New.saveroomtypes.value = selectedtype . document.</textarea> </td> </tr> <tr> <td>Image</td> <td> <input type="file" name="image" value="<?php echo $row->image.

focus().roomtypes.roomtypedesc. document.roomtypes.roomtypes.function requiredFields(){ var roomname. } if( roomtypedesc == "" ){ alert('" DESCRIPTION " Field should not be empty!'). roomname = String(document.roomname. if( roomname == "" ){ alert('" ROOM NAME " Field should not be empty!'). } </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 . return true.roomname.roomtypedesc. return false.value).focus(). roomtypedesc = String(document. document. return false.roomtypes. } getSaveRoomType(selectedtype).value). roomtypedesc.

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 .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.<div class="toolbar" id="toolbar"> <form action="domain.

</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 .

price. } function requiredFields(){ var category. desc.admin / Sub / Master / Sub_Services / Edit. Online Booking System for Camp Holiday Resort and Recreation Area 170 .value). desc = String(document.php -------------------. category = String(document.value = selectedtype .price.<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> /*----------------------.updateservices.*/ <script language="JavaScript" type="text/javascript"> function getUpdateServices(selectedtype) { document.value).services. document. price = String(document.services.services.value).submit().services. if( category == "" ){ alert('" CATEGORY " Field should not be empty!').services.description.category.

document.focus().focus().description. return false. $sql = "SELECT * FROM tbl_services WHERE service_id = '$id'". return true.services.php"). } getUpdateServices(selectedtype).document. ?> Online Booking System for Camp Holiday Resort and Recreation Area 171 . } if( price == "" ){ alert('" PRICE " Field should not be empty!'). return false. document. $row = mysql_fetch_object($result).services.focus(). $result = mysql_query($sql) or die("No user database!").price.category. } </script> <?php include("connection/connection.services. $id = $_GET['id']. } if( desc == "" ){ alert('" DESCRIPTION " Field should not be empty!'). return false.

<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."> <span class="icon-32-cancel" title="Edit"></span> Cancel </a> </td> Online Booking System for Camp Holiday Resort and Recreation Area 172 .php?rel=Services&page=1" style="color:#000000. ?>" /> <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.

<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 .

"</option>".$rowe->Category. }else{ echo "<option value='$rowe->Category'>".<td> <select name="category"> <?php echo $sql="SELECT * FROM tbl_servicescategory ORDER BY Category ASC". while($rowe=mysql_fetch_object($rs)){ if(($rowe->Category) == ($row->Category)){ echo "<option value='$rowe->Category' selected='selected'>". } } ?> </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 . $rs=mysql_query($sql).$rowe->Category."</option>".

status=no.open (pageURL.*/ <script language="JavaScript" type="text/javascript"> function PopupCenter(pageURL.<tr> <td align="right">isActive</td> <td> <select name="isactive"> <option value="Yes" <?php if($row->isActive == "Yes") echo "selected='selected'". resizable=no. ?>>Yes</option> <option value="No" <?php if($row->isActive == "No") echo "selected='selected'". var targetWin = window. copyhistory=no. top='+top+'. directories=no. width='+w+'. scrollbars=no. left='+left). title.h) { var left = (screen.height/2)-(h/2). location=no.admin / Sub / Master / Sub_ Services / New. 'toolbar=no.php ------------------. ?>>No</option> </select> </td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> /*----------------------. menubar=no.w.width/2)-(w/2). } Online Booking System for Camp Holiday Resort and Recreation Area 175 . height='+h+'. title. var top = (screen.

services. document.services.services. return false. return false. document.services.focus(). Online Booking System for Camp Holiday Resort and Recreation Area 176 .category.description. return true.focus().submit() . } getSaveGuests(selectedtype). desc.focus().services.saveservices. document.services. if( category == "" ){ alert('" CATEGORY " Field should not be empty!'). } if( desc == "" ){ alert('" DESCRIPTION " Field should not be empty!'). category = String(document.price.description.value). } if( price == "" ){ alert('" PRICE " Field should not be empty!').price.function getSaveServices(selectedtype){ document.services. } function requiredFields(){ var category.category. price.value).value). document. price = String(document.services. desc = String(document. return false.value = selectedtype .

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.} </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."> <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 .

font-weight: bolder.$row->Category. } ?> </select> </td> <td> <a href="javascript:void(0). padding-left:15px.185).300."/> </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 align="right">Category</td> <td> <select name="category"> <?php $sql="SELECT * FROM tbl_servicescategory ORDER BY Category ASC"."</option>". while($row=mysql_fetch_object($rs)) { echo"<option value='$row->Category'>".php?rel=AddCategory'." onClick="PopupCenter('popup.'Add Charges'. $rs=mysql_query($sql). cursor:pointer. padding-right:15px."> <input type="button" value="Add Category" style="font-size:16px.

include("connection/connection.*/ <?php session_start().admin / Sub / Master / amenities. ?> <script type="text/javascript"> Online Booking System for Camp Holiday Resort and Recreation Area 180 .php --------------------------------.php").<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> /*----------------------.

adminForm.length.checked = checked. } } function doSearch(phrase){ var words = phrase.function getDeleteAmenities(selectedtype){ document. Online Booking System for Camp Holiday Resort and Recreation Area 181 .location = "domain.adminForm.length.deleteamenities. } } } checked=false. i++){ aa.value = selectedtype.chk[i].chk.split(" ").toLowerCase(). window. document. i++){ if(adminForm.php?rel=EditAmenities&id="+cc+"".submit(). if (checked == false){ checked = true } else { checked = false } for (var i =0.chk[i].value.checked){ cc = adminForm.value. i < adminForm.elements[i]. function checkedAll(frm1) { var aa= document.elements. } function getEditAmenities(){ for(i = 0.getElementById('frm1'). i < aa.

rows[r]. i++) { if (ele. }else { displayStyle = 'none'.length. break. var displayStyle = 'none'.style. } } </script> <?php $do_delete = $_POST['deleteamenities']. Online Booking System for Camp Holiday Resort and Recreation Area 182 . } var n = document. document.getElementById("filterable").indexOf(words[i])>=0){ displayStyle = ''.toLowerCase().value. }else{ n. var ele.rows[r].length. r < table.rows.display = displayStyle. for (var r = 0.replace(/<[^>]+>/g. i < words.innerHTML = phrase.style. r++){ ele = table.getElementById("noresults"). if ( on == 0 && n ) { n.""). var on = 0.display = "". on++.innerHTML. for (var i = 0.style. } } table.getElementById("qt").var table = document.display = "none".

$i < $N."> <span class="icon-32-delete" title="Delete"></span> Online Booking System for Camp Holiday Resort and Recreation Area 183 .echo $id = $_POST['chk'].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?').$id[$i]. if($do_delete){ $N = count($id). mysql_query($sql) or die(mysql_error()). for($i=0. $i++){ $sql = "DELETE FROM tbl_amenities WHERE amenities_id = '". } } ?> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="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 .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=RoomList&page=1">Rooms</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> <div id="element-box4"> <div class="t"> Online Booking System for Camp Holiday Resort and Recreation Area 185 .php?rel=Guests&page=1">Guests</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.<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.

'></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 "." onkeyup="doSearch(filter). $result = mysql_query($sql) or die("No users database!"). padding: 5px.<div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div style="font-weight: bolder." /> </div> <table class="adminlist"> <thead> <tr> <th width="5%">#</th> <th width="5%"><input type='checkbox' name='checkall' onclick='checkedAll(frm1). Online Booking System for Camp Holiday Resort and Recreation Area 186 ."> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red.

?>" 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']. Online Booking System for Camp Holiday Resort and Recreation Area 187 .</td> </tr> </tbody> </table> $count = $count + 1. ?></td> <td align="center"><?php echo $row['isActive'].$count = 1. ?></td> </tr> <?php } ?> <tr style="display:none. ?>" width="100" height="75"/> <?php } ?> </td> <td align="center"><?php echo $row['amenitiesName']. while($row = mysql_fetch_array($result)){ ?> <tr> <td align="center"><?php echo $count." id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>". ?></td> <td align="center"><?php echo $row['amenitiesDesc']. ?></td> <td align="center"> <input type="checkbox" value="<?php echo $row['amenities_id']. color:#F00. font-weight: bolder.

$idir = "Sub/Master/imagesAmenities/".setTimeout('gotoUrl()'. Online Booking System for Camp Holiday Resort and Recreation Area 188 .*/ <html> <head> <script> function gotoUrl(){ location. </script> </head> <body> <?php // UPDATE ROOM TYPE include("connection/connection.href='domain.2000).php").php?rel=Amenities'.admin / Sub / Master / amenities_update.</form> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div> /*----------------------. $tdir = "Sub/Master/imagesAmenities/thumbs/". } window.php -----------------------.

// 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" . '. // For Instance. if($do_update_amenities){ if (isset($_GET['subpage']) && $_GET['subpage'] == 'upload') { // Uploading/Resizing Script $id = $_POST['id']. $amdesc = $_POST['amdesc']. // Set $url To Equal The Filename For Later Use $file_ext = strrchr($_FILES['image']['name']. $amname = $_POST['amname']. "$idir" .jpg. // Current Image Width $currheight = imagesy($simg). $theight = "85".'). $url = $_FILES['image']['name']. . // Current Image Height Online Booking System for Camp Holiday Resort and Recreation Area 189 .php if ($_FILES['image']['type'] == "image/jpg" || $_FILES['image']['type'] == "image/jpeg" || $_FILES['image']['type'] == "image/pjpeg") { $copy = copy($_FILES['image']['tmp_name']. // Get The File Extention In The Format Of . // Make A New Temporary Image To Create // The Thumbanil From $currwidth = imagesx($simg). $url).$twidth = "115". . $do_update_amenities = $_POST['updateamenities']. $isactive = $_POST['isactive'].gif or . $_FILES['image']['name']). $image = $_POST["image"].

// Copy Resized Image To The // New Image (So We Can Save It) imagejpeg($dimg. $newwidth. // Make New Image For Thumbnail imagetruecolortopalette($simg. $url). $newheight). // Create New Color Pallete $palsize = ImageColorsTotal($simg). Assume Width Is Greater Than Height // (Will Produce Same Result If Width Is Equal To Height) $zoom = $twidth / $currwidth. // Number Of Colors Used ImageColorAllocate($dimg. print "<div class='success'>Facilities Successfully Updated. 256).!</div>". // Height Is Equal To Max Height $newwidth = $currwidth * $zoom. // Length Ratio For Width $newheight = $theight. // Tell The Server What // Colors This Image Will Use } imagecopyresized($dimg. $newheight. $simg. // Creates The New Height } $dimg = imagecreate($newwidth. // Creates The New Width } else { // Otherwise. padding-bottom: 100px'>". // Saving The Image imagedestroy($simg). $i++) { // Counting Colors In The Image $colors = ImageColorsForIndex($simg.if ($currheight > $currwidth) { // If Height Is Greater Than Width $zoom = $twidth / $currheight. for ($i = 0. 0. $currheight). $i). $colors['green']. // Length Ratio For Height $newwidth = $twidth. Online Booking System for Camp Holiday Resort and Recreation Area 190 . // Destroying The Other Temporary Image echo "<div style='padding-top: 100px.. $currwidth. $colors['blue']). false. // Destroying The Temporary Image imagedestroy($dimg).. $i < $palsize. 0. // Width Is Equal To Max Width $newheight = $currheight * $zoom. 0. $colors['red']. "$tdir" . 0.

jpeg) Yours is $file_ext. $img = "$idir" . file_width = '$twidth'. } else { echo "<div style='padding-top: 100px. print "<div class='error'> Wrong filetype (has to be a .href='domain. } window. mysql_query($sqlString) or die(mysql_error()). padding-bottom: 100px'>". $_FILES['image']['name']. print " <script> function gotoUrl(){ location. amenitiesName = '$amname'. </script> ". $url. file_height = '$theight'.php?rel=EditAmenities. </div>".echo "</div>". $sqlString = " UPDATE tbl_amenities SET image = '$img'. $thumb = "$tdir" . file_thumb = '$thumb'.1900).setTimeout('gotoUrl()'.jpg or . amenitiesDesc = '$amdesc'. isActive = '$isactive' WHERE amenities_id = '$id' ". Online Booking System for Camp Holiday Resort and Recreation Area 191 .

Choose a file Correctly.echo "</div>". } window.php?rel=EditAmenities'. echo "</div>".</div>". } window.php?rel=EditAmenities'. </script> ".href='domain. } } else if($_FILES['image']['type'] == "") { echo "<div style='padding-top: 100px. print "<div class='error'>Wrong filetype (has to be a . echo "</div>".2000). </script> ".jpg or . padding-bottom: 100px'>".setTimeout('gotoUrl()'.</div>".jpeg) Yours is $file_ext. print "<div class='warning'>No Image to Display. print " <script> function gotoUrl(){ location.1900). } else { echo "<div style='padding-top: 100px.href='domain. } } } ?> </body> </html> Online Booking System for Camp Holiday Resort and Recreation Area 192 . print " <script> function gotoUrl(){ location.setTimeout('gotoUrl()'. padding-bottom: 100px'>".

/*----------------------. $theight = "85". $amdesc = $_POST['amdesc']. $twidth = "115".php ---------------------.*/ <html> <head> <script> function gotoUrl(){ location. } window. $do_save_amenities = $_POST['saveamenities']. $tdir = "Sub/Master/imagesAmenities/thumbs/".admin / Sub / Master / amenities_validate. </script> </head> <body> <?php // INSERT ROOM TYPE include("connection/connection.2000). if($do_save_amenities){ if (isset($_GET['subpage']) && $_GET['subpage'] == 'upload') { // Uploading/Resizing Script $image = $_POST["image"].setTimeout('gotoUrl()'. $idir = "Sub/Master/imagesAmenities/".php"). $amname = $_POST['amname'].href='domain. $isactive = $_POST['isactive'].php?rel=Amenities'. Online Booking System for Camp Holiday Resort and Recreation Area 193 .

').$url = $_FILES['image']['name'].jpg. // Length Ratio For Width $newheight = $theight. '. . // 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" . . "$idir" . // Set $url To Equal The Filename For Later Use $file_ext = strrchr($_FILES['image']['name'].gif or . // Creates The New Height } $dimg = imagecreate($newwidth. // For Instance. // Current Image Width $currheight = imagesy($simg). false. $_FILES['image']['name']). // Get The File Extention In The Format Of . 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. // Height Is Equal To Max Height $newwidth = $currwidth * $zoom. // Current Image Height if ($currheight > $currwidth) { // If Height Is Greater Than Width $zoom = $twidth / $currheight. // Creates The New Width } else { // Otherwise. // Width Is Equal To Max Width $newheight = $currheight * $zoom. $newheight).php if ($_FILES['image']['type'] == "image/jpg" || $_FILES['image']['type'] == "image/jpeg" || $_FILES['image']['type'] == "image/pjpeg") { $copy = copy($_FILES['image']['tmp_name']. // Make A New Temporary Image To Create // The Thumbanil From $currwidth = imagesx($simg). 256). $url). // Create New Color Pallete Online Booking System for Camp Holiday Resort and Recreation Area 194 . // Make New Image For Thumbnail imagetruecolortopalette($simg.

$palsize = ImageColorsTotal($simg). $colors['red'].. // Destroying The Temporary Image imagedestroy($dimg). $_FILES['image']['name']. // Copy Resized Image To The // New Image (So We Can Save It) imagejpeg($dimg. 0. $i). $img = "$idir" . $thumb = "$tdir" . Online Booking System for Camp Holiday Resort and Recreation Area 195 . $sqlString = "INSERT INTO tbl_amenities ( amenitiesName. $colors['green']. $newwidth. $colors['blue']). $i < $palsize. amenitiesDesc. file_thumb. '$amname'.. 0. // Tell The Server What // Colors This Image Will Use } imagecopyresized($dimg. image. $currheight). $currwidth. isActive )VALUES ( '$img'. 0. // Saving The Image imagedestroy($simg). "$tdir" . file_height. for ($i = 0. $simg. $i++) { // Counting Colors In The Image $colors = ImageColorsForIndex($simg.!</div>". $newheight. $url. // Number Of Colors Used ImageColorAllocate($dimg. 0. file_width. // Destroying The Other Temporary Image print "<div class='success'>Facilities Successfully Created. $url).

</div>". print " <script> Online Booking System for Camp Holiday Resort and Recreation Area 196 . '$twidth'. } window.setTimeout('gotoUrl()'. Choose a file Correctly. } } else if($_FILES['image']['type'] == "") { print "<div class='warning'>No Image to Display. } else { print "<div class='error'>Wrong filetype (has to be a .1900).'$amdesc'. print " <script> function gotoUrl(){ location.href='domain. } else { print "<div class='error'>Wrong filetype (has to be a .jpeg) Yours is $file_ext.php?rel=EditAmenities'. mysql_query($sqlString) or die(mysql_error()). } window. '$theight'.php?rel=EditAmenities'. </script> ".jpg or . '$isactive')".href='domain.setTimeout('gotoUrl()'. '$thumb'. print " <script> function gotoUrl(){ location. </script> ".</div>".jpeg) Yours is $file_ext.2000).</div>".jpg or .

submit().chk[i].chk. } window. } function getEditGuest(){ for(i = 0. i < adminForm.setTimeout('gotoUrl()'. i++){ if(adminForm.php?rel=EditGuest&id="+cc+"".chk[i]. include("connection/connection.1900). } Online Booking System for Camp Holiday Resort and Recreation Area 197 .php ----------------------------------.length.value = selectedtype. } } } ?> </body> </html> /*----------------------. document.value.href='domain.location = "domain.adminForm.function gotoUrl(){ location.checked){ cc = adminForm.deleteuser.php").admin / Sub / Master / guestlist.adminForm.php?rel=EditAmenities'.*/ <?php session_start(). window. ?> <script type="text/javascript"> function getdelete ( selectedtype ){ document. </script> ".

checked = checked.toLowerCase().length. var table = document.toLowerCase(). var displayStyle = 'none'.indexOf(words[i])>=0){ displayStyle = ''.""). r++){ ele = table. i < words.value. }else { displayStyle = 'none'. } } function doSearch(phrase){ var words = phrase.length. r < table. i++){ aa[i]. i++) { if (ele. for (var r = 0. i < aa.getElementById("filterable").split(" ").rows[r]. if (checked == false){ checked = true } else { checked = false } for (var i =0. var ele.innerHTML.replace(/<[^>]+>/g. on++.rows. function checkedAll(frm1) { var aa = document. for (var i = 0.getElementById('frm1').length. var on = 0. Online Booking System for Camp Holiday Resort and Recreation Area 198 .} } checked=false.

style.rows[r].style.display = "". if($do_delete){ $N = count($id). mysql_query($sql) or die(mysql_error()). document.value. "'".getElementById("qt").display = "none".style. }else{ n.innerHTML = phrase. $id = $_POST['chk']. } var n = document. for($i=0.getElementById("noresults"). } } ?> <div id="toolbar-box"> Online Booking System for Camp Holiday Resort and Recreation Area 199 . } } table. } } </script> <?php $do_delete = $_POST['deleteuser']. $i++){ $sql = "DELETE FROM tbl_guest WHERE guest_id = '" . $id[$i] .display = displayStyle.$i < $N.break. if ( on == 0 && n ) { n.

php?rel=NewGuest"> <span class="icon-32-new" title="New"></span> New Online Booking System for Camp Holiday Resort and Recreation Area 200 ."> <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.<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?').

php?rel=RoomList&page=1">Rooms</a></li> <li><a href="domain.php?rel=Guests&page=1" class="active">Guests</a></li> <li><a href="domain.</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=Amenities&page=1">Facilities</a></li> Online Booking System for Camp Holiday Resort and Recreation Area 201 .php?rel=RoomType&page=1">Room Types</a></li> <li><a href="domain.

" /> </div> <table class="adminlist"> <thead> <tr> Online Booking System for Camp Holiday Resort and Recreation Area 202 .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.<li><a href="domain."> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red." onkeyup="doSearch(filter). padding: 5px.

while($row = mysql_fetch_array($result)){ ?> <tr> <td align="center"><?php echo $count.</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' ".'></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. $count = 1.<th width="5%">#</th> <th width="5%"><input type='checkbox' name='checkall' onclick='checkedAll(frm1). $result = mysql_query($sql) or die("No users database!"). ?>" name="chk[]" id="chk" onselect="return getEditGuest()" /> </td> <td align="center"><?php echo $row['lastName']. ?></td> <td align="center"> <input type="checkbox" value="<?php echo $row['guest_id']. ?></td> Online Booking System for Camp Holiday Resort and Recreation Area 203 .

?></td> <td align="center"><?php echo $row['contactNo']. <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div> /*----------------------. color:#F00. ?></td> </tr> <?php } ?> <tr style="display:none. ?></td> <td align="center"><?php echo $row['isActive'].php ------------------------.*/ <html> <head> Online Booking System for Camp Holiday Resort and Recreation Area 204 .<td align="center"><?php echo $row['firstName']. ?></td> <td align="center"><?php echo $row['middleInitial']. ?></td> <td align="center"><?php echo $row['Email'].</td> </tr> </tbody> </table> </form> <div class="clr"></div> </div> $count = $count + 1.admin / Sub / Master / guestlist_update." id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>". font-weight: bolder.

Online Booking System for Camp Holiday Resort and Recreation Area 205 .!</div>". $sql = "UPDATE tbl_guest SET firstname = '$firstname'. $do_update_guests = $_POST['updateguests']. lastname = '$lastname'. $contactno = $_POST['contactno']. print "<div class='success'>Guest Successfully Updated.<script> function gotoUrl(){ location.. if($do_update_guests){ $id = $_POST['id'].. $lastname = $_POST['lname']. </script> </head> <body> <?php include("connection/connection.1500). middleinitial = '$mi'.href='domain.php?rel=Guests'. $isactive = $_POST['isactive'].php"). } window. $email = $_POST['email']. $firstname = $_POST['fname'].setTimeout('gotoUrl()'. $mi = strtoupper($_POST['mi']).

contactno = '$contactno'. isactive = '$isactive' WHERE guest_id = '$id'".php -----------------------. } ?> </body> </html> /*----------------------. </script> </head> <body> <?php include("connection/connection.href='domain. $do_save_guest = $_POST['saveguests'].1500). email = '$email'. } window. if($do_save_guest){ Online Booking System for Camp Holiday Resort and Recreation Area 206 .setTimeout('gotoUrl()'.*/ <html> <head> <script> function gotoUrl(){ location.php?rel=Guests'.php").admin / Sub / Master / guestlist_validate. mysql_query($sql) or die("No user database!").

$isactive = $_POST['isactive']. firstname. print "<div class='success'>Guest Successfully Created.$firstname = $_POST['fname']. '$lastname'. $mi = strtoupper($_POST['mi']). middleinitial. $email = $_POST['email']. '$mi'. mysql_query($sql) or die(mysql_error()).. $contactno = $_POST['contactno'].admin / Sub / Master / roomlist.!</div>". '$isactive')".php ----------------------------------. '$email'.*/ <?php session_start(). $sql = "INSERT INTO tbl_guest( lastname.. } ?> </body> </html> /*----------------------. ?> Online Booking System for Camp Holiday Resort and Recreation Area 207 . isactive ) VALUES ( '$firstname'. contactno. '$contactno'. $lastname = $_POST['lname']. email.

location = "domain.elements[i].value. } } } checked=false. document.value = selectedtype.submit().adminForm.length. } } function doSearch(phrase){ Online Booking System for Camp Holiday Resort and Recreation Area 208 .adminForm. window. i++){ if(adminForm. } function getEditRoomList(){ for(i = 0.chk[i].checked = checked. i < adminForm. if (checked == false){ checked = true } else { checked = false } for (var i =0.chk[i]. i < aa. i++){ aa. function checkedAll(frm1) { var aa= document.getElementById('frm1').checked){ cc = adminForm.chk.elements.<script type="text/javascript"> function getDeleteRoomList( selectedtype ){ document.length.php?rel=EditRoomList&id="+cc+"".deleteroomlist.

display = displayStyle. r < table. var on = 0. r++){ ele = table.length. document. } var n = document. if ( on == 0 && n ) { n.display = "". i++) { if (ele. for (var r = 0. var ele.style.indexOf(words[i])>=0){ displayStyle = ''. var displayStyle = 'none'. i < words.display = "none".value.rows[r].getElementById("filterable"). } } </script> <?php Online Booking System for Camp Holiday Resort and Recreation Area 209 .var words = phrase."").toLowerCase(). var table = document. break.length.getElementById("qt").split(" ").style. on++. }else{ n.rows.getElementById("noresults").rows[r].toLowerCase().replace(/<[^>]+>/g.value.innerHTML = phrase.style. }else { displayStyle = 'none'.innerHTML. } } table. for (var i = 0.

$do_delete = $_POST['deleteroomlist']. mysql_query($sql) or die(mysql_error()). $id = $_POST['chk'].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?'). if($do_delete){ $N = count($id). $i++){ $sql = "DELETE FROM tbl_room WHERE room_id = '" . "'".$i < $N. for($i=0. } } ?> <div id="toolbar-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="domain. $id[$i] ."> <span class="icon-32-delete" title="Delete"></span> Online Booking System for Camp Holiday Resort and Recreation Area 210 .

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 .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=RoomList&page=1" class="active">Rooms</a></li> <li><a href="domain.<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=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"> Online Booking System for Camp Holiday Resort and Recreation Area 212 .php?rel=Guests&page=1">Guests</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.

'></th> <th width="15%" class="title">Room No. padding: 5px."> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red. R.<div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div style="font-weight: bolder.roomType_id Online Booking System for Camp Holiday Resort and Recreation Area 213 ." onkeyup="doSearch(filter).</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." /> </div> <table class="adminlist"> <thead> <tr> <th width="5%">#</th> <th width="5%"><input type='checkbox' name='checkall' onclick='checkedAll(frm1).roomName.* tbl_roomtype RT tbl_room R RT.roomType_id = R.

color:#F00. while($row = mysql_fetch_array($result)){ ?> <tr> <td align="center"><?php echo $count. Online Booking System for Camp Holiday Resort and Recreation Area 214 . ?></td> <td align="center"><?php echo $row['isAvailable']. $count = 1. ?></td> <td align="center"><?php echo $row['Rate']. ?>" name="chk[]" id="chk" onselect="return getEditRoomList()" /> </td> <td align="center"><?php echo $row['roomNumber']. $result = mysql_query($sql) or die("No users database!")." id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>". ?></td> <td align="center"> <input type="checkbox" value="<?php echo $row['room_id']. ?></td> </tr> <?php } ?> <tr style="display:none.Rate. R.</td> </tr> </tbody> </table> $count = $count + 1.room_id ". font-weight: bolder.ORDER BY R. ?></td> <td align="center"><?php echo $row['roomName']. ?></td> <td align="center"><?php echo $row['isActive'].

Online Booking System for Camp Holiday Resort and Recreation Area 215 . } window.php").php?rel=RoomList'.</form> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div> /*----------------------. </script> </head> <body> <?php include("connection/connection.php -----------------------.href='domain. $do_update_roomlists = $_POST['updateroomlist'].*/ <html> <head> <script> function gotoUrl(){ location.1500).setTimeout('gotoUrl()'.admin / Sub / Master / roomlist _update.

. mysql_query($sql) or die("No user database!"). $sql = "UPDATE tbl_room SET roomnumber = '$roomnumber'.*/ <html> <head> <script> function gotoUrl(){ location. roomType_id = '$roomtype_id'.!</div>"..admin / Sub / Master / roomlist _validate.php ----------------------. isActive = '$isActive' WHERE room_id = '$id'". $isActive = $_POST['isactive']. $isAvailable = $_POST['isavailable']. Online Booking System for Camp Holiday Resort and Recreation Area 216 . print "<div class='success'>Room Successfully Updated.php?rel=RoomList'.if($do_update_roomlists){ $id = $_POST['id'].href='domain. $roomnumber = $_POST['roomnum']. $roomtype_id = $_POST['roomtype_id']. } ?> </body> </html> /*----------------------. isAvailable = '$isAvailable'.

</script> </head> <body> <?php include("connection/connection.!</div>". $isAvailable = $_POST['isavailable']. roomNumber.setTimeout('gotoUrl()'.} window. '$roomnum'.. isActive ) VALUES ( '$roomtype_id'. '$isAvailable'. $roomrate = $_POST['roomrate']. '$isActive' )".php"). if($do_save_roomlists){ $roomtype_id = $_POST['roomtype_id']. print "<div class='success'>Room Successfully Created. Online Booking System for Camp Holiday Resort and Recreation Area 217 . $isActive = $_POST['isactive'].1500). '$roomrate'. $sql = "INSERT INTO tbl_room( roomType_id.. $roomnum = $_POST['roomnum']. Rate. $do_save_roomlists = $_POST['saveroomlists']. isAvailable.

} ?> </body> </html> /*----------------------.checked){ cc = adminForm. i < adminForm. include("connection/connection. function checkedAll(frm1) { Online Booking System for Camp Holiday Resort and Recreation Area 218 .value.php").mysql_query($sql) or die(mysql_error()).chk[i].adminForm.deleteroomtype. document.chk. } } } checked=false. window. } function getEditRoomType(){ for(i = 0.php?rel=EditRoomType&id="+cc+"".*/ <?php session_start(). i++){ if(adminForm.location = "domain.submit().value = selectedtype.chk[i].admin / Sub / Master / roomtypes.adminForm.php -------------------------------. ?> <script type="text/javascript"> function getDeleteRoomType ( selectedtype ){ document.length.

} } function doSearch(phrase){ var words = phrase.var aa= document. r++){ ele = table.getElementById("filterable").checked = checked. var table = document. i < aa.length.indexOf(words[i])>=0){ displayStyle = ''. var ele. Online Booking System for Camp Holiday Resort and Recreation Area 219 .elements.length.getElementById('frm1').rows.length. r < table. var on = 0. if (checked == false){ checked = true } else { checked = false } for (var i =0.rows[r].style.split(" "). i < words. break. var displayStyle = 'none'.value.elements[i]. on++. i++) { if (ele. }else { displayStyle = 'none'.toLowerCase(). for (var r = 0. } } table.display = displayStyle. i++){ aa.replace(/<[^>]+>/g.innerHTML.rows[r]."").toLowerCase(). for (var i = 0.

} } ?> <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 .display = "none".getElementById("noresults"). if($do_delete){ $N = count($id). $i++){ $sql = "DELETE FROM tbl_roomtype WHERE roomType_id = '" .style.getElementById("qt").value.display = "". $id = $_POST['chk']. } } </script> <?php $do_delete = $_POST['deleteroomtype']. for($i=0. if ( on == 0 && n ) { n. mysql_query($sql) or die(mysql_error()). }else{ n. "'".} var n = document. document. $id[$i] .$i < $N.innerHTML = phrase.style.

</div> <div class="m"> <form action="domain."> <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=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?').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 .

php?rel=RoomList&page=1">Rooms</a></li> <li><a href="domain.php?rel=Guests&page=1">Guests</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 .php?rel=RoomType&page=1" class="active">Room Types</a></li> <li><a href="domain.</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=Amenities&page=1">Facilities</a></li> <li><a href="domain.

</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.'></th> <th width="10%" nowrap="nowrap">Room Image</th> Online Booking System for Camp Holiday Resort and Recreation Area 223 ."> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red." /> </div> <table class="adminlist"> <thead> <tr> <th width="5%">#</th> <th width="5%"><input type='checkbox' name='checkall' onclick='checkedAll(frm1)." onkeyup="doSearch(filter).

?></td> <td align="center"> <input type="checkbox" value="<?php echo $row['roomType_id'].<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 ". $count = 1. while($row = mysql_fetch_array($result)) { ?> <tr> <td align="center"><?php echo $count. $result = mysql_query($sql) or die("No users database!"). ?></td> <td align="center"><?php echo $row['roomTypeDesc']. ?>" 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']. ?></td> Online Booking System for Camp Holiday Resort and Recreation Area 224 . ?>" width="100" height="75"/> <?php } ?> </td> <td align="center"><?php echo $row['roomName'].

" id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>".href='domain.</td> </tr> </tbody> </table> </form> <div class="clr"></div> </div> $count = $count + 1.admin / Sub / Master / roomtypes _update. color:#F00.</tr> <?php } ?> <tr style="display:none.php?rel=RoomType'. font-weight: bolder.*/ <html> <head> <script> function gotoUrl(){ location. Online Booking System for Camp Holiday Resort and Recreation Area 225 . <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div> /*----------------------.php ---------------------.2000).setTimeout('gotoUrl()'. } window.

$url = $_FILES['image']['name']. if($do_update_roomtypes){ if (isset($_GET['subpage']) && $_GET['subpage'] == 'upload') { // Uploading/Resizing Script $id = $_POST['id'].jpg. $idir = "Sub/Master/imagesRoomType/". $roomname = $_POST['roomname']. // Get The File Extention In The Format Of .</script> </head> <body> <?php // UPDATE ROOM TYPE include("connection/connection.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 . $tdir = "Sub/Master/imagesRoomType/thumbs/". $roomtypedesc = $_POST['roomtypedesc'].').php"). '.gif or . $theight = "85". $do_update_roomtypes = $_POST['updateroomtype']. $image = $_POST['image']. $twidth = "115". . // Set $url To Equal The Filename For Later Use $file_ext = strrchr($_FILES['image']['name']. . // For Instance.

// Current Image Width $currheight = imagesy($simg). $i++) { // Counting Colors In The Image $colors = ImageColorsForIndex($simg. // Height Is Equal To Max Height $newwidth = $currwidth * $zoom. $colors['red']. // Width Is Equal To Max Width $newheight = $currheight * $zoom. false. $colors['green']. // Create New Color Pallete $palsize = ImageColorsTotal($simg). // Make New Image For Thumbnail imagetruecolortopalette($simg. // Make A New Temporary Image To Create // The Thumbanil From $currwidth = imagesx($simg). $i). $simg. 0. 256). $colors['blue']).$copy = copy($_FILES['image']['tmp_name']. 0. "$idir" . // Tell The Server What // Colors This Image Will Use } imagecopyresized($dimg. // Number Of Colors Used ImageColorAllocate($dimg. for ($i = 0. // Length Ratio For Height $newwidth = $twidth. 0. Online Booking System for Camp Holiday Resort and Recreation Area 227 . Assume Width Is Greater Than Height // (Will Produce Same Result If Width Is Equal To Height) $zoom = $twidth / $currwidth. $_FILES['image']['name']). // Current Image Height if ($currheight > $currwidth) { // If Height Is Greater Than Width $zoom = $twidth / $currheight. $newheight). // Creates The New Height } $dimg = imagecreate($newwidth. // 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). // Length Ratio For Width $newheight = $theight. 0. // Creates The New Width } else { // Otherwise. $i < $palsize.

$newheight. $url). $url.!</div>". $thumb = "$tdir" . } Online Booking System for Camp Holiday Resort and Recreation Area 228 .</div>". $img = "$idir" ..jpeg) Yours is $file_ext. $currheight). $sqlString = " UPDATE tbl_roomtype SET image = '$img'. print " <script> function gotoUrl(){ location. roomTypeDesc = '$roomtypedesc'. $currwidth.$newwidth. roomName = '$roomname'. } else { print "<div class='error'>Wrong filetype (has to be a .. // Destroying The Temporary Image imagedestroy($dimg). $_FILES['image']['name']. "$tdir" . file_height = '$theight' WHERE roomType_id = '$id' ".jpg or .php?rel=EditRoomType'. file_thumb = '$thumb'. // Saving The Image imagedestroy($simg). mysql_query($sqlString) or die(mysql_error()). // Destroying The Other Temporary Image print "<div class='success'>Room Type Successfully Updated. file_width = '$twidth'. // Copy Resized Image To The // New Image (So We Can Save It) imagejpeg($dimg.href='domain.

1900). </script> ".setTimeout('gotoUrl()'. } else { print "<div class='error'>Wrong filetype (has to be a .*/ <html> <head> Online Booking System for Camp Holiday Resort and Recreation Area 229 .href='domain. print " <script> function gotoUrl(){ location.setTimeout('gotoUrl()'.jpeg) Yours is $file_ext.admin / Sub / Master / roomtypes _validate.2000). </script> ". Choose a file Correctly. } window.</div>".</div>".php?rel=EditRoomType'.php -------------------.jpg or .window. print " <script> function gotoUrl(){ location. } } } ?> </body> </html> /*----------------------.1900).href='domain.setTimeout('gotoUrl()'.php?rel=EditRoomType'. } } else if($_FILES['image']['type'] == "") { print "<div class='warning'>No Image to Display. } window. </script> ".

$theight = "85".jpg. if($do_save_roomtypes){ if (isset($_GET['subpage']) && $_GET['subpage'] == 'upload') { // Uploading/Resizing Script $image = $_POST["image"]. </script> </head> <body> <?php // INSERT ROOM TYPE include("connection/connection. } window.gif or . $idir = "Sub/Master/imagesRoomType/". . // Set $url To Equal The Filename For Later Use $file_ext = strrchr($_FILES['image']['name'].2000).php"). $roomtypedesc = $_POST['roomtypedesc']. $twidth = "115".<script> function gotoUrl(){ location. $tdir = "Sub/Master/imagesRoomType/thumbs/".setTimeout('gotoUrl()'.').php?rel=RoomType'. $do_save_roomtypes = $_POST['saveroomtypes']. $roomname = $_POST['roomname']. '. // For Instance.php Online Booking System for Camp Holiday Resort and Recreation Area 230 . .href='domain. $url = $_FILES['image']['name']. // Get The File Extention In The Format Of .

$url). "$idir" . Online Booking System for Camp Holiday Resort and Recreation Area 231 . // Number Of Colors Used ImageColorAllocate($dimg. $colors['blue']). // Width Is Equal To Max Width $newheight = $currheight * $zoom. $colors['red']. $colors['green']. // Make New Image For Thumbnail imagetruecolortopalette($simg. // 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" . // Length Ratio For Height $newwidth = $twidth. $newheight). // Length Ratio For Width $newheight = $theight. Assume Width Is Greater Than Height // (Will Produce Same Result If Width Is Equal To Height) $zoom = $twidth / $currwidth.if ($_FILES['image']['type'] == "image/jpg" || $_FILES['image']['type'] == "image/jpeg" || $_FILES['image']['type'] == "image/pjpeg") { $copy = copy($_FILES['image']['tmp_name']. $i++) { // Counting Colors In The Image $colors = ImageColorsForIndex($simg. $i < $palsize. // Height Is Equal To Max Height $newwidth = $currwidth * $zoom. $i). $_FILES['image']['name']). 256). // Creates The New Height } $dimg = imagecreate($newwidth. for ($i = 0. // Current Image Height if ($currheight > $currwidth) { // If Height Is Greater Than Width $zoom = $twidth / $currheight. // Make A New Temporary Image To Create // The Thumbanil From $currwidth = imagesx($simg). // Create New Color Pallete $palsize = ImageColorsTotal($simg). // Creates The New Width } else { // Otherwise. false. // Current Image Width $currheight = imagesy($simg).

0. 0. $sqlString = "INSERT INTO tbl_roomtype ( image. '$thumb'. file_thumb. $currheight). "$tdir" . '$theight' )". $img = "$idir" . '$twidth'.// Tell The Server What // Colors This Image Will Use } imagecopyresized($dimg. $newwidth. roomTypeDesc. '$roomname'. file_width. '$roomtypedesc'. $simg. // Destroying The Other Temporary Image print "<div class='success'>Room Type Successfully Created. 0. Online Booking System for Camp Holiday Resort and Recreation Area 232 .!</div>". $thumb = "$tdir" . 0. file_height )VALUES ( '$img'.. // Copy Resized Image To The // New Image (So We Can Save It) imagejpeg($dimg. $newheight. $currwidth. // Saving The Image imagedestroy($simg). roomName.. $url. $url). // Destroying The Temporary Image imagedestroy($dimg). $_FILES['image']['name'].

} } else if($_FILES['image']['type'] == "") { print "<div class='warning'>No Image to Display.</div>".php?rel=EditRoomType'.2000). </script> ".1900).href='domain.</div>". print " <script> function gotoUrl(){ location. } window. </script> ".1900).setTimeout('gotoUrl()'. } window. Choose a file Correctly.php?rel=EditRoomType'.setTimeout('gotoUrl()'. } else { print "<div class='error'>Wrong filetype (has to be a .</div>".jpeg) Yours is $file_ext.php?rel=EditRoomType'.mysql_query($sqlString) or die(mysql_error()). print " <script> function gotoUrl(){ location.jpeg) Yours is $file_ext.jpg or .jpg or . </script> ". } else { print "<div class='error'>Wrong filetype (has to be a . print " <script> function gotoUrl(){ location.setTimeout('gotoUrl()'.href='domain. } window. } Online Booking System for Camp Holiday Resort and Recreation Area 233 .href='domain.

php ----------------------------------.submit(). function checkedAll(frm1) { var aa = document.deleteservices. i++){ if(adminForm.location = "domain. window. i < adminForm. document.checked){ cc = adminForm. } function getEditServices(){ for(i = 0.*/ <?php session_start().chk.length. ?> <script type="text/javascript"> function getDeleteServices(selectedtype){ document. } } } checked=false.adminForm. include("connection/connection.value = selectedtype.admin / Sub / Master / services.php").chk[i].chk[i].getElementById('frm1').} } ?> </body> </html> /*----------------------.value.php?rel=EditServices&id="+cc+"".adminForm. if (checked == false){ Online Booking System for Camp Holiday Resort and Recreation Area 234 .

checked = true } else { checked = false } for (var i =0.toLowerCase().length. on++. } } function doSearch(phrase){ var words = phrase. }else { displayStyle = 'none'.rows[r]. i++){ aa[i].split(" "). } } table. Online Booking System for Camp Holiday Resort and Recreation Area 235 . var ele. i < aa.checked = checked. var on = 0. var table = document. r < table.replace(/<[^>]+>/g.getElementById("filterable").""). } var n = document.toLowerCase(). for (var i = 0. i < words. var displayStyle = 'none'.rows. for (var r = 0.indexOf(words[i])>=0){ displayStyle = ''.length.value.display = displayStyle. r++){ ele = table. break.length. i++) { if (ele.style.getElementById("noresults").rows[r].innerHTML.

$id[$i] . "'".getElementById("qt"). }else{ n. $i++){ $sql = "DELETE FROM tbl_services WHERE service_id = '" . if($do_delete){ $N = count($id).$i < $N. mysql_query($sql) or die(mysql_error()). $id = $_POST['chk']. } } ?> <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 .display = "".style. } } </script> <?php $do_delete = $_POST['deleteservices']. for($i=0.display = "none". document.if ( on == 0 && n ) { n.innerHTML = phrase.style.value.

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?').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 ."> <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.<form action="domain.

<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=Amenities&page=1">Facilities</a></li> <li><a href="domain.php?rel=Guests&page=1">Guests</a></li> <li><a href="domain.php?rel=RoomType&page=1">Room Types</a></li> <li><a href="domain.php?rel=RoomList&page=1">Rooms</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 .

padding: 5px.<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." /> </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 ."> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red." onkeyup="doSearch(filter).

$count = 1. ?></td> <td align="center"><?php echo $row['Price']. ?></td> </tr> <?php } ?> <tr style="display:none. ?></td> <td align="center"><?php echo $row['Description']. ?>" name="chk[]" id="chk" onselect="return getEditGuest()" /> </td> <td align="center"><?php echo $row['Category']. $result = mysql_query($sql) or die("No users database!"). color:#F00. Online Booking System for Camp Holiday Resort and Recreation Area 240 ." id="noresults"> $count = $count + 1.</tr> </thead> <tbody id="filterable"> <?php $sql = " SELECT FROM ORDER BY * tbl_services isActive='YES' ". ?></td> <td align="center"><?php echo $row['isActive']. 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']. font-weight: bolder.

?> <html> <head> <title>View Details</title> <link rel="stylesheet" type="text/css" href="css/template.*/ <?php session_start().css"/> Online Booking System for Camp Holiday Resort and Recreation Area 241 .php -----------------.css" /> <link rel="stylesheet" type="text/css" href="css/styles.</td> </tr> </tbody> </table> </form> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div> /*----------------------. include("connection/connection. date_default_timezone_set('Asia/Taipei').css" /> <link rel="stylesheet" type="text/css" href="css/rounded.admin / Sub / Master / services _addcategory.<td colspan="9">No Records Found that start with "<span id="qt"></span>".php").

js" language="JavaScript"></script> <script src="js/calendar.php?rel=ValidateCategory" method="post"> <table style="font-size: 12px.<link rel="stylesheet" type="text/css" href="css/messagebox. margin-left: 50px.js"></script> <script type="text/javascript" src="js/reservationtype."> <tr> <td>Category</td> Online Booking System for Camp Holiday Resort and Recreation Area 242 .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.css" rel="stylesheet" type="text/css"/> <script src="js/filterTable.css"/> <link href="css/calendar.js" language="JavaScript"></script> <script type="text/javascript" src="js/menu.

css" /> Online Booking System for Camp Holiday Resort and Recreation Area 243 .*/ <html> <head> <title>Add Category</title> <link rel="stylesheet" type="text/css" href="css/template. padding-right:15px.<td> <input type="text" name="category"> </td> </tr> <tr> <td colspan="2" align="right"> <input type="submit" value="Add" style="font-size:16px.php -----. padding-left:15px."/> </td> </tr> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </body> </html> /*----------------------. font-weight: bolder.admin / Sub / Master / services _ addcategory_validate. cursor:pointer.

margin-left:auto."> Category Successfully Created.. padding-left: 10px.css"/> <link rel="stylesheet" type="text/css" href="css/messagebox. '$category' Online Booking System for Camp Holiday Resort and Recreation Area 244 . margin-top:auto. font-weight:bolder.css"/> <link href="css/calendar. color:#060. $category = strtoupper($_POST['category']). $sql = "INSERT INTO tbl_servicescategory VALUES ( ''.js"></script> <script type="text/javascript" src="js/reservationtype.php")..!</div> </div> <div class="b"><div class="b"><div class="b"></div></div></div> </div> <?php include("connection/connection.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.css" rel="stylesheet" type="text/css"/> <script src="js/filterTable.js" language="JavaScript"></script> <script type="text/javascript" src="js/menu.js" language="JavaScript"></script> <script src="js/calendar.css" /> <link rel="stylesheet" type="text/css" href="css/styles.<link rel="stylesheet" type="text/css" href="css/rounded.

php?rel=Services'. if($do_update_services){ $id = $_POST['id']. Online Booking System for Camp Holiday Resort and Recreation Area 245 .setTimeout('gotoUrl()'. $description = $_POST['description'].php ------------------------. $category = $_POST['category']. $isactive = $_POST['isactive'].href='domain. </script> </head> <body> <?php include("connection/connection. ?> </body> </html> /*----------------------. } window.*/ <html> <head> <script> function gotoUrl(){ location. $do_update_services = $_POST['updateservices'].)".admin / Sub / Master / services _update. $price = $_POST['price']. mysql_query($sql) or die(mysql_error()).php").1500).

admin / Sub / Master / services _validate. isactive = '$isactive' WHERE service_id = '$id'".php ----------------------.php?rel=Services'.!</div>". } ?> </body> </html> /*----------------------.1500). mysql_query($sql) or die("No user database!").php")..href='domain.. </script> </head> <body> <?php include("connection/connection. Online Booking System for Camp Holiday Resort and Recreation Area 246 . } window. Price = '$price'. $sql = "UPDATE tbl_services SET Category = '$category'.*/ <html> <head> <script> function gotoUrl(){ location.print "<div class='success'>Services Successfully Updated. Description = '$description'.setTimeout('gotoUrl()'.

Price. '$isactive')"..admin / Sub / Reservations / book. $description = $_POST['description']. isactive ) VALUES ( '$category'. Online Booking System for Camp Holiday Resort and Recreation Area 247 .$do_save_services = $_POST['saveservices']. '$price'. $isactive = $_POST['isactive']. mysql_query($sql) or die(mysql_error()). '$description'.!</div>". } ?> </body> </html> /*----------------------. print "<div class='success'>Services Successfully Created.php -------------------------------. include("connection/connection.. $price = $_POST['price']. if($do_save_services){ $category = $_POST['category'].*/ <?php session_start(). $sql = "INSERT INTO tbl_services( Description. Category.php").

} if(txtArrival >= txtDeparture){ alert('Please Select Correct Arrival Date. return false.value.value. return false.date_default_timezone_set('Asia/Taipei'). } Online Booking System for Camp Holiday Resort and Recreation Area 248 .reservetype.is not a correct Reservation Type!').checkavailability. txtArrival = document. if( txtReserve == "-. } if( txtArrival == "" ){ alert('Arrival field must be filled in!').Select -.departure.value).checkavailability. return false. } if( txtDeparture == "" ){ alert('Departure field must be filled in!'). return false. txtDeparture = document. txtDeparture.'). ?> <html> <head> <script language="javascript" type="text/javascript"> function CheckAllFields() { var txtArrival. txtReserve txtReserve = String(document.arrival.Select --"){ alert('-.checkavailability.

?>>Walk-in</option> <option value="Call" Online Booking System for Camp Holiday Resort and Recreation Area 249 ."> <option value="-.Select --</option> <option value="Walk-in" <?php if($_POST['reservetype'] == 'Walk-in') echo "selected='selected'". } </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.return true.Select --">-.

</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'. // input name 'controlname': 'arrival' }). Online Booking System for Camp Holiday Resort and Recreation Area 250 . ?>>Call</option> </select> </td> </tr> <tr> <td>Arrival</td> <td colspan="2"> <input name="arrival" id="arrival" value="<?php echo $_POST['arrival'].<?php if($_POST['reservetype'] == 'Call') echo "selected='selected'".?>" type="text" size="11px" readonly/> <script language="JavaScript"> new tcal ({ // form name 'formname': 'checkavailability'.

of Adults</td> <td> <select name="adults" style="width:90px. ?>>0</option> <option value="1" <?php if($_POST['children'] == '1') echo "selected='selected'"."> <option value="1" <?php if($_POST['adults'] == '1') 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'". ?>>1</option> <option value="2" <?php if($_POST['children'] == '2') echo "selected='selected'". ?>>4</option> </select> </td> </tr> <tr> <td>No."> <option value="0" <?php if($_POST['children'] == '0') echo "selected='selected'". </script> </td> </tr> <tr> <td>No. of Children</td> <td> <select name="children" style="width:90px. ?>>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'".// input name 'controlname': 'departure' }). ?> >1</option> <option value="2" <?php if($_POST['adults'] == '2') echo "selected='selected'". ?>>4</option> </select> </td> Online Booking System for Camp Holiday Resort and Recreation Area 251 .

padding-right:15px." value="Check Availability" onClick="return CheckAllFields()"/> </td> </tr> <?php if(isset($_POST['submit'])){ echo " <tr> <td>Legend</td> <td colspan='2'> <div class='unavailable2'>Unavailable</div> <div class='available2'>Available</div> Online Booking System for Camp Holiday Resort and Recreation Area 252 . cursor:pointer.</tr> <tr> <td>Room</td> <td> <select name="roomtype"> <?php $sqlString = " SELECT * FROM tbl_roomtype".$row->roomName. font-weight: bolder. } ?> </select> </td> <td> <input type="submit" id="submit" name="submit" style="font-size:16px. while($row=mysql_fetch_object($rs)){ echo "<option value='$row->roomType_id'>". padding-left:15px."</option>". $rs = mysql_query($sqlString).

$_SESSION['numchildren'] = $_POST['children']. = strtotime($_POST['departure']). echo "<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 253 .$arrivaltime).$departuretime). $_SESSION['numadults'] = $_POST['adults']. $_SESSION['departure'] = date('Y-m-d'. $_SESSION['roomtype'] = $_POST['roomtype']. $_SESSION['reservetype'] = $_POST['reservetype'].</td> </tr> ". = date('Y-m-d'. } ?> </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']).

echo "<div id='element-box2'> <div class='t'> <div class='t'> <div class='t'></div> </div> </div> <div class='m'>". echo "<form action='domain. $resultsql = mysql_query($sql).<div class='toolbar' id='toolbar'></div> <div class='header icon-48-user'>".$_SESSION['roomtype']. $sqlCount = " SELECT COUNT(room_id) Online Booking System for Camp Holiday Resort and Recreation Area 254 . $floor=0. $rooms_per_floor=7. } tbl_roomtype roomType_id = '"."' roomName echo </div> "</div> <div class='b'><div class='b'><div class='b'></div></div></div></div>". while ($row = mysql_fetch_object($resultsql)){ echo $_SESSION['roomname'] = $row->roomName.php?rel=ReserveInfo' name='type' method='post'>". $sql = " SELECT FROM WHERE ".

} //$restart_counter++.$restart_counter. $total_rooms = $data[0].FROM tbl_room WHERE roomType_id = '". if($_SESSION['roomtype'] == 3) $roomnum=300+$i. $data = mysql_fetch_row($resultCount). if($_SESSION['roomtype'] == 2) $roomnum=200+$i. for ($i=1. echo '<div class="clear"></div>'.'0'. //$restart_counter=0.$_SESSION['roomtype']. roomNumber.$i++) { if (!($i%$rooms_per_floor)) { //go to the next floor $floor++. SELECT tbl_reservation roomNumber = $roomnum isReserved = 'Yes' ".$i<=$total_rooms. if($_SESSION['roomtype'] == 1) $roomnum=100+$i. Arrival."' ". //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). Departure Online Booking System for Camp Holiday Resort and Recreation Area 255 . $resultCount = mysql_query($sqlCount). // give rooms a number //$roomnum=$floor.

'</div>'.'">Room '.$i. } } } if ($available) { echo '<div class="available"> <input type="checkbox" name="'.'" value="'. padding-right:15px. } else { echo '<div class="unavailable"> <input type="checkbox" disabled="disabled">Room '. cursor:pointer. 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. padding-left:15px.' id='reserveroom' name='reserveroom' value='Reserve' />". $check_out = $object->Departure.$roomnum. } } echo "<br /><br /><br /><br /><br /><input type='submit' style='font-size:16px.'</div>'. Online Booking System for Camp Holiday Resort and Recreation Area 256 .if (mysql_num_rows($result)) { while ($object = mysql_fetch_object($result)){ $check_in = $object->Arrival. font-weight: bolder.$roomnum.$roomnum.

admin / Sub / Reservations / reservation_insert. font-weight: bolder. cursor:pointer.setTimeout('gotoUrl()'.*/ <html> <head> <script> function gotoUrl(){ location.1500). </script> </head> <body> Online Booking System for Camp Holiday Resort and Recreation Area 257 . padding-right:15px. } ?> </html> /*----------------------.php ---------------.echo "<input type='button' value='Cancel' style='font-size:16px.php?rel=Home'. echo "</div> <div class='b'> <div class='b'> <div class='b'></div> </div> </div> </div>". echo "</form>". } window.href='domain.href='domain. padding-left:15px.' onclick=\"javascript:location.php?rel=Availability'\" />".

Online Booking System for Camp Holiday Resort and Recreation Area 258 . = $_SESSION['departure']. $arrival $departure $roomname = $_SESSION['arrival']. = $_POST['ccamount'].php").. = $_POST['lastname']. $numadults = $_SESSION['numadults']. firstName. = $_POST['contactno']. $reservetype = $_SESSION['reservetype']. $middleinitial = strtoupper($_POST['mi']). = $_SESSION['roomname']. = $_POST['email']. Company. = $_POST['firstname']. middleInitial. $numchildren = $_SESSION['numchildren'].<?php session_start(). print "<div class='success'>Reservation Successfully Created. $address $contactno $email = $_POST['address'].!</div>". $receiptno $amount $ccamount = $_POST['receiptno'].. $sqlGuest = "INSERT INTO tbl_guest( lastName. = $_POST['amount']. $company $lastname $firstname = $_POST['companyname']. $paymentmode = $_POST['paymentmode']. $totalcharge = $_SESSION['totalcharge']. include("connection/connection.

Address. '$firstname'. 'Yes') ". '$lastname'. '$arrival'. '$roomname'. '$middleinitial'. contactNo. $guest_id = $data[0]. Email. foreach ($_SESSION['rooms'] as $key => $value){ mysql_query("INSERT INTO tbl_reservation VALUES( '$guest_id'. ''. $sqlMaxGuestId = " SELECT FROM tbl_guest ". MAX(guest_id) $result = mysql_query($sqlMaxGuestId) or die(mysql_error()). '$address'. isActive) VALUES ( '$company'. $data = mysql_fetch_array($result). Online Booking System for Camp Holiday Resort and Recreation Area 259 . '$numadults'. '$contactno'. '$email'. '$value'. mysql_query($sqlGuest) or die(mysql_error()). '$departure'.

$sqlAccommoId = " SELECT FROM tbl_accommodation ". '$reservation_id') ". 'Pending') ") or die(mysql_error()).'$numchildren'. } $sqlReserveId = " SELECT FROM tbl_reservation ". $sqlAccommodation = " INSERT INTO tbl_accommodation VALUES ( ''. $data3 = mysql_fetch_array($result3). '". $accommodation_id = $data3[0]. '$guest_id'."'.$_SESSION['name']. mysql_query($sqlAccommodation) or die(mysql_error()). $reservation_id = $data2[0]. '$reservetype'. Online Booking System for Camp Holiday Resort and Recreation Area 260 . NOW(). 'Yes'. NOW(). MAX(accommodation_id) $result3 = mysql_query($sqlAccommoId) or die(mysql_error()). 'Yes'. $data2 = mysql_fetch_array($result2). MAX(reservation_id) $result2 = mysql_query($sqlReserveId) or die(mysql_error()).

$sqlTransac = " INSERT INTO tbl_transaction VALUES (''. }else{ $sqlPayment = " INSERT INTO tbl_payment Online Booking System for Camp Holiday Resort and Recreation Area 261 . INSERT INTO tbl_transaction mysql_query($sqlTransacPay) or die(mysql_error())."'. 'Payment Received'. '$receiptno'. NOW()) ". $sqlTransacPay = " VALUES (''. 'Rent Due on'. '$accommodation_id'. NOW()) ". '$ccamount'. '$totalcharge'. NOW()) ". mysql_query($sqlTransac) or die(mysql_error()). '$accommodation_id'. '". '$accommodation_id'.$_SESSION['name']. '$paymentmode'. if($paymentmode == "CreditCard"){ $sqlPayment = " INSERT INTO tbl_payment VALUES ( ''. mysql_query($sqlPayment) or die(mysql_error()). '$amount'.

include("functions/myfunction. '$accommodation_id'. date_default_timezone_set('Asia/Taipei').php"). '$accommodation_id'. '".$_SESSION['name']."'. '0'. '$paymentmode'. mysql_query($sqlPayment) or die(mysql_error())."'.php ------------------. '$amount'. ?> <html> <head> <link rel="stylesheet" type="text/css" href="styles.VALUES ( ''. } $sql4 = " INSERT INTO tbl_billing VALUES ( ''.css"/> Online Booking System for Camp Holiday Resort and Recreation Area 262 . ?> </body> </html> /*----------------------.admin / Sub / Reservations / reservationinfo. '". mysql_query($sql4) or die(mysql_error()).*/ <?php session_start(). NOW()) ". NOW() ) ".$_SESSION['name'].

.getElementById("check").display = 'block'.getElementById("cash").display = 'none'.+@. var creditcard = document. contactno. fname. document. } } function getSavePersonalInfo(selectedtype){ document. if (str=="Cash"){ cash.submit() .info.style.style.3}$/. } function requiredFields(){ var lname. email.+\.value = selectedtype .display = 'block'. } if (str=="CreditCard"){ creditcard. }else{ cash. Online Booking System for Camp Holiday Resort and Recreation Area 263 . }else{ creditcard.style.<script type="text/javascript"> function showPaymentMode(str){ var cash = document.personalinfo.personalinfo.{2.display = 'none'.getElementById("creditcard").style. var filter = /^. mi. var check = document.

mi.personalinfo. mi = String(document.personalinfo.personalinfo.contactno.value).focus().personalinfo.email.personalinfo. } if( contactno == "" ){ alert('" CONTACT NO.value).personalinfo.firstname. contactno = String(document.value). return false.contactno. } if( fname == "" ){ alert('" FIRST NAME " Field should not be empty!'). email = String(document. " Field should not be empty!').lastname. return false.value). document.personalinfo.lname = String(document. return false. if( lname == "" ){ alert('" LAST NAME " Field should not be empty!'). } if( email == "" ){ Online Booking System for Camp Holiday Resort and Recreation Area 264 . document.mi.value). return false.firstname.personalinfo.personalinfo. fname = String(document. document. document. } if( mi == "" ){ alert('" MIDDLE INITIAL " Field should not be empty!').focus().lastname.focus().focus().

} if( filter.focus(). } getSavePersonalInfo(selectedtype).test(email)){ return true.email. }else{ alert('Please input a valid " EMAIL ADDRESS"!').">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 . document. document. return false.personalinfo.focus(). } </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.email. return false.alert('"EMAIL ADDRESS " Field should not be empty!'). return true.personalinfo.

?></td> Online Booking System for Camp Holiday Resort and Recreation Area 266 . of Nights</td> <td>:</td> <td style="color:#060.<div class="t"> <div class="t"></div> </div> </div> <div class="m"> <form action="domain."><?php echo $_SESSION['reservetype']."><?php echo $arrival."> <?php $arrival = $_SESSION['arrival']. ?> </td> </tr> <tr> <td>Arrival</td> <td>:</td> <td style="color:#060.?></td> <td width="20px"><td> <td>No. font-weight:bolder. font-weight:bolder.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. $dateDiff = strtotime($departure) . $departure = $_SESSION['departure']. echo $totalnights = floor($dateDiff/(60*60*24)).strtotime($arrival).

font-weight:bolder.?></td> <td width="20px"><td> <td>Room Rate</td> <td>:</td> <?php $roomid = $_SESSION['roomtype'].?> 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 . $rs = mysql_query($sqlString)."> <?php echo $_SESSION['numadults'] + $_SESSION['numchildren']. $row = mysql_fetch_object($rs) ?> <td style="color:#060.?> </td> </tr> <tr> <td>Departure</td> <td>:</td> <td style="color:#060. font-weight:bolder. of Guests</td> <td>:</td> <td style="color:#060. font-weight:bolder.<td width="20px"><td> <td>No."><?php echo $departure. $sqlString = " FROM WHERE ".">P <?php echo $row->Rate.

font-weight:bolder.$_SESSION['roomtype'].$i++){ if ($_POST[$i]) { echo 'Room #'.$_POST[$i]).?></td> <td width="20px"><td> <td>Total Charges</td> <td>:</td> <td style="color:#F00."' ". font-weight:bolder. for ($i=1. $resultCount = mysql_query($sqlCount). $_SESSION['totalcharge'] = $totalcharge.'<br/>'.<td style="color:#060. ?> </td> </tr> <tr> <td valign="top" width="120px">Room Number/s</td> <td valign="top">:</td> <td style="color:#060.$_POST[$i]. // we are pushing the selected rooms in an array array_push($_SESSION['rooms']. $total_rooms = $data[0]."> P <?php echo $totalcharge = ($totalnights * $row->Rate). font-weight:bolder. Online Booking System for Camp Holiday Resort and Recreation Area 268 .$i<=$total_rooms."> <?php $sqlCount = " SELECT COUNT(room_id) FROM tbl_room WHERE roomType_id = '"."><?php echo $_SESSION['roomname']. $_SESSION['rooms'] = array(). $data = mysql_fetch_row($resultCount).

} } ?> </td> <td width="20px"><td> <td>Initial Payment</td> <td>:</td> <td style="color:#F00."> 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 . font-weight:bolder.

<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 .

</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 .</tr> <tr> <td>Contact No.

<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."> <table> <tr> Online Booking System for Camp Holiday Resort and Recreation Area 272 .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.

padding-right:25px.<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. font-weight: bolder."> </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 . padding-left:25px. cursor:pointer.

value).*/ <script language="JavaScript" type="text/javascript"> function getupdateusers(selectedtype){ document. position = String(document.php ------------------------. } function requiredFields(){ var uname.users.lname. position. if( uname == "" ){ alert('" USERNAME " Field should not be empty. document.users.users.users. document.value).pword.value). lname = String(document. pword.submit().mi.. uname = String(document.focus(). mi = String(document.uname.users. fname = String(document.focus().value).users. } Online Booking System for Camp Holiday Resort and Recreation Area 274 .value).users.position.value = selectedtype . return false. lname. document.users.</html> /*----------------------.users.uname.updateusers.pword. } if( pword == "" ){ alert('" PASSWORD " Field should not be empty!'). pword = String(document.users.fname. mi.value)..admin / Sub / Users / Sub_Users / Edit.!'). return false. fname.

Online Booking System for Camp Holiday Resort and Recreation Area 275 .users. } getupdateusers(selectedtype).mi.focus().fname. document.php"). return false.focus(). } if( mi == "" ){ alert('" MIDDLE INITIAL " Field should not be empty!'). document. return false. return false.focus().focus().users. } if( fname == "" ){ alert('" FIRST NAME " Field should not be empty!'). } if( position == "" ){ alert('" POSITION " Field should not be empty!').users. return true.lname. document.position. document.users. } </script> <?php include("connection/connection. return false.if( lname == "" ){ alert('" LAST NAME " Field should not be empty!').

$sql = "SELECT * FROM tbl_useraccount WHERE userAccount_id = '$id'". $result = mysql_query($sql) or die("No user database!").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.$id = $_GET['id']. ?> <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. ?>" /> <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 . $row = mysql_fetch_object($result).

"> <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> <div id="element-box1"> <div class="t"> <div class="t"> Online Booking System for Camp Holiday Resort and Recreation Area 277 .php?rel=Users&page=1" style="color:#000000.</td> <td class="button" id="toolbar-edit"> <a href="domain.

<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> Online Booking System for Camp Holiday Resort and Recreation Area 278 .?>" 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> <td align="right">Password</td> <td> <input type="password" name="pword" value="<?php echo $row->Password.

?>>3</option> </select> Online Booking System for Camp Holiday Resort and Recreation Area 279 .?>" 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'".?>" size="50" /> </td> </tr> <tr> <td align="right">M.I.?>" size="10" /> </td> </tr> <tr> <td align="right">Position</td> <td> <input type="text" name="position" value="<?php echo $row->Position. ?>>2</option> <option value="3" <?php if($row->accessLevel == 3) echo "selected='selected'".<td align="right">First Name</td> <td> <input type="text" name="fname" value="<?php echo $row->firstName.</td> <td> <input type="text" name="mi" maxlength="2" value="<?php echo $row->middleInitial. ?>>1</option> <option value="2" <?php if($row->accessLevel == 2) echo "selected='selected'".

uname.value). lname = String(document.users.php -----------------------. mi = String(document.users. pword = String(document. pword. document. lname. } function requiredFields(){ var uname.mi. fname = String(document.users. position.users.pword.users. uname = String(document.value = selectedtype.admin / Sub / Users / Sub_Users / New.</td> </tr> </tbody> </table> </form> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> /*----------------------.*/ <?php session_start().submit().users.saveusers. ?> <script language="JavaScript" type="text/javascript"> function getsaveusers(selectedtype){ document.value).users.fname.value). fname.lname. mi.value).value). Online Booking System for Camp Holiday Resort and Recreation Area 280 .

users.users. } if( pword == "" ){ alert('" PASSWORD " Field should not be empty!').mi.fname.focus(). if( uname == "" ){ alert('" USERNAME " Field should not be empty!'). return false.position. } if( position == "" ){ Online Booking System for Camp Holiday Resort and Recreation Area 281 .focus(). document.lname.users. return false. } if( lname == "" ){ alert('" LAST NAME " Field should not be empty!').users. document.pword. return false.users. } if( fname == "" ){ alert('" FIRST NAME " Field should not be empty!'). } if( mi == "" ){ alert('" MIDDLE INITIAL " Field should not be empty!'). return false. document.focus().focus().focus().position = String(document. document.uname.users. return false.value). document.

"> <span class="icon-32-save" title="Save"> </span> Save </a> Online Booking System for Camp Holiday Resort and Recreation Area 282 .users.position.focus(). } </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.alert('" POSITION " Field should not be empty!'). document. } getsaveusers(selectedtype). return true. return false.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.

</td> <td class="button" id="toolbar-edit"> <a href="domain."> <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 .php?rel=Users&page=1" style="color:#000000.

</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.</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 .I.

</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> /*----------------------.*/ <?php session_start().php -------------------------------------. ?> <script type="text/javascript"> function getdelete ( selectedtype ){ Online Booking System for Camp Holiday Resort and Recreation Area 285 .admin / Sub / Users / userlist.php"). include("connection/connection.

value. window.chk. i++){ aa[i].document.php?rel=EditUser&id="+cc+"".checked){ cc = adminForm.getElementById("filterable").chk[i]. var ele. document.split(" ").toLowerCase(). i++){ if(adminForm. if (checked == false){ checked = true } else { checked = false } for (var i =0. var table = document.getElementById('frm1').value.submit(). function checkedAll(frm1) { var aa = document.length.adminForm. i < aa.checked = checked. } function getEditUser(){ for(i = 0.length. } } function doSearch(phrase){ var words = phrase. i < adminForm.adminForm.value = selectedtype.chk[i].location = "domain. Online Booking System for Camp Holiday Resort and Recreation Area 286 . } } } checked=false. var on = 0.deleteuser.

rows. }else { displayStyle = 'none'.style. for (var i = 0.style.for (var r = 0. if($do_delete){ Online Booking System for Camp Holiday Resort and Recreation Area 287 . }else{ n. if ( on == 0 && n ) { n.replace(/<[^>]+>/g.rows[r]. $id = $_POST['chk'].value.rows[r]. } } </script> <?php $do_delete = $_POST['deleteuser']. on++.display = "".indexOf(words[i])>=0){ displayStyle = ''.innerHTML = phrase. r++){ ele = table.getElementById("noresults"). i < words. r < table. } var n = document. var displayStyle = 'none'.getElementById("qt").display = "none".display = displayStyle.length. i++) { if (ele. break.""). } } table.style. document.length.innerHTML.toLowerCase().

"'". $i++){ $sql = "DELETE FROM tbl_useraccount WHERE userAccount_id = '" ."> <span class="icon-32-delete" title="Delete"></span> Delete </a> </td> Online Booking System for Camp Holiday Resort and Recreation Area 288 .$i < $N. $id[$i] . for($i=0.$N = count($id). 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?').

<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 .

" onkeyup="doSearch(filter).' /></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 . padding: 5px."> Search <input type="text" size="38" name="filter" id="filter" style="border: 1px solid red." /> </div> <table class="adminlist" > <thead> <tr> <th width="5%">#</th> <th width="5%"><input type='checkbox' name='checkall' onclick='checkedAll(frm1).<div id="element-box4"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div style="font-weight: bolder.

while($row = mysql_fetch_array($result)){ ?> <tr> <td align="center"><?php echo $count. ?></td> <td align="center"><?php echo $row['accessLevel']. ?></td> </tr> <?php $count = $count + 1. ?></td> <td align="center"><?php echo $row['middleInitial']. ?></td> <td align="center"><?php echo $row['Position']. $count = 1. ?>" name="chk[]" id="chk" onselect="return getEditUser()" /> </td> <td align="center"><?php echo $row['Username']. ?></td> <td align="center"> <input type="checkbox" value="<?php echo $row['userAccount_id'].<tbody id="filterable"> <?php $sql = " SELECT FROM ORDER BY * tbl_useraccount accessLevel ". ?></td> <td align="center"><?php echo $row['Password']. $result = mysql_query($sql) or die("No users database!"). ?></td> <td align="center"><?php echo $row['lastName']. ?></td> <td align="center"><?php echo $row['firstName']. } Online Booking System for Camp Holiday Resort and Recreation Area 291 .

?> <tr style="display:none.*/ <html> <head> <script> function gotoUrl(){ location. </script> </head> <body> Online Booking System for Camp Holiday Resort and Recreation Area 292 .php?rel=Users'.1500). color:#F00." id="noresults"> <td colspan="9">No Records Found that start with "<span id="qt"></span>". font-weight: bolder.href='domain.php ---------------------------.</td> </tr> </tbody> </table> </form> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div> /*----------------------. } window.admin / Sub / Users / userlist_update.setTimeout('gotoUrl()'.

mysql_query($sql) or die("No user database!"). $do_update_user = $_POST['updateusers'].!</div>". $accesslevel = $_POST['accesslevel']. Online Booking System for Camp Holiday Resort and Recreation Area 293 . position = '$position'.. $password = $_POST['pword']. firstname = '$firstname'. accesslevel = '$accesslevel' WHERE userAccount_id = '$id'". lastname = '$lastname'. $sql = "UPDATE tbl_useraccount SET username = '$username'. print "<div class='success'>User Successfully Updated. $username = $_POST['uname']. if($do_update_user){ $id = $_POST['id']. $position = $_POST['position']. $lastname = $_POST['lname'].<?php include("connection/connection. $mi = strtoupper($_POST['mi']). middleinitial = '$mi'.php").. password = '$password'. $firstname = $_POST['fname'].

href='domain. if($do_save_user){ $uname = $_POST['uname'].setTimeout('gotoUrl()'.} ?> </body> </html> /*----------------------. $lastname = $_POST['lname']. $firstname = $_POST['fname'].1500). $mi = strtoupper($_POST['mi']). $position = $_POST['position'].php --------------------------. $do_save_user = $_POST['saveusers']. Online Booking System for Camp Holiday Resort and Recreation Area 294 . } window.*/ <html> <head> <script> function gotoUrl(){ location. </script> </head> <body> <?php include("connection/connection.php"). $pword = $_POST['pword']. $accesslevel = $_POST['accesslevel'].admin / Sub / Users / userlist_validate.php?rel=Users'.

firstname. position. '$lastname'.print "<div class='success'>User Successfully Created. password... middleinitial. mysql_query($sql) or die(mysql_error()). '$position'.php -----------------------------------------------------.!</div>". $sql = "INSERT INTO tbl_useraccount( username.*/ <?php session_start(). '$mi'. accesslevel ) VALUES ( '$uname'. '$accesslevel')".admin / domain. '$pword'. lastname. } ?> </body> </html> /*----------------------. '$firstname'. Online Booking System for Camp Holiday Resort and Recreation Area 295 .

0 Transitional//EN" "http://www.org/TR/xhtml1/DTD/xhtml1-transitional.js" language="JavaScript"></script> <script src="js/calendar. } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.dtd"> <html xmlns="http://www.css" /> <link rel="stylesheet" type="text/css" href="css/styles. if($_SESSION['login'] == 0){ header("location: index.js"></script> <script type="text/javascript" src="js/reservationtype.css"/> <link href="css/calendar.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr" id="minwidth" > <head> <meta http-equiv="content-type" content="text/html.css" /> <link rel="stylesheet" type="text/css" href="css/rounded.php'. $ACCEPT_FILE = array().w3.js"></script> <?php $rel = $_GET['rel']. charset=utf-8" /> <title>Camp Holiday Resort and Recreation Area</title> <link rel="stylesheet" type="text/css" href="css/template.include("connection/connection. Online Booking System for Camp Holiday Resort and Recreation Area 296 .php?ref=Home"). // HOME $ACCEPT_FILE['Home'] = 'Home/reservation.js" language="JavaScript"></script> <script type="text/javascript" src="js/menu.css" rel="stylesheet" type="text/css"/> <script src="js/filterTable.php").w3.css"/> <link rel="stylesheet" type="text/css" href="css/messagebox.

php'.php'. // MASTER $ACCEPT_FILE['Guests'] $ACCEPT_FILE['NewGuest'] $ACCEPT_FILE['EditGuest'] = 'Master/guestlist. = 'Master/Sub_Guests/New. $ACCEPT_FILE['ValidateGuest'] = 'Master/guestlist_validate.php'. $ACCEPT_FILE['SearchReport'] = 'Reports/searchReports. $ACCEPT_FILE['ReserveInfo'] $ACCEPT_FILE['Reserved'] = 'Reservations/reservationinfo. $ACCEPT_FILE['UpdateGuest'] = 'Master/guestlist_update.php'.php'. // REPORTS $ACCEPT_FILE['DailyReports'] = 'Reports/dailyReports.php'. = 'Home/checkout. = 'Reservations/reservation_insert.php'.php'. Online Booking System for Camp Holiday Resort and Recreation Area 297 .php'. $ACCEPT_FILE['MonthlyReports'] = 'Reports/monthlyReports.php'. = 'Master/Sub_Guests/Edit.php'.php'. // BOOKINGS $ACCEPT_FILE['Availability'] = 'Reservations/book.$ACCEPT_FILE['ArrivalConfirm'] $ACCEPT_FILE['ArrivalCancel'] $ACCEPT_FILE['Checkin'] $ACCEPT_FILE['Checkout'] $ACCEPT_FILE['AddCharges'] = 'Home/reservation_confirm. = 'Master/Sub_RoomList/New. $ACCEPT_FILE['WeeklyReports'] = 'Reports/weeklyReports.php'.php'. = 'Home/reservation_cancel.php'.php'. $ACCEPT_FILE['RoomList'] $ACCEPT_FILE['NewRoomList'] = 'Master/roomlist. = 'Home/checkin.php'.php'. $ACCEPT_FILE['PrintPreviewCharges'] = 'Home/printpreview. $ACCEPT_FILE['AddChargesConfirm'] = 'Home/addcharges_confirm. = 'Home/addcharges.php'.php'.php'.

php'.php'. $ACCEPT_FILE['ValidateRoomType'] = 'Master/roomtypes_validate.php'. = 'Master/Sub_Services/Edit. = 'Master/Sub_Amenities/Edit. $ACCEPT_FILE['UpdateRoomType'] = 'Master/roomtypes_update.php'.php'.php'. = 'Master/Sub_RoomType/Edit.php'. Online Booking System for Camp Holiday Resort and Recreation Area 298 .php'.php'. = 'Master/Sub_Amenities/New.php'. $ACCEPT_FILE['UpdateAmenities'] = 'Master/amenities_update.php'.php'.php'.php'. $ACCEPT_FILE['Search'] = 'Restaurant/search.$ACCEPT_FILE['EditRoomList'] = 'Master/Sub_RoomList/Edit. $ACCEPT_FILE['ValidateAmenities'] = 'Master/amenities_validate.php'.php'. $ACCEPT_FILE['UpdateServices'] = 'Master/services_update.php'. $ACCEPT_FILE['UpdateRoomList'] = 'Master/roomlist_update. $ACCEPT_FILE['Services'] $ACCEPT_FILE['NewServices'] $ACCEPT_FILE['EditServices'] = 'Master/services. = 'Master/Sub_RoomType/New. // RESTAURANT $ACCEPT_FILE['Restaurant'] = 'Restaurant/reservation.php'. = 'Master/Sub_Services/New. $ACCEPT_FILE['ValidateRoomList'] = 'Master/roomlist_validate.php'. // USERS $ACCEPT_FILE['Users'] = 'Users/userlist.php'. $ACCEPT_FILE['RoomType'] $ACCEPT_FILE['NewRoomType'] $ACCEPT_FILE['EditRoomType'] = 'Master/roomtypes. $ACCEPT_FILE['Amenities'] $ACCEPT_FILE['NewAmenities'] $ACCEPT_FILE['EditAmenities'] = 'Master/amenities.php'. $ACCEPT_FILE['ValidateServices'] = 'Master/services_validate.

} ?> </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'].php'. $ACCEPT_FILE['UpdateUser'] = 'Users/userlist_update.php'.$ACCEPT_FILE['NewUser'] = 'Users/Sub_Users/New. } if($_SESSION['login'] == 3 ){ if (!isSet($contentname)) $contentname = "Restaurant/reservation.php'. $contentname = $ACCEPT_FILE[$rel]. $ACCEPT_FILE['EditUser'] = 'Users/Sub_Users/Edit. $ACCEPT_FILE['ValidateUser'] = 'Users/userlist_validate.php".php". if($_SESSION['login'] == 1 || $_SESSION['login'] == 2){ if (!isSet($contentname)) $contentname = "Home/reservation. ?></font></b> </span> </div> Online Booking System for Camp Holiday Resort and Recreation Area 299 .php'.

php?rel=Availability&page=1" style="cursor:pointer.png" align="middle" /> Reservations</a> </li> <?php } if($_SESSION['login'] == 1){ ?> <li class="node"> <a href="domain."> <img src="images/admin-icons/Administrator-icon-32."> <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=Guests&page=1" style="cursor:pointer."> <img src="images/admin-icons/Clipboard-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 .php?rel=Home&page=1" style="cursor:pointer.<div id="module-menu"> <ul id="menu" > <?php if($_SESSION['login'] == 1 || $_SESSION['login'] == 2){ ?> <li class="node"> <a href="domain.

php?rel=DailyReports&page=1" style="cursor:pointer.<a href="domain.png" align="middle" /> Reports</a> </li> <?php } ?> <li class="node" onclick="return confirm('Are you sure you want to EXIT?').php?ref=Logout" style="cursor:pointer."> <a href="index.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.png" align="middle" /> Restaurant</a></li> <li class="node"> <?php } if($_SESSION['login'] == 1){ ?> <li class="node"> <a href="domain."> <img src="images/admin-icons/Clipboard-icon-32."> <img src="images/admin-icons/User-Group-icon-32.png" align="middle" /> Logout</a> </li> </ul> </div> <div class="clr"></div> </div> Online Booking System for Camp Holiday Resort and Recreation Area 301 ."> <img src="images/admin-icons/Files-icon-32.php?rel=Users&page=1" style="cursor:pointer."> <img src="images/admin-icons/32-exit-icon.

0 Transitional//EN" "http://www.admin / home.org/TR/xhtml1/DTD/xhtml1-transitional.w3.css" rel="stylesheet" type="text/css" /> Online Booking System for Camp Holiday Resort and Recreation Area 302 .dtd"> <html xmlns="http://www. ?> <div class="clr"></div> </div> </div> </div> <div id="border-bottom"><div><div></div></div></div> <br /><br /><br /><br /><br /> </body> </html> /*----------------------. if($_SESSION['login']){ header("location: domain.w3.php -------------------------------------------------------. } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.<div id="content-box"> <div class="border"> <div class="padding"> <?php include("Sub/$contentname").*/ <?php session_start().org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr" > <head> <meta http-equiv="content-type" content="text/html.php"). charset=utf-8" /> <title>Camp Holiday Resort and Recreation Area</title> <link href="css/login.

<link href="css/rounded.css" rel="stylesheet" type="text/css" /> <script language="javascript" type="text/javascript"> function setFocus() { document. document. } </script> </head> <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 .username.login.focus().select().login.username.

">&nbsp."> <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.</p> <p align="center"> <?php if ($_POST["username"]!="" && $_POST["password"]!=""){ Online Booking System for Camp Holiday Resort and Recreation Area 304 .<div id="section-box"> <div class="t"> <div class="t"> <div class="t"> </div> </div> </div> <div class="m"> <form action="" method="post" name="login" id="form-login" style="clear: both.">Login</a> </div> </div> </div> <p id="form-login-lang" style="clear: both.submit().

margin: 0. height: 0px.php")..} if($row->accessLevel == "2"){$_SESSION['login'] = 2.} echo "<script language='javascript'> location. $Pword = $_POST["password"]. $sql="SELECT * FROM tbl_useraccount WHERE username='$Uname' AND password='$Pword'".php?rel=Home' </script>"." value="Login" /> </form> <div class="clr"></div> Online Booking System for Camp Holiday Resort and Recreation Area 305 ."). if($row->accessLevel == "1"){$_SESSION['login'] = 1.} if($row->accessLevel == "3"){$_SESSION['login'] = 3. $rs = mysql_query($sql) or die("Error! Login.</font></b>".href='domain.include("connection/connection. if($row = mysql_fetch_object($rs)){ $_SESSION['name'] = $row->firstName. padding: 0.. $Uname = $_POST["username"]. width: 0px. } } ?> </p> <div class="clr"></div> <input name="submit" type="submit" style="border: 0. }else{ echo "<b><font color='red' size='2'>Invalid Username and Password.

.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.</p> <p> <a href="./index.</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. </noscript> <div class="clr"></div> </div> </div> Online Booking System for Camp Holiday Resort and Recreation Area 306 .

php'. = 'Master/services_addcategory. ?> /*----------------------. $ACCEPT_FILE['ViewDetails'] $ACCEPT_FILE['Billing'] $ACCEPT_FILE['Payments'] $ACCEPT_FILE['Payments2'] $ACCEPT_FILE['AddCategory'] = 'Home/reservation_viewdetails.admin / index.<div id="border-bottom"><div><div></div></div> </div> </body> </html> /*----------------------.php'.php'. = 'Home/payments. include("Sub/$pagename").php ------------------------------------------------------. $ref = $_GET['rel']. include("connection/connection.*/ <?php session_start(). $ACCEPT_FILE = array(). $ACCEPT_FILE['ValidateCategory'] = 'Master/services_addcategory_validate.admin / popup.php". $pagename = $ACCEPT_FILE[$ref].php"). = 'Home/payments2.php'. $ACCEPT_FILE['PrintReport'] = 'Reports/printReports.php'.php'. = 'Home/billing.php'.*/ <?php Online Booking System for Camp Holiday Resort and Recreation Area 307 .php -------------------------------------------------------. if (!isSet($pagename)) $pagename = "Blank.

*/ <?php $dbhost = "localhost". $dbname = "db_campholiday".php"). $dbuser = "root". $server=mysql_connect ( $dbhost.php ---------------------------------. if (!isSet($pagename)) $pagename = "home. include("connection/connection. $ACCEPT_FILE['PrintPreviewBilling'] = 'Print/printpreviewBilling. $dbpass)or die("<h1>Server is currently unavailable</h1>").php'. $ACCEPT_FILE['Admin'] = 'Sub/domain. $pagename = $ACCEPT_FILE[$ref]. include("$pagename"). $ACCEPT_FILE['Home'] = 'home. $ACCEPT_FILE['PrintPreviewCharges'] = 'Print/printpreview. $ACCEPT_FILE = array().connection / connection.php". ?> /*-------------------------------.php'. $dbpass = "".php'.php'. $conn=mysql_select_db($dbname) or die(mysql_error()). $dbuser. ?> Online Booking System for Camp Holiday Resort and Recreation Area 308 . $ref = $_GET['ref']. $ACCEPT_FILE['Logout'] = 'Redirect/Logout.php'.session_start().

'". $datagues = mysql_fetch_array($result).$_SESSION['sdate']).lastName."'.middleInitial.'".'".$startdate2[0].isActive) VALUES ('". //insert db in loop $i = 0.'"."'.$_SESSION['eadd']."'. $startdate2=explode("/"."'."-"."(firstName. //get last guest id $SMaxGuestId = " SELECT MAX(guest_id) FROM tbl_guest ". $result = mysql_query($SMaxGuestId).$_SESSION['fname']. Online Booking System for Camp Holiday Resort and Recreation Area 309 .contactNo.*/ <?php include("function.$_SESSION['lname']. $guest_id = $datagues[0]./*-------------------------------.'Yes')"). foreach ($_SESSION['check'] as $value) //get the ids in array { $roomnumarray = array(). //insert guest inserttodb("tbl_guest".php"). //submit reserveation if($_GET["rel"] == 'submitguest') //when proceed is clicked { //print_r($_SESSION).php -------------------------------------------------------.'".$_SESSION["mi"].Email. $_SESSION['add']."-".$_SESSION['edate']).action."'. $startdate2 = $startdate2[2].$startdate2[1].$_SESSION["connum"] ."'. $enddate2=explode("/".Address.

"'". * FROM tbl_roomtype.$enddate2[1].roomType_id= tbl_roomtype.roomNumber != '".Arrival >= '".$enddate2[0]. tbl_room WHERE tbl_roomtype." AND tbl_roomtype.roomNumber = tbl_reservation. } $sql2 = "SELECT tbl_roomtype ."' ".roomType_id ".$startdate2.$enddate2. //query un available rooms (filtered with date and roomtype id) $result = mysql_query($sql). tbl_room ."' AND tbl_room."-"."' ORDER BY tbl_room.$text. while($row2 = mysql_fetch_array($result2)) { $roomnum = $row2['roomNumber'].Departure <= '".roomNumber ASC".= "AND tbl_room.roomType_id = '".roomType_id = '". $result2 = mysql_query($sql2).tbl_roomtype) ON (tbl_room.roomType_id = tbl_room. $sql = "SELECT * FROM tbl_reservation LEFT JOIN (tbl_room. if($numrow != 0) //if not all the rooms are available { while($row = mysql_fetch_array($result)) //concunt the statement in the next query { $text . $numrow = mysql_num_rows($result).$value.roomNumber AND tbl_room."-".roomType_id) WHERE tbl_reservation."' AND tbl_reservation. //query all the available rooms Online Booking System for Camp Holiday Resort and Recreation Area 310 .$enddate2 = $enddate2[2].$row['roomNumber'].$value. * .

Arrival. '". Online Booking System for Camp Holiday Resort and Recreation Area 311 .roomNumber.$roomnumarray[] = $roomnum.isReserved. 'On-line'. $availablerooms[$i]).roomType_id= tbl_roomtype.numAdults. //query all the available rooms $result = mysql_query($sql).roomNumber = $valId2".$_SESSION['numkids']. $roomnumarray = array_slice($roomnumarray."'.Status) VALUES('$guest_id'. 0.reservationType. 'Yes'. foreach($roomnumarray as $valId2) { echo $sql = "SELECT * from tbl_roomtype LEFT JOIN tbl_room ON (tbl_room. inserttodb("tbl_reservation".$row['roomName']. '".dateReservation. $row = mysql_fetch_array($result).roomName. DATE(NOW()).$_SESSION['numguest']. '$startdate2'."'.$valId2.numChildren."'. } $availablerooms = $_SESSION['numroom'].Departure.roomType_id) WHERE tbl_room. '". '". 'Pending') "). } $i++. '$enddate2'."'."(guest_id.

tbl_room . $result2 = mysql_query($sql2).roomType_id AND tbl_roomtype.} else //if all rooms available insert to db here { $sql2 = "SELECT tbl_roomtype . //query all the available rooms while($row2 = mysql_fetch_array($result2)) { $roomnum = $row2['roomNumber']. $roomnumarray = array_slice($roomnumarray.roomType_id) WHERE tbl_room. Online Booking System for Camp Holiday Resort and Recreation Area 312 . } $availablerooms = $_SESSION['numroom']. //query all the available rooms $result = mysql_query($sql).$value."'". foreach($roomnumarray as $valId2) { $sql = "SELECT * from tbl_roomtype LEFT JOIN tbl_room ON (tbl_room.roomType_id= tbl_roomtype. $row = mysql_fetch_array($result). * . $availablerooms[$i]). $roomnumarray[] = $roomnum.roomType_id = '". 0.roomType_id = tbl_room. tbl_room WHERE tbl_roomtype.roomNumber = $valId2". * FROM tbl_roomtype.

'Yes'.reservationType.numAdults. $result = mysql_query($sql).$row['roomName']. $_SESSION['add'].$_SESSION['eadd'].index.'"."'."'".Status) VALUES('$guest_id'.Address."'.Email.$_SESSION['numguest']. '$startdate2'."'. */ //print_r($_SESSION)."'.$_SESSION['fname']. 'On-line'.numChildren.inserttodb("tbl_reservation".guest_id = tbl_guest.'".contactNo.isActive) VALUES ('".'Yes')").guest_id) where tbl_reservation.middleInitial. '".lastName.'". while($row = mysql_fetch_array($result)){ Online Booking System for Camp Holiday Resort and Recreation Area 313 . 'Pending') "). /*inserttodb("tbl_guest". '".roomName.Departure.php' http-equiv='refresh' />".$_SESSION['lname']. } } echo "<meta content='0."'.$_GET['id']. DATE(NOW()). '$enddate2'. Arrival."'."'. } $i++.reservation_id = '"."'.dateReservation. '".isReserved.$_SESSION["connum"] ."(firstName.$_SESSION['numkids'].$_SESSION["mi"]."'.roomNumber."(guest_id.'". '".$valId2.'"."'. } if($_GET['rel'] == 'cancel') { echo $sql = "SELECT * FROM tbl_reservation LEFT JOIN (tbl_guest) ON (tbl_reservation.

Buffet Lunch or Dinner.php")." "."> <ul> <li> Php 42.'". </li> <br /> <li> FACILITIES TO BE PROVIDED:<br /><br /> <div align="center"> <table> Online Booking System for Camp Holiday Resort and Recreation Area 314 .jpg" width="400" height="300" /></center> <div style="padding:50px." ).$row['Email']. $message." Request Cancelation. thank you!')</script>".".php").php?login=1&default=1' http-equiv='refresh' />"."> Bridal Packages </h2> <center><img src="img/packages-wedding. } } ?> /*-------------------------------.".$row['middleInitial'].user. $subject = $row['lastName']. "Subject: $subject"."'." ". ?> <div id="bodycontent"> <h2 class="postheader" style="margin:50px.*/ <?php include("header.$row['firstName']. Packages for 100 persons.00 net . "From: .$row['reservation_id']. ?> <div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar.000.'". thank you.$message = "I want to cancel my reservation with reservation id '".bridalpackages.php --------------------------------------------. echo "<script>alert('We will call you for virification for this process. mail("postmaster@localhost". echo "<meta content='0.

<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 .

cabinroom.cabinroom. ?> /*-------------------------------.php").jpg" width="400" height="300" /></center> Online Booking System for Camp Holiday Resort and Recreation Area 316 .<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> <?php include("footer.php --------------------------------------------------. ?> <div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar.php"). ?> <!--CONTENTBODY--> <div id="bodycontent"> <h2 class="postheader" style="margin:50px.*/ <?php include("header."> Cabin Rooms </h2> <center><img src="img/Facilities/25 .php").

js"></script> Online Booking System for Camp Holiday Resort and Recreation Area 317 . extra bed at Php 300 each.00 per night.</li> <li>Free welcome drink for two (2) at the Restaurant. old & below if sharing with parents.</li> <li>Free accommodation for children 8 yrs.cafeteria.</li> <li>Free 24/7 Internet access at the Lobby.</li> </ul> </div> </div> <!--/CONTENTBODY--> </div> </div> <?php include("footer.</li> <li>Check out time is at 12:00 noon.</li> <li>Maximum of four (4) occupants.php").2.<div style="padding:50px. ?> <meta http-equiv="Content-Type" content="text/html.php").</li> <li>Free use of Swimming Pool."> <ul> <li>Available in Double Bed.*/ <?php include("header.4.php ----------------------------------------------------. charset=utf-8" /> <link rel="shortcut icon" href="favicon.ico" /> <link rel="stylesheet" type="text/css" href="css/jquery.panorama.</li> <li>Rates include government tax & service charge.css" media="screen" /> <script type="text/javascript" src="js/jquery-1. ?> /*-------------------------------.</li> <li>Php 1800.

font-weight: normal. }).js"></script> <script type="text/javascript"> $(document). start_position: 1527 }).panorama({ auto_start: 0. margin-bottom: 2em.fancybox().ready(function(){ $('. }).advancedpanorama").js"></script> <script type="text/javascript"> $(document).js"></script> <script type="text/javascript" src="js/jquery.panorama.ready(function(){ $("img. } h1 { color: white. </script> <script type="text/javascript" src="js/cvi_text_lib. Online Booking System for Camp Holiday Resort and Recreation Area 318 .flipv. font-family: Verdana.advanced-panorama. </script> <style type="text/css"> body { /*background: #595959.thickbox').*/ text-align: center.js"></script> <script type="text/javascript" src="js/jquery.<script type="text/javascript" src="js/jquery.

152.293" href="out.panorama-viewport { border: 20px solid #414141.php" class="thickbox" alt="This way to Swimming Pool" /> </map> </div> Online Booking System for Camp Holiday Resort and Recreation Area 319 . color: white. margin-right: auto. } #page { text-align: center. } #page a { color: white.3747.2215. margin-left: auto. } #page p { margin-bottom: 1em.php" class="thickbox" alt="This way to Beach Shore" /> <area shape="rect" coords="641.font-size: 25px. } </style> <div id="page"> <img src="img/cafeteria. } #page .250" href="pool.712.243" href="panoramic.php" class="thickbox" alt="Move here" /> <area shape="rect" coords="3680.png" class="advancedpanorama" width="4500" height="375" usemap="testmap" alt="Cafeteria" /> <map id="testmap" name="testmap"> <area shape="rect" coords="2146.140.192.

php").lightbox-0.css" media="screen" /> <form action="" method="post"> <div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar.js"></script> <script type="text/javascript" src="lightbox/js/jquery. </B><br /> Please take the time to fill out our short form below.all are welcomed. </p> Online Booking System for Camp Holiday Resort and Recreation Area 320 .lightbox-0. ?> /*-------------------------------. Let us know your ideas to bring even more encouragement and hope to our Resort.5.php").php").5.php ------------------------------------------------------. ideas and/or suggestions .<?php include("footer.js"></script> <link rel="stylesheet" type="text/css" href="lightbox/css/jquery. ?> <script type="text/javascript" src="lightbox/js/jquery.contact. ?> <!--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.*/ <?php include("header.

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. 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. Helvetica.</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. Arial. 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 . Helvetica.

FILTER_VALIDATE_EMAIL)){ return TRUE. 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 $field=filter_var($field. // // filter_var() validates the e-mail address using FILTER_VALIDATE_EMAIL if(filter_var($field. } else { return FALSE.</td> </tr> <tr valign="top"> <td colspan="2" class="menu_title1"> <div align="left"> <font face="Verdana. Helvetica. Arial. } } if (isset($_REQUEST['email'])){ Online Booking System for Camp Holiday Resort and Recreation Area 322 . FILTER_SANITIZE_EMAIL).

$txt. $message. "From: $email" ). "Subject: $name". $subject = $_REQUEST['name'] . mail("genrique72928@gmail.$subject. mail($to.php"). $txt = $_POST['msg'].$headers). $headers = $_POST['email']. proceed check if the email address is invalid $mailcheck = spamcheck($_REQUEST['email']). } else { // send email $email = $_REQUEST['email'] . $subject = $_POST['name'].// // if "email" is filled out. Online Booking System for Camp Holiday Resort and Recreation Area 323 . $message = $_REQUEST['msg'] . if ($mailcheck==FALSE){ echo "Invalid input".com". } } // // // // // ?> </div> </div> </div> </div> </div> </div> </div> </form> <?php include("footer.com". ?> $to = "genrique72928@gmail.

"> Debut Packages </h2> <center><img src="img/packages-debut.*/ <?php include("header.debutpackages.jpg" width="400" height="300" /></center> <div style="padding:50px."> <ul> <li> Php 30.000./*-------------------------------.Buffet Lunch or Dinner.php ---------------------------------------------.00 net . Package for 100 persons.php"). ?> <div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar.php"). </li> <br /> <li> FACILITIES TO BE PROVIDED:<br /><br /> <div align="center"> <table> <tr> <td>-</td> <td>Backdrop</td> </tr> <tr> <td>-</td> <td>GuestvBook</td> </tr> <tr> <td>-</td> Online Booking System for Camp Holiday Resort and Recreation Area 324 . ?> <div id="bodycontent"> <h2 class="postheader" style="margin:50px.

<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 .

?> /*-------------------------------.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 .php").js"></script> <script type="text/javascript" src="lightbox/js/jquery.5.<td>Covered Cake Table</td> </tr> </table> </div> </li> </ul> </div> </div> </div> </div> <?php include("footer.php").lightbox-0.5. ?> <script type="text/javascript" src="lightbox/js/jquery.css" media="screen" /> <form action="" method="post"> <div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar.js"></script> <link rel="stylesheet" type="text/css" href="lightbox/css/jquery.lightbox-0.*/ <?php include("header.facilities.php ----------------------------------------------------.

"/> </td> </tr> <tr> <td> Online Booking System for Camp Holiday Resort and Recreation Area 327 .php"). Its warm.?></h4> <hr style=" margin-left: 10px. and friendly staff are also available cater to your requests. while($row = mysql_fetch_array($result)){ ?> <table class="table"> <tr> <td colspan="2"> <h4 class="postheader"><?php echo $row['amenitiesName']. to $sqlString = " FROM ". amenities. efficient. width: 630px. SELECT tbl_amenities * $result = mysql_query($sqlString).<div class="postcontent"> <blockquote> <p> Whether you’re staying at the resort for business or for pleasure. </p> </blockquote> <br /> <?php include("connection/connection. and services designed to fit all your needs. Camp Holiday Resort and Recreational Area has the facilities.

</script> Online Booking System for Camp Holiday Resort and Recreation Area 328 .?>"> <img src="admin/<?php echo $row['file_thumb'].?>" rel="lightbox" title="<?php echo $row['amenitiesName']. // Select all links that contains lightbox in the attribute rel }).?> </p> </td> </tr> </table> <?php } ?> </div> </div> </div> </div> </div> </div> </div> </div> </form> <script type="text/javascript"> $(function() { $('a[@rel*=lightbox]').<a href="admin/<?php echo $row['image'].lightBox()."> <?php echo $row['amenitiesDesc']. ?>" align="left" /> </a> </td> <td> <p style="padding-left: 20px.

php").footer.php">Location</a> | <a href="contact. ?> /*-------------------------------.php">Contact Us</a> </p> </div> <div class="cleared"></div> </div> </div> <!--/FOOTER--> </div> </div> </div> <script src="jquery.php">Facilities</a> | <a href="bridalpackages.js" type="text/javascript"></script> Online Booking System for Camp Holiday Resort and Recreation Area 329 .*/ <!--FOOTER--> <div class="cleared"></div><div class="footer"> <div class="footer-t"></div> <div class="footer-body"> <div class="footer-text" align="center"> <p> <a href="index.php -------------------------------------------------------.<?php include("footer.php">Home</a> | <a href="facilities.php">Packages</a> | <a href="location.validate.

value.validator. var com = document. var lname = document.setDefaults({ submitHandler: function() { var fname = document.<script type="text/javascript"> $.getElementById('address'). } }).getElementById('passportno').ready(function() { // validate the comment form when it is submitted $("#orderform").value. var mi = document. var passno = document.getElementById('placeissued').getElementById('middleinitial').getElementById('company').getElementById('eadd'). var nat = document.value.getElementById('connum').value.value.getElementById('lastname'). 'bodycontent'). var connum = document.value.validate().value. // validate signup form on keyup and submit Online Booking System for Camp Holiday Resort and Recreation Area 330 .getElementById('nationality').value.value. ajaxpagedynamic('guestprev. $(). var add = document.php? fname='+fname+'&lname='+lname+'&mi='+mi+'&add='+add+'&eadd='+eadd+'&nat='+nat+'&passno='+pa ssno+'&com='+com+'&pi='+pi+'&connum='+connum.value. var pi = document.getElementById('firstname'). var eadd = document.

minlength: 2 }. password: { required: true. minlength: 5 }. topic: { required: "#newsletter:checked". messages: { Online Booking System for Camp Holiday Resort and Recreation Area 331 .$("#orderform").validate({ rules: { firstname: "required". lastname: "required". confirm_password: { required: true. username: { required: true. equalTo: "#password" }. agree: "required" }. email: true }. minlength: 2 }. email: { required: true. minlength: 5.

value = firstname + ". agree: "Please accept our policy" } }).val(). minlength: "Your password must be at least 5 characters long" }.firstname: "Please enter your firstname". minlength: "Your password must be at least 5 characters long". password: { required: "Please provide a password". username: { required: "Please enter a username". // propose username by combining first.val(). } }). if(firstname && lastname && !this. Online Booking System for Camp Holiday Resort and Recreation Area 332 .focus(function() { var firstname = $("#firstname"). var lastname = $("#lastname"). email: "Please enter a valid email address". confirm_password: { required: "Please provide a password". minlength: "Your username must consist of at least 2 characters" }." + lastname.value) { this. equalTo: "Please enter the same password as above" }. lastname: "Please enter your lastname".and lastname $("#username").

find("input"). hide at first var inital = newsletter.textboxname1") function dateDiff($dformat. disable for demo var newsletter = $("#newsletter").function. var topicInputs = topics. var topics = $("#newsletter_topics")[inital ? "removeClass" : "addClass"]("gray").*/ <?php session_start(). !inital).attr("disabled".checked ? "removeClass" : "addClass"]("gray").php")."textboxname1.is(":checked"). $endDate. !this.checked). topicInputs.click(function() { topics[this. //all function will be added here usage postval("buttonname". $beginDate) { Online Booking System for Camp Holiday Resort and Recreation Area 333 .php ----------------------------------------------------. date_default_timezone_set('Asia/Taipei'). }). include("admin/connection/connection. }). // newsletter topics are optional.//code to hide topic selection. </script> </body> </html> /*-------------------------------. // show when newsletter is checked newsletter.attr("disabled".

Online Booking System for Camp Holiday Resort and Recreation Area 334 . } function redirectto($time. $Pword = $_POST["password"]. } function loginguest($btnname) { if(isset($_POST[$btnname])) { $Uname = $_POST["username"]."'>". $rs = mysql_query($sql) or die("Error! Login. $date_parts1[2])." ". $date_parts2[1]. $end_date=gregoriantojd($date_parts2[0].$parameter.$url) { echo "<meta http-equiv='refresh' content='".$tablename.").". } function inserttodb($tablename.. $date_parts1[1]. $date_parts2[2]).url=". return $end_date .$date_parts1=explode($dformat. $beginDate)." ". $date_parts2=explode($dformat. $sql="SELECT * FROM tbl_guest WHERE username='$Uname' AND password='$Pword'".$time.. $endDate). mysql_query($sql).$url. $start_date=gregoriantojd($date_parts1[0].$start_date. $parameter) { $sql = "INSERT INTO ".

echo "<script language='javascript'> location.php").8px"> <tr> <td><div align="center" class="style1">Check<br /> Availability</div></td> <td> <div align="center" style="font-weight:bold">====&gt.</font></b>".*/ <?php include("function. $_SESSION['login'] = 1. margin-bottom:7. }else{ echo "<b><font color='red' size='2'>Invalid Username and Password.if($row = mysql_fetch_object($rs)){ $_SESSION['name'] = $row->firstName.</div> </td> <td><div align="center">Available<br /> Accommodation</div></td> Online Booking System for Camp Holiday Resort and Recreation Area 335 . ?> <table width="100%" border="0" cellspacing="1" cellpadding="0" style="font-size:9px.href='user.php?login=1&default=1' </script>".guestinfo. } } } ?> /*-------------------------------.php ---------------------------------------------------. $_SESSION['guestid'] = $row->guest_id.

roomType_id". $_SESSION['selroomid'].</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>" .<td><div align="center" style="font-weight:bold">====&gt.roomType_id AND tbl_roomtype. font-weight:bold">Reservation<br /> Requirements</div></td> <td><div align="center" style="font-weight:bold">====&gt. ?> <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(". foreach ($check as $value) { $sql = "SELECT * FROM tbl_roomtype. $numroom = explode(".$_GET["numval"]).roomType_id = tbl_room.$_GET["numroom"]).".roomType_id = $value group by tbl_room. $_SESSION['check'] = $check.". Online Booking System for Camp Holiday Resort and Recreation Area 336 .</div></td> <td><div align="center" style="color:#990000. $_SESSION['numroom'] = $numroom.</div></td> <td><div align="center" class="style1">Reservation<br /> Confirmation</div></td> <td><div align="center" style="font-weight:bold">====&gt.tbl_room WHERE tbl_roomtype.

} } foreach ($check as $value) { $sql = "SELECT * FROM tbl_roomtype. $result = mysql_query($sql)."' /></div><div id='rate'>Rate: "."</div><div style='font-size:11px.roomType_id".$row['image']. } ?> </td> <td width="26%" valign="middle"><?php Online Booking System for Camp Holiday Resort and Recreation Area 337 .tbl_room WHERE tbl_roomtype. while($row = mysql_fetch_array($result)) { echo " <div style=''>".$row['Rate'].roomType_id = tbl_room.'><img height='50px' width='50px' src='admin/". } foreach ($numroom as $value2) { $rate1 = $rate * $value2.$result = mysql_query($sql).$row['roomName']. while($row = mysql_fetch_array($result)) { $rate = $row['Rate']. } $rate2 = $rate2 + $rate1."</div>".roomType_id AND tbl_roomtype.roomType_id = $value group by tbl_room.

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>

<?php echo $_GET["rid"];?> <?php echo $_GET["sdate"];?>

<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">&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</td> </tr> <tr> <td><label for="passportno">Passport No:</label></td> <td> <input type="text" name="passportno" id="passportno"></td> <td>&nbsp;</td> </tr> <tr> <td><label for="company">Company:</label></td> <td> <input type="text" name="company" id="company"></td> <td>&nbsp;</td> </tr> <tr> <td><label for="placeissued">Place Issued:</label></td> <td> <input type="text" name="placeissued" id="placeissued"></td> <td>&nbsp;</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>&nbsp;</td> </tr>

<tr>

Online Booking System for Camp Holiday Resort and Recreation Area

341

<td colspan="3">&nbsp;</td> </tr> <tr> <td>&nbsp;</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>

/*-------------------------------- guestprev.php ---------------------------------------------------- */
<?php include("function.php"); ?> <table width="100%" border="0" cellspacing="1" cellpadding="0" style="font-size:9px; margin-bottom:7.8px"> <tr> <td><div align="center" class="style1">Check<br /> Availability</div></td> <td> <div align="center" style="font-weight:bold">====&gt;</div> </td> <td><div align="center">Available<br /> Accommodation</div></td> <td><div align="center" style="font-weight:bold">====&gt;</div></td> <td><div align="center" class="style1">Reservation<br /> Requirements</div></td> <td><div align="center" style="font-weight:bold">====&gt;</div></td>

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">====&gt;</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"]);

$check = $_SESSION['check']; $numroom = $_SESSION['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>&nbsp;</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

$_SESSION["passno"] = $_GET['passno']. Online Booking System for Camp Holiday Resort and Recreation Area 346 . $_SESSION["eadd"] = $_GET['eadd']. $_SESSION["fname"] = $_GET['fname']. $_SESSION["pi"] = $_GET['pi']. $_SESSION["lname"] = $_GET['lname'].?> <?php //print_r($arrayrow). //print_r($_SESSION). $_SESSION["com"] = $_GET['com']. ?></td> </tr> </table> <<?php echo $_SESSION['total']. ?></td> </tr> <tr> <td width="34%">Email Address:</td> <td><?php echo $_GET['eadd'].<td><?php echo $_GET['add']. ?></td> </tr> <tr> <td width="34%">Cell No:</td> <td><?php echo $_GET['connum']. /* $_SESSION["nat"] = $_GET['nat']. $_SESSION["ceadd"] = $_GET['fname']. $_SESSION["mi"] = $_GET['mi']. $_SESSION["add"] = $_GET['add'].

$_SESSION["telno"] = $_GET['telno'];*/ $_SESSION["connum"] = $_GET['connum']; // print_r($_SESSION); ?>

<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="item_name_1"

<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

/*-------------------------------- header.php ------------------------------------------------------- */
<?php include("function.php"); ?> <!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" dir="ltr" lang="en-US" xml:lang="en"> <head> <?php

?>

<link rel="stylesheet" href="css/thickbox.css" type="text/css" media="screen" />

<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>

<!--/MENUBAR--> <script type="text/javascript" src="js/thickbox.js"></script>

<script type="text/javascript" src="js/script.js"></script> <!-- datepicker -->

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

var loadedobjects="" var rootdomain="http://"+window.location.hostname

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) }

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

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

} </script> <script type="text/javascript">

var loadedobjects="" var rootdomain="http://"+window.location.hostname

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

"stylesheet").setAttribute("href". i++){ var file=arguments[i] var fileref="" if (loadedobjects. file). } else if (file. file). fileref.createElement("link") fileref.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding if (file.href.innerHTML=page_request.indexOf("http")==-1)) document.js")!=-1){ //If object is a js file fileref=document.location.status==200 || window.css")!=-1){ //If object is a css file fileref=document. containerid){ if (page_request. "text/css"). url.responseText } function loadobjs(){ if (!document.length.send(null) } function loadpage(page_request. fileref. } } Online Booking System for Camp Holiday Resort and Recreation Area 355 .indexOf(".getElementById(containerid).readyState == 4 && (page_request."text/javascript").setAttribute("src".setAttribute("rel".//page loader page_request.open('GET'.getElementById) return for (i=0.setAttribute("type".createElement('script') fileref. i<arguments. fileref. true) page_request.setAttribute("type".indexOf(".

getElementById('user'). ajaxpagedynamic('guestprev.getElementById(name2).php?numval='+valid+'&numroom='+valtext.getElementById(name). } else { ajaxpagedynamic('guestinfo.value).php?numval='+valid+'&numroom='+valtext. } } function incre(name.if (fileref!=""){ document. } else Online Booking System for Camp Holiday Resort and Recreation Area 356 .item(0).appendChild(fileref) loadedobjects+=file+" " //Remember this object as being already added to page } } } </script> <script type="text/javascript"> var user = document.value. if(user != 0) { alert(user). if(roomlimit == val) { alert('Limit Exceed'). var roomlimit = parseInt(document.value).name2) { var val = parseInt(document. 'bodycontent').getElementsByTagName("head"). 'bodycontent').

window.value = val2.getElementById(name).value = val2.getElementById(name). 'bodycontent'). } else { var val2 = (val . } } function dec(name) { var val = parseInt(document. if(val == 0){ alert("Limit to Zero").php". } } function submitguest() { ajaxpagedynamic('action. document.php?rel=reserve'.value).location = "index. Looking forward for seeing you!').php?rel=submitguest'. alert('Thank you for your Reservation. 'bodycontent'). } function userreview() { ajaxpagedynamic('user/review.1).{ var val2 = (val + 1). } </script> Online Booking System for Camp Holiday Resort and Recreation Area 357 . document.getElementById(name).

&nbsp.php">Airconditioned Cabin Room &nbsp.php?login=1&default=1" class="active">Home</a></li> <?php }else{ ?> <li><a href="index.</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">Hotel Room</a></li> <li><a href="cabinroom.php" class="active">Home</a></li> <?php } ?> <li> <a href="#">Rooms</a> <ul> <li><a href="hotelroom.&nbsp.</a></li> </ul> Online Booking System for Camp Holiday Resort and Recreation Area 358 .

</a></li> </ul> </li> <li> <a href="#">Gallery</a> <ul> <li><a href="panoramic.&nbsp.&nbsp.&nbsp.php").php --------------------------------------------------. ?> <div id="bodycontent"> Online Booking System for Camp Holiday Resort and Recreation Area 359 .</a></li> <li><a href="photogallery.php").php">Bridal Package </a></li> <li><a href="debutpackages. ?> <div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar.php">Panoramic View &nbsp.php">Contact Us</a></li> </ul> </div> </div> /*-------------------------------.php">Debut Package </a></li> <li><a href="seminarpackages.php">Facilities</a></li> <li> <a href="#">Packages</a> <ul> <li><a href="bridalpackages.*/ <?php include("header.</li> <li><a href="facilities.php">Location</a></li> <li><a href="contact.php">Live-in Seminar Package &nbsp.&nbsp.php">Photo Gallery </a></li> </ul> </li> <li><a href="location.hotelroom.

?> /*-------------------------------.<h2 class="postheader" style="margin:50px. old & below if sharing with parents.*/ <?php include("header.</li> <li>Php 1500.00 per night.</li> </ul> </div> </div> </div> </div> <?php include("footer.</li> <li>Check out time is at 12:00 noon."> Hotel Rooms </h2> <center><img src="img/Facilities/24 ."> <ul> <li>Available in Single or Double Bed.php"). ?> <form class="cmxform" name="orderform" id="orderform" method="post"> <div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar. extra bed at Php 300 each.index.</li> <li>Free use of Swimming Pool.</li> <li>Free 24/7 Internet access at the Lobby.</li> <li>Maximum of four (4) occupants. ?> Online Booking System for Camp Holiday Resort and Recreation Area 360 .hotelroom.</li> <li>Free accommodation for children 8 yrs.php").jpg" width="400" height="300" /></center> <div style="padding:50px.</li> <li>Rates include government tax & service charge.php --------------------------------------------------------.php").

modern bathrooms with cold & hot showers. with cable television and have clean. The accommodations at Camp Holiday consist of a hotel.&nbsp. and open cottages.&nbsp.&nbsp.&nbsp. Camp Holiday Resort & Recreation Area is one of the newer resort complexes on Samal Island. it is situated in as convenient an area as you will find on the island.<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.&nbsp. The prices range from: <br /><br /> <table style="margin-left:50px.swf" width="400" height="300"> </embed> </object> <p> &nbsp.&nbsp.&nbsp."> <tr> <td>Day Tour</td> Online Booking System for Camp Holiday Resort and Recreation Area 361 .&nbsp. Located directly off the Samal Ferry Wharf. The hotel rooms and private cottages are fully air-conditioned. private cottages. <br /><br /> &nbsp.swf"> <embed src="swf/header.

an open dining room/common area. The rest of the complex includes the lobby.00/night</td> </tr> </table> <br /><br /> &nbsp. padding-right: 10px.&nbsp.&nbsp.&nbsp. padding-right: 10px.500.00/person</td> </tr> <tr> <td>Hotel Room</td> <td style=" padding-left:10px. which provides free WiFi. </p> <br /><br /> Online Booking System for Camp Holiday Resort and Recreation Area 362 .">-</td> <td>Php 150.">-</td> <td>Php 1.00/person</td> </tr> <tr> <td>Overnight</td> <td style=" padding-left:10px. padding-right: 10px.&nbsp. padding-right: 10px.800.">-</td> <td>Php 80. swimming pool and beach front with nipa huts.00/night</td> </tr> <tr> <td>Cabin Room</td> <td style=" padding-left:10px.<td style=" padding-left:10px.">-</td> <td>Php 1. 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.

end cell --> <div class="layout-cell"> <div class="overview-table-inner"> <script src="http://connect.facebook.com/pages/Camp-Holiday-Resort-and-Recreation-Area/152465284809298" width="260" show_faces="true" stream="true" header="false"></fb:like-box> </div> </div><!-.php -----------------------------------------------------.end table --> </div> </div> </div> </form> <?php include("footer. ?> /*-------------------------------.location.end cell --> </div><!-.</div> </div><!-.*/ <?php include("header.net/en_US/all.php").php"). ?> <form action="" method="post" name="orderform"> <div class="content-layout"> <div class="content-layout-row"> <?php Online Booking System for Camp Holiday Resort and Recreation Area 363 .facebook.js#xfbml=1"></script><fb:like-box href="http://www.end row --> </div><!-.

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&amp;hl=en&amp;t=h&amp;source=embed&amp;msa=0&amp;msid=202630926012432903365. 0004897f97b1b2f3b3b72&amp;ll=7.121318,125.674329&amp;spn=0.002129,0.002677&amp;output=emb ed"></iframe><br /><small>View <a href="http://maps.google.com/maps/ms? ie=UTF8&amp;hl=en&amp;t=h&amp;source=embed&amp;msa=0&amp;msid=202630926012432903365. 0004897f97b1b2f3b3b72&amp;ll=7.121318,125.674329&amp;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>

<div class="cleared"></div> </div>

Online Booking System for Camp Holiday Resort and Recreation Area

364

</div> </div> </div> </div> </div> </form> <?php include("footer.php"); ?>

/*-------------------------------- logout.php -------------------------------------------------------- */
<?php include("function.php"); unset( $_SESSION['guestid'] ); //UNREGISTER SESSION session_unregister("guestid"); echo "<meta content='0;index.php' http-equiv='refresh' />"; ?>

/*-------------------------------- out.php -----------------------------------------------------------*/
<?php include("header.php"); ?> <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">

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

<?php include("footer.php"); ?>

/*-------------------------------- paronamic.php --------------------------------------------------- */
<?php include("header.php"); ?>

<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

<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; } #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"); ?>

/*-------------------------------- pay.php ----------------------------------------------------------- */
<?php session_start(); $invoice = $_GET['id']; $date = date("Y-m-d"); $sql="Update tbl_invoice SET isPaid = 'Y' where invoice_no = $invoice"; mysql_query($sql);

Online Booking System for Camp Holiday Resort and Recreation Area

370

echo mysql_error(); $submit_url_test="https://www.sandbox.paypal.com/cgi-bin/webscr"; $submit_url_live="https://www.paypal.com/cgi-bin/webscr";

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... '; ?>

/*-------------------------------- photogallery.php ------------------------------------------------ */
<?php include("header.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" />

Online Booking System for Camp Holiday Resort and Recreation Area

371

?> <div id="bodycontent"> <h2 class="postheader" style="margin:50px.jpg" width="150" height="113" /> </a> </td> Online Booking System for Camp Holiday Resort and Recreation Area 372 .<div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar.jpg" rel="lightbox" title="Entrance"> <img src="img/Gallery/5.php").jpg" width="150" height="113" /> </a> </td> <td> <a href="img/Gallery/4."> <table border="0"> <tr> <td> <a href="img/Gallery/5.jpg" rel="lightbox" title="Cottage Area"> <img src="img/Gallery/3.jpg" width="150" height="113" /> </a> </td> <td> <a href="img/Gallery/2.jpg" rel="lightbox" title="Cabin Room"> <img src="img/Gallery/4.jpg" rel="lightbox" title="Beach 1"> <img src="img/Gallery/2.jpg" width="150" height="113" /> </a> </td> <td> <a href="img/Gallery/3."> Photo Gallery </h2> <div style="padding:50px.

jpg" width="150" height="113" /> Online Booking System for Camp Holiday Resort and Recreation Area 373 .jpg" rel="lightbox" title="Tree"> <img src="img/Gallery/8.</tr> <tr> <td> <a href="img/Gallery/1.jpg" rel="lightbox" title="Beach 3"> <img src="img/Gallery/7.jpg" rel="lightbox" title="Swimming Pool"> <img src="img/Gallery/6.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" width="150" height="113" /> </a> </td> <td> <a href="img/Gallery/7.jpg" rel="lightbox" title="Restaurant 1"> <img src="img/Gallery/9.jpg" width="150" height="113" /> </a> </td> </tr> <tr> <td></td> <td> <a href="img/Gallery/9.jpg" width="150" height="113" /> </a> </td> <td> <a href="img/Gallery/8.

selectaccommodation.8px"> Online Booking System for Camp Holiday Resort and Recreation Area 374 .lightBox().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]').*/ <?php include("function.php"). ?> /*-------------------------------.php ------------------------------------.</a> </td> <td> <a href="img/Gallery/10. </script> <?php include("footer. ?> <table width="100%" border="0" cellspacing="1" cellpadding="0" style="font-size:9px. // Select all links that contains lightbox in the attribute rel }).php"). margin-bottom:7.

$enddate. $numroom=$_GET["numroom"].</div></td> <td><div align="center">Reservation<br /> Confirmed</div></td> </tr> </table> <?php $startdate=$_GET["sdate"]. $startdate).</div></td> <td><div align="center">Reservation<br /> Requirements</div></td> <td><div align="center" style="font-weight:bold">====&gt. $enddate=$_GET["edate"]. font-weight:bold" >Available<br /> Accommodation</div></td> <td><div align="center" style="font-weight:bold">====&gt.<tr> <td><div align="center" class="style1">Check<br /> Availability</div></td> <td> <div align="center" style="font-weight:bold">====&gt.</div> </td> <td><div align="center" style="color:#990000. $dateDiff = dateDiff("/". $numkids=$_GET["numkids"].</div></td> <td><div align="center" class="style1">Reservation<br /> Confirmation</div></td> <td><div align="center" style="font-weight:bold">====&gt. $numguest=$_GET["numguest"]. Online Booking System for Camp Holiday Resort and Recreation Area 375 .

?></td> </tr> <tr> <td>Number of Children:</td> <td><?php echo $numkids. ?></td> </tr> <tr> <td><p>Departure Date:</p></td> <td><?php echo $enddate.echo "<br><div align='center' id='header'>Reservation Details</div><br>".?>" /> Online Booking System for Camp Holiday Resort and Recreation Area 376 . ?> <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> </table> <input name="user" id="user" type="hidden" value="<?php echo $_SESSION['guestid']. ?></td> </tr> <tr> <td>Number of Adults(s):</td> <td><?php echo $numguest. ?></td> </tr> <tr> <td>Number of Night(s):</td> <td><?php echo $dateDiff. ?></td> </tr> <tr> <td>&nbsp.

"' ". } $sql2 = "SELECT tbl_roomtype .* FROM tbl_roomtype."-". $enddate2 = $enddate2[2]. $enddate2=explode("/".room_id != '". * .$startdate). *. } while($row = mysql_fetch_array($result)) { $text .Arrival >= '".*.$startdate2[1].roomType_id AND tbl_room.$row['room_id']. tbl_room .tbl_room. tbl_room WHERE tbl_roomtype."-".$startdate2[0].$enddate2[0]. Online Booking System for Camp Holiday Resort and Recreation Area 377 .roomType_id = tbl_room.roomNumber=tbl_reservation.tbl_room. $result = mysql_query($sql).$enddate2[1].$startdate2.roomType_id = tbl_room.room_id) FROM tbl_roomtype.$enddate).tbl_reservation WHERE tbl_roomtype. $startdate2 = $startdate2[2]. exit.roomNumber AND tbl_reservation.count(tbl_room.*. mysql_error().$text.roomType_id"." GROUP BY tbl_room."-"."' AND tbl_reservation.tbl_reservation.= "AND tbl_room.roomType_id ". if (!$result) { echo 'Could not run query: ' ."' ORDER BY tbl_room.Departure <= '".roomNumber ASC".<?php $startdate2=explode("/".$enddate2."-". $sql = "SELECT tbl_roomtype.

?></legend> <div id="accomcontent"> <img src="<?php echo 'admin/'.// } $result2 = mysql_query($sql2).?></h5> <h5>Rate: <?php echo $row2['Rate'].$row2['image']. 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. $numrow = mysql_num_rows($result2).room_id)"].?></h5> <h5>Max Occupant:<?php echo $numguest+$numkids. $ii=0.?>" height="225px" width="300px" align="left" /> <h5>Available Rooms: <?php echo $row2["count(tbl_room.?>" /> <?php while($row2 = mysql_fetch_array($result2)) { ?> <tr align="center" valign="bottom"> <td><fieldset id="fieldsetpage"><legend><?php echo $row2['roomName'].?></h5> <div> Online Booking System for Camp Holiday Resort and Recreation Area 378 .

$_SESSION['dateDiff'] = $dateDiff. $_SESSION['edate'] = $enddate." style="width:35px." value="<<<">|<input type="button" name="textbox<?php echo $ii?>" onClick="javascript:incre(this.name.?>" /> <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. $_SESSION['numkids'] = $numkids.'textboxroomnum<?php echo $ii. } //session all needed information $_SESSION['sdate'] = $startdate.<input name="textboxid<?php echo $ii?>" id="textboxid<?php echo $ii?>" type="hidden" value="<?php echo $row2['roomType_id']. ?> <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 .room_id)"]." value=">>>"> </div> </div> </fieldset></td> </tr> <?php $ii++.? >'). $_SESSION['numguest'] = $numguest. //$_SESSION['Rate'] = $row2.name)." style="width:35px.?>" /> <input name="textboxroomnum<?php echo $ii?>" id="textboxroomnum<?php echo $ii?>" type="hidden" value="<?php echo $row2["count(tbl_room.

</div> <?php } ?> /*-------------------------------.php").<input type="button" name="test" class="button" value="Book Now!" onclick="javascript:get_check_value()."> </span> </p></td> </tr> </table> <?php } else { ?> <div align="center" style="margin-top:100px.php ------------------------------------------. ?> <div id="bodycontent"> <h2 class="postheader" style="margin:50px.jpg" width="400" height="300" /></center> <div style="padding:50px.seminarpackages.">NO ROOMS AVAILABLE IN THIS RANGE OF DATE. ?> <div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar."> Live-In Seminar Packages </h2> <center><img src="img/packages-seminar."> <ul> Online Booking System for Camp Holiday Resort and Recreation Area 380 .*/ <?php include("header.php").

&nbsp. &nbsp.&nbsp.&nbsp.&nbsp.&nbsp.&nbsp.&nbsp. ( FOR HOTEL ROOMS APPLIED ) </li> <br /> <li> TOTAL NUMBER OF ROOMS AVAILABLE:<br /><br /> <div align="center"> <table> <tr> <td>Hotel Rooms</td> <td>&nbsp. &nbsp.&nbsp.00 net/pax .&nbsp.&nbsp.&nbsp.&nbsp.&nbsp.&nbsp.&nbsp.&nbsp.&nbsp.&nbsp.</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 .&nbsp.505.&nbsp.<li> Php 1.</td> <td>22</td> </tr> <tr> <td>Air-conditioned Cottages</td> <td>&nbsp.&nbsp.&nbsp.&nbsp.&nbsp.&nbsp.&nbsp.&nbsp.&nbsp.Inclusive of 3 meals and 2 snacks w/ room accommodation <br />&nbsp.&nbsp. ( TRIPLE SHARING ).&nbsp.

<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 .

sidebar. ?> /*-------------------------------." readonly> </div> <div> <label for="end-date">Departure date:</label> <input name="end-date" id="end-date" class="date-pick dp-applied" onClick="javascript:dpDisplay(this).block-content --> <div id="datepicker"><ol><div> <label for="start-date">Arrival date:</label> <input name="start-date" id="start-date" class="date-pick dp-applied" onClick="javascript:dpDisplay(this).php ------------------------------------------------------." readonly> Online Booking System for Camp Holiday Resort and Recreation Area 383 .</table> </div> </li> </ul> </div> </div> </div> </div> <?php include("footer.*/ <div class="layout-cell sidebar1"> <div class="vmenublock"> <div class="vmenublock-body"> <div id='clockDiv'></div> <div align="center" id="header">Reservation</div> <div class="vmenublockcontent"> <div class="vmenublockcontent-body"> <!-.php").

while($i<=4){ ?> <option><?php echo $i."> <?php $i=1.</div> <label>Number of Adult(s): </label> <select name="no_guest" id="no_guest" style="width:50px. while($i<=4){ ?> <option><?php echo $i. } ?> </select> <label>Number of Children: </label> <select name="no_kids" id="no_kids" style="width:50px. ?> <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 .?></option> <?php $i++."> <?php $i=0.?></option> <?php $i++. } ?> </select> <?php $startdate = $_POST["start-date"].

php">logout</a></span>WELCOME <?php echo $_SESSION['name']. ?> <p id="form-login-lang" style="clear: both."><a href="logout.</p> </div> </div> </div> <?php } ?> Online Booking System for Camp Holiday Resort and Recreation Area 385 .php'." /> </ol> </div> </div> </div> <br /> <?php //submit loginform if($_GET['login']==1){ ?> <div align="center" id="header">Guest Info</div> <span style="float:right.onclick="javascript:ajaxpage('selectaccommodation.'bodycontent').">&nbsp. ?> <br /> <br /> <a href="#bodycontent">Review</a> <?php } else { ?> <br /> <div class="vmenublockcontent"> <div class="vmenublockcontent-body"> <div id="logindiv"> <?php loginguest('btnlogin').

<br /> Davao City</b><br /> Tel no. 303-3294<br /> </div> <!-..block-content --> <div style="margin-top: 20px.google./block-content --> Online Booking System for Camp Holiday Resort and Recreation Area 386 .F."> <b>Kinawitnon Babak District.com</a> <br /> </div> <!-."> <b>SAMCO Bldg.com/mail/?shva=1#compose">campholidayresort@gmail. margin-bottom: 20px. Bangoy St./block-content --> </div> </div> <br /> <div align="center" id="header">Resort</div> <div class="vmenublockcontent"> <div class="vmenublockcontent-body"> <!-. (082) 304-6483<br />Cellphone no.<div align="center" id="header">Davao Sales Office</div> <div class="vmenublockcontent"> <div class="vmenublockcontent-body"> <!-.block-content --> <div style="margin-top: 20px..</b><br /> Island Ganden City of Samal<br />Tel no. 0918-9354278<br /> Email: <a href="https://mail.

var hr24 = PhilTime. //var scs = PhilTime.getSeconds().getMonth(). months[1] = "Feruary". var mnths = PhilTime. var hrs = PhilTime.getTimezoneOffset() * 60000) + offsetTime * 3600000 var PhilTime = new Date(now).</div> </div> </div> </div> </div> <!--/SIDEBAR--> <!--clock--> <script type="text/javascript"> function clock() { var offsetTime = +8 var now = new Date().getHours(). var stime = now. months[0] = "January". //var sdays = PhilTime. var ampm = "". var months = new Array(). Online Booking System for Camp Holiday Resort and Recreation Area 387 .getMinutes().getTime() + (now.getHours().getDay(). var mins = PhilTime.

} if(hr24==0){ hrs = 12. months[8] = "September". months[10] = "November". } if(hrs<10){ hrs = "0"+hrs. }*/ if(hr24<=12){ ampm = "AM" } else{ ampm = "PM" } if(hr24>=12){ hrs = hrs-12. /*if(scs<10){ scs = "0"+scs. months[3] = "April". months[9] = "October". months[4] = "May". months[5] = "June". months[6] = "July". months[11] = "December". months[7] = "August".months[2] = "March". Online Booking System for Camp Holiday Resort and Recreation Area 388 .

setTimeout('clock()'.getDate()+' '+months[mnths]+' '+PhilTime. document. </script> /*-------------------------------.php ----------------------------------------------------. ?> <div id="bodycontent"> <img src="images/flashhere.innerHTML='PH Time.getFullYear()+' '+hrs+':'+mins+ampm.png" /> <div class="cleared"></div> <div class="content-layout overview-table"> <div class="content-layout-row"> Online Booking System for Camp Holiday Resort and Recreation Area 389 . ?> <form class="cmxform" name="orderform" id="orderform" method="post"> <div class="content-layout"> <div class="content-layout-row"> <?php include("sidebar.getElementById('clockDiv').*/ <?php include("header.1000). } var outStr = PhilTime.php"). } clock().} if(mins<10){ mins = "0"+mins.validator.php"). ' +outStr.

</script>".<div class="layout-cell"> <div class="overview-table-inner"> <h4>Welcome to Camp Holiday Resort</h4> <blockquote> <p> &#8220.action. Online Booking System for Camp Holiday Resort and Recreation Area 390 .php?rel=submitguest' http-equiv='refresh' />".').About Camp Holiday Resort and Recreation Area here!&#8221. <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. echo "<meta content='0.

?> SURVEY QUESTIONNAIRE Online Booking System for Camp Holiday Resort and Recreation Area 391 .} else{ echo "<meta content='0.php").index. } include("footer.php' http-equiv='refresh' />".

3.Figure 4.4 Survey Questionnaire Online Booking System for Camp Holiday Resort and Recreation Area 392 .

5 Survey Questionnaire Attached Proof/Basis for computation Online Booking System for Camp Holiday Resort and Recreation Area 393 .3.Figure 4.

Greetings! We thank you for giving us this opportunity of submitting a proposal on our meal & room rates for your reference.00/night Air-conditioned Cottages P2.500. ROOM RATES: Type of Room Published Rate Promo Rate ________________________________________________________________________ Hotel Guestrooms P2.00/night Online Booking System for Camp Holiday Resort and Recreation Area 394 .800. We look forward to extending our services to you. Hereunder are the best rates we can offer: I.000/night (Twin Sharing) P 1.500/night (6units Twin Sharing /6units Matrimonial) P 1.

Day Tour (ADULT) P 80.00/pax Total Number of rooms available: Hotel Rooms Air-conditioned Cottages Total: = 22 = 12 34 Online Booking System for Camp Holiday Resort and Recreation Area 395 . Extra person with beddings: P 300.00/pax net ____________________________________________________________________ Each Hotel room and Air-conditioned cottages is good for 2. maximum of 3 persons per room.00/pax net Overnight (ADULT) (Less 10% for a group of 100) P 150.

00 = P 90. VENUE FOR FUNCTION Function Hall Capacity (Whole) 600 450 = = Theater type seating Classroom Seating Function Hall Capacity (Half) 300 225 = = Theater type seating Classroom Seating Function Hall Rental Whole = Php 50.00 – 250.00 & P 190.) III.00 net/pax (Please see attached menu for your reference.000 for first 8 hours Online Booking System for Camp Holiday Resort and Recreation Area 396 .00 net/pax = P 260.II. P 270.00 & P 280.00 & P 120. MEAL RATES: Breakfast (Plated) Breakfast (Buffet) Lunch and Dinner Buffet net/pax AM & PM Snacks = P 165.00 net/pax = P 230.00.

Php 5.000 for every succeeding hour Half = Php 25.000 for every succeeding hour Function Hall w/ Catering Whole = Half = 200 pax minimum 50 pax minimum IV. AMENITIES TO BE PROVIDED:  Basic Sound System  Podium & Microphone  Whiteboard w/ marker Online Booking System for Camp Holiday Resort and Recreation Area 397 .000 for first 8 hours Php 5.

D.00/bottle = P200. you may call us @ Tel.00/tent (maximum of 3 dishes (1.5L) V. F. Any additional expenses incurred during the function will be on a pax account basis. will have to be made at least seven (7) days before the scheduled reservation. Adjustments if any. Reservation will not be confirmed unless the contract is signed by both parties and the required deposit is made. the resort will have the right to charge the client the total cost of reservation made.00/lechon = P 800. We are looking forward to rendering you our services.Corkages & other charges: Lechon Baboy Corkage Lechon Baka Corkage Additional Dish only) Additional Softdrinks Camping Tents = P 300. Should you find our proposal to your satisfaction. No Show – If the reservation is cancelled without any notice given. 50% of the deposit will be fortified to cover for the incidental expenses incurred. G. Online Booking System for Camp Holiday Resort and Recreation Area 398 . If cancellation is made after the specified time. Cancellation – Any cancellation of reservation should be made at least fifteen (15) days before the scheduled reservation. Deposit – A 50% deposit will be required upon signing of contract fifteen (15) days prior to the event. either by the client. # 303-3294 or 304-6483. All prices quoted above are inclusive of government tax. E. B. Terms & Conditions: A. Full Payment – Full payment of account should be made immediately upon completion of services after the function.00/dish = P 25.00/lechon = P 250. C. in cash.

00 net/pax Menu A. LUNCH OR DINNER BUFFET Php 280. Salad : Chicken Macaroni Salad Main Course : Grilled Pork Chop Spicy Soy Chicken Sweet & Sour Fish Fillet Plain Rice Dessert : Butterscotch ……………… w/ Softdrinks in bottle Menu B. Tomato & Cheese 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 . Lettuce. Salad : Bacon.Thank you.

Salad : Fresh Guso Main Course : Pork Binagoongan Chopsuey Guisado Sugbanok ( broiler ) Plain Rice Dessert : Mocha Chiffon Cake ……………… w/ Softdrinks in bottle LUNCH OR DINNER BUFFET Online Booking System for Camp Holiday Resort and Recreation Area 400 .Menu C. Salad : Macaroni Salad Main Course : Pork Hawaiian Kalderetang Baka Chicken Curry Plain Rice Dessert : Brownies ……………… w/ Softdrinks in bottle Menu D.

Soup : Sinigang na Hipon Online Booking System for Camp Holiday Resort and Recreation Area 401 .Php 270. Soup Salad : Clam Soup : Fresh Lato Salad Main Course : Inihaw na Pusit Inihaw na Tanguige Pork B-B-Q Plain Rice Dessert : Maja Mais ……………… w/ Softdrinks in bottle Menu C. w/ Softdrinks in bottle Menu B.00 net/pax Menu A: Soup Salad : Sinigang na Bangus : Cucumber Salad w/ Salted Egg Main Course : Inihaw na Panga Inihaw na Pork Tiyan Chicken B-B-Q Plain Rice Dessert : Fresh Fruits in Platter w/ Cream ……………….

00 net/pax Online Booking System for Camp Holiday Resort and Recreation Area 402 .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 LUNCH OR DINNER BUFFET Php 260.

Menu A Salad : Macaroni Salad Main Course : Chicken Pastel Breaded Fish w/ Tartar Sauce Bam-I Plain Rice Dessert : Maja Mais ……………………… w/ Softdrinks in bottle Menu B Salad : Coleslaw Salad Main Course : Chicken Mexicaine Sweet & Sour Fish Fillet Pancit Canton Plain Rice Dessert : Fresh Fruit in Platter ……………………… w/ Softdrinks in bottle Menu C Salad : Mimosa Salad Main Course : Chicken Ala Queen Fish Fillet w/ Tartar Sauce Sotanghon Guisado Online Booking System for Camp Holiday Resort and Recreation Area 403 .

Plain Rice Dessert : Jellied Rice ……………………… 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 .

.……………………. Hot Coffee or Tea Online Booking System for Camp Holiday Resort and Recreation Area 405 . Hot Coffee or Tea Menu B Fresh Juices : Mango Juice Orange Juice Fresh Fruits : Watermelon Pineapple Papaya Breads : Soft Rolls with Butter & preserves Main Course : Breaded Fish Finger Chicken Adobo Spanish omelet Garlic Rice …………. Menu C ……………………….Pineapple Papaya Breads Main Course : Soft Rolls w/ Butter & preserves : Breaded Sweet & Sour fish Chicken Fricasse Egg Omelet Garlic Rice …………….

Hot Coffee or Tea BREAKFAST (BUFFET) Php 190..00 net/pax Menu A Fresh Juices: Mango Juice Online Booking System for Camp Holiday Resort and Recreation Area 406 .Fresh Juices : Mango Juice Orange Juice Fresh Fruits : Watermelon Pineapple Papaya Breads : Soft Rolls with Butter & preserves Main course : Chicken Teriyaki Fried Fish Fillet w/ Tartar Sauce Shrimp Omelet Garlic Rice …………………………………….

Orange Juice Fresh Fruits: Watermelon Papaya Breads: Toasted Bread w/ butter & preserves Main Course: Chicken Fricasse Egg Omelet Garlic Rice …………………………………… Served with coffee Menu B Fresh Juices: Mango Juice Orange Juice Fresh Fruits: Watermelon Pineapple Breads: Toasted Bread w/ butter & preserves Main Course: Breaded Fish Finger Spanish omelet Garlic Rice Online Booking System for Camp Holiday Resort and Recreation Area 407 .

Served with coffee Menu C Fresh Juices: Mango Juice Orange Juice Fresh Fruits: Watermelon Pineapple Breads: Toasted Bread w/ butter & preserves Main course: Chicken Teriyaki Shrimp Omelet Garlic Rice …………………………………… Served with coffee BREAKFAST (PLATED) AMERICAN BREAKFAST @ P 195.………………………………….00 Chilled fruit juice or Fresh Fruits in season Online Booking System for Camp Holiday Resort and Recreation Area 408 ..

Bacon or Sausage with Breakfast Rolls or Toasted Bread served with Hot Coffee or Tea CAMP SPECIALBREAKFAST @ P 250.Fresh eggs cooked to your style with a choice of Ham. Marmalade and Butter served with Hot Coffee or Tea HEARTY FILIPINO BREAKFAST @ P 240.00 Chilled Fruit Juice of Fresh Fruit in season Assorted Bread Rolls or Toasted Bread with Jam.00 Chilled Fruit Juice or Fresh Fruit in season Two (2) Fresh Eggs cooked to your style with Breakfast Steak & Bacon with French Fries sidings & Breakfast Rolls or Toasted Bread served with Hot Coffee or Tea CONTINENTAL BREAKFAST @ P 150.00 Chilled Fruit Juice or Fresh Fruit in season Two (2) Fresh Eggs cooked to your style with Choices of Tocino.00 P 88. Beef Tapa or Daing na Bangus with Garlic Rice and Atchara or Toasted Bread served with Hot Coffee or Tea OTHERS Hot Oatmeal……………………………… Pancake w/ Syrup………………………… P 35. Longganisa.00 Online Booking System for Camp Holiday Resort and Recreation Area 409 .

00 P 60.00 Egg Omelet w/ Bacon & Mushroom…….00 P 67. P 67.Egg Omelet……………………………. P 40.00 P 60.00 P 67. Pork Tocino………………………………..00 P100... Longganisa………………………………. P 65.. Egg Omelet w/ Ham & cheese………….. Beef Tapa………………………………… Bacon…………………………………….00 P 67..00 Online Booking System for Camp Holiday Resort and Recreation Area 410 .00 P120.00 Cornflakes w/ Sliced Banana…………….. Corned Beef……………………………… Sausage…………………………………… Daing na Bangus………………………….00 P125.

Snacks (P90/pax) Banana Muffin Iced Tea P.Plated Snacks Menu A A. Snacks (P90/pax) Special Mamon Coffee or Tea P.M.M.M. Snacks (P90/pax) Binignit (Guinataan) Online Booking System for Camp Holiday Resort and Recreation Area 411 .M.M. Snacks (P90/pax) Beef or Chicken Roll Softdrinks Menu B A. Snacks (P90/pax) Pork or Chicken Siopao Softdrinks Menu C A.M. Snacks (P90/pax) Special Mamon Iced Tea P.

Softdrinks Menu A A.M.M. Snacks (P120/pax) Baked Macaroni Softdrinks Menu C A.M. Snacks (P120/pax) Lasagna Al Forno Softdrinks Menu B A.M. Snacks (P120/pax) Mini Pizza Softdrinks / Coffee or Tea Online Booking System for Camp Holiday Resort and Recreation Area 412 . Snacks (P120/pax) Cheese Pimiento Sandwich Pineapple Juice P. Snacks (P120/pax) Tuna Sandwich Mango Juice P.M. Snacks (P120/pax) Spaghetti Bolognese Softdrinks P.M.

P.. Enrique Sr. Davao City Contact No.: +639218239469 Email Add: genrique72928@gmail. Davao City Bachelor of Science in Information Technology (BSIT) 2011 – Present Online Booking System for Camp Holiday Resort and Recreation Area 413 . Enrique Address: El Rio Vista Village. Laurel Ave. J. Davao City 2000 -2004 Tertiary : System Technology Institute (STI College Davao) # 506 Lim Bldg. Davao City 1996 -2000 Secondary : Assumption College of Davao J. Qualimed Pharma Regional Manager (Visayas. Bacaca Road..com PERSONAL INFORMATION Birthday Age Civil Status Father’s Name Occupation Mother’s Name Occupation : : : : : : : June 4. Cabaguio Avenue. Enrique House Wife EDUCATIONAL BACKGROUND Primary : Assumption College of Davao J.Mindanao) Maria Evelyn D.P.Gian Kristoffer D. Acacia Corner.1987 23 years old Single Roland B.P. Cabaguio Avenue.

Leslie Junn B. J..P. Acacia Corner.. 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. Barangay Councilor Glory Jane Gulayan House Wife EDUCATIONAL BACKGROUND Primary : San Juan Elementary School R.1990 20 years old Single Agripino Gulayan Jr. Laurel Ave.: +639993507961 Email Add: junn_pyo@yahoo.com PERSONAL INFORMATION Birthday Age Civil Status Father’s Name Occupation Mother’s Name Occupation : : : : : : : June 20. Gulayan Address: Nova Tierra Lanang Davao City Contact No.Castillo St. Davao City Bachelor of Science in Information Technology (BSIT) 2011 – Present Online Booking System for Camp Holiday Resort and Recreation Area 414 .

Tan Address: 87-107 Arellano Extension. Davao City 1999 .Johanz Cyrille C.2000 Tertiary : System Technology Institute (STI College Davao) # 506 Lim Bldg.com PERSONAL INFORMATION Birthday Age Civil Status Father’s Name Occupation Mother’s Name Occupation : : : : : : : March 6.: +639185195960 Email Add: jcyrilletan@gmail. 1983 28 years old Single Ludevico M. Davao City 1995 . Tan Deceased Agripina C.P. Davao City Bachelor of Science in Information Technology (BSIT) 2011 – Present Online Booking System for Camp Holiday Resort and Recreation Area 415 . Torres Street. Laurel Ave..1996 Secondary : Davao City National High School F.. Tan Teacher EDUCATIONAL BACKGROUND Primary : Davao City Special School SPED Bangkal. Davao City Contact No. J. Acacia Corner.

Sign up to vote on this title
UsefulNot useful