Sie sind auf Seite 1von 126

Prateek Ranjan Maurya Online Cab Portel.

1605714823

Car Rental System

1
Prateek Ranjan Maurya Online Cab Portel. 1605714823

INTRODUCTION

Firstly, Online cab Portal web-based application intended to provide automated solution and
services to customer. This site offers information to help you site safely and wisely online.
You can learn, for example, how to use online payment services, participate in an Internet
auction or resolve a complaint with an online dealer. It’s the most important aspect of our
online cab searching.

This document provides details about the entire software requirements specification for the
software online cab searching can online. This site offers information to help you search
safely and wisely online. You can learn, for example, how to use online payment services,
participate in an Internet auction or resolve a complaint with an online dealer.

Another most important fact is that many customers on the internet will expect the customer
service you offer online to match or exceed that which you offer in the real world. Through
this site not only the consumers on the internet feel empowered in a way that has not existed
offline, but they actually have been empowered. You can quickly find out if your previous
customer is satisfied with your company. You can also post your cab ad online if at any time
you are satisfied with our site.

2
Prateek Ranjan Maurya Online Cab Portel. 1605714823

OBJECTIVES

Today’s world is computer world because most of work is doing with the help of computer.
Dependency on computer is behind the few reasons. We cannot easily cab for long drive
Search or information single handle. If we will be need some information or cab in Search
then we cannot manage in manually these works are very difficult if we cannot use computer.

So the objective of this project is to overcome the limitation of the manual approach. This
project is started towards systematically Search to more Cab’s

Their aim is to focus following aspects:

 To provide easy assistance both to the administrator and User with proper database
and information.
 A tools through which customers can reserve cars online prior to their expected pick
up date or time.
 A registration portal to hold customer’s details, monitor their transaction and used
Same to offer better and improve services to them.
 Allows the customer to book space for a group in the case of wedding or corporate
meeting .
 Reporting of the cars booking etc.

3
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Problem Definition

A car rental is a vehicle that can used temporarily for a fee during a specified period. Getting
a rental car helps people get around despite the fact they do not have access to thire own
personal vehicle or don’t own vehicle at all. The individual who needs a car must contact a
rental car company and contact out for a vehicle . this system increases customer relation and
simply vehicle and staff management.

Following are the disadvantages of the past system:

 All the things are manually.


 Do not have the information about all the Cab’s.
 If you rent the cab from other country it does not accept the emergency cab of
our country.
 Lots of questioning.
 Flow of information is very slow.
 Always fight over the territory.
 Lack of proofs.
 Never get the exact location of incident

4
Prateek Ranjan Maurya Online Cab Portel. 1605714823

PRELIMINARY INVESTIGATION

In this process, the development team visits the people and studies their problem that they
face during helping the other person. They investigate the need for possible software
automation in the given system. By the end of Preliminary Investigation, the team furnishes a
document that holds the different specific recommendations for the candidate system. Main
Tasks of the preliminary investigation phase are:

 Investigate the present system and identify the functions to be performed


 Identify the objectives of the new system. In general, an information system benefits a
business by increasing efficiency, improving effectiveness, or providing a competitive
advantage
 Identify problems and suggest a few solutions
 Identify constraints, i.e. the limitations placed on the project, usually relating to time,
money and resources

To conclude the preliminary examination, the systems analyst writes a brief report to
management in which the following are listed:

 The problem that triggered the initial investigation


 The time taken by the investigation and the persons consulted
 The true nature and scope of the problem
 The recommended solutions for the problem and a cost estimate for each solution

The analyst should then arrange a meeting with management to discuss about the report and
other matters if need be.

5
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Feasibility study

All projects are feasible given unlimited resources and infinite time! Unfortunately, the
development of system is more likely to be plagued by a scarcity of resources and difficult
delivery dates. It is both necessary and prudent to evaluate the feasibility of the project at the
earliest possible time. Months or years of effort, Money loss and untold professional
embarrassment can be averted I few better understand the project at its study time.

In feasibility study phase we had undergone through various steps which are describe as
under:

 Identify the origin of the information at different level.


 Identify the expectation of user from computerized system.
 Analyze the drawback of existing system (manual) system.

Feasibility studies are undertaken within tight time constraints.

1. Technical Feasibility
2. Operational Feasibility
3. Economic Feasibility
4. Legal Feasibility

Technical Feasibility

As we know the technical feasibility is concerned with specifying equipment and software
that will successfully satisfy the user requirement. The technical needs of the system may
vary considerably, but might include:

 Response time under certain condition is minimal.


 Ability to process a certain volume of data at a particular speed.
 Facility to communicate data to distinct location.
In examining the technical feasibility, configuration of the system is given more importance
than the actual make of hardware. The configuration should give the complete picture about
the system’s requirements- how many workstations are required, how these units are
interconnected so that they could operate and communicate smoothly.

6
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Operational Feasibility

Proposed app are beneficial only if they can be turned into information system that will meet
the requirements of the Customer. This test of feasibility asks if the system will work when it
developed and installed. Are there major barriers to implementation?

Some of the important questions that are useful to test the operational feasibility of a project
are given below:

 Is there sufficient support for the project from the implementation? From user? If the
present system is well liked and used to the extent that persons will not be able to see
reasons for change, there may be resistance.
 Are current business methods acceptable to the user? If they are not, user may welcome a
change that will bring about a more operational and useful system
 Have the user been involved in the planning and development of theProject? If they are
involved at the earliest stage of project development, the chances of resistance can be
possibly reduced.
 Will the proposed system cause harm? Will it produce poorer result in any case or area?
 Appears to be quite minor at the early stage can grow into major problem after
Implementation.

Economic Feasibility

Economic analysis is the most frequently used technique for evaluating the effectiveness of
the proposed system. More commonly known as cost/benefits analysis, the procedure is to
determine the benefits and savings that are expected from the purposed system and compared
with costs.

If benefits outweigh cost, a decision is taken to design and implement the system. Otherwise,
further justification or alternative of the proposed system will have to be made if it has a
chance of being approved. This is an ongoing effort that improves in accuracy at each phase
of the system life cycle. The analysis part also clears the doubt of economic problems which
could be possible in developing the system. As already mentioned that the company has to
just pay the developed software cost and no other investment is needed at the time of
implementation of the new system as the preliminary requirements already exist in the
company.

7
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Legal Feasibility

In the legal feasibility is necessary to check that the software we are going to develop is
legally correct which means that the ideas which we have taken for the proposed system will
be legally implemented or not so, it is also an important step in feasibility study.

8
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Software & Hardware Requirement:

Software Requirement:

Server
 Browser Web Browser any updated.
 Database MY SQL (6.0)
 Web server XAMP
 Operating System Widows
Client
 Browser Web Browser any updated
 Operating System Any O.S. Windows

Developer
 Browser web Browser any updated
 Database MY SQL(6.0)
 Operating System Window 8.1
 Web server XAMP
 Documentation tool Ms. Word, MS power point
 Language HTML, CSS, PHP, Bootstrap
 Scripting language JavaScript and AJAX

Hardware Requirement:

Server:
 Processor i3 Processor
 RAM 2 GB
 Display 1024 x 768 High color-32-bit
 HDD 80 GB

Client:
 Processor i3 866 MHz or Later
 RAM 256 MB
 Display 1024 x 768 High color-32-bit
 HDD 20 GB

9
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Developer:
 Processor i3 Processor
 RAM 2 GB
 Display 1024 x 768 High color-32-bit
 HDD 40 GB

Dataflow Diagram

Data Flow Diagram

The data flow diagram shows the flow of data within any system. It is an important tool for
designing phase of software engineering. Larry Constantine first developed it. It represents
graphical view of flow of data. It’s also known as BUBBLE CHART. The purpose of DFD is
major transformation that will become in system design symbols used in DFD:-

In the DFD, four symbols are used and they are as follows.

1. A square defines a source (originator) or destination of system data.

2. An arrow identifies data flow-data in motion. It is 2a pipeline through which


information flows.

3. A circle or a “bubble “(Some people use an oval bubble) represents a process that
transfers informing data flows into outgoing data flows.

4. An open rectangle is a data store-data at rest, or a temporary

10
Prateek Ranjan Maurya Online Cab Portel. 1605714823

repository of data.

i-) Context Level Diagram

This level shows the overall context of the system and its operating environment and
shows the whole system as just one process. Online book store is shown as one process
in the context diagram; which is also known as zero level DFD, shown below. The
context diagram plays important role in understanding the system and determining the
boundaries. The main process can be broken into sub-processes and system can be
studied with more detail; this is where 1st level DFD comes into play.

O-Level DFD

11
Prateek Ranjan Maurya Online Cab Portel. 1605714823

1 Level DFD

SYSTEM DEVELOPMENT LIFE CYCLE

TheSystems development life cycle (SDLC), or Software development process in systems


engineering, information systems and software engineering, is a process of creating or
altering information systems, and the models and methodologies that people use to develop
these systems. In software engineering, the SDLC concept underpins many kinds of software
development methodologies. These methodologies form the framework for planning and
controlling the creation of an information systemthe software development process.

Broadly, following are the different activities to be considered while defining the system
development life cycle for the said project:

 Problem Definition
 System Analysis
 Study of existing system
 Drawback of the existing system

12
Prateek Ranjan Maurya Online Cab Portel. 1605714823

 Proposed system
 System Requirement study
 Data flow analysis
 Feasibility study
 System design
 Input Design (Database & Forms)
 Updating
 Query /Report design
 Administration
 Testing
 Implementation
 Maintenance

3.1.2 SYSTEM ANALYSIS

Systems analysis is the study of sets of interactingentities, including computer systems


analysis. This field is closely related to requirements analysis or operations research. It is also
"an explicit formal inquiry carried out to help someone (referred to as the decision maker)
identify a better course of action and make a better decision than he might otherwise have
made.

System development can generally be thought of having two major components: systems
analysis and systems design. In System Analysis more emphasis is given to understanding the
details of an existing system or a proposed one and then deciding whether the proposed
system is desirable or not and whether the existing system needs improvements. Thus, system
analysis is the process of investigating a system, identifying problems, and using the
information to recommend improvements to the system.

3.1.3 SYSTEM DESIGN

Systems design is the process of defining the architecture, components, modules, interfaces,
and data for a system to satisfy specified requirements. One could see it as the application of
systems theory to product development. There is some overlap with the disciplines of systems
analysis, systems architecture and systems engineering. If the broader topic of product
development "blends the perspective of marketing, design, and manufacturing into a single
approach to product development,"then design is the act of taking the marketing information

13
Prateek Ranjan Maurya Online Cab Portel. 1605714823

and creating the design of the product to be manufactured. Systems design is therefore the
process of defining and developing systems to satisfy specified requirements of the user.
Until the 1990s systems design had a crucial and respected role in the data processing
industry. In the 1990s standardization of hardware and software resulted in the ability to build
modular systems. The increasing importance of software running on generic platforms has
enhanced the discipline of software engineering.

Object-oriented analysis and design methods are becoming the most widely used methods for
computer systems design. The UML has become the standard language in object-oriented
analysis and design. It is widely used for modeling software systems and is increasingly used
for high designing non-software systems and organizations

ER Diagram:-

Entity-relationship model: -

The entity-relationship model or entity-relationship diagram (ERD) is a


