206P - MCA - Project Document

Download as pdf or txt
Download as pdf or txt
You are on page 1of 98

ACKNOWLEDGEMENT

In this modern world of competition there is a race of existence in which those are efficient to
come forward to succeed. Project is like a bridge between theoretical and practical .So, I have
joined this particular project. Today after completing my project I feel great relief and
satisfaction, now when I look back, I still remember the day when I was assigned this project
“CAR RENTAL SYSTEM”
I was somewhat puzzled and a bit nervous and curious where to begin from. This was a new
exposure for us. At this juncture of time when my project is completed, I would like to thank
the people who provided their power to complete this work and to my parents who always
inspired and encouraged me throughout my life. Once again, I would like to convey my
sincere and special thanks to the Faculty of Computer Science & Applications, for there kind
cooperation and knowledge assistance in giving shape to this project and great regards for all
the College staff members who gave me the practical knowledge of all. I believe that without
their guidance the successful completion of this project “CAR RENTAL SYSTEM” was not
possible.
I am very thankful to everyone who all supported me, for I have completed my project
effectively and moreover, on time. I am equally grateful to my teacher “Dr.Susil Kumar
Sahoo” Head of the Department of Computer Science & Applications & my Respective
teacher “Mrs. K.Kalai Selvi”. She gave us moral support and guided me in different matters
regarding the topic. She has been very kind and patient, whilst suggesting about the outlines
of this project, and correcting my doubts. I thank her for her overall support.
Last but not the least, I would like to thank my parents who has helped me a lot in gathering
different information, collecting data and guiding me from time to time in completing this
project. Despite their busy schedules, they gave me different ideas to help make this project
unique.
CONTENTS Page No.

1. Introduction……………………………………………………………2

1.1 Abstsract………………………………………………………...2

1.2 Domain Study…………………………………………………...4

2. System Requirement Specification……………………………………6

2.1 Existing System………………………………………………....7

2.2 Proposed System………………………………………………..8

2.2.1 Functional Requirements…………………………...….8

2.2.2 Non functional Requirements………………………….9

2.3 System Specification…………………………………………...10

2.4 Tool Survey…………………………………………………….11

3. Design Specifications…………………………………………………21

3.1 System Design………………………………………………….22

3.1.1 Zero Level DFD………………………………………..24

3.1.2 First Level DFD………………………………………..24

3.1.3 Second Level DFD……………………………………..25

3.1.4 Class Diagram……………………………………...…..25

3.1.5 Sequence Diagram………………………………….….26

3.1.6 User Case Diagram………………………………..…...26

4. Implementation Details………………………………………………..27

4.1 Source Code……………………………………………...……..28

4.2 Screen Shots…………………………………………….......…..70

5. Testing…………………………………………………………………89

6. Conclusion……………………………………………………………..93

6.1 Future Enhancements……………………………………………94

7. Bibliography……………………………………………………………95
CAR RENTAL SYSTEM

INTRODUCTION

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 1


CAR RENTAL SYSTEM

1. ABSTRACT

The domain chosen by me to practice the database customization and creation is “Car Rental
System”. This project is designed to be used by a car rental company specializing in rentals to
cars to customer. It is an online system through which customers can view available cars,
register, view profile and book car. The advancement in information technology and internet
penetration has greatly enhanced various business process and communication between the
companies (service provider) and their customers of which car rental industry is not left out. A
car rental is a vehicle that can be used temporarily for a free during a specified period. Getting
a rental car helps people get around despite that fact they do not have access to their own
personal vehicle or don’t own a vehicle at all. The individual who needs a car must contact a
rental car company and contact us for a vehicle. The system increases customer retention and
simplify vehicle and staff management. A car rental is a vehicle that can be used temporarily
for a period of time with a fee. Renting a car assists people to get around even when they do
not have access to their own personal vehicle or don’t own a vehicle at all. The individual who
want to rent a car must first contact the car rental company for the desire vehicle. This can be
done online. At this point, This person has to supply some information such as; dates of rental,
and type of car. After these details are worked out, the individual renting the car must present a
valid identification card.Most companies throughout the industry make a profit based of the
type of cars that are rented. The rental cars are categorized into economy, compact, compact
premium, premium and luxury. And customers are free to choose any car of their choice based
on their purse and availability of such car at the time of reservation. This online car rental
solution is fully functional and flexible.It is very easy to use.This online car rental system helps
in back office administration by streamlining and standardizing the procedures.It saves a lot of
time, money and labour.Eco-friendly: The monitoring of the vehicle activity and the overall
becomes easy and includes the least of paper work.The software acts as an office that is open
24/7.It increases the efficiency of the management at offering quality services to the
customers.It provides custom features development and support with the software.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 2


CAR RENTAL SYSTEM

Introduction:
The car rental system is being developed for customers so that they can book their book their
vehicles from any part of the world. This application takes information from the customers
through filling their details. A customer being registered in the web site has the facility to book
a vehicle which he requires .The proposed system is completely integrated online systems. It
automates manual procedure in an effective and efficient way. This automated system
facilitates customer and provides to fill up the details according to their requirements. It
includes type of vehicle they are trying to hire. The pupose of this system is to develop a
website for the people who can book their vehicles along with requirements from any part of
the world.

Benefits of online car rental services:


 This online car rental solution is fully functional and flexible.
 It is very easy to use.
 This online car rental system helps in back office administration by streamlining and
standardizing the procedures.
 It saves lot of time, money and labour.
 Eco-friendly: The monitoring of the vehicle activity and the overall business becomes
easy and includes the least of paper work.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 3


CAR RENTAL SYSTEM

Domain Study:
Problem Statement:
A car rental is a vehicle that can be used temporarily for a free during a specified period.
Getting a rental car helps people get around despite that fact they do not have access to their
own personal vehicle or don’t own a vehicle at all. The individual who needs a car must contact
a rental car company and contact us for a vehicle. The system increases customer retention and
simplify vehicle and staff management.

Aims & Objectives:


 To produce a web-based system that allow customer to register and reserve car online
and for the company to effectively manage their car rental business.
 To ease customer’s task whenever they need to rent a car.

Scope for the project Online Car Rental System


This project traverses a lot of areas ranging from business concept to computing field, and
required to perform several researches to be able to achieve the project objectives.

The area covered include:


 Car rental industry. This includes study on how the car rental business is being done,
process involved and opportunity that exist for improvement.
 PHP technology used for the development of the application.
 General customers as well as the company’s staff will be able to use the system
effectively.
 Web-platform means that the system will be available for access 24/7 except when
there is a temporary server issue which is expected to be minimal.

How Car Rental Services Work


