Acknowledgement CHAPTER-1 Introduction CHAPTER-2 System Analysis 2.1 Definition
Acknowledgement CHAPTER-1 Introduction CHAPTER-2 System Analysis 2.1 Definition
TABLE OF CONTENTS
ACKNOWLEDGEMENT 1
2
ABSTRACT
5
CHAPTER-1 Introduction
6
CHAPTER-2 System Analysis
6
2.1 Definition
6
2.2 Description of Existing system 6
2.2.1 Drawback of Existing system 7
2.3 Proposed System 7
2.4 Feasibility Analysis 7
2.4.1 Technical Feasibility 8
8
2.4.2 Economical Feasibility
8
2.4.3 Operational Feasibility
8
2.5 System Specifications
9
2.5.1 Hardware Description
10
2.5.2 Software Description 10
CHAPTER-3 Overview of the language used 10
3.1 About PHP 11
3.2 About HTML 11
3.2.1 HTML Tags 11
1
Car Rental Services 2021
CHAPTER-10 Conclusion
CHAPTER-11 Bibliography
2
Car Rental Services 2021
CHAPTER-1
1.1 INTRODUCTION
We developed this project to book a car on rent at the fare charges. In present system all booking
work done manually and it takes very hard work to maintain the information of booking and cars. If
you want to find which vehicle is available for booking then it takes a lot of time. It only makes the
process more difficult and harder. This aim of the project is to automate the work performed in the car
rental service like generating daily bookings, records of car or cab available for booking, record of
rental charges for cars for every rout, store record of the customer.
Car rental service is a car booking software that provides a complete solution to all your day-to-day
car booking office running needs. This system helps you to keep the information of Customer online.
You can check your customer information any time by using this system. Car rental service system is
a unique and innovative product. Using this this you can also keep the information of number of
bookings in current month or in last 6 month or in last year. This helps you to track your business and
you earning in particular month or in any year. Based on this information you can take decision
regarding your business development.
3
Car Rental Services 2021
CHAPTER 2
• Whatever the customer will give the feedback to the admin it will also show to admin but it is not
available in existing system so it is not so useful for upcoming generation.
• An inquiry can be easily done by user in the system where as existing system don’t provide this facility.
very user-friendly interface. Thus, the users will feel very easy to work on it. By using this system admin
can manage their rental, payment, vehicle issues such as and insurance. The car information can be
added to the system by admin and admin will decide the money for car rent. it bases on the day. Vehicle
replacement is available if any problem that occurs in the vehicle.
The application is medium scale application and is economically feasible for us to accomplish it. This
involves cost benefits analysis. Thus, there is no problem of high cost and cost benefits analysis.
6
Car Rental Services 2021
CHAPTER 3
PHP is a server side scripting language designed for web development but also used as a general
purpose programming language. PHP is now installed on more than 244 million websites and 2.1 million
web servers. Originally created by Ramus Ledorf in 1995, the reference implementation of PHP is now
produced by the PHP group. While PHP originally stood for personal Home page, it now stands for
PHP: Hypertext Pre-processor, a recursive acronym. PHP code is interpreted by a web server with a
PHP processor module which generates the resulting web page. PHP commands can be embedded
directly into a HTML source document rather than calling an external file to process data. It has also
evolved to include a command-line interface capability and can be used in standalone incompatible with
the GNU General Public License (GPL) due to restrictions on the usage of the term PHP. PHP can be
deployed on most web servers and also as a standalone shell on almost every operating system and
platform, free of charge.
HTML stands for Hypertext Mark-up Language, was invented by Tim Burners Lee. It is a
simple text formatting language used to create hypertext documents. It is a platform independent
language unlike most other programming languages. HTML is neutral and can be used on any platform
or desktop. It is this feature of HTML that makes it popular as standard on the WWW. This versatile
language allows the creation of hypertext links, also known as hyperlinks. The language used to develop
web pages is called Hyper Text Mark-upLanguage (HTML). HTML is the language interpreted by a
browser. HTML is specified as TAGS in an HTML document (i.e. the web page).
Tags are instructions that are embedded directly into the text of the document. An HTML tag
is a signal to a browser that it should do something other than just throw text up on the screen. By
convention all HTML tags begin with an open angle bracket ().
7
Car Rental Services 2021
Every HTML program has a rigid structure. The entire web page is enclosed within
<html> </html> tags. Within these tags two distinct sections are created using the <head> <
/head> tags and the <body> </body> tags.
With JavaScript, you have the ability to create custom HTML pages depending on actions that the user
takes. JavaScript controls the browser, because JavaScript has a set of date and time features. Java script
deals with commands called event handles. An action by the user on the page triggers an event handler
in your script. JavaScript is case sensitive. Scripts can be put in either of two places on an HTML pages:
between the <head> and </head> tag or between the <body> </body> tag.
One of the main uses of JavaScript is to provide feedback to people browsing your site. An alert window
can be created that pops up and gives the user the vitally important information that they need to know
about the page. Different languages versions can be have had on different scripts on one page. One
script might be for any JavaScript version, another for JavaScript1.1 and higher, and a third for
JavaScript1.2. In the case of JavaScript, the function is a set of JavaScript statements that performs a
task. Function can be called as many times as needed.
8
Car Rental Services 2021
A database is a collection of inter related data stored with minimum redundancy to serve many users
quickly and efficiently. The general objective of database design is to make the database access easy,
inexpensive and flexible to the user. Database design is used to define and then specify the structure of
business used in the client/server system. A business object is nothing but information that is visible to
the users of the system. The database must be normalized one. Database design is one of the important
parts in developing software. It is a process of developing the conceptual model of data. It minimizes
the artificiality embedded in using separate files. It is a definition of the entire information content of
the organization and it specifies a relation between the data.
The primary objectives are fast response time to enquiries, more information at low cost, control of
redundancy, clarity and ease-of-use and program independence, accuracy and integrity of the system,
fast recovery, privacy and security of information and availability of powerful and user languages. For
designing a table, the analyst must decide the fields of the tables, types of the fields, field length, default
values etc. For this firstly the entity and relationship must be identified. Secondly, their attributes must
be specified. This method of organizing the data table is known as normalization.
The data structure can be later redefined through a normalization process that groups data in the simplest
way possible so that later changes can be made with ease. Normalization is designed to simplify
relationship and establish logical links between files without losing information. An inherit problem is
data redundancy and the inefficiency it generates. In other words, normalization implies splitting the
tables into two or more tables with fewer columns. Most designing techniques try to reach and a few
4NF, but many reach 5NF.
1NF – Each row or column must have a single value with no repeating values.
2NF – Each non-key column must depend on the primary key column.
3NF – No non-key column can depend on another non-key column.
BCNF – No attribute of a composite key depends on the attribute of another composite key.
4NF – An entity cannot have a 1:1 relation between key column and non-key column.
5NF – If and only if every non-trivial join dependency in it is implied by the candidate key.
It is also known as project join normal form.
9
Car Rental Services 2021
This project work is done in Windows 10, which is the operating system. An operating system
is a set of software tools designed to make it easy for people or programmers to make optimum use of
the computer. People can be separated into two groups, users and programmers. The user wants a
convenient set of commands to manage files of data or programs, copy and run application packages
while a programmer uses a set of tools that can be held together and debug programs. No matter where
you are working, your computer will easier to use and manage, because Microsoft Windows 10 is more
compatible and powerful than any workstation you have used.
The main features of Windows 10 are:
1. Easier to use
2. Easier to manage
3. More compatible
4. More powerful
1. Easier to use:
With Windows 10, you can have faster access to information, and you are able to accomplish
tasks more quickly and easily.
Windows 10 makes it easier to:
1. Work with files
2. Find information.
3. Personalize computing environment.
4. Work remotely
2. Easier to manage:
You and your network administrators can work more efficiently now, because many of the most
common management tasks are streamlined with Windows 10.
With Windows 10 your workstation will be easier to:
Setup
Administrate
Support
3. More compatible:
Windows 10 offers increased compatibility. With different types of network and with wide
array of hardware and software.
Windows 10 also provides:
1. Improved driver support.
2. Increased support for new generation hardware multimedia technologies.
10
Car Rental Services 2021
4. More Powerful:
For all your computing needs Windows 10 provides:
1. Industrial-strength reliability.
2. The highest level of security.
3. Powerful performance.
11
Car Rental Services 2021
CHAPTER 4
Admin module allows project administrators to manage project members, companies, and
services, as well as edit the project profile.
• 4.1.1 Dashboard: This module manages the pages inside it like, Registered users, Listed
Vehicle, Total Bookings, Listed Brands, Subscribers, Queries, Testimonials.
• 4.1.3 Vehicles: This module contains information about vehicle like brand, fuel type, price,And
model year of vehicle. It is also divided into two parts.
a. 4.1.3.1 Post a vehicle: Under this admin is able to post or add a new vehicle of
brands which he has created under brand module.
b. 4.1.3.2 Manage Vehicles: In this admin can manage all the vehicle that which
is available or he can remove the vehicle if it is not available.
• 4.1.4 Bookings: In this sub module admin can manage new bookings, that he has to confirm it
or cancel it on the basis of vehicle availability.This module is divided into three parts.
a. New: Here admin can see new bookings done by the user.
b. Confirmed: This page will show all the booking confirmed by admin.
c. Cancelled: This page will show all the bookings which has been cancelled.
• 4.1.5 Manage Testimonials: This module shows the feedback given by the users those who
Used our car rental service.
• 4.1.6 Contact us Queries: In this module admin can see the questions asked by the user who
are trying to contact and give the answers.
• 4.1.7 Registered Users: Here this module will show the all-registered user and new users.
• 4.1.8 Manage pages: This module used to manage pages which are: Terms and conditions,
Privacy policy, About us, FAQs.
• 4.1.9 Update Contact info: In this module admin can update his contact info anytime.
12
Car Rental Services 2021
• 4.1.10 Manage Subscribers: This is the last module of the admin panel where admin manages
the subscribers.
USER:
User module allows user to register himself with all the required details like first name, last name, email
id, phone no and so on. After that user can login and take benefits of CAR RENTAL SERVICES.
• User Registration: This module consists of Signup form through which user have to register
himself with all required details like: profile photo, full name, mobile no., email id, DOB,
address, city, country, dl-no, and password. After all this process user have to login himself to
the site to take the benefits of CAR RENTAL SERVICE.
• Vehicle Catalogue: This Sub module consists of all listed vehicle brands where user can Select
the vehicle of its own choice or in his budget with the type of specifications like fuel type,
model, and number of seats in it.
• Bookings: This booking module under user is different from admins booking modul Because
in this module only a particular user can see the bookings which are done by him.
13
Car Rental Services 2021
CHAPTER 5
SYSTEM DESIGN
5.1 Input Design:
The input is the set of values that is provided by the user to the system. The input design must enable
the user to provide the error free input to the system for efficient processing. The input design is the
process of converting the user-oriented inputs into computer based formats. The data fed into the system
using simple interactive forms. The forms have been supplied with messages so that user can enter data
without facing any difficulty. The data is validated wherever it requires in the project. The input data
have to be validated, edited, organized, and accepted by the system before being proposed to produce
the outputs.
EXTERNAL
They are the primary inputs to the system. The external input is what the user supplies to the system.
The user can give different types of external inputs in this project such as add new threads, post reply,
etc.
INTERNAL
When the external inputs are obtained from the user, these inputs are transferred to the system as
messages. These messages are captured and handled as input for further processing. In this project the
input design is done with PHP codes. The external inputs are data given to the system by the user such
as username and password for authentication process. The external input also includes the request as
per the users interest for displaying today’s, yesterdays and last week’s threads/posts and its replies.
The internal input covers the fetching of data from the database and it will be the input for displaying
the results of the screen.
14
Car Rental Services 2021
The necessary internal inputs are given to the system by Graphical User Interface (GUI) technology.
The GUI system applied to this project enables the user to avoid error and conclusion arises while
entering the input.
A quality output is one, which meets the requirements of the end user and presents the information
clearly. In any systems results of the processing are communicated to the user and to the other systems
through outputs design it is determined how the information is to be displayed for immediate need. It is
the most important and direct source information to the user. Efficient and intelligent output design
improves the systems relationship with the user and helps in decision making. The objective of the
output design is to convey the information of all the past activities, current status and to emphasize
important events.
The output generally refers to the results and information that is generated from the system. Outputs
from computers are required primarily to communicate the results of processing to the users. The result
for each query option that is submitted by the user, the system displays the output. The output that is
obtained for each query submitted should be tested before conforming the result.
15
Car Rental Services 2021
Sequence Diagram of the project which is a type of interaction diagram because it describes how—and
in what order—a group of objects works together. A sequence diagram specifically focuses on lifelines,
or the processes and objects that live simultaneously, and the messages exchanged between them to
perform a function before the lifeline ends.
16
Car Rental Services 2021
Sequence Diagram
A Data Flow Diagram (DFD) is a diagram that describes the flow of data and the processes that change
data throughout a system. It’s a structured analysis and design tool that can be used for flowcharting in
place of or in association with information. Oriented and process oriented system flowcharts. When
analysts prepare the Data Flow Diagram, they specify the user needs at a level of detail that virtually
determines the information flow into and out of the system and the required data resources. This network
is constructed by using a set of symbols that do not imply physical implementations. The Data Flow
Diagram reviews the current physical system, prepares input and output specification, specifies the
implementation plan etc.
17
Car Rental Services 2021
Throughout the project, the context flow diagrams, data flow diagrams and flow charts have been
extensively used to achieve the successful design of the system. In our opinion, “efficient design of the
data flow and context flow diagrams helps to design the system successfully without much major flaws
within the scheduled time”. This is the most complicated part in a project. In the designing process, our
project took more than the activities in the software life cycle. If we design a system efficiently with all
the future enhancements, the project will never become junk and it will be operational.
Four basic symbols are used to construct data flow diagrams. They are symbols that represent data
source, data flows, and data transformations and data storage. The points at which data are transformed
are represented by enclosed figures, usually circles, which are called nodes.
1. Circle represents a process that transforms incoming data flows in to outgoing data flows.
4. An open rectangle defines a data store, data at rest or temporary repository of data.
18
Car Rental Services 2021
A database is a collection of interrelated data stored with minimum redundancy to serve many users
quickly and efficiently. The general objective is to make information access easy, quick, inexpensive
and flexible for the users. The general theme behind a database is to integrate all the information. In
database design several specific objectives are considered: -
1. Controlled redundancy.
2. Ease of learning and use.
19
Car Rental Services 2021
3. Data independence.
4. Accuracy and integrity.
5. Recovery from failure.
6. Performance.
A database is an integrated collection of data which provides centralized access to the data. Usually the
centralized data managing the software is called RDBMS and the other DBMS is the separation of data
as seen by the program and data has stored in direct access to stores device. This is the difference
between logical and physical data
Design Consideration:
The system is analysed to the requirements and possible tables and fields are identified.
1. Identifying keys: Once we have drawn up the list of possible tables and fields, the next step in
the logic database is to identify and set foreign keys for each table.
2. Primary keys: A primary key consist of a field or a set of fields that uniquely identify each
record in that table. The “primary “field defines the primary key.
3. Foreign key: A foreign key comprises a field or multiple fields that links to the primary key of
another table.
Database is recognized as standard of MIS and is available virtually for every computer system. The
general theme behind a database is to integrate all the information. A database is an integrated collection
of data and provides centralized access to the data. Databases are designed to manage large bodies of
information. One of the major purposes of a database system is to provide users with an abstract view
of data. A database is designed so that it can be used both to specify the overall logical structure of the
database and provide a higher level description of the implementation. The database is structured in
fixed format records of several types. Each record type defines a fixed number of fields or attributes
and each field usually of a fixed length.
20
Car Rental Services 2021
5.7 Tables:
Admin
Table booking
message varchar(255) Yes It will store the massage given by the user.
21
Car Rental Services 2021
Table brands
22
Car Rental Services 2021
Table pages
Table payment
Table subscribers
23
Car Rental Services 2021
Table testimonial
Table users
24
Car Rental Services 2021
Table vehicles
PowerDoorLocks int(11) Yes It will store the vehicle power door locks status.
PowerSteering int(11) Yes It will store the vehicle power steering status.
DriverAirbag int(11) Yes It will store the vehicle driver air bag status.
PassengerAirbag int(11) Yes It will store the vehicle passenger air bag status.
PowerWindows int(11) Yes It will store the vehicle power windows status.
25
Car Rental Services 2021
CrashSensor int(11) Yes It will store the vehicle crash sensor status.
LeatherSeats int(11) Yes It will store the vehicle leather seats status.
26
Car Rental Services 2021
CHAPTER-6
CODING
6.1 Coding:
Coding is the phase of a software development project where developer’s actually in put the source code
into a computer that will be compiled into the final software program. Source code is the high level
language like C#, java, python etc. that is typed into an IDE (Interactive Development Environment)
and stored in the text file on the computer. This text file is compiled into machine code, which are the
instructions actually understood by the computer.
It is verified whether the data entered in each form is added to the corresponding fields of the table. On
the press of ADD button, controls will appear on the form and on the press of SAVE button, the entered
data is saved.
The lower keys letters entered are detected and changed to upper case. Also numbers are not allowed to
be entered in the text boxes.
▪ Validation is the status of the project when the theoretical designs turned into a working system.
▪ It is used to reduce the number of loops in the program.
▪ Optimization is the last part of the system development life cycle.
▪ If the number of loops increases no. of executions also increases. Then there may be a chance
for the program to get stuck.
<?php
session_start();
include('includes/config.php');
error_reporting(0);
27
Car Rental Services 2021
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<!--Bootstrap -->
</head>
<body onload="myFunction()">
<div id="loading"></div>
<?php include('includes/colorswitcher.php');?>
<!--Header-->
<?php include('includes/header.php');?>
<section class="showcase">
<div class="video-container">
</div>
<div class="container">
<div class="div_zindex">
29
Car Rental Services 2021
<div class="row">
<div class="banner_content">
<p>We have more than a thousand cars for you to choose. </p>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
<div class="container">
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered
alteration in some form, by injected humour, or randomised words which don't look even slightly
believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything
embarrassing hidden in the middle of text.</p>
</div>
<div class="row">
30
Car Rental Services 2021
<div class="recent-tab">
</ul>
</div>
<div class="tab-content">
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
foreach($results as $result)
?>
<div class="col-list-3">
<div class="recent-car-list">
31
Car Rental Services 2021
<ul>
</ul>
</div>
<div class="car-title-m">
</div>
<div class="inventory_info_m">
</div>
</div>
</div>
<?php }}?>
</div>
</div>
</div>
</section>
32
Car Rental Services 2021
<section class="fun-facts-section">
<div class="row">
<div class="fun-facts-m">
<div class="cell">
<p>Years In Business</p>
</div>
</div>
</div>
<div class="fun-facts-m">
<div class="cell">
</div>
</div>
</div>
<div class="fun-facts-m">
<div class="cell">
<p>Branches</p>
</div>
33
Car Rental Services 2021
</div>
</div>
<div class="fun-facts-m">
<div class="cell">
<p>Satisfied Customers</p>
</div>
</div>
</div>
</div>
</div>
<div class="dark-overlay"></div>
</section>
<!--Testimonial -->
</div>
<div class="row">
<div id="testimonial-slider">
<?php
$tid=1;
34
Car Rental Services 2021
$query->bindParam(':tid',$tid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
foreach($results as $result)
{ ?>
<div class="testimonial-m">
<div class="testimonial-content">
<div class="testimonial-heading">
</div>
</div>
</div>
<?php }} ?>
</div>
35
Car Rental Services 2021
</div>
</div>
<div class="dark-overlay"></div>
</section>
<!-- /Testimonial-->
<!--Footer -->
<?php include('includes/footer.php');?>
<!-- /Footer-->
<!--Back to top-->
<!--/Back to top-->
<!--Login-Form -->
<?php include('includes/login.php');?>
<!--/Login-Form -->
<!--Register-Form -->
<?php include('includes/registration.php');?>
<!--/Register-Form -->
<!--Forgot-password-Form -->
<?php include('includes/forgotpassword.php');?>
<!--/Forgot-password-Form -->
<script src="assets/js/jquery.min.js"></script>
36
Car Rental Services 2021
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/interface.js"></script>
<!--Switcher-->
<script src="assets/switcher/js/switcher.js"></script>
<!--bootstrap-slider-JS-->
<script src="assets/js/bootstrap-slider.min.js"></script>
<!--Slider-JS-->
<script src="assets/js/slick.min.js"></script>
<script src="assets/js/owl.carousel.min.js"></script>
<script>
$(document).ready(function(){
$('div#loading').removeAttr('id');
});
window.addEventListener('load', function(){
preloader.style.display = 'none';
})
function myFunction(){
preloader.style.display = 'none';
};
</script>
</body>
</html>
37
Car Rental Services 2021
Login.php
<?php
if(isset($_POST['login']))
$email=$_POST['email'];
$password=md5($_POST['password']);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
$_SESSION['login']=$_POST['email'];
$_SESSION['fname']=$results->FullName;
$currentpage=$_SERVER['REQUEST_URI'];
} else{
38
Car Rental Services 2021
?>
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title">Login</h3>
</div>
<div class="modal-body">
<div class="row">
<div class="login_wrap">
<form method="post">
<div class="form-group">
</div>
<div class="form-group">
</div>
</div>
<div class="form-group">
39
Car Rental Services 2021
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
registration.php
<?php
//error_reporting(0);
if(isset($_POST['signup']))
$vimage1=$_FILES["img1"]["name"];
$fname=$_POST['fullname'];
$email=$_POST['emailid'];
$mobile=$_POST['mobileno'];
40
Car Rental Services 2021
$dob=$_POST['dob'];
$adress=$_POST['adress'];
$city=$_POST['city'];
$country=$_POST['country'];
$dlno=$_POST['dlno'];
$password=md5($_POST['password']);
move_uploaded_file($_FILES["img1"]["tmp_name"],"uploads/".$_FILES["img1"]["name"]);
$query = $dbh->prepare($sql);
$query->bindParam(':fname',$fname,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':mobile',$mobile,PDO::PARAM_STR);
$query->bindParam(':password',$password,PDO::PARAM_STR);
$query->bindParam(':dob',$dob,PDO::PARAM_STR);
$query->bindParam(':adress',$adress,PDO::PARAM_STR);
$query->bindParam(':city',$city,PDO::PARAM_STR);
$query->bindParam(':country',$country,PDO::PARAM_STR);
$query->bindParam(':dlno',$dlno,PDO::PARAM_STR);
$query->bindParam(':vimage1',$vimage1,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
41
Car Rental Services 2021
if($lastInsertId)
else
?>
<script>
function checkAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'emailid='+$("#emailid").val(),
type: "POST",
success:function(data){
$("#user-availability-status").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
</script>
<script type="text/javascript">
42
Car Rental Services 2021
function PreviewImage() {
oFReader.readAsDataURL(document.getElementById("img1").files[0]);
document.getElementById("uploadPreview").src = oFREvent.target.result;
};
};
</script>
<div class="modal-content">
<div class="modal-header">
</div>
<div class="modal-body">
<div class="row">
<center>
text-align="center" /><br>
43
Car Rental Services 2021
</center>
<div class="signup_wrap">
<div class="form-group">
</div>
<div class="form-group">
<span>Full Name*</span>
</div>
<div class="form-group">
<span>Mobile No*</span>
</div>
<div class="form-group">
<span>Email-id*</span>
44
Car Rental Services 2021
</div>
<div class="form-group">
<span>Date-Of-Birth*</span>
</div>
<div class="form-group">
<span>Address*</span>
</div>
<div class="form-group">
<span>City*</span>
</div>
<div class="form-group">
<span>Country*</span>
</div>
<div class="form-group">
<span>DL-NO*</span>
45
Car Rental Services 2021
</div>
<div class="form-group">
<span>Password*</span>
</div>
</div>
<div class="form-group">
</div>
</form>
</div>
</div>
</div>
</div>
46
Car Rental Services 2021
</div>
</div>
</div>
</div>
check_availability.php
<?php
require_once("includes/config.php");
if(!empty($_POST["emailid"])) {
$email= $_POST["emailid"];
if (filter_var($email, FILTER_VALIDATE_EMAIL)===false) {
else {
$query-> execute();
$cnt=1;
47
Car Rental Services 2021
echo "<script>$('#submit').prop('disabled',true);</script>";
} else{
echo "<script>$('#submit').prop('disabled',false);</script>";
if(!empty($_POST["TxtFrom"])) {
$query1->bindParam(':vhid',$vhid, PDO::PARAM_STR);
$query1->bindParam(':fromdate',$fromdate,PDO::PARAM_STR);
$query1->bindParam(':todate',$todate,PDO::PARAM_STR);
$query1->bindParam(':BookingNumber',$BookingNumber,PDO::PARAM_STR);
$query1->execute();
$results1=$query1->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query1->rowCount()>0)
48
Car Rental Services 2021
echo "<script>$('#submit').prop('disabled',true);</script>";
else{
echo "<script>$('#submit').prop('disabled',false);</script>";
?>
payment.php
<?php
include('includes/config.php');
//error_reporting(0);
if(isset($_POST['signup']))
$cnno=$_POST['cn'];
$exp=$_POST['expdate'];
$cv=$_POST['cvvno'];
$name=($_POST['cname']);
$query->bindParam(':cnno',$cnno,PDO::PARAM_STR);
49
Car Rental Services 2021
$query->bindParam(':exp',$exp,PDO::PARAM_STR);
$query->bindParam(':cv',$cv,PDO::PARAM_STR);
$query->bindParam(':name',$name,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
else
?>
<header>
</div>
</header>
<!DOCTYPE html>
<html>
<head>
50
Car Rental Services 2021
</head>
<body>
</div>
</div>
</div>
<label>CARD NUMBER</label>
<input pattern="\d*" maxlength="16" class = "form-control" name = "cn" placeholder = "Valid Card
Number" required = "required">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<label>CVV </label>
<input pattern="\d*" maxlength="3" class = "form-control" name = "cvvno" placeholder = "CVV "
required="required" />
52
Car Rental Services 2021
</div>
</div>
</div>
<label>Name On Card</label>
<input type = "text" id="cname" class = "form-control" name = "cname" placeholder = "Card Owner
Names" required="required" />
</div>
</div>
</div>
</div>
<div class="form-group">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
53
Car Rental Services 2021
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="stylesheet"
href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script>
$(function(){
$("#TxtFrom").datepicker({
numberOfMonths:1,
minDate:0,
// maxDate:2 ,
dateFormat:'yy-mm-dd',
onSelect:function(selectdate){
dt.setDate(dt.getDate()+1)
$("#TxtTo").datepicker("option","minDate",dt);
});
$("#TxtTo").datepicker({
numberOfMonths:1,
minDate:1,
dateFormat:'yy-mm-dd',
onSelect:function(selectdate){
dt.setDate(dt.getDate()-1)
$("#TxtFrom").datepicker("option","maxDate",dt);
54
Car Rental Services 2021
});
});
</script>
<style>
.cc-img {
margin: 0 auto;
</style>
</body>
</html>
55
Car Rental Services 2021
CHAPTER 7
TESTING
7.1 Test Plans:
Software Testing is the process of executing software in a controlled manner, in order to answer the
question -Does the software behave as specified? Software testing is often used in association with the
terms verification and validation. Validation is the checking or testing of items, includes software, for
conformance and consistency with an associated specification. Software testing is just one kind of
verification, which also uses techniques such as reviews, analysis, inspections, and walkthroughs.
Validation is the process of checking that what has been specified is what the user actually wanted.
Software testing should not be confused with debugging. Debugging is the process of analysing and
localizing bugs when software does not behave as expected. Although the identification of some bugs
will be obvious from playing with the software, a methodical approach to software testing is a much
more thorough means for identifying bugs.
Other activities which are often associated with software testing are static analysis and dynamic
analysis. Static analysis investigates the source code of software, looking for problems and gathering
metrics without actually executing the code. Dynamic analysis looks at the behaviour of software while
it is executing, to provide information such as execution traces, timing profiles, and test coverage
information.
Black box testing, also called behavioural testing, focuses on the functional requirements of software.
This testing approach enables the software engineer to derive the input conditions that will fully exercise
all requirements for a program. Black box testing attempts to find the errors like:
1. Incorrect or missing functions.
56
Car Rental Services 2021
2. Interface errors.
3. Errors in data structures or external database access.
4. Behaviour or performance errors.
5. Initialization and termination errors.
In Black box testing software is exercised over a full range of inputs and outputs are observed for
correctness.
In the unit test case will be testing the separate modules of the software. We will carry out black box
testing where each module or component of software is tested individually. We will test the component
by passing data through it and we will be monitoring data to find the errors. We will make sure that the
component work without any troubles. The test primarily is carried out by the programmer who
designed and implemented the module. Lead tester is carried out by the programmers who test the
modules to finalize the testing.
In the Integration testing we will combine the different tested modules and we will test the bundle of
module. This is to ensure that the entire modules are working correctly in conjunction with the other
modules. Data can be lost across any interface; one module can have adverse effect on another. Sub
function when combined, may not produce the desired major function. Integration testing is a systematic
testing for conducting test to uncover errors associated within the interface. The objective is to take unit
tested modules and build a program structure. All the modules are combined and tested as a whole. Here
correction is difficult because vast expense of the entire program complicates the isolation of causes.
57
Car Rental Services 2021
System validation checks for equality of the software in both simulated and live environments. First,
the software goes through a phase, in which errors and failures based on simulated user requirements
are verified and studies. This is called alpha testing.
58
Car Rental Services 2021
CHAPTER 8
SNAP SHOTS
1.1 Front end
Login page
Home page
59
Car Rental Services 2021
1.2 Backend
Manage Vehicles
60
Car Rental Services 2021
Add Brand
61