data model or diagram for high-level descriptions of conceptual data model, and it provides a
graphical notation for representing such data models in the form of entity-relationship
diagrams. Such models are typically used in the first stage of information-system design; they
are used, for example, to describe information needs and/or the type of information that is to
be stored in the database during the requirement analysis. The datamodelling technique,
however, can be used to describe any ontology (i.e. an overview and classifications of used
terms and their relationships) for a certain universe of discourse (i.e. area of interest).

In the case of the design of an information system that is based on a database, the
conceptual data model is, at a later stage (usually called logical design), mapped to a logical
data model, such as the relational model; this in turn is mapped to a physical model during
physical design.

There are a number of conventions for entity-relationship diagrams (ERDs). The classical
notation is described in the remainder of this article, and mainly relates to conceptual
modeling. There are a range of notations more typically employed in logical and physical
database design.

14
Prateek Ranjan Maurya Online Cab Portel. 1605714823

15
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Requirement Specification

Process Model

A process model for software engineering is chosen based on the nature of the project and
application, the methods and tools to be used, and the controls and deliverables that are
required.

Among the various available Software Process Models (Waterfall model, Spiral model,
Prototyping model, Fourth Generation Techniques etc.) the best suited for this project is the
Iterative Water Fall Model.

Iterative Water Fall Model Techniques

The life-cycle paradigm demands a systematic, sequential approach to software development


that begins at the system level and progresses through analysis, design, coding, testing and
maintenance. The life-cycle paradigm encompasses the following activities:

System Engineering and Analysis

Establishing requirements for all system elements and then allocating some subset of these
requirements to software

Software Requirement Analysis

To understand the nature of the program to be built, the software engineer (analyst) must
understand the information domain for the software, as well as the required function,
performance, and interfacing. Requirements for both the system and the software are
documented and reviewed with the customer.

Design

Software design is actually a multi-step process that focuses on four distinct attributes of the
program: data structure, software architecture, procedural detail and interface
characterization. The design process translates requirements into a representation of the
software.

Coding

The design must be translated into a machine readable form. The coding step performs this
task.

Testing

16
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Once code has been generated, program testing begins.

Maintenance

Software will undoubtedly undergo change after it is delivered to the customer. Software
maintenance reapplies each of the preceding life-cycle steps to an existing program rather
than a new one.

The water fall model has some disadvantages, like

It works only for systems designed to automate an existing manual system. For absolutely
new system determining the requirement is difficult as the user himself does not know them
in advance what is being built or finalized at each stage

Freezing the requirements means freezing the hardware. A large project might take few
years to complete, by the time the product is available the hardware become obsolete.
It assumes that requirements are frozen before the rest of the development can proceed. In
some situation it might be desirable to develop a part of the system completely, and later
enhance the system in phases. This is often done for the software products that are
developed not necessarily for a client, but for general marketing in which case the
requirements are likely to be determined largely by developer themselves.

Hence the best suited paradigm for our project is Iterative Water Fall Model Technique

Functional Requirement

17
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Requirement analysis is a software engineering technique that is composed of various tasks


that determine the needs or conditions that are to be met for an new altered product,tasking
into consideration the conflicting requirement of the various users.

Functional requirement are those requirement that used to illustrate the internal working
nature of the system .the description of the system and explanation of each subsystem .it
consist of what task the system should perform .the process involved which data should the
system holds and the user .the functional requirement identified are:-

a) Customer registration:- the system should allow new users to register online.

b) Online reservation cars:- customer should be able to use the system to make booking
and online reservation.

c) Automatic update to database once reservation is made or new customer registered:-


whenever there’s new reservation or new registration the system should be able
update the database without any additional effort form the admin.

Non-Functional Requirement

Product Requirements

Efficiency Requirement

When app will be implemented the customer will easily access from anywhere.

Reliability Requirement

The system should accurately performs registration, member validation, report generation and
search.

Usability Requirement

The system is designed for a user friendly environment so that any user type of customer can
perform the various tasks easily and in an effective way.

Implementation Requirements

In implementing whole system it uses Java and XML in front end with SQLite as backend
which will be used for database connectivity.

18
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Project planning and Scheduling

Gantt charts (developed by Henry L. Gantt) are project control techniques that can be used
for several purposes, including scheduling, budgeting and resource planning. A Gantt chart is
a bar chart, with each bar representing an activity. The bars are drawn against a time line. The
length of each bar is proportional to the length of time planned for the activity. We have to
estimate the number of weeks required for each of the seven tasks as follows

1. Analysis 2 Weeks
2. Design 2 Weeks
3. Coding 3 Weeks
4. Testing 2 Weeks
5. Write Manual 1 Week
6. Implementation 1 Week
7. Maintenance 1 Weeks

Task No. Task Feb Feb-Mar Mar Mar-April Apr

1 RequirementAnalysis

2 Design

3 Coding

4 Testing

5 Documentation

19
Prateek Ranjan Maurya Online Cab Portel. 1605714823

PROJECT PLANNING AND SCHEDULING:

PERT CHART:

A PERT chart is a project management tools used to schedule, organize, and coordinate tasks
within a project. PERT stands for Program Evaluation Review Technique. A PERT chart
presents a graphic illustration of a project as network diagram consisting of numbered
nodes(either circles or rectangles) representing events, or milestones in the project linked by
labeled vectors (directional lines) representing tasks in the project.

The direction of the arrows on the lines indicates the sequence of tasks.

Alpha Testing
Programming Beta Testing
SRS And Design
3 5 8 10

10 15 30 10 10
1 2

3 4 10 6 10 7 10 9 5 11

Buy Hardware Writing


Manuals User Test
User
Requirement
And Analysis
Training
Installation

Reports Generated By the System

1) List of courses.
2) List of Students details.
3) List offaculty details.
4) List of feedback about the site.

20
Prateek Ranjan Maurya Online Cab Portel. 1605714823

3.3 Choice of Tools and Technology

Introduction

PHP 4 is a development framework for building web pages and web sites with HTML, CSS,
JavaScript and server scripting.

MVC is one of three PHP programming models.

MVC is a framework for building web applications using a MVC (Model View Controller)
design:

 The Model represents the application core (for instance a list of database records).
 The View displays the data (the database records).
 The Controller handles the input (to the database records).

The MVC model also provides full control over HTML, CSS, and JavaScript.

The MVC model defines web


applications with 3 logic layers:

The business layer (Model logic)

The display layer (View logic)

The input control (Controller logic)

The Model is the part of the application that handles the logic for the application data.
Often model objects retrieve data (and store data) from a database.

The View is the parts of the application that handles the display of the data.
Most often the views are created from the model data.

The Controller is the part of the application that handles user interaction.
Typically controllers read data from a view, control user input, and send input data to the
model.

21
Prateek Ranjan Maurya Online Cab Portel. 1605714823

The MVC separation helps you manage complex applications, because you can focus on one
aspect a time. For example, you can focus on the view without depending on the business
logic. It also makes it easier to test an application.

The MVC separation also simplifies group development. Different developers can work on
the view, the controller logic, and the business logic in parallel.

3.3 Web Forms vs MVC

The MVC programming model is a lighter alternative to traditional ASP.NET (Web Forms).
It is a lightweight, highly testable framework, integrated with all existing ASP.NET features,
such as Master Pages, Security, and Authentication.

MySQL:-

MySQL ("My S-Q-L" officially, but also called "My Sequel") is (as of July 2013) the world's
second most widely used relational database management system (RDBMS) and most widely
used open-source RDBMS. It is named after co-founder Michael Widenius's daughter,
My. The SQL acronym stands for Structured Query Language.

The MySQL development project has made its source code available under the terms of
the GNU General Public License, as well as under a variety of proprietary agreements.
MySQL was owned and sponsored by a single for-profit firm, the Swedish company MySQL
AB, now owned by Oracle Corporation.

MySQL is a popular choice of database for use in web applications, and is a central
component of the widely used LAMP open source web application software stack (and
other 'AMP' stacks). LAMP is an acronym for "Linux, Apache, MySQL, and
Perl/PHP/Python." Free-software-open source projects that require a full-featured database
management system often use MySQL.

For proprietary use, several paid editions are available, and offer additional functionality.
Applications which use MySQL databases
include: TYPO3, MODx, Joomla, WordPress, phpBB, MyBB, Drupal and other software.
MySQL is also used in many high-profile, large-scale websites, including Google (though not
for searches), Facebook, Twitter, Flickr and YouTube.

22
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Advantages of MySQL

 It's easy to use: While a basic knowledge of SQL is required—and most relational
databases require the same knowledge—MySQL is very easy to use. With only a few
simple SQL statements, you can build and interact with MySQL.
 It's secure: MySQL includes solid data security layers that protect sensitive data from
intruders. Rights can be set to allow some or all privileges to individuals. Passwords
are encrypted.
 It's inexpensive: MySQL is included for free with NetWare® 6.5 and available by free
download from MySQL Web site.
 It's fast: In the interest of speed, MySQL designers made the decision to offer fewer
features than other major database competitors, such as Sybase* and Oracle*.
However, despite having fewer features than the other commercial database products,
MySQL still offers all of the features required by most database developers.
 It's scalable: MySQL can handle almost any amount of data, up to as much as 50
million rows or more. The default file size limit is about 4 GB. However, you can
increase this number to a theoretical limit of 8 TB of data.
 It manages memory very well: MySQL server has been thoroughly tested to prevent
memory leaks.
 It supports Novell Cluster Services: MySQL on NetWare runs effectively with
Novell® Cluster Services™, letting you add your database solution to a Novell
cluster. If one server goes down, MySQL on an alternate server takes over and your
customers won't know that anything happened.
 It runs on many operating systems: MySQL runs on many operating systems,
including Novell NetWare, Windows* Linux*, many varieties of UNIX* (such as
Sun* Solaris*, AIX, and DEC* UNIX), OS/2, FreeBSD*, and others.
 It supports several development interfaces: Development interfaces include JDBC,
ODBC, and scripting (PHP and Perl), letting you create database solutions that run
not only in your NetWare 6.5 environment, but across all major platforms, including
Linux, UNIX, and Windows.

23
Prateek Ranjan Maurya Online Cab Portel. 1605714823

System Design

Designing part includes its Designing of this software is done with high cohesiveness, i.e.
there is a minimized interaction between two different modules. There is no intra modular
relationship between modules. Most of the modules are self-independent. At the same time
modules are loosely coupled i.e. inter – modular relation exists. Hence the Software is
Loosely Coupled and Highly Cohesive.

System design aims to identify the modules there should be in the system, the specification of
these modules and how they interact with each other to produce the desired results. At the
end of system design all the major data structures, file formats and the major modules in the
system and their specifications are decided.

Database Schema

Admin

TableBooking

24
Prateek Ranjan Maurya Online Cab Portel. 1605714823

TblBrands

TblcontactUs Info

Tblcontact Us Query

TblPages

25
Prateek Ranjan Maurya Online Cab Portel. 1605714823

TblSubscriber

TblTestMonial

Tbluser:-

Tblvehical

26
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Module

Admin

 Registration

a) Employee Registration

b) Vehicles Registrartion

 Booking Detail

a) Online booking

b) Manual booking

 Booking Operation

a) Booking conformation

b) Booking cancellation

User Module

 Vehicles catalog

 Booking

a) Online booking

b) Manual booking