A car rental is a vehicle that can be used temporarily for a period of time with a fee. Renting a
car assists people to get around even when they do not have access to their own personal
vehicle or don’t own a vehicle at all. The individual who want to rent a car must first contact
the car rental company for the desire vehicle. This can be done online. At this point, This
person has to supply some information such as; dates of rental, and type of car. After these
details are worked out, the individual renting the car must present a valid identification card.

Most companies throughout the industry make a profit based of the type of cars that are rented.
The rental cars are categorized into economy, compact, compact premium, premium and
luxury. And customers are free to choose any car of their choice based on their purse and
availability of such car at the time of reservation.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 4


CAR RENTAL SYSTEM

Benefits of Online Car Rental Services


 This online car rental solution is fully functional and flexible.
 It is very easy to use.
 This online car rental system helps in back office administration by streamlining
and standardizing the procedures.
 It saves a lot of time, money and labour.
 Eco-friendly: The monitoring of the vehicle activity and the overall becomes easy
and includes the least of paper work.
 The software acts as an office that is open 24/7.
 It increases the efficiency of the management at offering quality services to the
customers.
 It provides custom features development and support with the software.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 5


CAR RENTAL SYSTEM

SYSTEM
REQUIREMENT
SPECIFICATIONS

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 6


CAR RENTAL SYSTEM

System Requirement Specifications:


Existing System:
In the traditional architecture there existed only the server and the client. In most cases the
server was only a data base server that can only offer data. Therefore majority of the business
logic i.e., validations etc. had to be placed on the clients system. This makes maintenance
expensive. Such clients are called as 'fat clients'. This also means that every client has to be
trained as to how to use the application and even the security in the communication is also the
factor to be considered.

Since the actual processing of the data takes place on the remote client the data has to be
transported over the network, which requires a secured format of the transfer method. How to
conduct transactions is to be controlled by the client and advanced techniques implementing
the cryptographic standards in the executing the data transfer transactions. Present day
transactions are considered to be "un-trusted" in terms of security, i.e. they are relatively easy
to be hacked. And also we have to consider the transfer the large amount of data through the
network will give errors while transferring. Nevertheless, sensitive data transfer is to be carried
out even if there is lack of an alternative. Network security in the existing system is the
motivation factor for a new system with higher-level security standards for the information
exchange.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 7


CAR RENTAL SYSTEM

Proposed System:
The proposed system should have the following features. The transactions should take place in
a secured format between various clients in the network. It provides flexibility to the user to
transfer the data through the network very easily by compressing the large amount of file. It
should also identify the user and provide the communication according to the prescribed level
of security with transfer of the file requested and run the required process at the server if
necessary. In this system the data will be sending through the network as an audio file. The
user who received the file will do the operations like de embedding, decryption, and
decompress in their level of hierarchy etc.

Functional Requirements:
Requirement analysis is a software engineering technique that is composed of the various tasks
that determine the needs or conditions that are to be met for a new or altered product, taking
into consideration the possible conflicting requirements of the various users.

Functional requirements are those requirements that are used to illustrate the internal working
nature of the system. The description of the system and explanation of each subsystem. It
consists of what task the system should perform. The processes involved, which data should
the system holds and the interfaces with the user. The functional requirements identified are:

a. Customer’s registration: The system should allow new users to register online and
generate membership card.
b. Online reservation of cars: Customers should be able to use the system to make booking
and online reservation.
c. Automatic update to database once reservation to made or new customer registered.
Whenever there is new reservation or new registration, the system should be able to
update the database without any additional efforts from the admin.
d. Feedback to customers: It should provide means for customers to leave feedback.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 8


CAR RENTAL SYSTEM

Non-Functional Requirements:
It describes of the system that are concerned with how the system provides the functional
requirements. They are:

a. Security: The subsystem should provide a high level of security and integrity of the date
held by the system, only authorized personnel of the company can gain access to the
company’s secured page on the system and only users with valid password can login to
view user’s page.

b. Performance and Response time: The system should have high performance rate when
executing user’s input and should be able to provide feedback or response within a
short time span usually 50 seconds for highly complicated task and 20 to 25 for less
complicated task.

c. Error handling: Error should be considerably minimized and an appropriate error


message thst guides the user to recover from an error should be provided. Validation of
user’s input is highly essential. Also the standard time taken to recover from an error
should be 15 to 20 seconds.

d. Availability: This system should always be available for access at 24 hours. 7 days a
week. Also in the occurrence of any major system malfunctioning. The system should
be available in 1 to 2 working days. So that the business process is not severely
affected.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 9


CAR RENTAL SYSTEM

System Specification:
Tools /platform, Hardware and Software Requirements specifications:
For setting this ecommerce portal, it requires certain technical requirements to be met for the
store to operate property. First, a web server must be created to make the ecommerce store
publicly available on the web. Domain names and hosting services can easily be purchased for
an affordable price. When selecting a hosting service, you should check to see that these server
requirements are provided and installed on their web servers:

Software Details for running Online car rental system


 Web Server(preferably Apache)
 PHP (5.2.8)
 My SQL
 Curl

Required PHP libraries / modules


 Curl
 ZIP
 Zlib
 GO Library
 Mcrypt
 Mbstrings

The above PHP extensions should be available by almost all hosting providers. During the
install processes it will check you have them all enabled. You should contact your hosting
provider if one is missing.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 10


CAR RENTAL SYSTEM

Tool Survey:
Introduction to PHP:
PHP can be used in three primary ways:
Server-side scripting
PHP was originally designed to create dynamic web content, and it is still best suited for
that task. To generate HTML, you need the PHP parser and a web server through which to
send the coded documents. PHP has also become popular for generating XML documents,
graphics, Flash animations, PDF files, and so much more.

Command-line scripting
PHP can run scripts from the command line, much like Perl, awk, or the Unix shell. You
might use the command-line scripts for system administration tasks, such as backup and
log parsing; even some CRON job type scripts can be done this way (nonvisual PHP
tasks).

Client-side GUI applications


Using PHP-GTK, you can write full-blown, cross-platform GUI applications in PHP.
PHP runs on all major operating systems, from Unix variants including Linux, FreeBSD,
Ubuntu, Debian, and Solaris to Windows and Mac OS X. It can be used with all leading web
servers, including Apache, Microsoft IIS, and the Netscape/iPlanet servers.
The language itself is extremely flexible. For example, you aren’t limited to outputting just
HTML or other text files—any document format can be generated. PHP has built- in
support for generating PDF files, GIF, JPEG, and PNG images, and Flash movies.
One of PHP’s most significant features is its wide-ranging support for databases. PHP
supports all major databases (including MySQL, PostgreSQL, Oracle, Sybase, MS-SQL,
DB2, and ODBC-compliant databases), and even many obscure ones. Even the more
recent NoSQL-style databases like SQLite and MongoDB are also supported. With PHP,
creating web pages with dynamic content from a database is remarkably simple.
Finally, PHP provides a library of PHP code to perform common tasks, such as database
abstraction, error handling, and so on, with the PHP Extension and Application Repository
(PEAR). PEAR is a framework and distribution system for reusable PHP components.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 11


