Professional Documents
Culture Documents
Complete Thesis
Complete Thesis
(SBBU-GORS)
Submitted by
Wajid Ali Khan, Yasir Khan
&
Sayed Jawad
Supervised by
Mr. Mahmood Khan
Assistant Professor
i
Project Approval
We hereby recommend that the project entitled SBBU Guesthouse Online Reservation System
has been accepted from the Department of Computer Science, Shaheed Benazir Bhutto
University Sheringal Main Campus as fulfilling the requirement for the degree of BS(Hons).
External Examiner
Name: _____________________________________________________________
Signature: __________________________________________________________
Remarks: ___________________________________________________________
Internal Examiner
Name: _____________________________________________________________
Signature: __________________________________________________________
Remarks: __________________________________________________________
Head OF Department
Name: _____________________________________________________________
Signature: __________________________________________________________
Remarks: __________________________________________________________
ii
DEDICATION
Dedicated to our most favorite and beloved personality our prophet Muhammad (PBUH), and
dedicated to our honorable parents, uncles, brother and respected teachers.
iii
ACKNOWLEDGEMENT
First and foremost, We would like to thank ALLAH Almighty, who gave us the courage and
ability to continue our education. We offer our countless salutation upon the holy prophet
Muhammad (Peace be upon Him) the entire source of guidance for the humanity as a whole
forever.
We would like to express our more sincere gratitude to our supervisor Mr. Mahmood Khan,
Assistant Professor for his support, encouragement and guidance through every step of this
project. Working with him has been a true privilege and a great experience for us. It has been a
real honor for us to work under his supervision.
We want to appreciate all the teachers of the Department of Computer Science, Shaheed Benazir
Bhutto University Sheringal. They taught us during our course work, by delivering their precious
and valuable thoughts, and built our concept.
We would like to thank my father, mother, uncles, brother and sisters whose efforts, support,
love, guidance and prayers made it possible for us to complete our graduation and this project.
iv
ABSTRACT
The primary goal of the project is to create an application (Online reservation management
system) that allows users to book rooms online through this application in SBBU Guesthouses.
The main goal of this project is online booking of rooms in while sitting at home.
There exist some customized and general online hotel booking applications, and we want to
make a similar application for our university Guest house using XAMP server, HTML, CSS,
java script, PHP etc.
Online booking management is an online internet site where the customer can book rooms online
via an internet browser. The rooms are categorized based on their properties such as Basic,
Secondary and Luxury. This application divided into two portions front end for users booking
and the back end for the administrator to assign rooms to customers.
v
Table of Contents
ACKNOWLEDGEMENT.....................................................................................iv
ABSTRACT.............................................................................................................v
CHAPTER-1............................................................................................................1
INTRODUCTION...................................................................................................................................1
1.1Introduction........................................................................................................................................1
1.2 Web application.................................................................................................................................1
1.3 Categories of web application............................................................................................................1
1.3.1 Document centric............................................................................................................................1
1.3.2 Interactive web application.............................................................................................................2
1.3.3 Transactional web application........................................................................................................2
1.3.4 Workflow web application..............................................................................................................2
1.3.5 Collaborative web application........................................................................................................2
1.3.6 Social web application....................................................................................................................2
1.3.7 Portal web application....................................................................................................................2
1.3.8 Ubiquitous web application............................................................................................................2
1.3.9 Semantic web application...............................................................................................................2
1.4 Existing system..................................................................................................................................3
1.4.1 Performance....................................................................................................................................3
1.4.2 Efficiency.......................................................................................................................................3
1.4.3 Control............................................................................................................................................3
1.4.4 Security...........................................................................................................................................3
1.4.5 Complex processing........................................................................................................................3
1.5 Proposed System................................................................................................................................3
1.5.1Advantages of the proposed system.................................................................................................4
1.6 Objectives..........................................................................................................................................4
CHAPTER-2............................................................................................................5
TOOLS AND REQUIREMENT.............................................................................................................5
2.1 Requirements.....................................................................................................................................5
2.2 Functional requirements....................................................................................................................5
2.2.1 Registration.....................................................................................................................................5
2.2.2 Logging In......................................................................................................................................5
vi
2.2.3 Room Reservation..........................................................................................................................5
2.2.4 Receptionist Access........................................................................................................................5
2.2.5 Manager Access..............................................................................................................................5
2.3 Non Functional Requirement.............................................................................................................6
2.3.1 Performance....................................................................................................................................6
2.3.2 Security Requirements....................................................................................................................6
2.3.3 Availability Requirements..............................................................................................................6
2.4 Software Attributes Accuracy............................................................................................................6
2.4.1 Efficiency.......................................................................................................................................6
2.4.2 Flexibility.......................................................................................................................................6
2.4.3 Integrity..........................................................................................................................................6
2.4.4 Portability.......................................................................................................................................6
2.4.5 Usability.........................................................................................................................................6
2.4.6 Testing............................................................................................................................................7
2.4.7 Changeable.....................................................................................................................................7
2.5 Tools used for Development............................................................................................................7
2.5.1 Client side technology....................................................................................................................7
2.5.2 Server Side Technology..................................................................................................................8
2.5.3 (HTML) Hypertext Markup Language...........................................................................................9
2.5.4 CSS.................................................................................................................................................9
2.5.5 MySQL Database...........................................................................................................................9
2.5.6 Connection of database with Laravel............................................................................................10
2.5.7 Apache..........................................................................................................................................10
2.5.8 XAMPP........................................................................................................................................11
2.5.9 PHP...............................................................................................................................................11
2.5.10 Adobe Photoshop........................................................................................................................11
2.5.11Laravel.........................................................................................................................................11
CHAPTER- 3.........................................................................................................13
METHODOLOGIES AND DESIGN....................................................................................................13
3.1 Agile process...................................................................................................................................13
3.1.1 Agile software development principles.........................................................................................13
3.1.2 Agile model process.....................................................................................................................14
3.2 Flow Chart.......................................................................................................................................15
vii
3.2.1 Types of flow charts.....................................................................................................................15
3.3 Data flow diagram (DFD)................................................................................................................16
3.3.1 The advantages of data flow diagram...........................................................................................17
3.3.2 Types of data flow diagram..........................................................................................................17
3.4 Entity Relationship Diagram (ERD)................................................................................................19
3.5 Key..................................................................................................................................................20
3.5.1 Types of key.................................................................................................................................20
3.6 Entity Relationship Diagram (ERD) of SBBU-GORS.....................................................................21
CHAPTER-4..........................................................................................................24
RESULT AND DISCUSSION..............................................................................................................24
4.2 Use-case Scenarios..........................................................................................................................25
4.2.1 User Authentication Module.........................................................................................................25
4.2.2 Front office module......................................................................................................................25
4.3 Web Application Testing.................................................................................................................26
4.3.1 Unit testing...................................................................................................................................26
4.3.2 Integration testing.........................................................................................................................26
4.3.3 User interface or System testing...................................................................................................26
4.3.4 Acceptance testing........................................................................................................................27
CHAPTER-5..........................................................................................................28
USER INTERFACE SYSTEM..............................................................................................................28
5.1 SBBU-GORS User Interface...........................................................................................................28
5.2 Front end..........................................................................................................................................28
5.2.1 Front page.....................................................................................................................................28
5.2.2 Room type page............................................................................................................................29
5.2.3 About page....................................................................................................................................30
5.2.4 Our services page..........................................................................................................................30
5.2.5 Footer page...................................................................................................................................31
5.3 Back end..........................................................................................................................................32
5.3.1 Admin Login page........................................................................................................................32
5.3.2 Dashboard statistic page...............................................................................................................33
5.3.3 Monthly reservation page.............................................................................................................34
5.3.4 Create room page..........................................................................................................................34
5.3.5 Guest houses page.........................................................................................................................35
viii
CHAPTER-6..........................................................................................................36
SUMMARY AND CONCLUSION.......................................................................................................36
6.1 Summary.........................................................................................................................................36
6.2 Conclusion.......................................................................................................................................36
6.3 Achievements..................................................................................................................................37
6.4 Future Works...................................................................................................................................37
6.5 Summary of chapters.......................................................................................................................38
ix
CHAPTER-1
INTRODUCTION
1.1 Introduction
The time is most important factor for the business people, but in this busy life people also
want to visit different and beautiful places and enjoying their lives, so Guest houses are generally
considered the ideal places for guest to stay. They have the privacy as well as the basics, and
spend as much time as they want in these Guest houses. Now a day’s online booking in hotels on
internet is common, people are booking the room in hotels online while sitting at their homes,
online booking save their precious time. Therefore we developed a SBBU Guesthouse Online
Reservation System (SBBU-GORS) for the business people. SBBU-GORS provides us to
reserve rooms in a guesthouse/hotel also allows to check whether the rooms are filled or not by
using online browsing. SBBU-GORS reduces both delay time and faults in bills of the customer
expenses. In this application we also include the amenities for customers. SBBU-GORS provides
high level of reliability and security. SBBU-GORS’s reservation module first anticipates the
demand and then manages how to meet the demand when it occurs. The reservation module
ensures whether the space is available or not during booking.
1
in response of the client’s request. These pages are updated manually using some respective
tools, which are very time consuming and difficult to maintain.
2
1.3.9 Semantic web application
The goal of semantic web is to represent the information both in human readable form
and in machine readable form.
1.4.1 Performance
Existing system maintains all the data record in a manual fashion which is both time
consuming and prone to errors.
1.4.2 Efficiency
Efficiency is one of the basic characteristics of a website. When a new user submits
his/her details to the website it should be update automatically. This record should be useful for
the user on need basis.
1.4.3 Control
In the existing manual system everyone has access to the information, hence no provides
no control over the use of data.
1.4.4 Security
Security is the most important need for every organization. In the existing manual system
the security of information is too weak, therefore chances of losing information are too high.
3
1.5 Proposed System
As we already know that online booking in Guesthouses/hotels is very common now a
day’s, and therefore we thoroughly studied some online booking hotels systems of different
countries and decide to develop SBBU-GORS system. Our SBBU-GORS system will mainly
provide the online booking of rooms for the guesthouse of the Shaheed Benazir Bhutto
University, Sheringal (SBBU). The front end of the proposed SBBU-GORS system is design
using HTML and CSS, while the back end is design using PHP and PHP my Admin The user
accessibility has been restricted to two zones that is the administrative and normal zone.
1.6 Objectives
1. The Objective of the planned project is to create, improve and recommend a solution to
the problems in the manual system. To apply various technique and technologies to
solve these problems and achieve better results.
4
2. The project aims to present such system that is more user friendly in the various events
such as record updating, and maintenance.
3. The complete user information is stored in the database, not everyone can access these
information/data and only the authorized user can access to these information.
4. The main objective of the proposed SBBU-GORS is to automate the daily routine
processes of guesthouse/hotel, such as room activities, admission of a new user, billing
and booking etc.
5
CHAPTER-2
2.1 Requirements
This chapter discusses the basic requirement of the SBBU-GORS. The proposed system
converts the existing manual system into computerized system. The proposed system is web
based system that is use especially by the Guesthouse/Hotel members and customers.
2.2.1 Registration
The user must be able to register and store their information.
This web application must be able to register and store user information’s in database.
2.2.2 Logging In
System must have the ability to identify user based on the username and password who is
the member of the database.
6
2.3 Non Functional Requirement
2.3.1 Performance
Changes made to the database must take less time.
2.4.1 Efficiency
Different resources are used to perform proposed task efficiently.
2.4.2 Flexibility
System must have the ability for adding some extra features.
2.4.3 Integrity
The system must be able to secure customer information.
2.4.4 Portability
The system is adoptable with any operating environment such as window XP, 7, 8, 10
etc.
2.4.5 Usability
The system must provide ease of use to any type of users.
7
2.4.6 Testing
This application must be testable for work satisfaction.
2.4.7 Changeable
The application must be ensures flexibility.
The client side languages or technologies used for development of proposed application are the
following:
a) Markup languages
Markup languages are those languages which are used to mark Web pages, text and
images etc. For development of web application HTML (hypertext markup language) is the best
choice. This language is made of two words hypertext and markup; hypertext mean a text that
provides a link to the other page, through these links a user can navigates inside and outside the,
while markup means to format text, images and web pages.
The java script language is both server-side and client-side language. However, this
language is mainly used for client side. This language is easy to learn and understandable. Java
script is encoded with other various languages such as java, C/C++. We will use java script as
client side scripting language.
8
c) Style Languages
For adding colors, font styles, spacing, merging to web document we use CSS (cascading
style sheet) language. This means CSS makes our web pages, web application so attractive and
beautiful. CSS provides the base to separate the document contents from document presentation,
and add features like the colors, layout, and font styles.
a) Web Server
The web server is a program that runs on server and provides resources to the client.
When the client request for such a resources, the request is made first on the URL and the
response is send to the client. This creates a dialogue between client and server.
One such open sources software is the apache server. Many web servers are available which are
provided as free by the apache company, many versions are now developed which can be easily
used with PHP and MYSQL. While the server used WAMP and XAMPP which are widely used
web server and easy to learn.
Different server technologies are designed which can be used for development of web
application, PHP, JavaScript are used widely.
The PHP language is used widely because it is powerful language which is runs on server, PHP
is also called pre-processor hypertext. Million websites are built using PHP. PHP is manly used
to allow dynamic behavior to the web page. For PHP we must use web server because the PHP
language does not run on client side. Therefore we will use WAMP server.
9
c) Database Solution
Database is needed for storing data. We will need DBMS software like ORACLE,
MYSQL, MSSQL, MSACCESS, or DB2. In this project we will use MYSQL together with
PHP.
This language is basically applied for development of a page having static behavior. It is also
uses tags which provide specification for the browser of how a given contents are represented.
2.5.4 CSS
Cascading Style Sheets, formally known as CSS. It is a document layout language
intended to simplify the procedure of creating internet pages.CSS handles the look and feel part
of an internet page. With CSS one can control the whole format of text, columns resizing and
laid out, background styles, web page responsiveness.CSS is very straightforward to analyze and
apprehend however it affords effective manipulation over the presentation of an HTML record.
More specifically CSS is blended with the markup languages like HTML.
10
mostly used as a second world wide RDBMS. It is a large subset of ANSI SQL 99 and also
called as its extensions. MySQL is a relational database management system. These tables are
connected to each other to easily access the data of the database tables.
2.5.7 Apache
Apache is very popular and mostly used web server. It has played a crucial role in the
development of the World Wide Web. Apache came in use since 1995. Apache supports
different language interfaces like Python, Perl, Tcl, and PHP. Apache loads many dynamic
modules simultaneously and can also handle multiple requests at the same time. Apache is
scalable and can handle thousands of connections at one time. Request and response mechanism
11
is done through HTTP protocol in a secure manner. Apache differentiate the HTTP response on
the basis of file extension. If the file extension is .php then apache forward the request to the
PHP engine and if the extension of the file is blade.php then request is forwarded to the Laravel
engine.Apache Web server development is performed by a group of about 20 volunteer
programmers, called the Apache Group.
2.5.8 XAMPP
Xampp is software used for the PHP language. Without xampp, php will never work.
There are different software packages used for the PHP language. Wampp is one of them.”X” in
wampp stands for operating system, “A” for Apache, “M” for MySql, “P” for PHP and the other
“P” for PERL. Xampp is an open source platform. Xampp does not require internet connection
as it has its own local server called localhost. In order to access the database, Apache and
MYSQL must be started in xampp software. After that we write “http/localhostphpmyadmin”.in
the URL of the browser. In Xampp, Apache is used for HTTP server, MySql is for database.
PHP is used as scripting language and PERL is used for programming language.
2.5.9 PHP
PHP is sometime called to “Hypertext Preprocessor”. It is a server-side scripting
language. PHP is also HTML embedded scripting language and used to serve dynamic internet
pages for implementation of net application. PHP is an open source and freely available software
program. Open source mean code can be redistributed and modified. PHP has the advantage of
cross platform compatibility with all servers like Apache, IIS, etc and with different platforms
such as like windows, Linux and so on. .
12
2.5.11 Laravel
Laravel is a free, open-source PHP web framework, created by Taylor Otwell and
intended for the development of web applications. Larvel follows the model–view–controller
(MVC) design pattern. Modular packaging system with a dedicated dependency manager and
accessing relational databases in different ways are some of the features of Laravel. Laravel
provide ease for development and the code looks fairer. In Laravel we use model, view and
controller to write cod. In view file we write simple html for the user’s display, in controller we
write most of the business logic and model file is used to access the actual database model.
Laravel is easy to use and also secure. It has the following advantages.
13
CHAPTER- 3
14
this step is to define the requirement in details. Also the participant should clearly
understand their tasks and implement each requirement.
2. Designing: In this step the software developer actually design a simple architecture for
the proposed system. The team classification, tasks scheduling, choice of technology and
any limitations that may exist are all defined here.
3. Implementation: The programmers begin coding while remembering and keeping in
front all the previously defined requirements. Here the actual increment is built according
to customers collected requirements.
4. Review: In this step source code is examined, which is intend to find and fix the errors
occurred during the development of the system. It also enhances the quality of overall
system.
5. Testing: In this step the developed product is compared with the requirements through
testing. Code is also inspected here that is if the system fails it will be passed back to the
programmer to fix it again. The process of testing continues until the system workflow is
constant.
Analysis
Requirement +Increment
Design
Implementation
Release +Increment
Testing
Iterate Abort/Finish
15
3.2 Flow Chart
A flow chart is a diagram which represents the process or workflow of a specific
application.
The flowcharts consist of various kinds of boxes, and these boxes are connected through arrows
in a specific order, simply the flow chart show the solution model for a specific problem. Every
kind of flow chart focuses on control.
16
Guests
Room checking
Is available
Yes No
Types
DFDs provide an outer look of the system which is easy to understand by the users – the flow of
information and the actions that manipulate this information.
Data flow diagram also describes a graphical representation of proposed system that aims to
equally be available both to computer specialists and non specialists (users). Data flow diagrams
facilitate all software developers, customers and users to work together throughout the
requirement specification and its analysis. Data flow modeling uses a limited set of constructs,
and the conventions practiced are designed to be straightforward and easy to follow.
17
The data flow diagram notation uses four major symbols:
Context Diagram: context diagrams or level 0 DFDs represent a top level view
of the proposed system.
Level 1 DFDs: Level 1 DFDs represent more comprehensive vision of the system
than context diagrams, including sub-processes and data stores that structure the
overall system altogether.
Level 2 DFDs: represents a decomposed level 1 DFD process. There can be a
level 2 DFD for every process that appears inside the level 1 DFD.
18
Context Diagram for SBBU-GORS
Context diagram for SBBU-GORS case study consists of two external entities, the Admin
and the Customer. Context diagram for SBBU-GORS case study is given below.
SBBU Guest
House
Reservatio
n
Existing booking
Reserve
ENTER Booking availability
Booking
BOOKING
Inquiry
data
Query
Conform
Booking Booking
Booking availability
Customer
19
Level 2 DFD for the proposed system (SBBU-GORS)
Guests
Booking External
Guest Reservatio
conformation
n System
Booking request Guest
Booking request
Book
Booking Rooms Rooms
Rooms
Booking Current time
Entity
Entity can be anything which forms a concrete structure and for which we store data in
the database like student, people, department, and location etc.
Attributes
Attribute is the characteristics of an entity, each entity has many attributes such as student
is an entity and its attributes can be student id, student name, student roll number and student
address.
20
Relationships
Relationships are established between entities that occur in organizational data through
which the information of an entity can retrieve easily. Some or most of the common relationships
are as follows:
3.5 Key
Key is the collection of attributes that can be used to identify a special entity instance of
an entity type.
21
3.6 Entity Relationship Diagram (ERD) of SBBU-GORS
ERD for our application is consist of a number of tables. Most of the tables are
independent and serves the desired purpose, while other key dependant tables have been linked
together with the help of database keys.ERD for such tables are shows below:
22
Independent tables with their attributes:
23
Independent tables with their attributes:
24
CHAPTER-4
Tools that have been used for this project have already been discussed above in chapter-2
(Requirement). After worked with these selected tools and different language technologies our
project has already been shape out as a complete product/application.
This chapter is focusing on all those designs and development outcomes which have been carried
out on the course of its completion. Precisely this chapter discusses the data flow diagrams of the
SBBU-GORS, then different snapshots of user interfaces have been discussed and finally the
testing phase for SBBU-GORS is explained.
25
Home
Home contains SBBU-GORS name and SBBU-GORS address.
Room
Room contains information about rooms of our SBBU-GORS such as categories of
rooms, floors, rates and other important information.
About
About contains detail information about SBBU-GORS.
Gallery
Gallery section contains pictures of the SBBU-GORS main parts and branches.
Announcement
This portion contains Guesthouse announcement to users.
Contact Us
This portion contains contact numbers, City name and email address of the SBBU-
GORS.
26
4.3.3 User interface or System testing
In user interface testing the home page, menu, icons, buttons, and all other interactive
components of the proposed application are checked. In this testing method the user do not
consult with the code directly as only the interface of the system is visible to the users.
In our case we have checked and practically applied all the above testing methods for our SBBU-
GORS that which works according to the user actions. Finally we have checked the entire
SBBU-GORS which meets the user requirements. Following is the block diagram of the
mentioned testing methods:
Unit Testing
System Testing
Integration Testing
Acceptance Testing
27
CHAPTER-5
28
5.2.2 Room type page
Rooms are different which depends on the hotel, but in SBBU-GORS there are three
types of room (Secondary, Basics, and Luxury). Now it is depended on the customer to select
during his/her booking.
29
5.2.3 About page
It provides basics and important information about the place and the SBBU-GORS.
30
5.2.5 Footer page
Footer includes the logo of SBBU-GORS and all menu tabs for user to navigate easily.
31
5.3Back end
32
5.3.2 Dashboard statistic page
The back end main page includes all the reservations of guests, the administrator conform
the booking and can make changes to the front end from here.
33
5.3.4 Create room page
The following figure shows the numbers and categories of rooms to the administrator,
and the administrator can add and remove rooms from here.
34
Figure 5.3.5 Guest houses page of the SBBU-GORS
CHAPTER-6
6.1 Summary
Our basic aim was to build a web application/System that should be able to perform
online reservation.
In first chapter first the problems in existing system have been discussed. Then aims, objectives
and importance of the project have been described.
In the second chapter we described different requirements for the development of the application.
We struggled to investigate different quality requirements, user interface requirements and
environment requirements. We also identified and described different tools used for development
of this application. All the requirements being derived were mainly based upon the problems in
the existing application.
In the third Chapter we presented the analyses, design and graphical representation of the system.
Different diagrams were presented to show the system from different perspectives.
35
Chapter four included discussion and testing of the implemented system, and also describes use
case scenario.
Chapter five describes user interface including various screenshots of front end and back end of
the system.
6.2 Conclusion
During this project I learned most about the above technologies. Before this project, I had no
idea about making online web application. Although I had some knowledge of the PHP language
but now I learned a lot about PHP, MySQL, HTML, CSS and Bootstrap. I acquired professional
knowledge of using PHP for developing online web application and MySQL Server for
Database.
If I talk about the project, SBBU-GORS can reduce a lot of manual work. It has made possible
by notifying every user very easily and with no time and place restrictions.
6.3 Achievements
The customer is now able to book rooms online from anywhere and anytime. While
SBBU-GORS is in place now, customer don not need to go to Guesthouse/Hotel physically.
Customer can pay bills online.
36
6.4 Future Works
The future scope of SBBU-GORS is quite far reaching that is, it can be used to add more
branches, rooms and facilities to the online booking Guesthouse/Hotel management. In future
this database is useful to add others activities such as selection of staff members for different
posts. With rapid changes in technology our work is not limited, we want to maintain this
application for making the system reliable and usable in every modern technology, in which we
can change the system based upon the user requirements in future. For the future the platform is
extended for the optimization of the community we can change the system which will work on
new platform.
In our opinion the project will give some advantages to its users very well for many years in
future.
Technologies are changing rapidly day by day so we can add some other important things related
to Guesthouse/Hotel Such as branches, category of rooms, foods and prices that will bring
improvements and modification to the project that will go parallel with new technologies.
In this chapter we discussed about basic aim of the project development. What problems
have removed by development of this project is identified. We also discussed some of the
changes which are needed in future to this project to enhance the developed web application. A
lot of other functionalities should be investigated to add to this project but due to time limitation
it is impossible for us to add with this project.
37