27
Prateek Ranjan Maurya Online Cab Portel. 1605714823

The proposed system facilitates the customer to fill up their details ,and to give a brief
description of vehicle they want to book. This new system Is very helpful for customer who
want to hire their vehicles through this site.

Functional requirement : The system have the following input

 First the customer has to make a reservation and later on it the process has to do
registration.

 Second if the customer had already registered himself then he can continue booking in
his own account by giving his customer Id or mail id .

 Thirdly ,the output can amend details or updates his details.

 The main output are whether the booking is confirmed or not and regular information
services to the site.

28
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Project Screenshot

Home.php

Carlisting

29
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Login

SignUp

30
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Car detaile When booking

Booking Confirm

31
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Admin Dashboard

Admin Manage dashboard

Registered user

32
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Manage Subscriber

Manage contact us Query

33
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Coding

Login.php

<?php

if(isset($_POST['login']))

$email=$_POST['email'];

$password=md5($_POST['password']);

$sql ="SELECT EmailId,Password,FullName FROM tblusers WHERE


EmailId=:email and Password=:password";

$query= $dbh -> prepare($sql);

$query-> bindParam(':email', $email, PDO::PARAM_STR);

$query-> bindParam(':password', $password, PDO::PARAM_STR);

$query-> execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

if($query->rowCount() > 0)

34
Prateek Ranjan Maurya Online Cab Portel. 1605714823

$_SESSION['login']=$_POST['email'];

$_SESSION['fname']=$results->FullName;

$currentpage=$_SERVER['REQUEST_URI'];

echo "<script type='text/javascript'> document.location = '$currentpage'; </script>";

} else{

echo "<script>alert('Invalid Details');</script>";

?>

<div class="modal fade" id="loginform">

<div class="modal-dialog" role="document">

<div class="modal-content">

<div class="modal-header">

<button type="button" class="close" data-dismiss="modal" aria-


label="Close"><span aria-hidden="true">&times;</span></button>

<h3 class="modal-title">Login</h3>

</div>

<div class="modal-body">

<div class="row">

35
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div class="login_wrap">

<div class="col-md-12 col-sm-6">

<form method="post">

<div class="form-group">

<input type="email" class="form-control" name="email"


placeholder="Email address*">

</div>

<div class="form-group">

<input type="password" class="form-control" name="password"


placeholder="Password*">

</div>

<div class="form-group checkbox">

<input type="checkbox" id="remember">

</div>

<div class="form-group">

<input type="submit" name="login" value="Login" class="btn btn-


block">

</div>

</form>

</div>

</div>

</div>

</div>

36
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div class="modal-footer text-center">

<p>Don't have an account? <a href="#signupform" data-toggle="modal" data-


dismiss="modal">Signup Here</a></p>

<p><a href="#forgotpassword" data-toggle="modal" data-


dismiss="modal">Forgot Password ?</a></p>

</div>

</div>

</div>

</div>

SignUp:

<?php

//error_reporting(0);

if(isset($_POST['signup']))

$fname=$_POST['fullname'];

$email=$_POST['emailid'];

$mobile=$_POST['mobileno'];

$password=md5($_POST['password']);

$sql="INSERT INTO tblusers(FullName,EmailId,ContactNo,Password)


VALUES(:fname,:email,:mobile,:password)";

$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);

37
Prateek Ranjan Maurya Online Cab Portel. 1605714823

$query->execute();

$lastInsertId = $dbh->lastInsertId();

if($lastInsertId)

echo "<script>alert('Registration successfull. Now you can login');</script>";

else

echo "<script>alert('Something went wrong. Please try again');</script>";

?>

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

38
Prateek Ranjan Maurya Online Cab Portel. 1605714823

$("#loaderIcon").hide();

},

error:function (){}

});

</script>

<script type="text/javascript">

function valid()

if(document.signup.password.value!= document.signup.confirmpassword.value)

alert("Password and Confirm Password Field do not match !!");

document.signup.confirmpassword.focus();

return false;

return true;

</script>

<div class="modal fade" id="signupform">

<div class="modal-dialog" role="document">

<div class="modal-content">

<div class="modal-header">

<button type="button" class="close" data-dismiss="modal" aria-


label="Close"><span aria-hidden="true">&times;</span></button>

<h3 class="modal-title">Sign Up</h3>

39
Prateek Ranjan Maurya Online Cab Portel. 1605714823

</div>

<div class="modal-body">

<div class="row">

<div class="signup_wrap">

<div class="col-md-12 col-sm-6">

<form method="post" name="signup" onSubmit="return valid();">

<div class="form-group">

<input type="text" class="form-control" name="fullname"


placeholder="Full Name" required="required">

</div>

<div class="form-group">

<input type="text" class="form-control" name="mobileno"


placeholder="Mobile Number" maxlength="10" required="required">

</div>

<div class="form-group">

<input type="email" class="form-control" name="emailid" id="emailid"


onBlur="checkAvailability()" placeholder="Email Address" required="required">

<span id="user-availability-status" style="font-size:12px;"></span>

</div>

<div class="form-group">

<input type="password" class="form-control" name="password"


placeholder="Password" required="required">

</div>

<div class="form-group">

<input type="password" class="form-control" name="confirmpassword"


placeholder="Confirm Password" required="required">

40
Prateek Ranjan Maurya Online Cab Portel. 1605714823

</div>

<div class="form-group checkbox">

<input type="checkbox" id="terms_agree" required="required"


checked="">

<label for="terms_agree">I Agree with <a href="#">Terms and


Conditions</a></label>

</div>

<div class="form-group">

<input type="submit" value="Sign Up" name="signup" id="submit"


class="btn btn-block">

</div>

</form>

</div>

</div>

</div>

</div>

<div class="modal-footer text-center">

<p>Already got an account? <a href="#loginform" data-toggle="modal" data-


dismiss="modal">Login Here</a></p>

</div>

</div>

</div>

</div>

41
Prateek Ranjan Maurya Online Cab Portel. 1605714823

MyBooking

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['login'])==0)
{
header('location:index.php');
}
else{
?><!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="keywords" content="">
<meta name="description" content="">
<title>CarForYou - Responsive Car Dealer HTML5 Template</title>
<!--Bootstrap -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css" type="text/css">
<!--Custome Style -->
<link rel="stylesheet" href="assets/css/style.css" type="text/css">
<!--OWL Carousel slider-->
<link rel="stylesheet" href="assets/css/owl.carousel.css" type="text/css">
<link rel="stylesheet" href="assets/css/owl.transitions.css" type="text/css">
<!--slick-slider -->
<link href="assets/css/slick.css" rel="stylesheet">
<!--bootstrap-slider -->
<link href="assets/css/bootstrap-slider.min.css" rel="stylesheet">
<!--FontAwesome Font Style -->
<link href="assets/css/font-awesome.min.css" rel="stylesheet">

42
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<!-- SWITCHER -->


<link rel="stylesheet" id="switcher-css" type="text/css"
href="assets/switcher/css/switcher.css" media="all" />
<link rel="alternate stylesheet" type="text/css"
href="assets/switcher/css/red.css" title="red" media="all" data-default-color="true" />
<link rel="alternate stylesheet" type="text/css"
href="assets/switcher/css/orange.css" title="orange" media="all" />
<link rel="alternate stylesheet" type="text/css"
href="assets/switcher/css/blue.css" title="blue" media="all" />
<link rel="alternate stylesheet" type="text/css"
href="assets/switcher/css/pink.css" title="pink" media="all" />
<link rel="alternate stylesheet" type="text/css"
href="assets/switcher/css/green.css" title="green" media="all" />
<link rel="alternate stylesheet" type="text/css"
href="assets/switcher/css/purple.css" title="purple" media="all" />

<!-- Fav and touch icons -->


<link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/images/favicon-
icon/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/images/favicon-
icon/apple-touch-icon-114-precomposed.html">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/images/favicon-
icon/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="assets/images/favicon-icon/apple-touch-
icon-57-precomposed.png">
<link rel="shortcut icon" href="assets/images/favicon-icon/favicon.png">
<!-- Google-Font-->
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900"
rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
43
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>

<!-- Start Switcher -->


<?php include('includes/colorswitcher.php');?>
<!-- /Switcher -->

<!--Header-->
<?php include('includes/header.php');?>
<!--Page Header-->
<!-- /Header -->

<!--Page Header-->
<section class="page-header profile_page">
<div class="container">
<div class="page-header_wrap">
<div class="page-heading">
<h1>My Booking</h1>
</div>
<ul class="coustom-breadcrumb">
<li><a href="#">Home</a></li>
<li>My Booking</li>
</ul>
</div>
</div>
<!-- Dark Overlay-->
<div class="dark-overlay"></div>
</section>
<!-- /Page Header-->

<?php
$useremail=$_SESSION['login'];
44
Prateek Ranjan Maurya Online Cab Portel. 1605714823

$sql = "SELECT * from tblusers where EmailId=:useremail";


$query = $dbh -> prepare($sql);
$query -> bindParam(':useremail',$useremail, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<section class="user_profile inner_pages">
<div class="container">
<div class="user_profile_info gray-bg padding_4x4_40">
<div class="upload_user_logo"> <img src="assets/images/dealer-logo.jpg" alt="image">
</div>

<div class="dealer_info">
<h5><?php echo htmlentities($result->FullName);?></h5>
<p><?php echo htmlentities($result->Address);?><br>
<?php echo htmlentities($result->City);?>&nbsp;<?php echo htmlentities($result-
>Country); }}?></p>
</div>
</div>
<div class="row">
<div class="col-md-3 col-sm-3">
<?php include('includes/sidebar.php');?>

<div class="col-md-6 col-sm-8">


<div class="profile_wrap">
<h5 class="uppercase underline">My Booikngs </h5>
<div class="my_vehicles_list">
<ul class="vehicle_listing">
<?php
$useremail=$_SESSION['login'];
45
Prateek Ranjan Maurya Online Cab Portel. 1605714823

$sql = "SELECT tblvehicles.Vimage1 as Vimage1,tblvehicles.VehiclesTitle,tblvehicles.id as


vid,tblbrands.BrandName,tblbooking.FromDate,tblbooking.ToDate,tblbooking.message,tblbo
oking.Status from tblbooking join tblvehicles on tblbooking.VehicleId=tblvehicles.id join
tblbrands on tblbrands.id=tblvehicles.VehiclesBrand where
tblbooking.userEmail=:useremail";
$query = $dbh -> prepare($sql);
$query-> bindParam(':useremail', $useremail, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>

<li>
<div class="vehicle_img"> <a href="vehical-details.php?vhid=<?php echo
htmlentities($result->vid);?>""><img src="admin/img/vehicleimages/<?php echo
htmlentities($result->Vimage1);?>" alt="image"></a> </div>
<div class="vehicle_title">
<h6><a href="vehical-details.php?vhid=<?php echo htmlentities($result-
>vid);?>""> <?php echo htmlentities($result->BrandName);?> , <?php echo
htmlentities($result->VehiclesTitle);?></a></h6>
<p><b>From Date:</b> <?php echo htmlentities($result->FromDate);?><br />
<b>To Date:</b> <?php echo htmlentities($result->ToDate);?></p>
</div>
<?php if($result->Status==1)
{ ?>
<div class="vehicle_status"> <a href="#" class="btn outline btn-xs active-
btn">Confirmed</a>
<div class="clearfix"></div>
</div>

<?php } else if($result->Status==2) { ?>


46
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div class="vehicle_status"> <a href="#" class="btn outline btn-xs">Cancelled</a>


<div class="clearfix"></div>
</div>

<?php } else { ?>


<div class="vehicle_status"> <a href="#" class="btn outline btn-xs">Not Confirm yet</a>
<div class="clearfix"></div>
</div>
<?php } ?>
<div style="float: left"><p><b>Message:</b> <?php echo htmlentities($result-
>message);?> </p></div>
</li>
<?php }} ?>