CAR RENTAL SYSTEM

Configuration Page:

The PHP function phpinfo() creates an HTML page full of information on how PHP was
installed and is currently configured. You can use it to see whether you have particular
extensions installed, or whether the php.ini file has been customized.

PHP was designed as a web-scripting language and, although it is possible to use it in


purely command-line and GUI scripts, the Web accounts for the vast majority of PHP
uses. A dynamic website may have forms, sessions, and sometimes redirection.

HTTP Basics:
The Web runs on HTTP, or Hyper Text Transfer Protocol. This protocol governs how web
browsers request files from web servers and how the servers send the files back.
When a web browser requests a web page, it sends an HTTP request message to a web
server. The request message always includes some header information, and it some- times
also includes a body. The web server responds with a reply message, which always includes
header information and usually contains a body. The first line of an HTTP request looks
like this:
GET /index.html HTTP/1.1

This line specifies an HTTP command, called a method, followed by the address of a
document and the version of the HTTP protocol being used. In this case, the request is
using the GET method to ask for the index.html document using HTTP 1.1. After this
initial line, the request can contain optional header information that gives the server
additional data about the request. For example:
User-Agent: Mozilla/5.0 (Windows 2000; U) Opera 6.0 [en] Accept: image/gif,
image/jpeg, text/*, */*

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 12


CAR RENTAL SYSTEM

Variables
$_COOKIE

Contains any cookie values passed as part of the request, where the keys of the array are
the names of the cookies
$_GET

Contains any parameters that are part of a GET request, where the keys of the array are the
names of the form parameters
$_POST

Contains any parameters that are part of a POST request, where the keys of the array are
the names of the form parameters
$_FILES

Contains information about any uploaded files


$_SERVER

Contains useful information about the web server, as described in the next section
$_ENV

Contains the values of any environment variables, where the keys of the array are the
names of the environment variables
These variables are not only global, but are also visible from within function definitions. The
$_REQUEST array is also created by PHP automatically. The $_REQUEST array contains the
elements of the $_GET, $_POST, and $_COOKIE arrays all in one array variable.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 13


CAR RENTAL SYSTEM

Xml
XML, the Extensible Markup Language, is a standardized data format. It looks a little like
HTML, with tags (<example>like this</example>) and entities (&amp;). Unlike HTML,
however, XML is designed to be easy to programmatically parse, and there are rules for
what you can and cannot do in an XML document. XML is now the standard data format in
fields as diverse as publishing, engineering, and medicine. It’s used for remote procedure
calls, databases, purchase orders, and much more.
There are many scenarios where you might want to use XML. Because it is a common
format for data transfer, other programs can emit XML files for you to either extract
information from (parse) or display in HTML (transform).
Recently, XML has been used in remote procedure calls (XML-RPC). A client encodes a
function name and parameter values in XML and sends them via HTTP to a server. The
server decodes the function name and values, decides what to do, and returns a response
value encoded in XML. XML-RPC has proved a useful way to integrate application
components written in different languages.

Generating XML:
Just as PHP can be used to generate dynamic HTML, it can also be used to generate
dynamic XML. You can generate XML for other programs to make use of based on forms,
database queries, or anything else you can do in PHP. One application for dynamic XML is
Rich Site Summary (RSS), a file format for syndicating news sites. You can read an article’s
information from a database or from HTML files and emit an XML summary file based on
that information.
Generating an XML document from a PHP script is simple. Simply change the MIME type
of the document, using the header() function, to "text/xml". To emit the
<?xml ... ?> declaration without it being interpreted as a malformed PHP tag, simply
echo the line from within PHP code:
echo '<?xml version="1.0" encoding="ISO-8859-1" ?>';

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 14


CAR RENTAL SYSTEM

Apache configuration with PHP:


Apache uses httpd.conf file for global settings, and the .htaccess file for per-directory access
settings. Older versions of Apache split up httpd.conf into three files (access.conf, httpd.conf,
and srm.conf), and some users still prefer this arrangement.

Apache server has a very powerful, but slightly complex, configuration system of its own.
Learn more about it at the Apache Web site: www.apache.org

The following section describes settings in httpd.conf that affect PHP directly and cannot be
set elsewhere. If you have standard installation, then httpd.conf will be found at
/etc/httpd/conf:

Timeout
This value sets the default number of seconds before any HTTP request will time out. If you
set PHP's max_execution_time to longer than this value, PHP will keep grinding away but the
user may see a 404 error. In safe mode, this value will be ignored; you must use the timeout
value in php.ini instead

DocumentRoot
DocumentRoot designates the root directory for all HTTP processes on that server. It looks
something like this on Unix:
DocumentRoot ./usr/local/apache_1.3.6/htdocs.
You can choose any directory as document root.

AddType
The PHP MIME type needs to be set here for PHP files to be parsed. Remember that you can

AddType application/x-httpd-php
.php AddType application/x-httpd-
phps .phps
AddType application/x-httpd-php3 .php3 .phtml
AddType application/x-httpd-php .html

associate any file extension with PHP like .php3, .php5 or .htm.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 15


CAR RENTAL SYSTEM

Action
You must uncomment this line for the Windows apxs module version of Apache with shared
object support:

LoadModule php4_module modules/php4apache.dll

AddModule
You must uncomment this line for the static module version of Apache.

AddModule mod_php4.c

PHP .INI file Configuration:


The PHP configuration file, php.ini, is the final and most immediate way to affect PHP's
functionality. The php.ini file is read each time PHP is initialized.in other words, whenever
httpd is restarted for the module version or with each script execution for the CGI version. If
your change isn’t showing up, remember to stop and restart httpd. If it still isn’t showing up,
use phpinfo() to check the path to php.ini.

The configuration file is well commented and thorough. Keys are case sensitive, keyword
values are not; whitespace, and lines beginning with semicolons are ignored. Booleans can
be represented by 1/0, Yes/No, On/Off, or True/False. The default values in php.ini-dist will
result in a reasonable PHP installation that can be tweaked later.

short_open_tag = Off
Short open tags look like this: <? ?>. This option must be set to Off if you want to use XML
functions.

safe_mode = Off
If this is set to On, you probably compiled PHP with the --enable-safe-mode flag. Safe
mode is most relevant to CGI use. See the explanation in the section "CGI compile-time
options". earlier in this chapter.

