Hotel Management System Project Report
Hotel Management System Project Report
Hotel Management System Project Report
Supervised By
Dr. Masroor Ahmed
Spring 2021
BS Computer Science
PROJECT REPORT
NUMBER OF
Version V 3.0 MEMBERS 3
MEMBERS’ SIGNATURES
Supervisor’s Signature
1
Capital University of Science and Technology, Islamabad Department of Computer Science
APPROVAL CERTIFICATE
Committee Signatures:
Supervisor: __________________________
2
Capital University of Science and Technology, Islamabad Department of Computer Science
DECLARATION
We, hereby, declare that “No portion of the work referred to, in this project has been
submitted in support of an application for another degree or qualification of this or any
other university/institute or other institution of learning”. It is further declared that this
undergraduate project, neither as a whole nor as a part thereof has been copied out from
any sources, wherever references have been provided.
MEMBERS’ SIGNATURES
3
Capital University of Science and Technology, Islamabad Department of Computer Science
ACKNOWLEDGEMENTS
We are heartily thankful prayful to our supervisor Dr. Masroor Ahmed, teachers, lab
instructors of CUST, who tried to provide possible sincere support courage guidance and
gave their valuable time to us during this entire project.
4
Capital University of Science and Technology, Islamabad Department of Computer Science
Executive Summary
Our project automates the daily routine work taking place in tourism hotels like
reservation, income and expenditure reporting, customer billing and staff management.
Hotel industry is an essential part of tourism. The expansion of tourism is well
inevitable bringing out development of the hotel industry. Hotel industry is so closely
linked with the tourism industry that it is responsible for about approximately 50% of the
foreign exchange earning from tourism trade and enterprises. In recent years government
has taken several steps to boost travel & tourism which have benefited hotel industry in
Pakistan. Pearl Continental Hotel, Royal Hotel, Marriot Hotel, Ramada Hotel, Serena
Hotel covers a wider market in the hotel industry than the other luxury hotels in the race.
They have a better product profile than the rest: i.e. they have great management,
hospitality and facilities provided by them to their customers.
5
Capital University of Science and Technology, Islamabad Department of Computer Science
Table of Contents
Chapter 1…………………………………………………………………………………………………………………………………………………1
Introduction……………………………………………………………………………………………………………………………………………1
1.1. Project Introduction ...................................................................................................................... 1
1.2. Existing Examples / Solutions ........................................................................................................ 1
1.3. Business Scope .............................................................................................................................. 2
1.4. Useful Tools and Technologies ..................................................................................................... 2
1.5. Project Work Break Down............................................................................................................. 2
1.6. Project Time Line .......................................................................................................................... 4
Chapter 2 ...................................................................................................................................................... 5
Requirement Specification and Analysis ..................................................................................................... 5
Requirement Specification........................................................................................................................... 5
2.1. Functional Requirements .................................................................................................................. 5
2.2. Non-Functional Requirements .......................................................................................................... 6
2.3. Selected Functional Requirements .................................................................................................... 6
2.4. System Use Case Modeling ................................................................................................................ 7
2.5. System Sequence Diagrams ............................................................................................................. 23
2.6. Domain Model ................................................................................................................................. 27
Chapter 3 .................................................................................................................................................... 28
System Design ............................................................................................................................................ 28
3.1. Software Architecture...................................................................................................................... 28
3.2. Class Diagram................................................................................................................................... 29
3.3. Sequence Diagrams ......................................................................................................................... 30
3.4. Entity Relationship Diagram ............................................................................................................ 34
3.5. Database Schema………………………………………………………………………………………………………………………..35
Chapter 4……………………………………………………………………………………….........................................................57
Software Development………………………………………………………………………………………………………………………..57
6
Capital University of Science and Technology, Islamabad Department of Computer Science
4.2. Developing Environment………………………………………………………………..................................................57
Chapter 5………………………………………………………………………………………………………………………………………….101
Software Testing……………………………………………………………………………………………………………………………….101
Chapter 6………………………………………………………………………………………………………………………………………….103
Software Deployment….……………………………………………………………………………………………………………………103
References…………………………………………………………………………………………………………………………………………113
7
Capital University of Science and Technology, Islamabad Department of Computer Science
List of Figures
9
Capital University of Science and Technology, Islamabad Department of Computer Science
LIST OF TABLES
Table 2.1: Functional Requirements……………………………………………………………………………………………………………………5
Table 2.2: Non-Functional Requirements…………………………………………………………………………………………………………….6
Table 2.3: Selected Functional Requirements………………………………………………………………………………………………………6
Table 2.1: Use Case 1 Manage Reservation (Add, View)………...……………………………………….…………………………………..7
Table 2.2: Use Case 2 Manage Room Availability Status (Add Status, Check Status)………….…………………………………8
Table 2.3: Use Case 3 Add Payment…………………………………………………………………………….………………………………………9
Table 2.4: Use Case 4 Manage Service (Add Restaurant Service, View Restaurant Service Details)…………………….10
Table 2.5: Use Case 5 Manage Checkout (Add Checkout Details, View Checkout Details)…………….…………………….11
Table 2.1: Use Case 1 Manage Expenditures (Add Expenditures, View Expenditures)……………….……………………….13
Table 2.2: Use Case 2 Manage Income (Add Income, View Income).....................................................................14
Table 2.1: Use Case 1 Staff Duty Timings and Duty Hours Manipulation (Add, View)…………………………………………16
Table 2.1: Use Case 1 Manipulation of Room Rates (Update Room Rates)…………………………………………………………18
Table 2.2: Use Case 2 View Income and Expenditures Report…………………………………………………………………………….19
Table 2.3: Use Case 3 View Staff Report…………………………………………………………………………………………………………….20
Table 2.4: Use Case 4 Manipulation of Staff (Add, Update, Remove)…………………................................................21
Table 5.1: Test Case 1……………………………………………………………………………………………………………………………………..101
Table 5.2: Test Case 2……………………………………………………………………………………………………………………………………..102
Table 5.3: Test Case 3……………………………………………………………………………………………………………………………………..102
10
Capital University of Science and Technology, Islamabad Department of Computer Science
This page is kept blank
11
Capital University of Science and Technology, Islamabad Department of Computer Science
Chapter 1
Introduction
Currently many hotels in Islamabad namely Marriot Hotel, Ramada Hotel and Serena Hotel
uses the user-friendly GUI management application. Customers provide the details to
receptionist or room reservation agents for reserving room or to order any service like ordering
food. Receptionists and Reservation Agents keep and maintain track record of all customers
and the services which are ordered by customer. The hotel owners keep the track record of all
expenditures and earnings made by the hotel.
1
Capital University of Science and Technology, Islamabad Department of Computer Science
1.3. Business Scope
The project we are building is according to the market perspective. Moreover, it is also part of
our final year project to come across a brilliant idea that you can sale in the market to potential
customers. Our potential customer is Royal Hotel located in northern area namely Naran. There
we will deploy this application. If there, it would be successful, then we will can hopefully earn
profit by also building hotel operational applications for other hotels. Our project eventually
will run at administrator site and our target is that it must meet and fulfill our client
requirements. Our project is also linked with tourism industry, the application users will easily
be able to resolve their problems and will be easily able to perform their daily tasks by using
hotel operational applications and in this way the entire tourism industry will also be able to
run flawlessly.
2
Capital University of Science and Technology, Islamabad Department of Computer Science
from 12th January 2021, we will try to move on and sum up the fourth stage namely
Implementation stage till 7thApril 2021, it will involve coding of concepts applied in the
third stage. From 7thApril 2021 we will move on fifth stage namely Testing, it will involve
finding and removing errors from the project we will be building, we will try to sum up
testing till 23rdJune 2021. The complete Gant chart of estimated project timeline work
break down is also provided in section 1.6 of this document. The work breakdown chart is
also given as follows.
3
Capital University of Science and Technology, Islamabad Department of Computer Science
1.6. Project Time Line
4
Capital University of Science and Technology, Islamabad Department of Computer Science
Chapter 2
Requirement Specification
This application is an extremely valuable for hotels. This system will done all manipulation
work which is done manually on registers or notebooks.
5
Capital University of Science and Technology, Islamabad Department of Computer Science
2.2. Non-Functional Requirements
6
Capital University of Science and Technology, Islamabad Department of Computer Science
2.4. System Use Case Modeling
Receptionist:
Created By: Balaj Ahmed Jan Last Updated By: Balaj Ahmed Jan
Date Created: 5th October, 2020 Last Revision Date: 10th November, 2020
Actors: Receptionist
Description: This usecase describes that how receptionist will add and view
reservation details. Receptionist will make reservation, he will be
then able to view and update those details.
Trigger: None
7
Capital University of Science and Technology, Islamabad Department of Computer Science
Preconditions: Receptionist must before have to login to use the system
Post conditions: Add reservation button will be used to make reservation, view
button will be used to view details of customers that in which
room following customer is staying.
Exceptions: None
Use Case Name: Manage Room Availability Status(Add Status, Check Status)
Created By: Balaj Ahmed Jan Last Updated By: Balaj Ahmed Jan
Date Created: 5th October, 2020 Last Revision Date: 10th November, 2020
Actors: Receptionist
Description: This usecase describes that how receptionist will be able to update
and check room availability that whether any following room is
available or not.
Trigger: None
8
Capital University of Science and Technology, Islamabad Department of Computer Science
Preconditions: Receptionist must before have to login to use the system
Post conditions: Add Availability Status will be able to add availability status of
room. Check Room Availability option will be used to check that
whether any following room is available or not. Moreover, he will
send income report to General Manager.
Exceptions: None
Created By: Balaj Ahmed Jan Last Updated By: Balaj Ahmed Jan
Date Created: 5th October, 2020 Last Revision Date: 10th November, 2020
Actors: Receptionist
Description: This use case describes that how receptionist will be able to print
checkout bill receipt. Receptionist will enter billing details, he will
then print checkout bill receipt and then receipt will be given to
customer.
Trigger: None
9
Capital University of Science and Technology, Islamabad Department of Computer Science
Preconditions: Receptionist must before have to login to use the system
Exceptions: None
Use Case Name: Manage Service(Add Restaurant Service, View Restaurant Service Details)
Created By: Balaj Ahmed Jan Last Updated By: Balaj Ahmed Jan
Date Created: 5th October, 2020 Last Revision Date: 10th November, 2020
Actors: Receptionist
Description: This usecase describes that how receptionist will be able to add
and view restaurant service details. Receptionist will add,view,
update restaurant service details incase if customer restaurant
service of hotel.
Trigger: None
Post conditions: Add Restaurant Service will be used to add restaurant service
details and View Restaurant Service option will be able to view
restaurant service details.
10
Capital University of Science and Technology, Islamabad Department of Computer Science
Normal Flow: Receptio System
nist
Exceptions: None
Use Case Name: Manage Checkout(Add Checkout Details, View Checkout Details)
Created By: Balaj Ahmed Jan Last Updated By: Balaj Ahmed Jan
Date Created: 5th October, 2020 Last Revision Date: 10th November, 2020
Actors: Receptionist
Description: This usecase describes that how receptionist will be able to add
and view checkout details. Receptionist will store and manage the
details of checked out customers.
Trigger: None
11
Capital University of Science and Technology, Islamabad Department of Computer Science
Post conditions: Add checkout will be used to add checkout details and View
checkout details option will be able to view checkout details.
Exceptions: None
General Manager:
12
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 2.2: Use case Diagram (2)
Date Created: 5th October, 2020 Last Revision Date: 10th November, 2020
Description: This usecase describes that how General Manager will be able to
add, view hotel expenditures. When expenditure details are added,
they are stored in system, owner will then view expenditures
details and also the general manager.
Trigger: None
Preconditions: General Manager must before have to login to use the system
Post conditions: Add Expenditure Details option will be used to add expenditures
of the hotel. View Expenditures Details option will be used to
13
Capital University of Science and Technology, Islamabad Department of Computer Science
view hotel expenditures like electricity bill, gas bill, inventory bill
etc. General Manager will further send these details to owner.
Exceptions: None
Date Created: 5th October, 2020 Last Revision Date: 10th November, 2020
Description: This usecase describes that how General Manager will be able to
add, view hotel income, when income details are added, they are
stored in system, owner will then view income details and also the
general manager.
14
Capital University of Science and Technology, Islamabad Department of Computer Science
Trigger: None
Preconditions: General Manager must before have to login to use the system
Post conditions: View Income Details option will be used to view income made by
the hotel. Add Income Details option will be used to add income
made by the hotel. General Manager will further send these details
to owner.
Exceptions: None
Staff Manager:
15
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 2.3: Use case Diagram (3)
Use Case Name: Staff Duty Timings and Duty Hours Manipulation(Add, View)
Date Created: 5th October, 2020 Last Revision Date: 10th November, 2020
Description: This use case describes that how staff manager will manipulate
employee details like their entry and exit time, duty timings and
hours, and other details like employee name, cnic, phone no etc.
Staff Manager and owner will be then able to view the details.
Trigger: None
Preconditions: Staff Manager must before have to login to use the system
Post conditions: Add employee timing details options will be used to add employee
details like add entry time, exit time.View Employee Timings will
16
Capital University of Science and Technology, Islamabad Department of Computer Science
be used to see employee entry and exit timings and duty hours.
Staff Manager will send employee report to owner.
Exceptions: None
17
Capital University of Science and Technology, Islamabad Department of Computer Science
Owner:
Date Created: 5th October, 2020 Last Revision Date: 10th November, 2020
Actors: Owner
Description: This usecase describes how hotel owner will be able to change
room rent. Owner will update the room rent. Receptionist will be
able to view the room rent and will make reservation according to
the updated rent.
Trigger: None
Post conditions: Update Room Rent option will be used to change room rent.
2. Successfully updated
room rent.
18
Capital University of Science and Technology, Islamabad Department of Computer Science
2. To change room rent,
Update Room Rent option
will be used.
Exceptions: None
Date Created: 5th October, 2020 Last Revision Date: 10th November, 2020
Actors: Owner
Description: This usecase describes how hotel owner will be able to view hotel
income and expenditures. Owner will able to view the income and
expenditure details entered by general manager.
Trigger: None
Post conditions: View Income option will be used to view income made by the
hotel. View Expenditures option will be used to view hotel
expenditures like electricity bill, gas bill etc.
19
Capital University of Science and Technology, Islamabad Department of Computer Science
Expenditures option
will be used.
Exceptions: None
Date Created: 5th October, 2020 Last Revision Date: 10th November, 2020
Actors: Owner
Description: This usecase describes how hotel owner will be able to view staff
performance report. Owner will be able to view staff performance
report which is being managed by staff manager.
Trigger: None
Post conditions: View Staff Performance Report will be used to view Staff
Performance report.
20
Capital University of Science and Technology, Islamabad Department of Computer Science
Exceptions: None
Date Created: 5th October, 2020 Last Revision Date: 10th November, 2020
Actors: Owner
Description: This usecase describes how hotel owner will be able to manipulate
employee information incase if there is a need to add, update and
remove employees. Owner will able to manage details of
employee salary in this use case.
Trigger: None
Post conditions: Add Employee option will be used to add newly joined
employees, Update Employee Details option will be used to
update employee details like phoneno, address etc. Remove
employee will be used to remove employee details.
21
Capital University of Science and Technology, Islamabad Department of Computer Science
add newly joined 5. Successfully remove
employee details. details.
5. Remove Employee
option will be used when
employee leaves hotel
job or is terminated.
Exceptions: None
22
Capital University of Science and Technology, Islamabad Department of Computer Science
2.5. System Sequence Diagrams
23
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 2.6: System Sequence Diagram (2)
24
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 2.7: System Sequence Diagram (3)
25
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 2.8: System Sequence Diagram (4)
26
Capital University of Science and Technology, Islamabad Department of Computer Science
2.6. Domain Model
27
Capital University of Science and Technology, Islamabad Department of Computer Science
Chapter 3
System Design
28
Capital University of Science and Technology, Islamabad Department of Computer Science
3.2. Class Diagram
29
Capital University of Science and Technology, Islamabad Department of Computer Science
3.3. Sequence Diagrams
30
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.4: Sequence Diagram for General Manager
31
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.5: Sequence Diagram for Staff Manager
32
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.6: Sequence Diagram for Owner
33
Capital University of Science and Technology, Islamabad Department of Computer Science
3.4. Entity Relationship Diagram
34
Capital University of Science and Technology, Islamabad Department of Computer Science
3.5 Database Schema
35
Capital University of Science and Technology, Islamabad Department of Computer Science
3.6 User Interface Design
Our user interface design(s) are likely as follows.
Owner
36
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.10: Room Rates Management
37
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.11: View Reports Page
38
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.12: Employee Management
39
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.13: Staff Report Page
40
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.14: Login Page for Owner
41
Capital University of Science and Technology, Islamabad Department of Computer Science
General Manager
42
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.16: General Manager Home Page
43
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.17: Income Detail Management
44
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.18: Expenditure Detail Management
45
Capital University of Science and Technology, Islamabad Department of Computer Science
Staff Manager
46
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.20: Staff Duty Details Management
47
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.21: Login Page for Staff Manager
48
Capital University of Science and Technology, Islamabad Department of Computer Science
Receptionist
49
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.23: Reservation Details Management
50
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.24: Availability Status Management
51
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.25: Billing Details Form
52
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.26: Billing Receipt
53
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.27: Restaurant Service Details Management
54
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.28: Customer Checkout Details Management
55
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 3.29: Login Page for Receptionist
56
Capital University of Science and Technology, Islamabad Department of Computer Science
Chapter 4
Software Development
4.1. Coding Standards
As our project is web based enterprise application, user interfaces are designed in HTML, so our
code html tags like body, td, tr, input etc. For server side scripting, backend coding and for
database transactions, we used SQL and PHP.
Owner
Home
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<title>hotel operational system </title>
</head>
<body>
<div id="header">
<div id="logo">
<h1>ROYAL HOTEL</h1>
</div>
<div id="menu">
<ul>
57
Capital University of Science and Technology, Islamabad Department of Computer Science
<li class="first"><a href="home.html" accesskey="1" title="">HOME</a></li>
<li><a href="index1reservation.php" accesskey="2"
title="">RESERVATION</a></li>
<li><a href="index1availabilitystatus.php" accesskey="3"
title="">AVAILABILITY STATUS</a></li>
</div><hr />
<DIV id="page">
<DIV id="content">
<DIV class="post">
<H2 class="title"> Welcome to ROYAL Hotel </H2>
<DIV class="entry">
<P style="font-size:130%">
Royal Hotel Naran is one of the best Hotels located in the Heart of Naran. If
you want royal treatment amidst spectacular mountains, water cascades and rivers, put up at
the Royal Hotel, Naran. The lovely Royal Hotel, Naran is renowned for its personalized
amenities which it offers to its guests. The edifice of the Royal Hotel, Naran is quite imposing
and towers above the lodges in the vicinity.
Royal Hotel, Naran amidst impressive mountains and in close proximity to
the rushing Kunhar River and is truly mesmerizing. Royal Hotel offers 32 rooms comprising
Deluxe, Family Suite & Suite Rooms
</P>
</DIV>
</DIV>
</body>
</html>
58
Capital University of Science and Technology, Islamabad Department of Computer Science
Owner
Room Rates
59
Capital University of Science and Technology, Islamabad Department of Computer Science
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
</head>
<body>
<div id="header">
<div id="logo">
<h1>ROYAL Hotel</h1>
</div>
<div id="menu">
<ul>
<li class="first"><a href="home.html" accesskey="1"
title="">Home</a></li>
<li><a href="setroomrates.html" accesskey="2"
title="">roomrates</a></li>
<li><a href="viewroomrates.html" accesskey="2"
title="">viewroomrates</a></li>
<li><a href="managestaff.html" accesskey="3"
title="">managestaff</a></li>
60
Capital University of Science and Technology, Islamabad Department of Computer Science
<li><a href="viewreports.html" accesskey="4" title="">View
reports</a></li>
<li><a href="ownerlogin.html" accesskey="5" title="">Logout</a></li>
</ul>
</div><hr />
<tr>
<td> Select type:</td>
<td>
<input type="radio" name="type" value="ground" />ground floor
<input type="radio" name="type" value="first floor" />first floor
<input type="radio" name="type" value="second floor" />second
floor
<input type="radio" name="type" value="top floor" />top floor
</td>
</tr>
61
Capital University of Science and Technology, Islamabad Department of Computer Science
<tr>
<td>Bedroom Type:</td>
<td>
<input type="radio" name="room" value="delux" /> delux
<input type="radio" name="room" value="family" /> family
</td>
</tr>
<tr>
<td> ROOMRATES: </td>
<td> <input type="text" name="name" /> </td>
</tr>
<input type="hidden" name="choice" value="addroomsrates" />
<tr>
<td>
<input type="submit" value="submit" />
</td>
</tr>
62
Capital University of Science and Technology, Islamabad Department of Computer Science
</table>
</form>
</div>
</body>
</html>
Owner
View Room Rates
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<title>hotel operational system </title>
</head>
<body>
63
Capital University of Science and Technology, Islamabad Department of Computer Science
<div id="header">
<div id="logo">
<h1>ROYAL Hotel</h1>
</div>
<div id="menu">
<ul>
<li class="first"><a href="home.html" accesskey="1"
title="">Home</a></li>
<li><a href="setroomrates.html" accesskey="2"
title="">roomrates</a></li>
<li><a href="viewroomrates.html" accesskey="2"
title="">viewroomrates</a></li>
<li><a href="managestaff.html" accesskey="3"
title="">managestaff</a></li>
<li><a href="viewreports.html" accesskey="4" title="">View
reports</a></li>
<li><a href="ownerlogin.html" accesskey="5" title="">Logout</a></li>
</ul>
</div><hr />
<tr style="font-size:130%">
<td>roomtype</td>
64
Capital University of Science and Technology, Islamabad Department of Computer Science
<td> groundfloor:</td>
<td> firstfloor </td>
<td>secondfloor</td>
<td>topfloor</td>
<td>room rates</td>
</tr>
<tr>
<td> delux:</td>
</tr>
<tr>
<td>family</td>
</tr>
</table>
</form>
</div>
</body>
</html>
65
Capital University of Science and Technology, Islamabad Department of Computer Science
Owner
Manage Staff
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
</head>
<body>
<div id="header">
<div id="logo">
<h1>ROYAL Hotel</h1>
</div>
<div id="menu">
<ul>
<li class="first"><a href="home.html" accesskey="1"
title="">Home</a></li>
<li><a href="setroomrates.html" accesskey="2"
title="">roomrates</a></li>
<li><a href="viewroomrates.html" accesskey="2"
title="">viewroomrates</a></li>
<li><a href="managestaff.html" accesskey="3"
title="">managestaff</a></li>
66
Capital University of Science and Technology, Islamabad Department of Computer Science
<li><a href="viewreports.html" accesskey="4" title="">View
reports</a></li>
<li><a href="ownerlogin.html" accesskey="5" title="">Logout</a></li>
</ul>
</div><hr />
<br>
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname"><br>
<label for="gender">GENDER</label><br>
<input type="radio" id="male" name="gender" value="male">
<label for="male">Male</label><br>
<input type="radio" id="female" name="gender" value="female">
<label for="female">Female</label><br>
<input type="radio" id="other" name="gender" value="other">
<label for="other">Other</label><br>
<label for="address">address:</label><br>
<input type="text" id="address" name="address"><br>
<label for="CNICNO">CNIC#(eg.12345-6789012-3)</label><br>
<input type="text" id="cnic" name="cnic"><br>
<label for="phoneno">phonenumber:</label><br>
67
Capital University of Science and Technology, Islamabad Department of Computer Science
<input type="text" id="phoneno" name="phoneno"><br>
<label for="qualification">qualification:</label><br>
<input type="file" id="myfile" name="myfile">
<input type="submit" value="Submit">
</form>
</div>
</body>
</html>
68
Capital University of Science and Technology, Islamabad Department of Computer Science
Owner
View Reports
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
</head>
<body>
<div id="header">
<div id="logo">
<h1>ROYAL Hotel</h1>
</div>
<div id="menu">
<ul>
<li class="first"><a href="home.html" accesskey="1"
title="">Home</a></li>
<li><a href="setroomrates.html" accesskey="2"
title="">roomrates</a></li>
<li><a href="viewroomrates.html" accesskey="2"
title="">viewroomrates</a></li>
69
Capital University of Science and Technology, Islamabad Department of Computer Science
<li><a href="managestaff.html" accesskey="3"
title="">managestaff</a></li>
<li><a href="viewreports.html" accesskey="4" title="">View
reports</a></li>
<li><a href="ownerlogin.html" accesskey="5" title="">Logout</a></li>
</ul>
</div><hr />
</form>
</div>
</body>
</html>
70
Capital University of Science and Technology, Islamabad Department of Computer Science
GM
Login
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css"
integrity="sha384-
5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz"
crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700"
rel="stylesheet">
<style>
html, body {
min-height: 100%;
}
body {
background: url("royyal.jpeg") no-repeat center;
background-size: cover;
}
h1, h2 {
text-transform: uppercase;
font-weight: 400;
}
h2 {
margin: 0 0 0 8px;
}
.main-block {
display: flex;
flex-direction: column;
justify-content: center;
71
Capital University of Science and Technology, Islamabad Department of Computer Science
align-items: center;
height: 100%;
padding: 25px;
background: rgba(0, 0, 0, 0.5);
}
.left-part, form {
padding: 25px;
}
.left-part {
text-align: center;
}
.fa-graduation-cap {
font-size: 72px;
}
form {
background: rgba(0, 0, 0, 0.7);
}
.title {
display: flex;
align-items: center;
margin-bottom: 20px;
.info {
display: flex;
flex-direction: column;
}
input, select {
padding: 5px;
margin-bottom: 30px;
background: transparent;
border: none;
border-bottom: 1px solid #eee;
}
input::placeholder {
color: #eee;
}
72
Capital University of Science and Technology, Islamabad Department of Computer Science
option:focus {
border: none;
}
option {
background: black;
border: none;
}
.checkbox input {
margin: 0 10px 0 0;
vertical-align: middle;
}
.checkbox a {
color: #26a9e0;
}
.checkbox a:hover {
color: #85d6de;
}
.btn-item, button {
padding: 10px 5px;
margin-top: 20px;
border-radius: 5px;
border: none;
background: #26a9e0;
text-decoration: none;
font-size: 15px;
font-weight: 400;
color: #fff;
}
.btn-item {
display: inline-block;
margin: 20px 5px 0;
}
button {
width: 100%;
}
button:hover, .btn-item:hover {
73
Capital University of Science and Technology, Islamabad Department of Computer Science
background: #85d6de;
}
.main-block {
flex-direction: row;
height: calc(100% - 50px);
}
.left-part, form {
flex: 1;
height: auto;
}
}
</style>
</head>
<body>
<div class="main-block">
<div class="left-part">
<i class=""></i>
<h1>Royal Hotel, Naran</h1>
<p></p>
<div class="btn-group">
</div>
</div>
<form "action=" /">
<div class="title">
<i class="fas fa-pencil-alt"></i>
<h2>LOGIN</h2>
</div>
<div class="title">
<h2>General Manager</h2>
</div>
<div class="info">
<input class="fname" type="text" name="name" placeholder="username-general
manager">
<input type="password" name="name" placeholder="password">
74
Capital University of Science and Technology, Islamabad Department of Computer Science
</div>
<div class="checkbox">
</div>
<button type="submit" href="/">LOGIN</button>
</form>
</div>
</body>
</html>
GM
Home
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<title>hotel operational system </title>
</head>
<body>
<div id="header">
<div id="logo">
<h1>ROYAL HOTEL</h1>
</div>
75
Capital University of Science and Technology, Islamabad Department of Computer Science
<div id="menu">
<ul>
<li class="first"><a href="ahome.html" accesskey="1" title="">Home</a></li>
<li><a href="viewincome.html" accesskey="2" title="">View Income</a></li>
<li><a href="viewexpenditure.html" accesskey="3" title="">View
Expenditures</a></li>
<li><a href="addexpenditure.html" accesskey="4" title="">Add
Expenditures</a></li>
<li><a href="logout.jsp" accesskey="7" title="">Logout</a></li>
</ul>
</div><hr />
<!-- start page -->
<DIV id="page">
<!-- start content -->
<DIV id="content">
<DIV class="post">
<H2 class="title"> Welcome to ROYAL HOTEL </H2>
<DIV class="entry">
<P>
Royal Hotel Naran is one of the best Hotels located in the Heart of Naran. If
you want royal treatment amidst spectacular mountains, water cascades and rivers, put up at
the Royal Hotel, Naran. The lovely Royal Hotel, Naran is renowned for its personalized
amenities which it offers to its guests. The edifice of the Royal Hotel, Naran is quite imposing
and towers above the lodges in the vicinity.
Royal Hotel, Naran amidst impressive mountains and in close proximity to
the rushing Kunhar River and is truly mesmerizing. Royal Hotel offers 32 rooms comprising
Deluxe, Family Suite & Suite Rooms
</P>
</DIV>
</DIV>
</DIV>
<!-- end content -->
<!-- start sidebar -->
<img style="position:absolute;top:500px;left:5px;" " />
76
Capital University of Science and Technology, Islamabad Department of Computer Science
GM
Server.php
<?php
session_start();
$db = mysqli_connect('localhost', 'root', '', 'hotelmanagementsystem');
$monthyear="";
$electricitybill="";
$gasbill="";
$earnings="";
$gmusername="";
$gmpassword="";
$update = false;
if (isset($_POST['save'])) {
$monthyear=$_POST['monthyear'];
$electricitybill=$_POST['electricitybill'];
$gasbill=$_POST['gasbill'];
}
if (isset($_POST['save'])) {
$monthyear=$_POST['monthyear'];
$earnings=$_POST['earnings'];
}
if (isset($_POST['save'])) {
$gmusername=$_POST['gmusername'];
$gmpassword=$_POST['gmpassword'];
77
Capital University of Science and Technology, Islamabad Department of Computer Science
}
if (isset($_POST['update'])) {
$id = $_POST['id'];
$name = $_POST['name'];
$student_dept = $_POST['dept'];
?>
GM
View Income
<?php error_reporting(E_ERROR | E_PARSE);?>
<?php include('server.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
</head>
<body>
<div id="header">
<div id="logo">
<h1 style="color:white">Royal Hotel</h1><br/>
</div>
<h2 style="color:black; text-align:center">Income Details</h2>
</tr>
<?php while ($row = mysqli_fetch_array($results)) { ?>
<tr>
<td><?php echo $row['monthyear']; ?></td>
<td><?php echo $row['earnings']; ?></td>
</tr>
<?php } ?>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
79
Capital University of Science and Technology, Islamabad Department of Computer Science
</tr>
</table>
<div id="menu">
<ul>
</div>
</div>
<!-- end page -->
</body>
</html>
GM
Add Expenditures
<?php error_reporting(E_ERROR | E_PARSE);?>
<?php include('server.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html >
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<style>
</style>
</head>
80
Capital University of Science and Technology, Islamabad Department of Computer Science
<body>
<?php if (isset($_SESSION['message'])): ?>
<div class="msg">
<?php
echo $_SESSION['message'];
unset($_SESSION['message']);
?>
</div>
<?php endif ?>
<div id="header">
<div id="logo">
<h1>ROYAL Hotel</h1>
</div>
<div id="menu">
</div><hr />
<br>
<table align="center">
<tr>
<td for="fname">Enter Month and Year:</td><br>
<td><input type="text" id="myear" name="myear"></td></tr><br>
<tr><td for="lname">Enter Electricity Bill:</td><br>
<td><input type="text" id="eb" name="eb"></td></tr><br>
<tr><td for="lname">Enter Gas Bill:</td><br>
<td><input type="text" id="gb" name="gb"></td></tr><br>
<tr>
<td><input type="submit" value="Add Bill(s)"></td></tr>
</table>
</form>
</div>
</body>
</html>
Receptionist
Home
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
81
Capital University of Science and Technology, Islamabad Department of Computer Science
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<title>hotel operational system </title>
</head>
<body>
<div id="header">
<div id="logo">
<h1>ROYAL HOTEL</h1>
</div>
<div id="menu">
<ul>
<li class="first"><a href="staffhome.html" accesskey="1" title="">Home</a></li>
<li><a href="addstaff.html" accesskey="2" title="">Add_Staff</a></li>
<li><a href="managestaff.html" accesskey="3" title="">Staff Details</a></li>
<li><a href="viewreports.html" accesskey="4" title="">Send reports</a></li>
<li><a href="logout.html" accesskey="5" title="">Logout</a></li>
</ul>
</div><hr />
<DIV id="page">
<DIV id="content">
<DIV class="post">
<H2 class="title"> Welcome to ROYAL Hotel </H2>
<DIV class="entry">
<P>
Royal Hotel Naran is one of the best Hotels located in the Heart of Naran. If
you want royal treatment amidst spectacular mountains, water cascades and rivers, put up at
the Royal Hotel, Naran. The lovely Royal Hotel, Naran is renowned for its personalized
amenities which it offers to its guests. The edifice of the Royal Hotel, Naran is quite imposing
and towers above the lodges in the vicinity.
Royal Hotel, Naran amidst impressive mountains and in close proximity to
the rushing Kunhar River and is truly mesmerizing. Royal Hotel offers 32 rooms comprising
Deluxe, Family Suite & Suite Rooms
</P>
</DIV>
</DIV>
</DIV>
82
Capital University of Science and Technology, Islamabad Department of Computer Science
<!-- end content -->
<!-- start sidebar -->
<img style="position:absolute;top:500px;left:5px;" " />
Staff Manager
Add Staff Timings
<?php error_reporting(E_ERROR | E_PARSE);?>
<?php include('staffserver.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html >
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<?php if (isset($_SESSION['message'])): ?>
<div class="msg">
<?php
echo $_SESSION['message'];
unset($_SESSION['message']);
?>
</div>
<?php endif ?>
<div id="header">
<div id="logo">
<h1>ROYAL Hotel</h1>
</div>
<div id="menu">
83
Capital University of Science and Technology, Islamabad Department of Computer Science
</div><hr />
<br>
<label for="date">Date:</label><br>
<input type="text" id="date" name="date"><br>
<label for="employeeid">Employee ID:</label><br>
<input type="text" id="employeeid" name="employeeid"><br>
<label for="employeename">Employee Name:</label><br>
<input type="text" id="employeename" name="employeename"><br>
<label for="gender">GENDER</label><br>
<input type="radio" id="male" name="gender" value="male">
<label for="male">Male</label><br>
<input type="radio" id="female" name="gender" value="female">
<label for="female">Female</label><br>
<input type="radio" id="other" name="gender" value="other">
<label for="other">Other</label><br>
<label for="employeeentrytime">Entry Time:</label><br>
<input type="text" id="employeeentrytime" name="employeeentrytime"><br>
<label for="employeeexittime">Exit Time:</label><br>
<input type="text" id="employeeexittime" name="employeeexittime"><br>
<label for="employeedutyhours">Performed Duty Hours:</label><br>
<input type="text" id="employeedutyhours" name="employeedutyhours"><br>
<label for="employeeposition">Position:</label><br>
<input type="text" id="employeeposition" name="employeeposition"><br>
</form>
</div>
</body>
</html>
Staff Manager
View Staff Duty Timing Details
<?php error_reporting(E_ERROR | E_PARSE);?>
<?php include('staffserver.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//Dth XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/Dth/xhtml1-strict.dth">
<script type="text/javascript">
function validate() {
flag = false;
if (!flag) {
alert("Please select type");
return false;
}
flag1 = false;
if (!flag1) {
alert("Please select bed room type");
return false;
}
85
Capital University of Science and Technology, Islamabad Department of Computer Science
var selectedOption = form3.room.selectedIndex;
if (selectedOption == 0) {
flag2 = false;
alert("Please select a room");
return false;
}
}
</script>
<style>
table, th, th,td {
border: 1px solid white;
font-size:30px;
color:white;
align:center;
}
</style>
</head>
<body>
<div id="header">
<div id="logo">
<h1>ROYALHotel</h1>
</div>
<div id="menu">
</div><hr />
</div>
<th> Date</th>
86
Capital University of Science and Technology, Islamabad Department of Computer Science
<th> Employee Name</th>
<th>Gender</th>
</tr>
<?php while ($row = mysqli_fetch_array($results)) { ?>
<tr>
<td><?php echo $row['employeedate']; ?></td>
<td><?php echo $row['employeeid']; ?></td>
<td><?php echo $row['employeename']; ?></td>
<td><?php echo $row['employeegender']; ?></td>
<td><?php echo $row['employeeentrytime']; ?></td>
<td><?php echo $row['employeeexittime']; ?></td>
<td><?php echo $row['employeeperformeddutyhours']; ?></td>
<td><?php echo $row['employeeposition']; ?></td>
</tr>
<?php } ?>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
87
Capital University of Science and Technology, Islamabad Department of Computer Science
<td></td>
<td></td>
</tr>
</table>
</div>
<!-- end page -->
</body>
</html>
Staff Manager
Server.php
<?php
session_start();
$db = mysqli_connect('localhost', 'root', '', 'hotelmanagementsystem');
$employeedate="";
$employeeid="";
$employeename="";
$employeegender="";
$employeeentrytime="";
$employeeexitime="";
$employeeperformeddutyhours="";
$employeeposition="";
$update = false;
if (isset($_POST['save'])) {
$employeedate=$_POST['employeedate'];
$employeeid=$_POST['employeeid'];
$employeename=$_POST['employeename'];
$employeegender=$_POST['employeegender'];
88
Capital University of Science and Technology, Islamabad Department of Computer Science
$employeeentrytime=$_POST['employeeentrytime'];
$employeeexitime=$_POST['employeeexitime'];
$employeeperformeddutyhours=$_POST['employeeperformeddutyhours'];
$employeeposition=$_POST['employeeposition'];
if (isset($_POST['save'])) {
$staffmanagerusername=$_POST['staffmanagerusername'];
$staffmanagerpassword=$_POST['staffmanagerpassword'];
if (isset($_POST['update'])) {
$id = $_POST['id'];
$name = $_POST['name'];
$student_dept = $_POST['dept'];
89
Capital University of Science and Technology, Islamabad Department of Computer Science
mysqli_query($db, "UPDATE student SET std_name ='$name',
std_department='$student_dept' WHERE std_id=$id");
$_SESSION['message'] = "Record updated!";
header('location: index.php');
}
?>
Receptionist
Add Reservation
<?php error_reporting(E_ERROR | E_PARSE);?>
<?php include('server.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
</head>
<body>
</div>
<div id="menu">
90
Capital University of Science and Technology, Islamabad Department of Computer Science
</div><hr />
</div><hr />
<table align="center">
<tr>
<td><h2>Add Resrvation and Customer Details</h2></td>
</tr>
<tr>
<td> Room Number:</td>
<td> <input type="text" name="roomno" /> </td>
</tr>
<tr>
<td> Select type:</td>
<td>
<input type="radio" name="type" value="ground" />ground floor
<input type="radio" name="type" value="first floor" />first floor
<input type="radio" name="type" value="second floor" />second floor
<input type="radio" name="type" value="top floor" />top floor
</td>
</tr>
<tr>
<td>Bedroom Type:</td>
<td>
<input type="radio" name="room" value="delux" /> delux
<input type="radio" name="room" value="family" /> family
</td>
</tr>
<tr>
<td> customer name: </td>
<td> <input type="text" name="name" /> </td>
</tr>
<tr>
<td> CNIC/PASSPORT </td>
<td> <input type="text" name="name" /> </td>
</tr>
<tr>
91
Capital University of Science and Technology, Islamabad Department of Computer Science
<td> address: </td>
<td> <input type="text" name="name" /> </td>
</tr>
<tr>
<td> phone no: </td>
<td> <input type="text" name="name" /> </td>
</tr>
<tr>
<td> no of customer: </td>
<td> <input type="text" name="name" /> </td>
</tr>
<tr>
<td> vehical no: </td>
<td> <input type="text" name="name" /> </td>
</tr>
<tr>
<td> Checkin Date/Time: </td>
<td> <input type="text" name="name" /> </td>
</tr>
</table>
</form>
</div>
<!-- end page -->
92
Capital University of Science and Technology, Islamabad Department of Computer Science
</body>
</html>
Receptionist
View Reservation Details
<?php error_reporting(E_ERROR | E_PARSE);?>
<?php include('server.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//Dth XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/Dth/xhtml1-strict.dth">
<script type="text/javascript">
function validate() {
flag = false;
if (!flag) {
alert("Please select type");
return false;
}
flag1 = false;
93
Capital University of Science and Technology, Islamabad Department of Computer Science
}
if (!flag1) {
alert("Please select bed room type");
return false;
}
</script>
<style>
table, th, th,td {
border: 1px solid white;
font-size:30px;
color:white;
align:center;
}
</style>
</head>
<body>
<div id="header">
<div id="logo">
<h1>ROYALHotel</h1>
</div>
<div id="menu">
</div><hr />
</div>
94
Capital University of Science and Technology, Islamabad Department of Computer Science
<h2 style="text-align:center">Reservation Details</h2>
<tr>
95
Capital University of Science and Technology, Islamabad Department of Computer Science
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
<!-- end page -->
</body>
</html>
Receptionist
Server.php
<?php
session_start();
$db = mysqli_connect('localhost', 'root', '', 'hotelmanagementsystem');
$roomnumber="";
$floornumber="";
$bedroomtype="";
$roomrates="";
96
Capital University of Science and Technology, Islamabad Department of Computer Science
$customername="";
$customercnicpassport="";
$customeraddress="";
$customerphonenumber="";
$numberofcustomers="";
$vehiclenumber="";
$checkindatetime="";
$roomnumber="";
$availabilitystatus="";
$foodname="";
$quantity="";
$price="";
$ordernumber="";
$service="";
$receptionistusername="";
$receptionistpassword="";
$roomrate="";
$restaurantbill="";
$total="";
$status="";
$datetime="";
$update = false;
if (isset($_POST['save'])) {
$roomnumber=$_POST['roomnumber'];
$floornumber=$_POST['floornumber'];
$bedroomtype=$_POST['bedroomtype'];
$roomrates=$_POST['roomrates'];
$customername=$_POST['customername'];
$customercnicpassport=$_POST['customercnicpassport'];
$customeraddress=$_POST['customeraddress'];
$customerphonenumber=$_POST['customerphonenumber'];
$numberofcustomers=$_POST['numberofcustomers'];
$vehiclenumber=$_POST['vehiclenumber'];
$checkindatetime=$_POST['checkindatetime'];
97
Capital University of Science and Technology, Islamabad Department of Computer Science
e,customercnicpassport,customeraddress,customerphonenumber,numberofcustomers,vehiclenu
mber,checkindatetime)+
VALUES ('$roomnumber','$floornumber', '$bedroomtype',
'$roomrates','$customername',
'$customercnicpassport','$customeraddress','$customerphonenumber',
'$numberofcustomers','$vehiclenumber','$checkindatetime')");
$_SESSION['message'] = "Record saved!";
header('location: viewroomdetails.php');
}
if (isset($_POST['save'])) {
$roomnumber=$_POST['roomnumber'];
$availabilitystatus=$_POST['availabilitystatus'];
if (isset($_POST['save'])) {
$roomnumber=$_POST['roomnumber'];
$foodname=$_POST['foodname'];
$quantity=$_POST['quantity'];
$price=$_POST['price'];
$ordernumber=$_POST['ordernumber'];
$service=$_POST['service'];
if (isset($_POST['save'])) {
$roomnumber=$_POST['roomnumber'];
$customername=$_POST['customername'];
$customercnicpassport=$_POST['customercnicpassport'];
98
Capital University of Science and Technology, Islamabad Department of Computer Science
$roomrate=$_POST['roomrate'];
$restaurantbill=$_POST['restaurantbill'];
$total=$_POST['total'];
$status=$_POST['status'];
$datetime=$_POST['datetime'];
if (isset($_POST['save'])) {
$receptionistusername=$_POST['receptionistusername'];
$receptionistpassword=$_POST['receptionistpassword'];
if (isset($_POST['update'])) {
99
Capital University of Science and Technology, Islamabad Department of Computer Science
$id = $_POST['id'];
$name = $_POST['name'];
$student_dept = $_POST['dept'];
?>
100
Capital University of Science and Technology, Islamabad Department of Computer Science
Chapter 5
Software Testing
5.1. Testing Methodology
We have planned to do unit testing of this system in which different individual modules are
tested.
101
Capital University of Science and Technology, Islamabad Department of Computer Science
Restaurant Bill=8000
Total Bill=16000
Expected Result: Print Customer Bill Receipt
Actual Result: Successfully printed (passed)
102
Capital University of Science and Technology, Islamabad Department of Computer Science
Chapter 6
Software Deployment
screenshots below.
103
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 6.2: Installation/Deployment
104
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 6.3: Installation/Deployment
105
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 6.4: Installation/Deployment
106
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 6.5: Installation/Deployment
107
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 6.6: Installation/Deployment
108
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 6.7: Installation/Deployment
109
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 6.8: Installation/Deployment
110
Capital University of Science and Technology, Islamabad Department of Computer Science
Figure 6.9: Installation/Deployment
111
Capital University of Science and Technology, Islamabad Department of Computer Science
REPORT APPROVAL CERTIFICATE
The report of the project, “Hotel Management System” has been approved based on the
following evaluation guideline.
_________________
Name & Signature
(Supervisor)
112
Capital University of Science and Technology, Islamabad Department of Computer Science
References
Book
Crad Larman, Applying UML and Patterns. 3rd Edition
113
Capital University of Science and Technology, Islamabad Department of Computer Science
114
Capital University of Science and Technology, Islamabad Department of Computer Science