</ul>
</div>
</div>
</div>
</div>
</div>
</section>
<!--/my-vehicles-->
<?php include('includes/footer.php');?>

<!-- Scripts -->


<script src="assets/js/jquery.min.js"></script>
<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-->
47
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<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>
</body>
</html>
<?php } ?>
Vehical Detaile:-

<?php

session_start();

include('includes/config.php');

error_reporting(0);

if(isset($_POST['submit']))

$fromdate=$_POST['fromdate'];

$todate=$_POST['todate'];

$message=$_POST['message'];

$useremail=$_SESSION['login'];

$status=0;

$vhid=$_GET['vhid'];

$sql="INSERT INTO
tblbooking(userEmail,VehicleId,FromDate,ToDate,message,Status)
VALUES(:useremail,:vhid,:fromdate,:todate,:message,:status)";

$query = $dbh->prepare($sql);

$query->bindParam(':useremail',$useremail,PDO::PARAM_STR);

$query->bindParam(':vhid',$vhid,PDO::PARAM_STR);

$query->bindParam(':fromdate',$fromdate,PDO::PARAM_STR);

48
Prateek Ranjan Maurya Online Cab Portel. 1605714823

$query->bindParam(':todate',$todate,PDO::PARAM_STR);

$query->bindParam(':message',$message,PDO::PARAM_STR);

$query->bindParam(':status',$status,PDO::PARAM_STR);

$query->execute();

$lastInsertId = $dbh->lastInsertId();

if($lastInsertId)

echo "<script>alert('Booking successfull.');</script>";

else

echo "<script>alert('Something went wrong. Please try again');</script>";

?>

<!DOCTYPE HTML>

<html lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

49
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<meta name="viewport" content="width=device-width,initial-scale=1">

<meta name="keywords" content="">

<meta name="description" content="">

<title>Car Rental Port | Vehicle Details</title>

<!--Bootstrap -->

<link rel="stylesheet" href="assets/css/bootstrap.min.css" type="text/css">

<!--Custome Style -->

<link rel="stylesheet" href="assets/css/style.css" type="text/css">

<!--OWL Carousel slider-->

<link rel="stylesheet" href="assets/css/owl.carousel.css" type="text/css">

<link rel="stylesheet" href="assets/css/owl.transitions.css" type="text/css">

<!--slick-slider -->

<link href="assets/css/slick.css" rel="stylesheet">

<!--bootstrap-slider -->

<link href="assets/css/bootstrap-slider.min.css" rel="stylesheet">

<!--FontAwesome Font Style -->

<link href="assets/css/font-awesome.min.css" rel="stylesheet">

<!-- SWITCHER -->

<link rel="stylesheet" id="switcher-css" type="text/css"


href="assets/switcher/css/switcher.css" media="all" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/red.css" title="red" media="all" data-default-color="true" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/orange.css" title="orange" media="all" />

50
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/blue.css" title="blue" media="all" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/pink.css" title="pink" media="all" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/green.css" title="green" media="all" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/purple.css" title="purple" media="all" />

<link rel="apple-touch-icon-precomposed" sizes="144x144"


href="assets/images/favicon-icon/apple-touch-icon-144-precomposed.png">

<link rel="apple-touch-icon-precomposed" sizes="114x114"


href="assets/images/favicon-icon/apple-touch-icon-114-precomposed.html">

<link rel="apple-touch-icon-precomposed" sizes="72x72"


href="assets/images/favicon-icon/apple-touch-icon-72-precomposed.png">

<link rel="apple-touch-icon-precomposed" href="assets/images/favicon-icon/apple-


touch-icon-57-precomposed.png">

<link rel="shortcut icon" href="assets/images/favicon-icon/favicon.png">

<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900"
rel="stylesheet">

</head>

<body>

<!-- Start Switcher -->

<?php include('includes/colorswitcher.php');?>

<!-- /Switcher -->

<!--Header-->

51
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<?php include('includes/header.php');?>

<!-- /Header -->

<!--Listing-Image-Slider-->

<?php

$vhid=intval($_GET['vhid']);

$sql = "SELECT tblvehicles.*,tblbrands.BrandName,tblbrands.id as bid from


tblvehicles join tblbrands on tblbrands.id=tblvehicles.VehiclesBrand where
tblvehicles.id=:vhid";

$query = $dbh -> prepare($sql);

$query->bindParam(':vhid',$vhid, PDO::PARAM_STR);

$query->execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;

if($query->rowCount() > 0)

foreach($results as $result)

$_SESSION['brndid']=$result->bid;

?>

<section id="listing_img_slider">

52
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div><img src="admin/img/vehicleimages/<?php echo htmlentities($result-


>Vimage1);?>" class="img-responsive" alt="image" width="900"
height="560"></div>

<div><img src="admin/img/vehicleimages/<?php echo htmlentities($result-


>Vimage2);?>" class="img-responsive" alt="image" width="900"
height="560"></div>

<div><img src="admin/img/vehicleimages/<?php echo htmlentities($result-


>Vimage3);?>" class="img-responsive" alt="image" width="900"
height="560"></div>

<div><img src="admin/img/vehicleimages/<?php echo htmlentities($result-


>Vimage4);?>" class="img-responsive" alt="image" width="900"
height="560"></div>

<?php if($result->Vimage5=="")

} else {

?>

<div><img src="admin/img/vehicleimages/<?php echo htmlentities($result-


>Vimage5);?>" class="img-responsive" alt="image" width="900"
height="560"></div>

<?php } ?>

</section>

<!--/Listing-Image-Slider-->

<!--Listing-detail-->

<section class="listing-detail">

53
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div class="container">

<div class="listing_detail_head row">

<div class="col-md-9">

<h2><?php echo htmlentities($result->BrandName);?> , <?php echo


htmlentities($result->VehiclesTitle);?></h2>

</div>

<div class="col-md-3">

<div class="price_info">

<p>$<?php echo htmlentities($result->PricePerDay);?> </p>Per Day

</div>

</div>

</div>

<div class="row">

<div class="col-md-9">

<div class="main_features">

<ul>

<li> <i class="fa fa-calendar" aria-hidden="true"></i>

<h5><?php echo htmlentities($result->ModelYear);?></h5>

<p>Reg.Year</p>

</li>

<li> <i class="fa fa-cogs" aria-hidden="true"></i>

<h5><?php echo htmlentities($result->FuelType);?></h5>

<p>Fuel Type</p>

54
Prateek Ranjan Maurya Online Cab Portel. 1605714823

</li>

<li> <i class="fa fa-user-plus" aria-hidden="true"></i>

<h5><?php echo htmlentities($result->SeatingCapacity);?></h5>

<p>Seats</p>

</li>

</ul>

</div>

<div class="listing_more_info">

<div class="listing_detail_wrap">

<!-- Nav tabs -->

<ul class="nav nav-tabs gray-bg" role="tablist">

<li role="presentation" class="active"><a href="#vehicle-overview " aria-


controls="vehicle-overview" role="tab" data-toggle="tab">Vehicle Overview
</a></li>

<li role="presentation"><a href="#accessories" aria-controls="accessories"


role="tab" data-toggle="tab">Accessories</a></li>

</ul>

<!-- Tab panes -->

<div class="tab-content">

<!-- vehicle-overview -->

<div role="tabpanel" class="tab-pane active" id="vehicle-overview">

55
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<p><?php echo htmlentities($result->VehiclesOverview);?></p>

</div>

<!-- Accessories -->

<div role="tabpanel" class="tab-pane" id="accessories">

<!--Accessories-->

<table>

<thead>

<tr>

<th colspan="2">Accessories</th>

</tr>

</thead>

<tbody>

<tr>

<td>Air Conditioner</td>

<?php if($result->AirConditioner==1)

?>

<td><i class="fa fa-check" aria-hidden="true"></i></td>

<?php } else { ?>

<td><i class="fa fa-close" aria-hidden="true"></i></td>

<?php } ?> </tr>

56
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<tr>

<td>AntiLock Braking System</td>

<?php if($result->AntiLockBrakingSystem==1)

?>

<td><i class="fa fa-check" aria-hidden="true"></i></td>

<?php } else {?>

<td><i class="fa fa-close" aria-hidden="true"></i></td>

<?php } ?>

</tr>

<tr>

<td>Power Steering</td>

<?php if($result->PowerSteering==1)

?>

<td><i class="fa fa-check" aria-hidden="true"></i></td>

<?php } else { ?>

<td><i class="fa fa-close" aria-hidden="true"></i></td>

<?php } ?>

</tr>

<tr>

57
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<td>Power Windows</td>

<?php if($result->PowerWindows==1)

?>

<td><i class="fa fa-check" aria-hidden="true"></i></td>

<?php } else { ?>

<td><i class="fa fa-close" aria-hidden="true"></i></td>

<?php } ?>

</tr>

<tr>

<td>CD Player</td>

<?php if($result->CDPlayer==1)

?>

<td><i class="fa fa-check" aria-hidden="true"></i></td>

<?php } else { ?>

<td><i class="fa fa-close" aria-hidden="true"></i></td>

<?php } ?>

</tr>

<tr>

58
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<td>Leather Seats</td>

<?php if($result->LeatherSeats==1)

?>

<td><i class="fa fa-check" aria-hidden="true"></i></td>

<?php } else { ?>

<td><i class="fa fa-close" aria-hidden="true"></i></td>

<?php } ?>

</tr>

<tr>

<td>Central Locking</td>

<?php if($result->CentralLocking==1)

?>

<td><i class="fa fa-check" aria-hidden="true"></i></td>

<?php } else { ?>

<td><i class="fa fa-close" aria-hidden="true"></i></td>

<?php } ?>

</tr>

<tr>

<td>Power Door Locks</td>

<?php if($result->PowerDoorLocks==1)

59
Prateek Ranjan Maurya Online Cab Portel. 1605714823

?>

<td><i class="fa fa-check" aria-hidden="true"></i></td>

<?php } else { ?>

<td><i class="fa fa-close" aria-hidden="true"></i></td>

<?php } ?>

</tr>

<tr>

<td>Brake Assist</td>

<?php if($result->BrakeAssist==1)

?>

<td><i class="fa fa-check" aria-hidden="true"></i></td>

<?php } else { ?>

<td><i class="fa fa-close" aria-hidden="true"></i></td>

<?php } ?>

</tr>

<tr>

<td>Driver Airbag</td>

<?php if($result->DriverAirbag==1)

?>

<td><i class="fa fa-check" aria-hidden="true"></i></td>

60
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<?php } else { ?>

<td><i class="fa fa-close" aria-hidden="true"></i></td>

<?php } ?>

</tr>

<tr>

<td>Passenger Airbag</td>

<?php if($result->PassengerAirbag==1)

?>

<td><i class="fa fa-check" aria-hidden="true"></i></td>