safe_mode_exec_dir = [DIR]
This option is relevant only if safe mode is on; it can also be set with the --with-exec-dir flag
during the Unix build process. PHP in safe mode only executes external binaries out of this
directory. The default is /usr/local/bin. This has nothing to do with serving up a normal
PHP/HTML Web page.
safe_mode_allowed_env_vars = [PHP_]
This option sets which environment variables users can change in safe mode. The default is
only those variables prepended with "PHP_". If this directive is empty, most variables are

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 16


CAR RENTAL SYSTEM

alterable.
safe_mode_protected_env_vars = [LD_LIBRARY_PATH]
This option sets which environment variables users can't change in safe mode, even if
safe_mode_allowed_env_vars is set permissively.

disable_functions = [function1, function2...]


A welcome addition to PHP4 configuration and one perpetuated in PHP5 is the ability to
disable selected functions for security reasons. Previously, this necessitated hand-editing the
C code from which PHP was made. Filesystem, system, and network functions should
probably be the first to go because allowing the capability to write files and alter the system
over HTTP is never such a safe idea.
max_execution_time = 30
The function set_time_limit() won.t work in safe mode, so this is the main way to make a
script time out in safe mode. In Windows, you have to abort based on maximum memory
consumed rather than time. You can also use the Apache timeout setting to timeout if you
use Apache, but that will apply to non-PHP files on the site too.

error_reporting = E_ALL & ~E_NOTICE


The default value is E_ALL & ~E_NOTICE, all errors except notices. Development servers
should be set to at least the default; only production servers should even consider a lesser
value

error_prepend_string = [""]
With its bookend, error_append_string, this setting allows you to make error messages a
different color than other text, or what you have.

warn_plus_overloading = Off
This setting issues a warning if the + operator is used with strings, as in a form value.

variables_order = EGPCS
This configuration setting supersedes gpc_order. Both are now deprecated along with
register_globals. It sets the order of the different variables: Environment, GET, POST,
COOKIE, and SERVER (aka Built-in).

You can change this order around. Variables will be overwritten successively in left-to-right
order, with the rightmost one winning the hand every time. This means if you left the default
setting and happened to use the same name for an environment variable, a POST variable,
and a COOKIE variable, the COOKIE variable would own that name at the end of the
process. In real life, this doesn't happen much.

register_globals = Off

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 17


CAR RENTAL SYSTEM

This setting allows you to decide whether you wish to register EGPCS variables as global.
This is now deprecated, and as of PHP4.2, this flag is set to Off by default. Use superglobal
arrays instead. All the major code listings in this book use superglobal arrays.

gpc_order = GPC
This setting has been GPC Deprecated.
magic_quotes_gpc = On
This setting escapes quotes in incoming GET/POST/COOKIE data. If you use a lot of forms
which possibly submit to themselves or other forms and display form values, you may need
to set this directive to On or prepare to use addslashes() on string-type data.

magic_quotes_runtime = Off
This setting escapes quotes in incoming database and text strings. Remember that SQL adds
slashes to single quotes and apostrophes when storing strings and does not strip them off
when returning them. If this setting is Off, you will need to use stripslashes() when outputting
any type of string data from a SQL database. If magic_quotes_sybase is set to On, this must
be Off.

magic_quotes_sybase = Off
This setting escapes single quotes in incoming database and text strings with Sybase-style
single quotes rather than backslashes. If magic_quotes_runtime is set to On, this must be
Off.

auto-prepend-file = [path/to/file]
If a path is specified here, PHP must automatically include() it at the beginning of every PHP
file. Include path restrictions do apply.

auto-append-file = [path/to/file]
If a path is specified here, PHP must automatically include() it at the end of every PHP
file.unless you escape by using the exit() function. Include path restrictions do apply.

include_path = [DIR]
If you set this value, you will only be allowed to include or require files from these
directories. The include directory is generally under your document root; this is mandatory
if you.re running in safe mode. Set this to . in order to include files from the same directory
your script is in. Multiple directories are separated by colons:
.:/usr/local/apache/htdocs:/usr/local/lib.
doc_root = [DIR]
If you.re using Apache, you.ve already set a document root for this server or virtual host in
httpd.conf. Set this value here if you.re using safe mode or if you want to enable PHP only on
a portion of your site (for example, only in one subdirectory of your Web root).

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 18


CAR RENTAL SYSTEM

file_uploads = [on/off]
Turn on this flag if you will upload files using PHP script.

upload_tmp_dir = [DIR]
Do not uncomment this line unless you understand the implications of HTTP uploads!
session.save-handler = files
Except in rare circumstances, you will not want to change this setting. So don't touch it.

ignore_user_abort = [On/Off]
This setting controls what happens if a site visitor clicks the browser.s Stop button. The default
is On, which means that the script continues to run to completion or timeout. If the setting is
changed to Off, the script will abort. This setting only works in module mode, not CGI.

mysql.default_host = hostname
The default server host to use when connecting to the database server if no other host is
specified.

mysql.default_user = username
The default user name to use when connecting to the database server if no other name is
specified.

mysql.default_password = password
The default password to use when connecting to the database server if no other password is
specified.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 19


CAR RENTAL SYSTEM

Syntax of PHP:
Canonical PHP tags
The most universally effective PHP tag style is:

<?php...?>
If you use this style, you can be positive that your tags will always be correctly interpreted.

Short-open (SGML-style) tags


Short or short-open tags look like this:

<?...?>
Short tags are, as one might expect, the shortest option You must do one of two things to
enable PHP to recognize the tags:

Choose the --enable-short-tags configuration option when you're building PHP.

Set the short_open_tag setting in your php.ini file to on. This option must be disabled to
parse XML with PHP because the same syntax is used for XML tags.

ASP-style tags
ASP-style tags mimic the tags used by Active Server Pages to delineate code blocks. ASP-

<%...%>
style tags look like this:
To use ASP-style tags, you will need to set the configuration option in your php.ini file.

HTML Script tag


HTML Script tag looks like:
<script language="PHP">...</script>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 20


CAR RENTAL SYSTEM

DESIGN
SPECIFICATIONS

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 21


CAR RENTAL SYSTEM

Design Specification:
System purpose:
The company wants to find a solution to reduce its operating costs. The system being
developed is a system to handle the business needs of renting out vehicles to customers.
Maintaining records and data on vehicle fleet, operating the customer portal website, and
reporting the state of the system to the company. The system does not fulfill any other needs
of the business.

System scope:
The functional scope of the system is represented in four different aspects of the system.
Customer ServiceModule( CS). WebPortal Module(WP), Fleet Management Module(FM)
and Reports and Analytics Module(RA).

 The scope of the Fleet Management module is keeping track of the rental vehicle
