Parul Jeet
Parul Jeet
Parul Jeet
A PROJECT REPORT
ON
(Session: 2022-2024)
I Paruljeet, hereby declare that the work presented in the Project Report titled ―Online
ambulance Booking System‖ and submitted to Department of Computer Science &
Applications , MKM COLLEGE OF MANAGEMENT & INFORMATION
TECNOLOGY affiliated to M.D University , Rohtak for the partial fulfillment for the
award of degree of Master of Computer Application is an authentic record of my work
carried out during the fourth semester (May- June,2023) under the guidance of Ms.
BhanuTomar, Assistant Professor, Department of Computer & Applications ,
MKMCOLLEGEOF MANAGEMENT & INFORMATION TECNOLOGY.
Further, I also undertake that the matter embodied in this Project Report is my own work
and has not been submitted by me or by my other candidate for the award of any degree
anywhere else.
Name :ParulJeet
Reg.No : 1811420403
Name…………………………
Designation……………………….
ACKNOWLEDGEMENT
It is a great opportunity to express my sincere thanks to all people who have contribute to
the successful completion of my project work through their support, encouragement and
guidance.
I would like to thanks my friends and follow trainees for their support and cooperation of
my project. Other project team members have also been really supportive in every way
possible the assigned during the period of training.
ParulJeet
MCA-4th Semester
PREFACE
This project was written by ParulJeet with Guidance of Ms.BhanuTomar. The report is
the result of our 4th Semester study in Information Technology at MKM College of
Management and Information Technology(MDU). It focuses on developing a Hotel
Management System for provide better hotel services to the customer.
We would like to thank our supervisor Ms.AnamikaAggrawal for her support during the
preparation of this project.
ABSTRACT
The objective of the project is to design Online ambulance booking application which
enables the manager to keep the record of the hotel and the customers.
The project has been designed in php technology and consists of a SQL server which acts
as the database for the project.
My motivation for the project came from my enthusiasm and strong urge to learn php
which is one of the fastest growing technologies in today‘s world.
The Hotel Management System project mainly consists of two types of users. The
customers who access the information provided by the website and the administrator who
modifies and updates the information.
All the data needed for the application is stored in the form of tables in the SQL server
2022.
The report contains the details of all the tasks carried out during the entire software
development life cycle of the Ambulace booking Project. This document depicts all the
details of the project.
INDEX
INTRODUCTION ................................................................... 9
1.1Purpose ................................................................................11
1.2Scope…......................................................................... 13
1.3Objective ............................................................................ 14
ANALYSIS… ............................................................................ 17
Software requirement specification .......................... 17
Hardware requirement specification ......................... 17
Function Details ........................................................ 18
Function Requirements ............................................. 20
DESIGN APPROACH… .......................................................... 23
Data Flow symbol ..................................................... 28
UML Activity Diagram .............................................. 35
Class Diagram ........................................................... 42
4.SYSTEM STUDY AND TECHNOLOGY ......................... 46
Benefits of online… ................................................ 47
Software Requirements ............................................. 47
Technology Used........................................................ 47
Feasibility report ....................................................... 63
REQUIREMENTS… ................................................................ 66
Functional Requirements ...................................................... 67
Non-functional requirements ................................................ 68
5.3 User requirements................................................................. 69
Other non-functional requirements ....................................... 70
IMPLEMENTATION .............................................................. 73
Code… ................................................................................. 74
7TESTING................................................................................... 94
Testing Methodologies ......................................................... 95
INTRODUCTION
1.INTRODUCTION
For Business people they don‘t have sufficient time for these then they can use these
types of Online Ambulance Booking Systems. By this project we will reduce the faults in
bills of their expenditure and decrease time of delay to give the bills to the customers. We
can also save the bills of the customer. By this project we can also include all the taxes on
the bills according to their expenditures. It has a scope to reduce the errors in making the
bills. Computerized bill can be printed within fraction of seconds. Online ordering of
Booking is possible by using this software. This Project is based on php. If anyone wants
to book the room for few days then they can specify the specific number by seeing the
types of rooms we have. The bill of this online booking is based on the type of room they
can select is displayed.
Administrator Panel
Account Manager -The account manager use account manager to ensure that customer
feels that their needs are beings meet.
• The most important advantage of online Ambulance booking is convenience, you can
book your room by simply sitting in home. Internet helps you to browse through the
hotels around the world and compare the facilities and rates easily.
• Save time on admin tasks: - The right Ambulance Booking software will vastly cut
down the time you spend on manual administrative tasks. The software does the majority
of the work and lets you divert your time to more important tasks, such as serving your
guests.
More than any other software you use, a ambulance booking system will touch every
department at your property. Front of house, revenue management, housekeeping… If
you pick the right solution, you can make significant time savings across almost every
area of your business, also boosting your staff‘s productivity and satisfaction.
• Develop strong relationships with your guests: - A more streamlined checkin and
check-out experience will boost your guest happiness. And that‘s only the tip of the
iceberg – anything from improved communication and additional services will also
heighten guest loyalty. Choosing the best property management software will likely mean
an increased level of retention in both guests and staff.
• Increase your online visibility: -The right software is an important factor in developing
your online presence. You can integrate guest-facing software like Online Ambulance
booking, chat bots and a guest portal with your website design, enabling you to instantly
accept online reservations and make guests feel confident in their choice to book directly
with you.
• Implement an effective revenue management system: -Most Ambulance management
systems include pricing tools and other features to optimize revenue. Gone are the days
of having just a peak season price and a low season price – if you‘re not setting prices in
a more sophisticated manner, you‘re losing out on bookings and not making the most of
the guests that do book. You should be able to create and customize product rates, rate
dependencies, and special offers and rules such as package rates.
1.3 Objective
It seeks to improve efficiency and operational process performance, strategies are
established so that a hotel can be differentiated from what its competitors offer, better
ways are sought to improve user experience and customer satisfaction, etc. It also covers
all aspects concerning workers (such as hiring, firing, paying salaries, performance
improvement), as well as a whole succession of processes relating to operational cost
savings.
To carry out all these processes, comprehensive global and individual strategic planning
must be undertaken. For example, demand analysis will be studied based on supply. The
idea behind this analysis is to be able to offer customers the kind of product they need,
thus avoiding stock shortages, but at the same time that stock may be spoilt because too
large an order has been placed.
CHAPTER-2
ANALYSIS
Requirement analysis for web applications encompasses three major tasks: formulation,
requirements gathering and analysis modelling. During formulation, the basic motivation
and goals for the web application are identified, and the categories of users are defined.
In the requirements gathering phase, the content and functional requirements are listed
and interaction scenarios written from end-user‘s point-off view are developed. This
intent is to establish a basic understanding of why the web application is built, who will
use it, and what problems it will solve for its users.
The minimum software requirement specifications for developing this project are as
follows:
Database : My SQL
The collection of internal electronic circuits and external physical devices used in
building a computer is called the Hardware.
The minimum hardware requirement specifications for developing this project are as
follows:
Processor : Standard processor with a speed of 1.6
GHz
RAM : 256 MB RAM or more
Hard Disk : 20 GB or more
• Function Details
• Password In this module, this website is for multiple users. If a User enters a password
and the software checks its validity. If the password is valid then option is given to
change the password, otherwise ―Invalid User/ Password‖ message is displayed. There is
an option for password recovery, log out, login, new users sign in. The Administrator can
also update changes in the site after login.
3. Function NEW_ROOM () This is the function used to open a new room for a
customer so that he/she can assign a separate room. In that screen, the automatic room
number is created. After opening a new room for the customer, finally a room is assigned
to a customer and the room records are appended in the data file.
• Online Bookings
• Checkout Details • Membership Details
• Packages Available.
Module Description
Booking
Payment
• The administrator should login into the system with unique his/her password and
username.
• If the username and password is validated then he can gain access to the system.
• View the hotels can update and delete the hotels.
• Post the special offers, add new hotel to the hotels list.
• Post the links. Adding the links to the hotels and as well view the links.
• Restrict the user to the see the more information with out login.
• Login
• Change Password
• Admin Functionalities
• View Ambulance
• Add Ambulances
• Post Special Offers
• Logout
User Module:
The User should login into the system with unique his/her password and username.
If the username and password is validated then he can gain access to the system.
The User can change his password, to change the password, it should ask for the old
password, new password and confirm new password View the Categories.
The User can do the following actions:
• Register
• Login
• Change Password
• User Functionalities
CHAPTER-3
DESIGN APPROACH
The main focus of the analysis phase of Software development is on ―What needs to be
done‖. The objects discovered during the analysis can serve as the framework or Design.
The class‘s attributes, methods and association identified during analysis must be
designed for implementation language. New classes must be introduced to store
intermediate results during the program execution.
Emphasis shifts from the application domain o implementation and computer such as user
interfaces or view layer and access layer. During analysis, we look at the physical entities
or business objects in the system, that is, which players and how they cooperate to do the
work of the application. These objects represent tangible elements of the business.
During the Design phase, we elevate the model into logical entities, some of which might
relate more to the computer domain as people or employees. Here his goal is to design
the classes that we need to implement the system the difference is that, at this level we
focus on the view and access classes, such as how to maintain information or the best
way o interact with a user or present information.
Design process:
During the design phase the classes identified in object-oriented analysis Must be
revisited with a shift focus to their implementation. New classes or attribute and Methods
must be an added for implementation purposes and user interfaces. The objectoriented
design process consists of the following activities:
1. Apply design axioms to design classes, their attributes, methods, associations, structure
and protocols Refine and complete the static UML class diagram by adding details to the
UML diagram. This step consists of following activities. *Refine attributes *Design
methods and protocols by utilizing a UML activity diagram to represent the method‘s
algorithms.
• Refine associations between classes
PROCESS SYMBOL:
A process receives input data and produces output that has a different content, form, or
both. It contains business logic also called Business rules that transform the data and
produce the required results. Process name is the function name and consists of a verb
followed by a singular noun.
A data flow symbol is a path for data to move from one part of the information system to
another. A data flow in a DFD represents one or more data items. A data flow name
consists of a singular noun and an adjective, if needed. A data flow must have a process at
its either end.
EXTERNAL ENTITY:
Zero Level DFD: In the Context Level the whole system is shown as a single process.
No data stores are shown. Inputs tothe overall system are shown together with data
sources (as External entities). Outputs from the overall system are shown together with
their destinations (as External entities).
Top Level DFD: The Top Level DFD gives the overview of the whole system identifying
the major system processes and data flow. This level focuses on the single process that is
drawn in the context diagram by ‗Zooming in‘ on its contents and illustrates what it does
in more detail.
Detailed Level DFD: In Detailed D.F.Ds the main process is divided into sub processes
and we try to find out the flow from one process to another process. We find the
interaction among External entities, processes, sub processes and database.
3.1.2. Use Case Documentation:
Contents
Use cases
Actors
Dependency, generalization and association relationships
3.2.1Activity Diagrams:
An activity diagram shows the flow from activity to activity. An activity is an ongoing
non-atomic execution within a state machine.
Transitions Objects
Like all other diagrams, activity diagrams may contain notes and constrains.
Registration Process
Login process:
3.2.2SEQUENCE DIAGRAMS:
UML sequence diagrams model the flow of logic within your system in a visual manner,
enabling you both to document and validate your logic, and are commonly used for both
analysis and design purposes. Sequence diagrams are the most popular UML artefacts for
dynamic modelling, which focuses on identifying the behaviour within your system.
Sequence Diagram
An interaction diagram shows an interaction, consisting of a set of objects and their
relationships, including the messages that may be dispatched among them.
A sequence diagram is an interaction diagram that emphasizes the time ordering of
messages.
Graphically, a sequence diagram is a table that shows objects arranged along x-axis and
messages, ordered in increasing time, along the y-axis.
Contents
Objects
Links
Messages
Like all other diagrams, sequence diagrams may contain notes and constrains.
Administrator Sequence
Registration Sequence
3.3CLASS DIAGRAMS:
A class diagram describes the static structure of the symbols in your new system. It is a
graphic presentation of the static view that shows a collection of declarative (static)
model elements, such as classes, types, and their contents and relationships. Classes are
arranged in hierarchies sharing common structure and behaviour, and are associated with
other classes 3.3.1 Class Diagrams
3.3.2 ER DIAGRAM
Entity – Relationship Diagram: This depicts relationship between data objects. The
attribute of each data objects noted in the entity- relationship diagram can be described
using a data object description. Data flow diagram serves two purposes:
• To provide an indication of how data are transformed as they move through the system.
• To depict the functions that transformation the data flow.
Entity relationship diagrams are a way to represent the structure and layout of a database.
It is used frequently to describe the database schema. ER diagrams are very useful as they
provide a good conceptual view of any database, regardless of the underlying hardware
and software. An ERD is a model that identifies the concepts or entities that exist in a
system and the relationships between those entities. An ERD is often used as a way to
visualize a relational database: each entity represents a database table, and the
relationship lines represent the keys in one table that point to specific records in related
tables.
ERDs may also be more abstract, not necessarily capturing every table needed within a
database, but serving to diagram the major concepts and relationships. This ERD is of the
latter type, intended to present an abstract, theoretical view of the major entities and
CHAPTER-4
4.1BENEFITS OF ONLINE:
• Time saving.
• Less paper works.
• Cost efficient.
• More comfortable environment.Convenience and flexibility.
4.2SOFTWARE REQURIMENTS:
• Html
• CSS
• JAVA SCRIPT
• DATABASE(MySQL)
• SERVER(APACHE)
• PROGRAMMING LANGUAGE (PHP).
TECHNOLOGY USED
4.3.1 PHP
PHP is a widely used, general-purpose scripting language that was originally designed for
web development to produce dynamic web pages. For this purpose, PHP code is
embedded into the HTML source document and interpreted by a web server with a PHP
processor module, which generates the web page document.
PHP Advantages
>.
For maximum compatibility, we recommend that you use the standard form (<?php)
rather than the shorthand form.
<?php
?>
A PHP file normally contains HTML tags, just like an HTML file, and some PHP
scripting code.
Below, we have an example of a simple PHP script which sends the text "Hello World" to
the browser:
<html>
<body>
<?php
echo"HelloWord"; ?>
</body>
</html>
Each code line in PHP must end with a semicolon. The semicolon is a separator and is
used to distinguish one set of instructions from another. There are two basic statements to
output text with PHP: echo and print. In the example above we have used the echo
statement to output the text "Hello World".
Note: The file must have a .php extension. If the file has a .html extension, the PHP code
will not be executed.
Comments in PHP
In PHP, we use // to make a single-line comment or /* and */ to make a large comment
block.
<html>
<body>
<?php
//This is a comment
/*
This is a
comment block
*/
?>
</body>
</html>
Variables in PHP
Variables are used for storing a values, like text strings, numbers or arrays. When a
variable is declared, it can be used over and over again in your script.
All variables in PHP start with a $ sign symbol. The correct way of declaring a variable in
PHP:
$var_name = value;
In PHP, a variable does not need to be declared before adding a value to it. In the example
above, you see that you do not have to tell PHP which data type the variable is.
PHP automatically converts the variable to the correct data type, depending on its
value.
In a strongly typed programming language, you have to declare (define) the type and
name of the variable before using it.
A PHP session solves this problem by allowing you to store user information on the
server for later use (i.e. username, shopping items, etc). However, session information is
temporary and will be deleted after the user has left the website. If you need a permanent
storage you may want to store the data in a database.
Sessions work by creating a unique id (UID) for each visitor and store variables based on
this UID. The UID is either stored in a cookie or is propagated in the URL.
Note: The session_start() function must appear BEFORE the <html> tag: <?
phpsession_start(); ?>
<html>
<body>
</body>
</html>
The code above will register the user's session with the server, allow you to start saving
user information, and assign a UID for that user's session.
Storing a Session Variable
The correct way to store and retrieve session variables is to use the PHP $_SESSION
variable:
<?php
session_start();
$_SESSION['views']=1;
?>
<html>
<body>
<?php
echo "Pageviews=".
$_SESSION['views']; ?>
</ b o d y>
</ h t m l>
Output:
Pageviews=1
In the example below, we create a simple page-views counter. The isset() function checks
if the "views" variable has already been set. If "views" has been set, we can increment
our counter. If "views" doesn't exist, we create a "views" variable, and set it to 1:
<?php
session_start(); if(isset($_SESSION['views']))
$_SESSION['views']=$_SESSION['views']+
1; else
$_SESSION['views']=1;
echo "Views=".
$_SESSION['views']; ?>
Destroying a Session
If you wish to delete some session data, you can use the unset() or the
session_destroy() function.
<?php unset($_SESSION['views']);
?>
You can also completely destroy the session by calling the session_destroy()
function: <?phpsession_destroy(); ?>
Note: session_destroy() will reset your session and you will lose all your stored session
data.
PHP Form Handling
The most important thing to notice when dealing with HTML forms and PHP is that any
form element in an HTML page will automatically be available to your PHP scripts.
Example
The example below contains an HTML form with two input fields and a submit button:
<html>
<body>
</form>
</body>
</html>
The PHP $_GET and $_POST variables are used to retrieve information from forms, like
user input.
When a user fills out the form above and click on the submit button, the form data is sent
to a PHP file, called "welcomephp":
<html>
<body>
Welcome <?php echo $_POST["frame"]; ?>!<br /> You are <?php echo
$_POST["age"]; ?> years old.
</ body>
</ html>
User input should be validated on the browser whenever possible (by client scripts).
Browser validation is faster and reduces the server load.
You should consider server validation if the user input will be inserted into a database. A
good way to validate a form on the server is to post the form to itself, instead of jumping
to a different page. The user will then get the error messages on the same page as the
form. This makes it easier to discover the error.
• PHP code are executed on the server, and the result is returned to the browser as plain
HTML.
1. You can program actions, conditions, calculations, network requests, concurrent tasks and
many other kinds of instructions.
You can access any elements through theDocumentObjectModelAPI(DOM)and make
them change however you want them to.
The DOM is a tree-like representation of the web page that gets loaded into the
browser.
Thanks to the DOM, we can use methods like getElementById() to access elements from
our web page.
JavaScript allows you to make your webpage “think and act”, which is what
programming is all about.
Together, we use these three languages to format, design, and program web pages. And
when you link together some web pages with hyperlinks, along with all their assets like
images, videos, and so on that are on the server computer, it gets rendered into a website.
This rendering typically happens on the front end, where the users can see what's being
displayed and interact with it.
On the other hand, data, especially sensitive information like passwords, are stored and
supplied from the back end part of the website. This is the part of a website which exists
CHAPTER-5
REQUIREMENTS
5.1FUNCTIONAL REQUIREMENTS
Functional requirements define the fundamental actions that must take place in the
software in accepting the inputs and in processing and generating the outputs. These are
listed as ―shall‖ statements starting with ―The system shall….
Login Module – This module is provided for administrator and users such as Product
buyer and seller who have registered themselves in the system. These login are provided
according to the need of the systems.
• Input – User id and password
• Process – After entering user id and password by user process of validation occur to
identify whether user id and password is available in database or not. •Output–
Registered user can access website and can use the services.
• Output – Administrator will maintain the database and will perform Product seller
process.
Search Module – In this module we are going to provide facility for Product buyer to
search for Products according to their specified categories so that users can search for
Products easily.
• Input- Initial letter of Product, with the help of keywords and with the
help of Brand name. • Output- Information about Products.
CHAPTER-6
IMPLEMENTATION
6.1 Code:
Admin.php
<div class="adminlogin">
<div class="admin-box">
<div class="admin-text">
<h1>Admin Login</h1>
<form action="" method="post">
<table><tr>
<td width="50%" height="50px">Username</td><td width="50%"
height="50px"><input type="text"
name="un" id="username" title="Enter Username"></td>
</tr><tr>
<td width="50%" height="50px">Password</td><td width="50%"
height="50px"><input type="Password"
name="ps" id="password" title="Enter Password"></td>
</Tr><tr>
<td colspan="2"><input type="submit" name="sub"
id="btn" value="Login"></td>
</tr>
</form>
<?php
if(isset($_POST['sub']))
{
$username=$_POST['un'];
$password=$_POST['ps'];
$qry="SELECT * FROM `admin` WHERE
`username`='$username' AND `password`='$password'";
$run=mysqli_query($sql,$qry); $row=mysqli_num_rows($run); if($row
<1)
{
?>
<script>alert('Username or password not match
!!'); window.open('admin.php','_self');
</script>
<?php } else{ header('location:admin/admindash.php'); }
}
?>
</div>
</div>
</div>
</body>
</html>
About.php
<div class="about-container">
<div class="about">
<div class="about1">
<imgsrc="img/dinning.jpg" alt="dinning">
</div>
<div class="about2">
<div class="h1"><h1 class="about-h1">Welcome To Our
Website</h1></div>
<p class="about-p">Room service or in-room dining is a hotel
service enabling guests to choose items of food and drink for
delivery to their hotel room for consumption. Room service is
organised as a subdivision within the food and beverage
department of high-end hotel and resort properties. It is
uncommon for room service to be offered.
hotels that are not high-end, or in motels. Room service may also be provided for
guests on cruise ships. Room service may be provided on a 24-hour basis or
limited to late night hours only. Due to the cost of customized orders and delivery
of room service, prices charged to the patron are typically much higher than in
the hotel's restaurant or tuck shop, and a gratuity is expected.</p>
<br>
<p class="about-p">Room service or in-room dining is a hotel
service enabling guests to choose items of food and drink for delivery to their
hotel room for consumption. Room service is organised as a
subdivision within the food and beverage department of high-end
hotel and resort properties. It is uncommon for room service to
be offered in hotels.</p>
</div>
</div>
<div class="about-box">
<div class="about-box-1">
<div class="box1">
<div class="box1-img">
<imgsrc="img/deluxroom.jpg" alt="delux">
</div>
<div class="box1-text">
<div class="box1-text-h1"><a
href="room.php"><h3>Rooms</h3></a></div>
<p class="box1-text-p"><ul>
<li class="box1-li">Delux AC Room</li>
<li class="box1-li"> AC Room</li>
<li class="box1-li">Non AC Room</li>
</ul>
</p>
<p class="box1-text-p" style="color:black; font-
weight:600; margin-top:6px;">
Sector-10, Faridabad, <br>Haryana,Pin-121004
<br>+91 9876543210 <br>www.restaurentms.com
</p>
</div>
</div>
<div class="box1">
<div class="box1-img">
<imgsrc="img/dinning4.jpg" alt="delux">
</div>
<div class="box1-text"><div class="box1-text-h1"><a
href="food.php"><h3>Food</h3></a></div>
<p class="box1-text-p"><ul>
<li class="box1-li">South-Indian</li>
<li class="box1-li"> Chinese</li>
<li class="box1-li">Deserts</li>
</ul>
</p>
<p class="box1-text-p" style="color:black; font-
weight:600; margin-top:6px;">
Sector-10, Faridabad, <br>Haryana,Pin-121004
<br>+91 9876543210 <br>www.restaurentms.com
</p>
</div>
</div>
<div class="box1">
<div class="box1-img">
<imgsrc="img/partyhall2.jpg" alt="delux">
</div>
<div class="box1-text"><div class="box1-text-h1"><a
href="bookinghall.php"><h3>Halls</h3></a></div>
<p class="box1-text-p"><ul>
<li class="box1-li">Party Halls</li>
<li class="box1-li"> Marriage Halls </li>
<li class="box1-li">Pools</li>
</ul>
</p>
<p class="box1-text-p" style="color:black; font-
weight:600; margin-top:6px;">
Sector-10, Faridabad, <br>Haryana,Pin-121004
<br>+91 9876543210 <br>www.restaurentms.com
</p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Booking hall.php
?>
<div class="hall-container">
<div class="hall-img">
<imgsrc="img/partyhall.jpg" alt="">
</div>
<div id="book-form">
<form action="bh.php" method="post">
<center>
<table>
<tr>
<th width="20%" height="50px">Check Hall Avaibility</th>
<td rowspan="2"><input type="submit" name="sub"
value="Check" required></td>
</tr>
<tr>
<td width="20%" height="50px"><center><input type="date"
name="hall"></center></td>
</tr>
</table>
</center>
</form>
</div>
</div>
</body>
</html>
Verification-form.php:
<div class="error"></div>
<div class="success"></div>
<form action="" id="frm-mobile-verification"><div class="form-row">
<label>OTP is sent to Your Mobile Number</label>
</div>
<div class="form-row">
<input type="number" name="" id="mobileotp" class="form-
input" placeholder="Enter The OTP">
</div>
<div class="row">
<input type="button" id="verify" class="btnVerify"
value="Verify" onClick="verifyOTP();"></div>
</form>
6.1.2Backend codeRestaurentms.sql
--
-- Database: `restaurentms`
--
--
-- Table structure for table `acroom` -
-
--
-- Table structure for table `admin` -
-
--
-- Dumping data for table `admin` -
-
--
-- Table structure for table `admin_edit`
--
--
-- Dumping data for table `admin_edit` -
-
-- Triggers `admin_edit`
delimiter $$
CREATE TRIGGER `Audit_ac` AFTER INSERT ON `admin_edit` FOR EACH
ROW BEGIN
SET roomno =
NEW.roomno,
roomtype = NEW.roomtype,
price = 900,
status = 'un book';
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `Audit_delux` AFTER INSERT ON `admin_edit` FOR
EACH ROW
BEGIN
IF ( NEW.roomtype = 'deluxAC') THEN
INSERT INTO deluxacroom
SET
oomno = NEW.roomno,
roomtype = NEW.roomtype,
price = 1100,
END IF;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `Audit_nonac` AFTER INSERT ON `admin_edit` FOR
EACH ROW BEGIN
SET roomno =
NEW.roomno,
roomtype = NEW.roomtype,
price = 700,
status = 'un book';
END IF;
END
$$
DELIMITER ;
--
-- Table structure for table `card details`
--
--
-- Dumping data for table `card details`
--
INSERT INTO `card details` (`id`, `cardno`, `cvv`) VALUES
--
-- Table structure for table `contact`
--
--
-- Dumping data for table `contact` -
-
INSERT INTO `contact` (`id`, `name`, `email`, `mobile`,
`address`,
`message`) VALUES
(3, 'neel', 'neel@gmail.com', 1223344558, 'sarasnagar', 'food is
not good'),
(4, 'jasprit', 'jasprit@gmail.com', 9889988998, 'chandannagar',
'what is the price of AC room?'),
(5, 'harsh', 'harsh@gmail.com', 1234567899, 'burudgoan', 'room
pricw');
--
-- Table structure for table `deluxacroom`
--
CREATE TABLE `deluxacroom` ( `id` int(11) NOT NULL,
`roomno` int(20) NOT NULL,
`roomtype` varchar(20) DEFAULT NULL,
`price` int(20) NOT NULL,
`status` varchar(20) NOT NULL DEFAULT 'un book'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `deluxacroom` -
-
--
-- Dumping data for table `feedback` -
-
--
-- Table structure for table `food` -
-
--
-- Table structure for table `hall` -
-
--
-- Dumping data for table `hall` -
-
--
Table structure for table `hall_details`
--
-- Table structure for table `nonac` -
-
--
-- Dumping data for table `nonac` -
-
--
-- Dumping data for table `room booking`
--
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
-- ALTER TABLE `admin`
ADD PRIMARY KEY (`admin_id`);
--
-- Indexes for table `admin_edit`
--
ALTER TABLE `admin_edit`
ADD PRIMARY KEY (`admin_id`);
--
-- Indexes for table `card details`
--
ALTER TABLE `card details`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `contact`
-- ALTER TABLE `contact`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `deluxacroom`
--
ALTER TABLE `deluxacroom`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `feedback`
ALTER TABLE `feedback`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `food`
-- ALTER TABLE `food`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `hall`
-- ALTER TABLE `hall`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `hall_details`
--
ALTER TABLE `hall_details`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `nonac`
-- ALTER TABLE `nonac`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `room booking`
--
ALTER TABLE `room booking`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `admin_id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `admin_edit`
--
ALTER TABLE `admin_edit`
MODIFY `admin_id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `card details`
--
ALTER TABLE `card details`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `contact`
--
ALTER TABLE `contact`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `deluxacroom`
--
ALTER TABLE `deluxacroom`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT for table `feedback`
--
ALTER TABLE `feedback`MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `food`
--
ALTER TABLE `food`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;
--
-- AUTO_INCREMENT for table `hall`
--
ALTER TABLE `hall`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `hall_details`
--
ALTER TABLE `hall_details`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `nonac`
--
ALTER TABLE `nonac`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `room booking`
--
ALTER TABLE `room booking`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=95; COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */
CHAPTER-7
TESTING
Testing:
• Testing is defined as the process in which defects are identified, isolated, subjected for
rectification and ensured that product is defect free in order to produce the quality
product and hence customer satisfaction.
• The process checks whether the actual software matches the expected requirements and
ensures the software is bug-free. The purpose of software testing is to identify the
errors, faults, or missing requirements in contrast to actual requirements.
• It mainly aims at measuring the specification, functionality, and performance of a
software program or application.
• Verification: It refers to the set of tasks that ensure that the software correctly
implements a specific function. It means “Are we building the product right?”.
• Validation: It refers to a different set of tasks that ensure that the software that has
been built is traceable to customer requirements. It means “Are we building the right
product?”.
requirements • Defect is nothing but deviation from the requirements •Defect is nothing
but bug.
• Testing can demonstrate the presence of bugs, but not their absence
• Debugging is the art or method of uncovering why the script /program did not execute
properly.
7.1Testing Methodologies:
• Black box Testing: is the testing process in which tester can perform testing on an
application without having any internal structural knowledge of application.
• White box Testing: is the testing process in which tester can perform testing on an
application with having internal structural knowledge.
• Gray Box Testing: is the process in which the combination of black box and white box
techniques are used.
Test Planning:
1.Test Plan is defined as a strategic document which describes the procedure how to
perform various testing on the total application in the most efficient way. 2. Objective of
testing,
3. Areas that need to be tested,
4. Areas that should not be tested,
Test Development: 1. Test case Development (check list)
2. Test Procedure preparation.
(Description of the test cases)
• Smoke Testing: is the process of initial testing in which tester looks for the availability of
all the functionality of the application in order to perform detailed testing on them. (Main
check is for available forms)
• Regression Testing: is one of the best and important testing. Regression testing is the
process in which the functionality, which is already tested before, is once again tested
whenever some new change is added in order to check whether the existing functionality
remains same.
• Static Testing: is the testing, which is performed on an application when it is not been
executed. ex: GUI, Document Testing
• Compatibility testing: it is the testing process in which usually the products are tested
on the environments with different combinations of databases
(application servers, browsers…etc) In order to check how far the product is compatible
with all these environments platform combination.
• Installation Testing: it is the process of testing in which the tester try to install or try to
deploy the module into the corresponding environment by following the guidelines
produced in the deployment document and check whether the installation is successful or
not.
• Adhoc Testing: Adhoc Testing is the process of testing in which unlike the formal testing
where in test case document is used, with out that test case document testing can be done
of an application, to cover that testing of the future which are not covered in that test case
document. Also it is intended to perform GUI testing which may involve the cosmotic
issues. 7.4TCD (Test Case Document):
• Test Scenario
• Test Procedure
• Test case
This is the sample test case document for the Acadamic details of student project:
Test scope:
Test coverage is provided for the screen ― Acadamic status entry‖ form of a student
module of university management system application
Areas of the application to be tested
Test Scenario:
• When the office personals use this screen for the marks entry, calculate the status details,
saving the information on student‘s basis and quit the form.
Test Procedure:
• The procedure for testing this screen is planned in such a way that the data entry, status
calculation functionality, saving and quitting operations are tested in terms of Gui testing,
Positive testing, Negative testing using the corresponding Gui test cases, Positive test
cases, Negative test cases respectively
7.5.1OBJECTIVES
The main objectives of the test plan for the Hotel Management System are as follows:
To identify the features of the system that will be tested.
Test: A collection of one or more test cases.
• Test Item: A software item that is an objective of testing.
• Test Plan: A document describing the scope, approach, resources and schedule of the
intended testing activities.
• Test Summary Report: A document summarizing the testing activities and results.
• Testing: The process of analyzing a software item to detect the differences between the
existing and required conditions.
1 TEST ITEMS
This section of the test plan lists all the items of the Hotel Management System project
that will be tested:
• Login
• Generate bill
• Register
7.6LEVEL OF TESTING
This section of the test plan describes the overall approach for testing the Hotel
Management System project. The approach followed for testing the Hotel Management
System ensures that the major features of the project are adequately tested. The testing
would be carried out on the Hotel Management System while logging into the system as a
Hotel manager or a super admin of the system.
a)UNIT TESTING
The Unit Testing is a test that tests each single module of the software to check for
errors.
This is mainly done to discover errors in the code of the Hotel Management System. The
main goal of the unit testing would be to isolate each part of the program and to check the
correctness of the code. In the case of the Hotel Management System, all the forms and
the C# classes will be tested. There are many benefits for this unit testing:
At the same time, unit testing has some disadvantages such as, it might not identify each
and every error in the system.
b) INTEGRATION TESTING
In Integration Testing, the individual software modules are combined and tested as a
whole unit. The integration testing generally follows unit testing where each module is
tested as a separate unit. The main purpose of the integration testing is to test the
functional and performance requirements on the major items of the project.
All the modules of the project developed individually would be combined together and
tested as a whole system in the integration testing.
c) REGRESSION TESTING
The Regression Testing is generally done whenever modifications are made to the source
code of a project. The Regression Testing can also be defined as the process of testing
changes made to the computer program and also makes sure that the older programming
still works with the new changes.
So, before any new version of a software product is released, the old test cases for the
project will be run against the software with the changes made, to make sure that the old
functionalities of the project still work.
d) ACCEPTANCE TESTING
This testing is generally performed when the project is nearing its end. This test mainly
qualifies the project and decides if it will be accepted by the users of the system. The
users or the customers of the project are responsible for the test.
e) SYSTEM TESTING
The system testing is mainly done on the whole integrated system to make sure that the
project that has been developed meets all the requirements. The test cases for the system
testing will be the combination of unit and integration tests.
7.7TEST CASES
The following are the test cases for the Hotel Management System:
• Pass criteria: A message has to be generated to the user indicating the wrong entry that
he has made in the fields.
• Correct Input: A correct input would be entering the data into the data entry fields in a
correct format.
CHAPTER-8
OUTPUT SCREEN
• Home page
Registration page
• Admin Panel
Contact us
Listed ambulance
About Us
CHAPTER-9
DATABASE(MysqL)
MySQL is the world's most popular open source database software, with over 100 million
copies of its software downloaded or distributed throughout its history. With its superior
speed, reliability, and ease of use, MySQL has become the preferred choice for Web, Web
2.0, SaaS, ISV, Telecom companies and forward-thinking corporate IT Managers because
it eliminates the major problems associated with downtime, maintenance and
administration for modern, online applications.
Many of the world's largest and fastest-growing organizations use MySQL to save time
and money powering their high-volume Web sites, critical business systems, and packaged
software — including industry leaders such as Yahoo!, Alcatel-Lucent, Google, Nokia,
YouTube, Wikipedia, and Booking.com.
MySQL is a key part of WAMP (Window, Apache, MySQL, PHP), the fast-growing open
source enterprise software stack. More and more companies are using WAMP as an
alternative to expensive proprietary software stacks because of its lower cost and freedom
from platform lock-in.
Tables are similar to a worksheets in spreadsheet applications. The rows run horizontally
and represent each record. The columns run vertically and represent a specific field. The
rows and columns intersect, forming a grid. The intersection of the rows and columns
defines each cell in the table.
The header cell of a column usually displays the name of the column. The column is
usually named to reflect the contents of each cell in that column.
The rows don’t typically have a header cell as such, but often the first column will contain
a unique identifier – such as an ID. This field is often assigned as the primary
key.Therefore, tables can reference records in other tables simply by referring to the
record’s primary key value. In this case, the tables have a relationship.
9.2Table Structure
CHAPTER-10
PROBLEM STATEMENT
The old manual system was suffering from a series of drawback. Since whole of the
system was to be maintained with hands the process of keeping, maintaining and
retrieving the information was very tedious and lengthy. The records were never used to be
a systematic order there used to be lots of difficulties in associating any particular
transaction with a particular context. If any information was to be found it was required to
go through the different registers, documents there would never exit anything like report
generation. There would always be unnecessary consumption of time while entering
records and retrieving records. Once the records were entered it was very difficult to
update these records.
• Details of the information needed for each document and report. -The required frequency
and distribution for each document.
Advantages:
• Sometimes it happens that the rooms get booked soon when one visits the place therefore
user can make advance booking using this system.
• The system is useful as it calculates an exact cost for requested number of days.
• This system is effective and saves time and cost of users. Easy registration.
Disadvantages:
• The booking process usually requires a customer identity which the system cannot detect.
•It requires a reliable internet connection.
Applications:
• This system can be applied in hotels.
CONCLUSION
REFRENCES
The following references have been used by me, during all the phases of the
project:
• http://www.tutorialspoint.com/csharp/index.htm
• http://msdn.microsoft.com/enHYPERLINK
"http://msdn.microsoft.com/enus/library/kx37x362(v=vs.80).aspx"us/
library/kx37x362(v=vs.80).aspx
• SQL Server 2012 download
-http://www.microsoft.com/enHYPERLINK"http://www.microsoft.com/eni
n/download/details.aspx?id=35575"in/download/details.aspx?id=35575
• http://www.c-sharpcorner.com/
http://en.wikibooks.org/wiki/C_Sharp_Programming