<?php } else {?>

<td><i class="fa fa-close" aria-hidden="true"></i></td>

<?php } ?>

</tr>

<tr>

<td>Crash Sensor</td>

<?php if($result->CrashSensor==1)

?>

<td><i class="fa fa-check" aria-hidden="true"></i></td>

<?php } else { ?>

<td><i class="fa fa-close" aria-hidden="true"></i></td>

61
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<?php } ?>

</tr>

</tbody>

</table>

</div>

</div>

</div>

</div>

<?php }} ?>

</div>

<!--Side-Bar-->

<aside class="col-md-3">

<div class="share_vehicle">

<p>Share: <a href="#"><i class="fa fa-facebook-square" aria-


hidden="true"></i></a> <a href="#"><i class="fa fa-twitter-square" aria-
hidden="true"></i></a> <a href="#"><i class="fa fa-linkedin-square" aria-
hidden="true"></i></a> <a href="#"><i class="fa fa-google-plus-square" aria-
hidden="true"></i></a> </p>

</div>

<div class="sidebar_widget">

62
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div class="widget_heading">

<h5><i class="fa fa-envelope" aria-hidden="true"></i>Book Now</h5>

</div>

<form method="post">

<div class="form-group">

<input type="text" class="form-control" name="fromdate"


placeholder="From Date(dd/mm/yyyy)" required>

</div>

<div class="form-group">

<input type="text" class="form-control" name="todate" placeholder="To


Date(dd/mm/yyyy)" required>

</div>

<div class="form-group">

<textarea rows="4" class="form-control" name="message"


placeholder="Message" required></textarea>

</div>

<?php if($_SESSION['login'])

{?>

<div class="form-group">

<input type="submit" class="btn" name="submit" value="Book Now">

</div>

<?php } else { ?>

<a href="#loginform" class="btn btn-xs uppercase" data-toggle="modal" data-


dismiss="modal">Login For Book</a>

63
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<?php } ?>

</form>

</div>

</aside>

<!--/Side-Bar-->

</div>

<div class="space-20"></div>

<div class="divider"></div>

<!--Similar-Cars-->

<div class="similar_cars">

<h3>Similar Cars</h3>

<div class="row">

<?php

$bid=$_SESSION['brndid'];

$sql="SELECT
tblvehicles.VehiclesTitle,tblbrands.BrandName,tblvehicles.PricePerDay,tblvehicles.F
uelType,tblvehicles.ModelYear,tblvehicles.id,tblvehicles.SeatingCapacity,tblvehicles.
VehiclesOverview,tblvehicles.Vimage1 from tblvehicles join tblbrands on
tblbrands.id=tblvehicles.VehiclesBrand where tblvehicles.VehiclesBrand=:bid";

$query = $dbh -> prepare($sql);

$query->bindParam(':bid',$bid, PDO::PARAM_STR);

$query->execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

64
Prateek Ranjan Maurya Online Cab Portel. 1605714823

$cnt=1;

if($query->rowCount() > 0)

foreach($results as $result)

{ ?>

<div class="col-md-3 grid_listing">

<div class="product-listing-m gray-bg">

<div class="product-listing-img"> <a href="vehical-details.php?vhid=<?php


echo htmlentities($result->id);?>"><img src="admin/img/vehicleimages/<?php echo
htmlentities($result->Vimage1);?>" class="img-responsive" alt="image" /> </a>

</div>

<div class="product-listing-content">

<h5><a href="vehical-details.php?vhid=<?php echo htmlentities($result-


>id);?>"><?php echo htmlentities($result->BrandName);?> , <?php echo
htmlentities($result->VehiclesTitle);?></a></h5>

<p class="list-price">$<?php echo htmlentities($result-


>PricePerDay);?></p>

<ul class="features_list">

<li><i class="fa fa-user" aria-hidden="true"></i><?php echo


htmlentities($result->SeatingCapacity);?> seats</li>

<li><i class="fa fa-calendar" aria-hidden="true"></i><?php echo


htmlentities($result->ModelYear);?> model</li>

<li><i class="fa fa-car" aria-hidden="true"></i><?php echo


htmlentities($result->FuelType);?></li>

</ul>

65
Prateek Ranjan Maurya Online Cab Portel. 1605714823

</div>

</div>

</div>

<?php }} ?>

</div>

</div>

<!--/Similar-Cars-->

</div>

</section>

<!--/Listing-detail-->

<!--Footer -->

<?php include('includes/footer.php');?>

<!-- /Footer-->

<!--Back to top-->

<div id="back-top" class="back-top"> <a href="#top"><i class="fa fa-angle-up" aria-


hidden="true"></i> </a> </div>

<!--/Back to top-->

<!--Login-Form -->

<?php include('includes/login.php');?>

<!--/Login-Form -->

66
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<!--Register-Form -->

<?php include('includes/registration.php');?>

<!--/Register-Form -->

<!--Forgot-password-Form -->

<?php include('includes/forgotpassword.php');?>

<script src="assets/js/jquery.min.js"></script>

<script src="assets/js/bootstrap.min.js"></script>

<script src="assets/js/interface.js"></script>

<script src="assets/switcher/js/switcher.js"></script>

<script src="assets/js/bootstrap-slider.min.js"></script>

<script src="assets/js/slick.min.js"></script>

<script src="assets/js/owl.carousel.min.js"></script>

</body>

</html>

Testmonials .php

<?php

session_start();

error_reporting(0);

67
Prateek Ranjan Maurya Online Cab Portel. 1605714823

include('includes/config.php');

if(strlen($_SESSION['login'])==0)

header('location:index.php');

else{

?>

<!DOCTYPE HTML>

<html lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width,initial-scale=1">

<meta name="keywords" content="">

<meta name="description" content="">

<title>Car Rental Portal | My Testimonials </title>

<!--Bootstrap -->

<link rel="stylesheet" href="assets/css/bootstrap.min.css" type="text/css">

<!--Custome Style -->

<link rel="stylesheet" href="assets/css/style.css" type="text/css">

<!--OWL Carousel slider-->

<link rel="stylesheet" href="assets/css/owl.carousel.css" type="text/css">

<link rel="stylesheet" href="assets/css/owl.transitions.css" type="text/css">

<!--slick-slider -->

68
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<link href="assets/css/slick.css" rel="stylesheet">

<!--bootstrap-slider -->

<link href="assets/css/bootstrap-slider.min.css" rel="stylesheet">

<!--FontAwesome Font Style -->

<link href="assets/css/font-awesome.min.css" rel="stylesheet">

<!-- SWITCHER -->

<link rel="stylesheet" id="switcher-css" type="text/css"


href="assets/switcher/css/switcher.css" media="all" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/red.css" title="red" media="all" data-default-color="true" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/orange.css" title="orange" media="all" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/blue.css" title="blue" media="all" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/pink.css" title="pink" media="all" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/green.css" title="green" media="all" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/purple.css" title="purple" media="all" />

<!-- Fav and touch icons -->

<link rel="apple-touch-icon-precomposed" sizes="144x144"


href="assets/images/favicon-icon/apple-touch-icon-144-precomposed.png">

<link rel="apple-touch-icon-precomposed" sizes="114x114"


href="assets/images/favicon-icon/apple-touch-icon-114-precomposed.html">

69
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<link rel="apple-touch-icon-precomposed" sizes="72x72"


href="assets/images/favicon-icon/apple-touch-icon-72-precomposed.png">

<link rel="apple-touch-icon-precomposed" href="assets/images/favicon-icon/apple-


touch-icon-57-precomposed.png">

<link rel="shortcut icon" href="assets/images/favicon-icon/favicon.png">

<!-- Google-Font-->

<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900"
rel="stylesheet">

</head>

<body>

<?php include('includes/colorswitcher.php');?>

<!-- /Switcher -->

<!--Header-->

<?php include('includes/header.php');?>

<!--Page Header-->

<section class="page-header profile_page">

<div class="container">

<div class="page-header_wrap">

<div class="page-heading">

<h1>My Testimonials</h1>

</div>

<ul class="coustom-breadcrumb">

<li><a href="#">Home</a></li>

<li>My Testimonials</li>

70
Prateek Ranjan Maurya Online Cab Portel. 1605714823

</ul>

</div>

</div>

<!-- Dark Overlay-->

<div class="dark-overlay"></div>

</section>

<!-- /Page Header-->

<?php

$useremail=$_SESSION['login'];

$sql = "SELECT * from tblusers where EmailId=:useremail";

$query = $dbh -> prepare($sql);

$query -> bindParam(':useremail',$useremail, PDO::PARAM_STR);

$query->execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;

if($query->rowCount() > 0)

foreach($results as $result)

{ ?>

<section class="user_profile inner_pages">

<div class="container">

<div class="user_profile_info gray-bg padding_4x4_40">

<div class="upload_user_logo"> <img src="assets/images/dealer-logo.jpg"


alt="image">

71
Prateek Ranjan Maurya Online Cab Portel. 1605714823

</div>

<div class="dealer_info">

<h5><?php echo htmlentities($result->FullName);?></h5>

<p><?php echo htmlentities($result->Address);?><br>

<?php echo htmlentities($result->City);?>&nbsp;<?php echo


htmlentities($result->Country); }}?></p>

</div>

</div>

<div class="row">

<div class="col-md-3 col-sm-3">

<?php include('includes/sidebar.php');?>

<div class="col-md-8 col-sm-8">

<div class="profile_wrap">

<h5 class="uppercase underline">My Testimonials </h5>

<div class="my_vehicles_list">

<ul class="vehicle_listing">

<?php

$useremail=$_SESSION['login'];

$sql = "SELECT * from tbltestimonial where UserEmail=:useremail";

$query = $dbh -> prepare($sql);

72
Prateek Ranjan Maurya Online Cab Portel. 1605714823

$query -> bindParam(':useremail',$useremail, PDO::PARAM_STR);

$query->execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

if($cnt=$query->rowCount() > 0)

foreach($results as $result)

{ ?>

<li>

<div>

<p><?php echo htmlentities($result->Testimonial);?> </p>

<p><b>Posting Date:</b><?php echo htmlentities($result-


>PostingDate);?> </p>

</div>

<?php if($result->status==1){ ?>

<div class="vehicle_status"> <a class="btn outline btn-xs active-


btn">Active</a>

<div class="clearfix"></div>

</div>

<?php } else {?>

<div class="vehicle_status"> <a href="#" class="btn outline btn-


xs">Waiting for approval</a>

73
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div class="clearfix"></div>

</div>

<?php } ?>

</li>

<?php } } ?>

</ul>

</div>

</div>

</div>

</div>

</div>

</section>

<!--/my-vehicles-->

<<!--Footer -->

<?php include('includes/footer.php');?>

<!-- /Footer-->

<!--Back to top-->

<div id="back-top" class="back-top"> <a href="#top"><i class="fa fa-angle-up" aria-


hidden="true"></i> </a> </div>

<!-- Scripts -->

74
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<script src="assets/js/jquery.min.js"></script>

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

</body>

</html>

<?php } ?>

Profile.php:-

<?php

session_start();

error_reporting(0);

include('includes/config.php');

if(strlen($_SESSION['login'])==0)

header('location:index.php');