fleet. This module’s purpose will be to contain the data on the vehicle fleet and
information about the specific vehicles. The Fleet Management module will not
handle the renting of the vehicles.
 The scope of the Customers Web Portal is to rent vehicles to customers online in the
absence of an employee. The module will interface with the fleet management module
but will not perform any of that module’s duties. The same goes for theCustomer
Service module.
 The scope of the Customer Service Module is to provide a clear and easy to use layout
for employees and customers to follow along with as they work out rental. As
mentioned above the module will interface with the fleet management module but will
not perform any of that module’s duties.
 The scope of the Reports and Analytics Module is to provide a predetermined spot
that will contain all of the reports made from employees on car rentals. It will help the
store managers and corporate office when they need to file reports and check on
rentals.

System Context:
The system has been designed with four modules in mind. These modules are the customer
service module. The web portal module, the fleet management module, and the reports and
analytics module. These four modules will make up the structure of the system. The
customer service module will be the part of the system that is supposed to provide the
employee with everything they need to perform their duties. The web portal module will be
the part of the system that handles the website where the customers will be able to go through
an automated process to rent cars. The fleet management module will do as its name suggests
and manage the rental fleet. The reports and analytics module will be the part of the system
that will be used to generate reports from the remaining three modules for the purpose
organizing the data on the status of the company. The system will be able to interact with
outside systems to process payment on behalf of the company.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 22


CAR RENTAL SYSTEM

System functions:
This system will be able to rent our vehicles. The system will be able to accept payments.
The system will keep track of the rental fleet. The system will generate reports for the
employees.

System Analysis:
The analysis model is a concise, precise abstraction of what the desired system must do, and
not how it will be done after the study of the existing system is completed. This basically
includes system study and the requirement analysis. Interacting with the clients regarding
their requirements and expectations from the system does requirement analysis.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 23


CAR RENTAL SYSTEM

Zero level data flow diagram

First level data flow diagram:

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 24


CAR RENTAL SYSTEM

Second level data flow diagram:

Class diagram:

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 25


CAR RENTAL SYSTEM

Sequence diagram:

User case diagram:

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 26


CAR RENTAL SYSTEM

IMPLEMENTATION
DETAILS

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 27


CAR RENTAL SYSTEM

Implementation Details:
Implementation Methodology:
Model View Controller (MVC) as it is popularly called, is a software design pattern for
developing web application. A Model View Controller pattern made up of the following
three parts:

 Model – The lowest level of the pattern which is responsible for maintaining the data
 View - This is responsible for displaying all or portion of the data to the user
 Controller – Software Code that controls the interaction between the Model and View

MVC is popular as it isolates the application logic from the user interface layer and supports
separation of concerns. Here the controller receives all requests for the application and then
works with the Model to prepare any data needed by the View. The view then uses the data
prepared by the controller to generate a final presentable response. The MVC abstraction can
be graphically represented as follows.

Implementation of security mechanisms at various levels


Online Transaction Security System: The online transaction security system will provide a
safe and secure method for online shoppers to make credit card purchases on the website.
When a credit purchase is made using the website, the credit card information will be
encrypted using Secure Socket Layer (SSL) and transmitted to the bank for processing. This
security system will also provide access control for website visitors, which will allow only
registered users to make purchases. The registered customers account information will be
stored in the customer information database mentioned earlier.

Data Security System: The data security system will allow data to be securely transmitted
between the various components of the portal. This includes transmission of product,
merchant and customer information from the content management system to the website, and
also the transmission of data from the website to the content management system.

Folder Security using .htaccess: The .htaccess file in your sites directory is a configuration
file you can use to override the settings on your web server. With the right commands, you
can enable / disable extra functionality and features to protect your site from spammers,
hackers and other threats.

Prevent Directory Browsing: Protecting directories from being listed is, at best, security by
obscurity. That is, its hiding your stuff from view, preventing meddling visitors from
browsing through your directories. Really, is the web equivalent of hiding your cash under
your mattress. Still, it’s good practice to prevent directory browsing, along with
implementing other measures to secure your site. To disable browsing of your directories,
add this to your .htaccess file: Options All – Indexes.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 28


CAR RENTAL SYSTEM

Source Code:
Index Page:
<?php

session_start();

include('includes/config.php');

error_reporting(0);

?>

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

<!--Bootstrap -->

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

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

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

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

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

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

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

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 29


CAR RENTAL SYSTEM

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

</head>

<body>

<!-- Start Switcher -->

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

<!-- /Switcher -->

<!--Header-->

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

<!-- /Header -->

<!-- Banners -->

<section id="banner" class="banner-section">

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 30


CAR RENTAL SYSTEM

<div class="container">

<div class="div_zindex">

<div class="row">

<div class="col-md-5 col-md-push-7">

<div class="banner_content">

</div>

</div>

</div>

</div>

</section>

<!-- /Banners -->

<!-- Resent Cat-->

<section class="section-padding gray-bg">

<div class="container">

<div class="section-header text-center">

<h2>Find the Best <span>CarForYou</span></h2>

<p>We aren't addicted to oil, but our cars are.Self-driving cars are the natural extension of
active safety and obviously something we should do.A racing car is an animal with a
thousand adjustments.Race cars, no matter what size or shape they are, they do the same
things. It is not complicated.</p>

</div>

<div class="row">

<!-- Nav tabs -->

<div class="recent-tab">

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

<li role="presentation" class="active"><a href="#resentnewcar" role="tab" data-


toggle="tab">New Car</a></li>

</ul>

</div>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 31


CAR RENTAL SYSTEM

<!-- Recently Listed New Cars -->

<div class="tab-content">

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

<?php $sql = "SELECT


tblvehicles.VehiclesTitle,tblbrands.BrandName,tblvehicles.PricePerDay,tblvehicles.FuelType
,tblvehicles.ModelYear,tblvehicles.id,tblvehicles.SeatingCapacity,tblvehicles.VehiclesOvervi
ew,tblvehicles.Vimage1 from tblvehicles join tblbrands on
tblbrands.id=tblvehicles.VehiclesBrand";

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

$query->execute();

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

$cnt=1;

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

foreach($results as $result)

?>

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

<div class="recent-car-list">

<div class="car-info-box"> <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>

<ul>

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


>FuelType);?></li>

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


>ModelYear);?> Model</li>

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


>SeatingCapacity);?> seats</li>

</ul>

</div>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 32


CAR RENTAL SYSTEM

<div class="car-title-m">

<h6><a href="vehical-details.php?vhid=<?php echo htmlentities($result->id);?>"><?php


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

<span class="price">$<?php echo htmlentities($result->PricePerDay);?> /Day</span>

</div>

<div class="inventory_info_m">

<p><?php echo substr($result->VehiclesOverview,0,70);?></p>

</div>

</div>

</div>

<?php }}?>

</div>

</div>

</div>

</section>

<!-- /Resent Cat -->

<!-- Fun Facts-->

<section class="fun-facts-section">

<div class="container div_zindex">

<div class="row">

<div class="col-lg-3 col-xs-6 col-sm-3">

<div class="fun-facts-m">

<div class="cell">

<h2><i class="fa fa-calendar" aria-hidden="true"></i>40+</h2>

<p>Years In Business</p>

</div>

</div>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 33


CAR RENTAL SYSTEM

</div>

<div class="col-lg-3 col-xs-6 col-sm-3">

<div class="fun-facts-m">

<div class="cell">

<h2><i class="fa fa-car" aria-hidden="true"></i>1200+</h2>

<p>New Cars For Sale</p>

</div>

</div>

</div>

<div class="col-lg-3 col-xs-6 col-sm-3">

<div class="fun-facts-m">

<div class="cell">

<h2><i class="fa fa-car" aria-hidden="true"></i>1000+</h2>

<p>Used Cars For Sale</p>

</div>

</div>

</div>

<div class="col-lg-3 col-xs-6 col-sm-3">

<div class="fun-facts-m">

<div class="cell">

<h2><i class="fa fa-user-circle-o" aria-hidden="true"></i>600+</h2>

<p>Satisfied Customers</p>

</div>

</div>

</div>

</div>

</div>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 34


CAR RENTAL SYSTEM

<!-- Dark Overlay-->

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

</section>

<!-- /Fun Facts-->

<!--Testimonial -->

<section class="section-padding testimonial-section parallex-bg">

<div class="container div_zindex">

<div class="section-header white-text text-center">

<h2>Our Satisfied <span>Customers</span></h2>

</div>

<div class="row">

<div id="testimonial-slider">

<?php

$tid=1;

$sql = "SELECT tbltestimonial.Testimonial,tblusers.FullName from tbltestimonial join


tblusers on tbltestimonial.UserEmail=tblusers.EmailId where tbltestimonial.status=:tid";

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

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

$query->execute();

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

$cnt=1;

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

foreach($results as $result)

{ ?>

<div class="testimonial-m">

<div class="testimonial-img"> <img src="assets/images/cat-profile.png" alt="" /> </div>

<div class="testimonial-content">

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 35


CAR RENTAL SYSTEM

<div class="testimonial-heading">

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

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

</div>

</div>

</div>

<?php }} ?>

</div>

</div>

</div>

<!-- Dark Overlay-->

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

</section>

<!-- /Testimonial-->

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

<!--Register-Form -->

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

<!--/Register-Form -->

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 36


CAR RENTAL SYSTEM

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

<!--Slider-JS-->

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

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

</body>

<!-- Mirrored from themes.webmasterdriver.net/carforyou/demo/index.html by HTTrack


Website Copier/3.x [XR&CO'2014], Fri, 16 Jun 2017 07:22:11 GMT -->

</html>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 37


CAR RENTAL SYSTEM

Profile page:
<?php

session_start();

error_reporting(0);

include('includes/config.php');

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

header('location:index.php');

else{

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,Country=:cou
ntry 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);

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 38


CAR RENTAL SYSTEM

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

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

$query->execute();

$msg="Profile Updated Successfully";

?>

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 39


CAR RENTAL SYSTEM

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

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

margin: 0 0 20px 0;

background: #fff;

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 40


CAR RENTAL SYSTEM

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

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 41


CAR RENTAL SYSTEM

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

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 42


CAR RENTAL SYSTEM

</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">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 } ?>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 43


CAR RENTAL SYSTEM

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

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 44


CAR RENTAL SYSTEM

<div class="form-group">

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

<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');?>
DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 45
CAR RENTAL SYSTEM

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

<!--Slider-JS-->

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

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

</body>

</html>

<?php } ?>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 46


CAR RENTAL SYSTEM

Car Listing:
<?php

session_start();

include('includes/config.php');

error_reporting(0);

?>

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 47


CAR RENTAL SYSTEM

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

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 48


CAR RENTAL SYSTEM

<!-- /Switcher -->

<!--Header-->

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

<!-- /Header -->

<!--Page Header-->

<section class="page-header listing_page">

<div class="container">

<div class="page-header_wrap">

<div class="page-heading">

<h1>Car Listing</h1>

</div>

<ul class="coustom-breadcrumb">

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

<li>Car Listing</li>

</ul>

</div>

</div>

<!-- Dark Overlay-->

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

</section>

<!-- /Page Header-->

<!--Listing-->

<section class="listing-page">

<div class="container">

<div class="row">

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

<div class="result-sorting-wrapper">

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 49


CAR RENTAL SYSTEM

<div class="sorting-count">

<?php

//Query for Listing count

$sql = "SELECT id from tblvehicles";

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

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

$query->execute();

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

$cnt=$query->rowCount();

?>

<p><span><?php echo htmlentities($cnt);?> Listings</span></p>

</div>

</div>

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


tblvehicles join tblbrands on tblbrands.id=tblvehicles.VehiclesBrand";

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

$query->execute();

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

$cnt=1;

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

foreach($results as $result)

{ ?>

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

<div class="product-listing-img"><img src="admin/img/vehicleimages/<?php echo


htmlentities($result->Vimage1);?>" class="img-responsive" alt="Image" /> </a>

</div>

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 50


CAR RENTAL SYSTEM

<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);?> Per Day</p>

<ul>

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

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


class="btn">View Details <span class="angle_arrow"><i class="fa fa-angle-right" aria-
hidden="true"></i></span></a>

</div>

</div>

<?php }} ?>

</div>

<!--Side-Bar-->

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

<div class="sidebar_widget">

<div class="widget_heading">

<h5><i class="fa fa-filter" aria-hidden="true"></i> Find Your Car </h5>

</div>

<div class="sidebar_filter">

<form action="search-carresult.php" method="post">

<div class="form-group select">

<select class="form-control" name="brand">

<option>Select Brand</option>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 51


CAR RENTAL SYSTEM

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

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

$query->execute();

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

$cnt=1;

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

foreach($results as $result)

{ ?>

<option value="<?php echo htmlentities($result->id);?>"><?php echo htmlentities($result-


>BrandName);?></option>

<?php }} ?>

</select>

</div>

<div class="form-group select">

<select class="form-control" name="fueltype">

<option>Select Fuel Type</option>

<option value="Petrol">Petrol</option>

<option value="Diesel">Diesel</option>

<option value="CNG">CNG</option>

</select>

</div>

<div class="form-group">

<button type="submit" class="btn btn-block"><i class="fa fa-search" aria-


hidden="true"></i> Search Car</button>

</div>

</form>

</div>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 52