else{

75
Prateek Ranjan Maurya Online Cab Portel. 1605714823

if(isset($_POST['updateprofile']))

$name=$_POST['fullname'];

$mobileno=$_POST['mobilenumber'];

$dob=$_POST['dob'];

$adress=$_POST['address'];

$city=$_POST['city'];

$country=$_POST['country'];

$email=$_SESSION['login'];

$sql="update tblusers set


FullName=:name,ContactNo=:mobileno,dob=:dob,Address=:adress,City=:city,Countr
y=:country where EmailId=:email";

$query = $dbh->prepare($sql);

$query->bindParam(':name',$name,PDO::PARAM_STR);

$query->bindParam(':mobileno',$mobileno,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(':email',$email,PDO::PARAM_STR);

$query->execute();

$msg="Profile Updated Successfully";

?>

76
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<!DOCTYPE HTML>

<html lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width,initial-scale=1">

<meta name="keywords" content="">

<meta name="description" content="">

<title>Car Rental Portal | My Profile</title>

<!--Bootstrap -->

<link rel="stylesheet" href="assets/css/bootstrap.min.css" type="text/css">

<!--Custome Style -->

<link rel="stylesheet" href="assets/css/style.css" type="text/css">

<!--OWL Carousel slider-->

<link rel="stylesheet" href="assets/css/owl.carousel.css" type="text/css">

<link rel="stylesheet" href="assets/css/owl.transitions.css" type="text/css">

<!--slick-slider -->

<link href="assets/css/slick.css" rel="stylesheet">

<!--bootstrap-slider -->

<link href="assets/css/bootstrap-slider.min.css" rel="stylesheet">

<!--FontAwesome Font Style -->

<link href="assets/css/font-awesome.min.css" rel="stylesheet">

<!-- SWITCHER -->

77
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<link rel="stylesheet" id="switcher-css" type="text/css"


href="assets/switcher/css/switcher.css" media="all" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/red.css" title="red" media="all" data-default-color="true" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/orange.css" title="orange" media="all" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/blue.css" title="blue" media="all" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/pink.css" title="pink" media="all" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/green.css" title="green" media="all" />

<link rel="alternate stylesheet" type="text/css"


href="assets/switcher/css/purple.css" title="purple" media="all" />

<link rel="apple-touch-icon-precomposed" sizes="144x144"


href="assets/images/favicon-icon/apple-touch-icon-144-precomposed.png">

<link rel="apple-touch-icon-precomposed" sizes="114x114"


href="assets/images/favicon-icon/apple-touch-icon-114-precomposed.html">

<link rel="apple-touch-icon-precomposed" sizes="72x72"


href="assets/images/favicon-icon/apple-touch-icon-72-precomposed.png">

<link rel="apple-touch-icon-precomposed" href="assets/images/favicon-icon/apple-


touch-icon-57-precomposed.png">

<link rel="shortcut icon" href="assets/images/favicon-icon/favicon.png">

<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900"
rel="stylesheet">

<style>

.errorWrap {

padding: 10px;

78
Prateek Ranjan Maurya Online Cab Portel. 1605714823

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body>

<!-- Start Switcher -->

<?php include('includes/colorswitcher.php');?>

<!-- /Switcher -->

<!--Header-->

<?php include('includes/header.php');?>

79
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<!-- /Header -->

<!--Page Header-->

<section class="page-header profile_page">

<div class="container">

<div class="page-header_wrap">

<div class="page-heading">

<h1>Your Profile</h1>

</div>

<ul class="coustom-breadcrumb">

<li><a href="#">Home</a></li>

<li>Profile</li>

</ul>

</div>

</div>

<!-- Dark Overlay-->

<div class="dark-overlay"></div>

</section>

<!-- /Page Header-->

<?php

$useremail=$_SESSION['login'];

$sql = "SELECT * from tblusers where EmailId=:useremail";

$query = $dbh -> prepare($sql);

80
Prateek Ranjan Maurya Online Cab Portel. 1605714823

$query -> bindParam(':useremail',$useremail, PDO::PARAM_STR);

$query->execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;

if($query->rowCount() > 0)

foreach($results as $result)

{ ?>

<section class="user_profile inner_pages">

<div class="container">

<div class="user_profile_info gray-bg padding_4x4_40">

<div class="upload_user_logo"> <img src="assets/images/dealer-logo.jpg"


alt="image">

</div>

<div class="dealer_info">

<h5><?php echo htmlentities($result->FullName);?></h5>

<p><?php echo htmlentities($result->Address);?><br>

<?php echo htmlentities($result->City);?>&nbsp;<?php echo


htmlentities($result->Country);?></p>

</div>

</div>

<div class="row">

<div class="col-md-3 col-sm-3">

81
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<?php include('includes/sidebar.php');?>

<div class="col-md-6 col-sm-8">

<div class="profile_wrap">

<h5 class="uppercase underline">Genral Settings</h5>

<?php

if($msg){?><div class="succWrap"><strong>SUCCESS</strong>:<?php echo


htmlentities($msg); ?> </div><?php }?>

<form method="post">

<div class="form-group">

<label class="control-label">Reg Date -</label>

<?php echo htmlentities($result->RegDate);?>

</div>

<?php if($result->UpdationDate!=""){?>

<div class="form-group">

<label class="control-label">Last Update at -</label>

<?php echo htmlentities($result->UpdationDate);?>

</div>

<?php } ?>

<div class="form-group">

<label class="control-label">Full Name</label>

<input class="form-control white_bg" name="fullname" value="<?php echo


htmlentities($result->FullName);?>" id="fullname" type="text" required>

</div>

<div class="form-group">

<label class="control-label">Email Address</label>

82
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<input class="form-control white_bg" value="<?php echo


htmlentities($result->EmailId);?>" name="emailid" id="email" type="email" required
readonly>

</div>

<div class="form-group">

<label class="control-label">Phone Number</label>

<input class="form-control white_bg" name="mobilenumber" value="<?php


echo htmlentities($result->ContactNo);?>" id="phone-number" type="text" required>

</div>

<div class="form-group">

<label class="control-label">Date of Birth&nbsp;(dd/mm/yyyy)</label>

<input class="form-control white_bg" value="<?php echo


htmlentities($result->dob);?>" name="dob" placeholder="dd/mm/yyyy" id="birth-
date" type="text" >

</div>

<div class="form-group">

<label class="control-label">Your Address</label>

<textarea class="form-control white_bg" name="address" rows="4" ><?php


echo htmlentities($result->Address);?></textarea>

</div>

<div class="form-group">

<label class="control-label">Country</label>

<input class="form-control white_bg" id="country" name="country"


value="<?php echo htmlentities($result->City);?>" type="text">

</div>

<div class="form-group">

83
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<label class="control-label">City</label>

<input class="form-control white_bg" id="city" name="city" value="<?php


echo htmlentities($result->City);?>" type="text">

</div>

<?php }} ?>

<div class="form-group">

<button type="submit" name="updateprofile" class="btn">Save Changes


<span class="angle_arrow"><i class="fa fa-angle-right" aria-
hidden="true"></i></span></button>

</div>

</form>

</div>

</div>

</div>

</div>

</section>

<!--/Profile-setting-->

<<!--Footer -->

<?php include('includes/footer.php');?>

<!-- /Footer-->

<!--Back to top-->

84
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div id="back-top" class="back-top"> <a href="#top"><i class="fa fa-angle-up" aria-


hidden="true"></i> </a> </div>

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

<!-- Scripts -->

<script src="assets/js/jquery.min.js"></script>

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

85
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<!--Slider-JS-->

<script src="assets/js/slick.min.js"></script>

<script src="assets/js/owl.carousel.min.js"></script>

</body>

</html>

<?php } ?>

Dashboard Admin:-

<?php

session_start();

error_reporting(0);

include('includes/config.php');

if(strlen($_SESSION['alogin'])==0)

header('location:index.php');

else{

?>

<!doctype html>

<html lang="en" class="no-js">

<head>

<meta charset="UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

86
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<meta name="viewport" content="width=device-width, initial-scale=1,


minimum-scale=1, maximum-scale=1">

<meta name="description" content="">

<meta name="author" content="">

<meta name="theme-color" content="#3e454c">

<title>Car Rental Portal | Admin Dashboard</title>

<!-- Font awesome -->

<link rel="stylesheet" href="css/font-awesome.min.css">

<!-- Sandstone Bootstrap CSS -->

<link rel="stylesheet" href="css/bootstrap.min.css">

<!-- Bootstrap Datatables -->

<link rel="stylesheet" href="css/dataTables.bootstrap.min.css">

<!-- Bootstrap social button library -->

<link rel="stylesheet" href="css/bootstrap-social.css">

<!-- Bootstrap select -->

<link rel="stylesheet" href="css/bootstrap-select.css">

<!-- Bootstrap file input -->

<link rel="stylesheet" href="css/fileinput.min.css">

<!-- Awesome Bootstrap checkbox -->

<link rel="stylesheet" href="css/awesome-bootstrap-checkbox.css">

<!-- Admin Stye -->

<link rel="stylesheet" href="css/style.css">

</head>

87
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<body>

<?php include('includes/header.php');?>

<div class="ts-main-content">

<?php include('includes/leftbar.php');?>

<div class="content-wrapper">

<div class="container-fluid">

<div class="row">

<div class="col-md-12">

<h2 class="page-title">Dashboard</h2>

<div class="row">

<div class="col-md-12">

<div class="row">

<div class="col-
md-3">

<div
class="panel panel-default">

<div class="panel-body bk-primary text-light">

<div class="stat-panel text-center">

88
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<?php

$sql ="SELECT id from tblusers ";

$query = $dbh -> prepare($sql);

$query->execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

$regusers=$query->rowCount();

?>

<div class="stat-panel-number h1 "><?php echo


htmlentities($regusers);?></div>

<div class="stat-panel-title text-uppercase">Reg Users</div>

</div>

</div>

<a
href="reg-users.php" class="block-anchor panel-footer">Full Detail <i class="fa fa-
arrow-right"></i></a>

</div>

</div>

<div class="col-
md-3">

<div
class="panel panel-default">

<div class="panel-body bk-success text-light">

89
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div class="stat-panel text-center">

<?php

$sql1 ="SELECT id from tblvehicles ";

$query1 = $dbh -> prepare($sql1);;

$query1->execute();

$results1=$query1->fetchAll(PDO::FETCH_OBJ);

$totalvehicle=$query1->rowCount();

?>

<div class="stat-panel-number h1 "><?php echo


htmlentities($totalvehicle);?></div>

<div class="stat-panel-title text-uppercase">Listed Vehicles</div>

</div>

</div>

<a
href="manage-vehicles.php" class="block-anchor panel-footer text-center">Full
Detail &nbsp; <i class="fa fa-arrow-right"></i></a>

</div>

</div>

<div class="col-
md-3">

90
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div
class="panel panel-default">

<div class="panel-body bk-info text-light">

<div class="stat-panel text-center">

<?php

$sql2 ="SELECT id from tblbooking ";

$query2= $dbh -> prepare($sql2);

$query2->execute();

$results2=$query2->fetchAll(PDO::FETCH_OBJ);

$bookings=$query2->rowCount();

?>

<div class="stat-panel-number h1 "><?php echo


htmlentities($bookings);?></div>

<div class="stat-panel-title text-uppercase">Total Bookings</div>

</div>

</div>

<a
href="manage-bookings.php" class="block-anchor panel-footer text-center">Full
Detail &nbsp; <i class="fa fa-arrow-right"></i></a>

</div>

91
Prateek Ranjan Maurya Online Cab Portel. 1605714823

</div>

<div class="col-
md-3">

<div
class="panel panel-default">

<div class="panel-body bk-warning text-light">

<div class="stat-panel text-center">

<?php

$sql3 ="SELECT id from tblbrands ";

$query3= $dbh -> prepare($sql3);

$query3->execute();

$results3=$query3->fetchAll(PDO::FETCH_OBJ);

$brands=$query3->rowCount();

?>

<div class="stat-panel-number h1 "><?php echo


htmlentities($brands);?></div>

<div class="stat-panel-title text-uppercase">Listed Brands</div>

</div>

</div>

92
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<a
href="manage-brands.php" class="block-anchor panel-footer text-center">Full Detail
&nbsp; <i class="fa fa-arrow-right"></i></a>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

<div class="row">

<div class="col-md-12">

<div class="row">

<div class="col-md-12">

<div class="row">

<div class="col-
md-3">

<div
class="panel panel-default">

<div class="panel-body bk-primary text-light">

93
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div class="stat-panel text-center">

<?php

$sql4 ="SELECT id from tblsubscribers ";

$query4 = $dbh -> prepare($sql4);

$query4->execute();

$results4=$query4->fetchAll(PDO::FETCH_OBJ);

$subscribers=$query4->rowCount();

?>

<div class="stat-panel-number h1 "><?php echo


htmlentities($subscribers);?></div>

<div class="stat-panel-title text-uppercase">Subscibers</div>

</div>

</div>

<a
href="manage-subscribers.php" class="block-anchor panel-footer">Full Detail <i
class="fa fa-arrow-right"></i></a>

</div>

</div>

<div class="col-
md-3">

<div
class="panel panel-default">

94
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div class="panel-body bk-success text-light">

<div class="stat-panel text-center">

<?php

$sql6 ="SELECT id from tblcontactusquery ";

$query6 = $dbh -> prepare($sql6);;

$query6->execute();

$results6=$query6->fetchAll(PDO::FETCH_OBJ);

$query=$query6->rowCount();

?>

<div class="stat-panel-number h1 "><?php echo


htmlentities($query);?></div>

<div class="stat-panel-title text-uppercase">Queries</div>

</div>

</div>

<a
href="manage-conactusquery.php" class="block-anchor panel-footer text-
center">Full Detail &nbsp; <i class="fa fa-arrow-right"></i></a>

</div>

</div>

95
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div class="col-
md-3">

<div
class="panel panel-default">

<div class="panel-body bk-info text-light">

<div class="stat-panel text-center">

<?php

$sql5 ="SELECT id from tbltestimonial ";

$query5= $dbh -> prepare($sql5);

$query5->execute();

$results5=$query5->fetchAll(PDO::FETCH_OBJ);

$testimonials=$query5->rowCount();

?>

<div class="stat-panel-number h1 "><?php echo


htmlentities($testimonials);?></div>

<div class="stat-panel-title text-uppercase">Testimonials</div>

</div>

</div>

96
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<a
href="testimonials.php" class="block-anchor panel-footer text-center">Full Detail
&nbsp; <i class="fa fa-arrow-right"></i></a>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

<!-- Loading Scripts -->

97
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<script src="js/jquery.min.js"></script>

<script src="js/bootstrap-select.min.js"></script>

<script src="js/bootstrap.min.js"></script>

<script src="js/jquery.dataTables.min.js"></script>

<script src="js/dataTables.bootstrap.min.js"></script>

<script src="js/Chart.min.js"></script>

<script src="js/fileinput.js"></script>

<script src="js/chartData.js"></script>

<script src="js/main.js"></script>

<script>

window.onload = function(){

// Line chart from swirlData for dashReport

var ctx = document.getElementById("dashReport").getContext("2d");

window.myLine = new Chart(ctx).Line(swirlData, {

responsive: true,

scaleShowVerticalLines: false,

scaleBeginAtZero : true,

multiTooltipTemplate: "<%if (label){%><%=label%>:


<%}%><%= value %>",

});

// Pie Chart from doughutData

98
Prateek Ranjan Maurya Online Cab Portel. 1605714823

var doctx = document.getElementById("chart-


area3").getContext("2d");

window.myDoughnut = new Chart(doctx).Pie(doughnutData,


{responsive : true});

// Dougnut Chart from doughnutData

var doctx = document.getElementById("chart-


area4").getContext("2d");

window.myDoughnut = new Chart(doctx).Doughnut(doughnutData,


{responsive : true});

</script>

</body>

</html>

<?php } ?>

RegUser.php

<?php

session_start();

error_reporting(0);

include('includes/config.php');

if(strlen($_SESSION['alogin'])==0)

header('location:index.php');

99
Prateek Ranjan Maurya Online Cab Portel. 1605714823

else{

if(isset($_GET['del']))

$id=$_GET['del'];

$sql = "delete from tblbrands WHERE id=:id";

$query = $dbh->prepare($sql);

$query -> bindParam(':id',$id, PDO::PARAM_STR);

$query -> execute();

$msg="Page data updated successfully";

?>

<!doctype html>

<html lang="en" class="no-js">

<head>

<meta charset="UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1,


minimum-scale=1, maximum-scale=1">

<meta name="description" content="">

100
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<meta name="author" content="">

<meta name="theme-color" content="#3e454c">

<title>Car Rental Portal |Admin Manage testimonials </title>

<!-- Font awesome -->

<link rel="stylesheet" href="css/font-awesome.min.css">

<!-- Sandstone Bootstrap CSS -->

<link rel="stylesheet" href="css/bootstrap.min.css">

<!-- Bootstrap Datatables -->

<link rel="stylesheet" href="css/dataTables.bootstrap.min.css">

<!-- Bootstrap social button library -->

<link rel="stylesheet" href="css/bootstrap-social.css">

<!-- Bootstrap select -->

<link rel="stylesheet" href="css/bootstrap-select.css">

<!-- Bootstrap file input -->

<link rel="stylesheet" href="css/fileinput.min.css">

<!-- Awesome Bootstrap checkbox -->

<link rel="stylesheet" href="css/awesome-bootstrap-checkbox.css">

<!-- Admin Stye -->

<link rel="stylesheet" href="css/style.css">

<style>

.errorWrap {

padding: 10px;

101
Prateek Ranjan Maurya Online Cab Portel. 1605714823

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body>

<?php include('includes/header.php');?>

<div class="ts-main-content">

<?php include('includes/leftbar.php');?>

<div class="content-wrapper">

102
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div class="container-fluid">

<div class="row">

<div class="col-md-12">

<h2 class="page-title">Registered
Users</h2>

<!-- Zero Configuration Table -->

<div class="panel panel-default">

<div class="panel-heading">Reg
Users</div>

<div class="panel-body">

<?php if($error){?><div
class="errorWrap"><strong>ERROR</strong>:<?php echo htmlentities($error); ?>
</div><?php }

else if($msg){?><div
class="succWrap"><strong>SUCCESS</strong>:<?php echo htmlentities($msg); ?>
</div><?php }?>

<table id="zctb"
class="display table table-striped table-bordered table-hover" cellspacing="0"
width="100%">

<thead>

<tr>

<th>#</th>

<th> Name</th>

103
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<th>Email </th>

<th>Contact no</th>

<th>DOB</th>

<th>Address</th>

<th>City</th>

<th>Country</th>

<th>Reg
Date</th>

</tr>

</thead>

<tfoot>

<tr>

<th>#</th>

<th> Name</th>

<th>Email </th>

<th>Contact no</th>

104
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<th>DOB</th>

<th>Address</th>

<th>City</th>

<th>Country</th>

<th>Reg
Date</th>

</tr>

</tr>

</tfoot>

<tbody>

<?php $sql =
"SELECT * from tblusers ";

$query = $dbh -> prepare($sql);

$query->execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;

if($query->rowCount() > 0)

foreach($results as $result)

{ ?>

<tr>

105
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<td><?php echo htmlentities($cnt);?></td>

<td><?php echo htmlentities($result->FullName);?></td>

<td><?php echo htmlentities($result->EmailId);?></td>

<td><?php echo htmlentities($result->ContactNo);?></td>

<td><?php echo htmlentities($result->dob);?></td>

<td><?php echo htmlentities($result->Address);?></td>

<td><?php echo htmlentities($result->City);?></td>

<td><?php echo htmlentities($result->Country);?></td>

<td><?php echo htmlentities($result->RegDate);?></td>

</tr>

<?php
$cnt=$cnt+1; }} ?>

</tbody>

</table>

</div>

106
Prateek Ranjan Maurya Online Cab Portel. 1605714823

</div>

</div>

</div>

</div>

</div>

</div>

<!-- Loading Scripts -->

<script src="js/jquery.min.js"></script>

<script src="js/bootstrap-select.min.js"></script>

<script src="js/bootstrap.min.js"></script>

<script src="js/jquery.dataTables.min.js"></script>

<script src="js/dataTables.bootstrap.min.js"></script>

<script src="js/Chart.min.js"></script>

<script src="js/fileinput.js"></script>

<script src="js/chartData.js"></script>

<script src="js/main.js"></script>

</body>

</html>

<?php } ?>

107
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Manging Booking

<?php

session_start();

error_reporting(0);

include('includes/config.php');

if(strlen($_SESSION['alogin'])==0)

header('location:index.php');

else{

if(isset($_REQUEST['eid']))

$eid=intval($_GET['eid']);

$status="2";

$sql = "UPDATE tblbooking SET Status=:status WHERE id=:eid";

$query = $dbh->prepare($sql);

$query -> bindParam(':status',$status, PDO::PARAM_STR);

$query-> bindParam(':eid',$eid, PDO::PARAM_STR);

$query -> execute();

$msg="Booking Successfully Cancelled";

108
Prateek Ranjan Maurya Online Cab Portel. 1605714823

if(isset($_REQUEST['aeid']))

$aeid=intval($_GET['aeid']);

$status=1;

$sql = "UPDATE tblbooking SET Status=:status WHERE id=:aeid";

$query = $dbh->prepare($sql);

$query -> bindParam(':status',$status, PDO::PARAM_STR);

$query-> bindParam(':aeid',$aeid, PDO::PARAM_STR);

$query -> execute();

$msg="Booking Successfully Confirmed";

?>

<!doctype html>

<html lang="en" class="no-js">

<head>

<meta charset="UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1,


minimum-scale=1, maximum-scale=1">

109
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<meta name="description" content="">

<meta name="author" content="">

<meta name="theme-color" content="#3e454c">

<title>Car Rental Portal |Admin Manage testimonials </title>

<!-- Font awesome -->

<link rel="stylesheet" href="css/font-awesome.min.css">

<!-- Sandstone Bootstrap CSS -->

<link rel="stylesheet" href="css/bootstrap.min.css">

<!-- Bootstrap Datatables -->

<link rel="stylesheet" href="css/dataTables.bootstrap.min.css">

<!-- Bootstrap social button library -->

<link rel="stylesheet" href="css/bootstrap-social.css">

<!-- Bootstrap select -->

<link rel="stylesheet" href="css/bootstrap-select.css">

<!-- Bootstrap file input -->

<link rel="stylesheet" href="css/fileinput.min.css">

<!-- Awesome Bootstrap checkbox -->

<link rel="stylesheet" href="css/awesome-bootstrap-checkbox.css">

<!-- Admin Stye -->

<link rel="stylesheet" href="css/style.css">

<style>

.errorWrap {

110
Prateek Ranjan Maurya Online Cab Portel. 1605714823

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body>

<?php include('includes/header.php');?>

<div class="ts-main-content">

<?php include('includes/leftbar.php');?>

111
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<div class="content-wrapper">

<div class="container-fluid">

<div class="row">

<div class="col-md-12">

<h2 class="page-title">Manage
Bookings</h2>

<!-- Zero Configuration Table -->

<div class="panel panel-default">

<div class="panel-
heading">Bookings Info</div>

<div class="panel-body">

<?php if($error){?><div
class="errorWrap"><strong>ERROR</strong>:<?php echo htmlentities($error); ?>
</div><?php }

else if($msg){?><div
class="succWrap"><strong>SUCCESS</strong>:<?php echo htmlentities($msg); ?>
</div><?php }?>

<table id="zctb"
class="display table table-striped table-bordered table-hover" cellspacing="0"
width="100%">

<thead>

<tr>

<th>#</th>

112
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<th>Name</th>

<th>Vehicle</th>

<th>From Date</th>

<th>To Date</th>

<th>Message</th>

<th>Status</th>

<th>Posting date</th>

<th>Action</th>

</tr>

</thead>

<tfoot>

<tr>

<th>#</th>

<th>Name</th>

<th>Vehicle</th>

<th>From Date</th>

113
Prateek Ranjan Maurya Online Cab Portel. 1605714823

<th>To Date</th>

<th>Message</th>

<th>Status</th>

<th>Posting date</th>

<th>Action</th>

</tr>

</tfoot>

<tbody>

<?php $sql =
"SELECT
tblusers.FullName,tblbrands.BrandName,tblvehicles.VehiclesTitle,tblbooking.FromD
ate,tblbooking.ToDate,tblbooking.message,tblbooking.VehicleId as
vid,tblbooking.Status,tblbooking.PostingDate,tblbooking.id from tblbooking join
tblvehicles on tblvehicles.id=tblbooking.VehicleId join tblusers on
tblusers.EmailId=tblbooking.userEmail join tblbrands on
tblvehicles.VehiclesBrand=tblbrands.id ";

$query = $dbh -> prepare($sql);

$query->execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;

if($query->rowCount() > 0)

114
Prateek Ranjan Maurya Online Cab Portel. 1605714823

foreach($results as $result)

{ ?>

<tr>

<td><?php echo htmlentities($cnt);?></td>

<td><?php echo htmlentities($result->FullName);?></td>

<td><a href="edit-vehicle.php?id=<?php echo htmlentities($result-


>vid);?>"><?php echo htmlentities($result->BrandName);?> , <?php echo
htmlentities($result->VehiclesTitle);?></td>

<td><?php echo htmlentities($result->FromDate);?></td>

<td><?php echo htmlentities($result->ToDate);?></td>

<td><?php echo htmlentities($result->message);?></td>

<td><?php

if($result->Status==0)

echo htmlentities('Not Confirmed yet');

} else if ($result->Status==1) {

echo htmlentities('Confirmed');

else{

echo htmlentities('Cancelled');

115
Prateek Ranjan Maurya Online Cab Portel. 1605714823

?></td>

<td><?php echo htmlentities($result->PostingDate);?></td>

<td><a
href="manage-bookings.php?aeid=<?php echo htmlentities($result->id);?>"
onclick="return confirm('Do you really want to Confirm this booking')">
Confirm</a> /

<a href="manage-bookings.php?eid=<?php echo htmlentities($result->id);?>"


onclick="return confirm('Do you really want to Cancel this Booking')"> Cancel</a>

</td>

</tr>

<?php
$cnt=$cnt+1; }} ?>

</tbody>

</table>

</div>

</div>

116
Prateek Ranjan Maurya Online Cab Portel. 1605714823

</div>

</div>

</div>

</div>

</div>

<!-- Loading Scripts -->

<script src="js/jquery.min.js"></script>

<script src="js/bootstrap-select.min.js"></script>

<script src="js/bootstrap.min.js"></script>

<script src="js/jquery.dataTables.min.js"></script>

<script src="js/dataTables.bootstrap.min.js"></script>

<script src="js/Chart.min.js"></script>

<script src="js/fileinput.js"></script>

<script src="js/chartData.js"></script>

<script src="js/main.js"></script>

</body>

</html>

<?php } ?>

117
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Testing

 System Testing
System testing is a critical element of quality assurance and represents the ultimate review of
analysis, design and coding. Test case design focuses on a set of techniques for the creation
of test because that meet overall testing objective. When a system is developed it is hoped
that it performs properly. The main purpose of testing an information system is to find the
errors and correct them. The scope of system testing should include both manual and
computerized operations. System testing is comprehensive evaluation of the programs,
manual procedures, computer operations and controls.
System testing is the process of checking whether the developed system is working
according to the objective and requirement. All testing is to be conducted in accordance to
the test conditions specified earlier. This will ensure that the test coverage meets the
requirements and that testing is done in a systematic manner.
The process of analyzing the software item to detect the differences between existing or
required condition and evaluate the features of the software items. The thorough testing of the
system before release of the software needs to be done vide the various test cases and modes
so that the software becomes devoid of bugs and uses minimum space requirements as well
as minimum time to perform. The test cases were selected beforehand with expected results
defined and actual results recorded for comparison. The selection of test cases is done vide
“White Box Testing” technique to check the internal programming logic and efficiency and
vide ”Black Box Testing” technique to check software requirement fulfillment with intension
of finding maximum number of errors with minimum effort and time. Although test cases are
a design by considering the cyclomatic complexity, conditional test, still the software code is
not in its optional form, as all other possible alternative parts in the software are not
considered. At the integration level, the software will be passing to the third party tests which
would further enhance the software optimality and efficiency.

 TEST CHARACTERS :

1. A good test has a high probability of finding an error.

2. A good test is not redundant.

3. A good test should be “best of breed”.

4. A good test should be neither too simple nor too complex.

118
Prateek Ranjan Maurya Online Cab Portel. 1605714823

UNIT TESTING:

The unit testing is performed to test the validity of the individual units. This is done in the
coding phase with the interactive testing. Thus it itself constitutes a majority of functionality
test for each logical unit.

INTEGRITY TESTING:

When all the development of all the units or modules is


c o m p l e t e d a n d integrated the integrity test phase is started. In this phase the interface
between t h e m o d u l e s a r e t e s t e d . T h i s p h a s e b a s i c a l l y v e r i f i e s w h e t h e r
i n t e r m o d u l e exchange of information and events are as per required system behavior.

 VALIDATIONTESTING:

Tests were performed to find conformity with the requirements. Plans


and p r o c e d u r e s were designed to ensure that all functional
r e q u i r e m e n t s a r e satisfied. The software was alpha-tested. There are two goals in
preparing test plans. Firstly, a properly detailed test plan d e m o n s t r a t e s t h a t t h e
p r o g r a m s p e c i f i c a t i o n s a r e u n d e r s t o o d c o m p l e t e l y . Secondly, the test plan is
used during program testing to prove the correctness of the program.

5.1 TEST CASES

Login:

Sl Input Values Test case Conditional being checked Result


No

1 Email Empty Please Enter valid Username Successful

3 Email Already Login ID should be unique Successful


Exists or
not

4 Password Empty Please Enter valid Password Successful

5 Password If wrong Enter Password Successful


Password

119
Prateek Ranjan Maurya Online Cab Portel. 1605714823

6 Password Length Length should be less than or equal Successful


to 10 character

Table 5.1 login table

Registration:

Sl Input Test case Conditional being checked Result


No Values

1. Mail Empty Enter valid Email ID. Successful

2 Name Empty Name must not be empty Successful

3 Mobile No. Empty Enter valid mobile no. Successful

4 Password Empty Enter valid Password. Successful

5 Password Length Minimum 6 characters Successful


required

6 Confirm Empty Password and confirmation Successful


Password password must be same

Table 5.2 Registration table

Cab Add:-

Sl Input Test case Conditional being checked Result


No Values

1. Brand Null First Name must not be empty Successful

2 type Empty Last Name must not be empty Successful

3 Number Empty City must not be empty Successful

4 Length Empty state must not be empty Successful

5 Pin code Empty PIN code must not be empty Successful

7 Empty Name not empty Successful

120
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Ad Renew:-

Sl Input Test case Conditional being checked Result


No Values

1 My profile Empty Select Value Successful

2 package Null Select package Successful

3 Renew ad Empty Submit Successful

Search Room:-

Sl Input Test case Conditional being checked Result


No Values

1 Country Empty Select Value Successful

2 State Empty Select Value Successful

3 City Empty Select Value Successful

4 Locality Empty Select Value Successful

121
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Types of Testing:

White-Box Testing:

This testing is also known as “glass-box testing”. Using white-box testing, test cases are
derived that

 Guarantee that all independent paths within a module have been exercised at last
once;
 Exercise all logical decisions on their true and false sides;
 Execute all loops at their boundaries and within their operational bounds; and
 Exercise internal data structures to assure their validity.

Reasons for preferring White-Box Testing:

 Logic errors and incorrect assumptions are inversely proportional to the probability that
a program path will be executed.
 We often believe that a logical path is not likely to be executed when in fact it may be
executed on a regular basis.

Black-Box Testing:

This testing focuses on the functional requirements of the software i.e. it enables to derive set
of input conditions that will folly exercise all functional requirements for a program. It is not
an alternative to white-box techniques rather it is a complementary approach i.e. likely to
uncover a different class of errors than white-box methods.

Black-Box attempts to find errors in the following categories:

 Incorrect or missing functions,


 Interface errors,
 Errors in data structures or external database access
 Performance errors, and
 Initialization and termination errors

122
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Alpha Testing:

The alpha test is conducted at developer’s site by a customer. The software is used in a
natural setting with the developer “looking over the shoulder” of the user and recording errors
and usage problems. Alpha test is conducted in controlled environment.

Beta Testing:

The beta test is conducted at one or more customer’s sites by end users of the software.
Unlike alpha testing, the developer is generally not present. Therefore, the beta test is a
“Live” application of the software in an environment that cannot be controlled by the
developer. The customer records all problems that are encountered during beta testing and
reports these to developer at regular interval. As a result of problems reported during beta
tests, software engineers make modifications and then prepare for release of the software
product to the entire customer base.

123
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Limitation

 This website is based on a particular area.


 This website is totally based on internet.
 No User Show connect details not Registered.
 Search Room Of theparticular area.
 No show the Ad Without package.

124
Prateek Ranjan Maurya Online Cab Portel. 1605714823

Future Scope

 Give permission to add Post to user.


 Update the Website for the slow internet connection.
 Better user interphase.
 Give permission to download the latest maps.

125
Prateek Ranjan Maurya Online Cab Portel. 1605714823

BIBLOGRAPHY

 Murach’s PHP and MySQL – Joel Murach &Ray Harris


 Software engineering - Roger S. PressmanPHP and MySQL- Bible

 REFERENCE SITE
 http://www.Kayak.com
 http://www.Zoomcar.com

126

Das könnte Ihnen auch gefallen