CAR RENTAL SYSTEM

</div>

<div class="sidebar_widget">

<div class="widget_heading">

<h5><i class="fa fa-car" aria-hidden="true"></i> Recently Listed Cars</h5>

</div>

<div class="recent_addedcars">

<ul>

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


tblvehicles join tblbrands on tblbrands.id=tblvehicles.VehiclesBrand order by id desc limit
4";

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

$query->execute();

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

$cnt=1;

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

foreach($results as $result)

{ ?>

<li class="gray-bg">

<div class="recent_post_img"> <a href="vehical-details.php?vhid=<?php echo


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

<div class="recent_post_title"> <a href="vehical-details.php?vhid=<?php echo


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

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

</div>

</li>

<?php }} ?>

</ul>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 53


CAR RENTAL SYSTEM

</div>

</div>

</aside>

<!--/Side-Bar-->

</div>

</div>

</section>

<!-- /Listing-->

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

<!--Register-Form -->

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

<!--/Register-Form -->

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

<?php include('includes/forgotpassword.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-->

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 54


CAR RENTAL SYSTEM

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 55


CAR RENTAL SYSTEM

Check Availability page:


<?php

require_once("includes/config.php");

// code user email availablity

if(!empty($_POST["emailid"])) {

$email= $_POST["emailid"];

if (filter_var($email, FILTER_VALIDATE_EMAIL)===false) {

echo "error : You did not enter a valid email.";

else {

$sql ="SELECT EmailId FROM tblusers WHERE EmailId=:email";

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

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

$query-> execute();

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

$cnt=1;

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

echo "<span style='color:red'> Email already exists .</span>";

echo "<script>$('#submit').prop('disabled',true);</script>";

} else{

echo "<span style='color:green'> Email available for Registration .</span>";

echo "<script>$('#submit').prop('disabled',false);</script>";

}}}?>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 56


CAR RENTAL SYSTEM

Testimonials page:
<?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="0";

$sql = "UPDATE tbltestimonial 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="Testimonial Successfully Inacrive";

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

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

$status=1;

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

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 57


CAR RENTAL SYSTEM

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

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

$query -> execute();

$msg="Testimonial Successfully Active";

?>

<!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="">

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 58


CAR RENTAL SYSTEM

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

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 59


CAR RENTAL SYSTEM

<?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">Manage Testimonials</h2>

<!-- Zero Configuration Table -->

<div class="panel panel-default">

<div class="panel-heading">User Testimonials</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>

<th>Email</th>

<th>Testimonials</th>

<th>Posting date</th>

<th>Action</th>

</tr>

</thead>

<tfoot>

<tr>

<th>#</th>
DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 60
CAR RENTAL SYSTEM

<th>Name</th>

<th>Email</th>

<th>Testimonials</th>

<th>Posting date</th>

<th>Action</th>

</tr>

</tfoot>

<tbody>

<?php $sql = "SELECT


tblusers.FullName,tbltestimonial.UserEmail,tbltestimonial.Testimonial,tbltestimonial.Posting
Date,tbltestimonial.status,tbltestimonial.id from tbltestimonial join tblusers on
tblusers.Emailid=tbltestimonial.UserEmail";

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

$query->execute();

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

$cnt=1;

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

foreach($results as $result)

?>

<tr>

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

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

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

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

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

<td><?php if($result->status=="" || $result->status==0)

{
DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 61
CAR RENTAL SYSTEM

?><a href="testimonials.php?aeid=<?php echo htmlentities($result->id);?>" onclick="return


confirm('Do you really want to Active')"> Inactive</a>

<?php } else {?>

<a href="testimonials.php?eid=<?php echo htmlentities($result->id);?>" onclick="return


confirm('Do you really want to Inactive')"> Active</a>

</td>

<?php } ?></td>

</tr>

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

</tbody>

</table>

</div>

</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 } ?>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 62


CAR RENTAL SYSTEM

Update-contactinfo page:
<?php

session_start();

error_reporting(0);

include('includes/config.php');

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

header('location:index.php');

else{

// Code for change password

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

$address=$_POST['address'];

$email=$_POST['email'];

$contactno=$_POST['contactno'];

$sql="update tblcontactusinfo set Address=:address,EmailId=:email,ContactNo=:contactno";

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

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

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

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

$query->execute();

$msg="Info Updateed successfully";

?>

<!doctype html>

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 63


CAR RENTAL SYSTEM

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

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

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

<title>Car Rental Portal | Admin Create Brand</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;

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 64


CAR RENTAL SYSTEM

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

<div class="container-fluid">

<div class="row">

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

<h2 class="page-title">Update Contact Info</h2>

<div class="row">

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 65


CAR RENTAL SYSTEM

<div class="panel panel-default">

<div class="panel-heading">Form fields</div>

<div class="panel-body">

<form method="post" name="chngpwd" class="form-horizontal" onSubmit="return


valid();">

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

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

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

$query->execute();

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

$cnt=1;

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

foreach($results as $result)

?>

<div class="form-group">

<label class="col-sm-4 control-label"> Address</label>

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

<textarea class="form-control" name="address" id="address" required><?php echo


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

</div>

</div>

<div class="form-group">

<label class="col-sm-4 control-label"> Email id</label>

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

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 66


CAR RENTAL SYSTEM

<input type="email" class="form-control" name="email" id="email" value="<?php echo


htmlentities($result->EmailId);?>" required>

</div>

</div>

<div class="form-group">

<label class="col-sm-4 control-label"> Contact Number </label>

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

<input type="text" class="form-control" value="<?php echo htmlentities($result-


>ContactNo);?>" name="contactno" id="contactno" required>

</div>

</div>

<?php }} ?>

<div class="hr-dashed"></div>

<div class="form-group">

<div class="col-sm-8 col-sm-offset-4">

<button class="btn btn-primary" name="submit" type="submit">Update</button>

</div>

</div>

</form>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 67


CAR RENTAL SYSTEM

<!-- 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 } ?>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 68


CAR RENTAL SYSTEM

Logout page:
<?php

session_start();

$_SESSION = array();

if (ini_get("session.use_cookies")) {

$params = session_get_cookie_params();

setcookie(session_name(), '', time() - 60*60,

$params["path"], $params["domain"],

$params["secure"], $params["httponly"]

);

unset($_SESSION['login']);

session_destroy(); // destroy session

header("location:index.php");

?>

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 69


CAR RENTAL SYSTEM

Screen Shots:
Home page

Home page

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 70


CAR RENTAL SYSTEM

User reg page

Login page

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 71


CAR RENTAL SYSTEM

User settings

User password settings

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 72


CAR RENTAL SYSTEM

Car view

Car booking catlog

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 73


CAR RENTAL SYSTEM

Car listing

Car listing

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 74


CAR RENTAL SYSTEM

Car listing

Car listing

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 75


CAR RENTAL SYSTEM

Car booking

Users booking

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 76


CAR RENTAL SYSTEM

User testimonial posting

User testimonial

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 77


CAR RENTAL SYSTEM

Subscribers

Admin settings

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 78


CAR RENTAL SYSTEM

Admin login

Admin dashboard

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 79


CAR RENTAL SYSTEM

Admin create brand

Admin manage brand

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 80


CAR RENTAL SYSTEM

Admin manage bookings

Admin manage testimonials

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 81


CAR RENTAL SYSTEM

Admin manage reg users

Admin manage update contact us

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 82


CAR RENTAL SYSTEM

Admin manage contact us query

Admin manage subscribers

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 83


CAR RENTAL SYSTEM

Tables

Admin table

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 84


CAR RENTAL SYSTEM

Booking table

Brands table

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 85


CAR RENTAL SYSTEM

Contact us table

Pages table

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 86


CAR RENTAL SYSTEM

Subscribers table

Testimonial table

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 87


CAR RENTAL SYSTEM

Users details table

Vehicles details table

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 88


CAR RENTAL SYSTEM

TESTING

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 89


CAR RENTAL SYSTEM

System Testing:

The purpose of testing is to discover errors. Testing is the process of trying to discover every
conceivable fault or weakness in a work product. It provides a way to check the functionality
of components, sub assemblies, assemblies and/or a finished product It is the process of
exercising software with the intent of ensuring that the

Software system meets its requirements and user expectations and does not fail in an
unacceptable manner. There are various types of test. Each test type addresses a specific
testing requirement.

Type of tests:

Unit testing

Unit testing involves the design of test cases that validate that the internal program logic is
functioning properly, and that program inputs produce valid outputs. All decision branches
and internal code flow should be validated. It is the testing of individual software units of the
application .it is done after the completion of an individual unit before integration. This is a
structural testing, that relies on knowledge of its construction and is invasive. Unit tests
perform basic tests at component level and test a specific business process, application,
and/or system configuration. Unit tests ensure that each unique path of a business process
performs accurately to the documented specifications and contains clearly defined inputs and
expected results.

Integration testing
Integration tests are designed to test integrated software components to determine if they
actually run as one program. Testing is event driven and is more concerned with the basic
outcome of screens or fields. Integration tests demonstrate that although the components were
individually satisfaction, as shown by successfully unit testing, the combination of
components is correct and consistent. Integration testing is specifically aimed at exposing
the problems that arise from the combination of components.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 90


CAR RENTAL SYSTEM

Functional test
Functional tests provide systematic demonstrations that functions tested are available as
specified by the business and technical requirements, system documentation, and user
manuals.

Functional testing is centered on the following items:

Valid Input : identified classes of valid input must be accepted.

Invalid Input : identified classes of invalid input must be rejected.

Functions : identified functions must be exercised.

Output : identified classes of application outputs must be exercised.

Systems/Procedures: interfacing systems or procedures must be invoked.

Organization and preparation of functional tests is focused on requirements, key functions, or


special test cases. In addition, systematic coverage pertaining to identify Business process
flows; data fields, predefined processes, and successive processes must be considered for
testing. Before functional testing is complete, additional tests are identified and the effective
value of current tests is determined.

System Test
System testing ensures that the entire integrated software system meets requirements. It
tests a configuration to ensure known and predictable results. An example of system testing is
the configuration oriented system integration test. System testing is based on process
descriptions and flows, emphasizing pre-driven process links and integration points.

White Box Testing


White Box Testing is a testing in which in which the software tester has knowledge of
the inner workings, structure and language of the software, or at least its purpose. It is
purpose. It is used to test areas that cannot be reached from a black box level.

Black Box Testing


Black Box Testing is testing the software without any knowledge of the inner workings,
structure or language of the module being tested. Black box tests, as most other kinds of tests,
must be written from a definitive source document, such as specification or requirements
document, such as specification or requirements document. It is a testing in which the
software under test is treated, as a black box .you cannot “see” into it. The test provides
inputs and responds to outputs without considering how the software works.

Unit Testing:
Unit testing is usually conducted as part of a combined code and unit test phase of the
software lifecycle, although it is not uncommon for coding and unit testing to be conducted as
two distinct phases.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 91


CAR RENTAL SYSTEM

Test strategy and approach


Field testing will be performed manually and functional tests will be written in detail.

Test objectives
 All field entries must work properly.
 Pages must be activated from the identified link.
 The entry screen, messages and responses must not be delayed.

Features to be tested
 Verify that the entries are of the correct format
 No duplicate entries should be allowed
 All links should take the user to the correct page.

Integration Testing

Software integration testing is the incremental integration testing of two or more integrated
software components on a single platform to produce failures caused by interface defects.

The task of the integration test is to check that components or software applications, e.g.
components in a software system or – one step up – software applications at the company
level – interact without error.

Test Results: All the test cases mentioned above passed successfully. No defects
encountered.

Acceptance Testing

User Acceptance Testing is a critical phase of any project and requires significant
participation by the end user. It also ensures that the system meets the functional
requirements.

Test Results: All the test cases mentioned above passed successfully. No defects
encountered.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 92


CAR RENTAL SYSTEM

CONCLUSION

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 93


CAR RENTAL SYSTEM

Conclusion:

Car rental business has emerged with a new goodies compared to past experience where
every activity concerning car rental business is limited to a physical location only. Even
through the physical location has not been totally exadicated , the nature of functions and
how these functions are achieved has been reshaped by the power of internet. Nowadays,
customers can reserve cars online, rent car online, and have the car brought to their door step
once the customer is a registered member or to go the office to pick the car.

The web based car rental system has offered an advantage to both customers as well as Car
Rental Company to efficiently and effectively manage the business and satisfies customers
need at the click of a button.

Future scope and further enhancement of the project:

Today, the market place is flooded with several car rental options for shoppers to choose
from. A variety of innovative products and services are being offered spoiling customers for
choice. Online Car Rental System is no more a privilege enjoyed by your friends and family.
Today, it is a reality in India. In the last couple of years, the growth of car rental system
industry in India has been phenomenal as more shoppers have started discovering the benefits
of using this platform. There is enough scope for online businesses in the future if they
understand the Indian shoppers psyche and cater to their needs.

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 94


CAR RENTAL SYSTEM

BIBLIOGRAPHY

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 95


CAR RENTAL SYSTEM

Bibliography:

 Software Engineering- R.S. Pressman


 PHP Begineers Guide By McGrawhill Publication
 Javascript By McGrawhill Publication

Websites: www.Google.com

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS Page 96

You might also like