0% found this document useful (0 votes)
12 views59 pages

Final Thesis Code

Thesis made for final year , Diploma students of Computer Technology. Aim - Car Rental System

Uploaded by

diabhiv37
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views59 pages

Final Thesis Code

Thesis made for final year , Diploma students of Computer Technology. Aim - Car Rental System

Uploaded by

diabhiv37
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 59

A Project Thesis Entitled

“CAR RENTAL SYSTEM ”


Submitted To

DHARAMPETH POLYTECHNIC NAGPUR


In partial fulfilment for Award of Diploma in Computer Technology
during the Academic Session 2024-2025
Submitted By

Abhijeet Yadav
Rishabh Bhagadkar
Rugvedika Baraskar
Abhilekha Jilhare

Project Guide

Mr. N. S. Bhattad
Lecturer in Department of Computer Technology at
Dharampeth Polytechnic, Nagpur
2024-2025
CERTIFICATE

This is to certify that Abhijeet Yadav, Rishabh Bhagadkar, Rugvedika Baraskar and Abhilekha
Jilhare having Enrollment No (23313270072), (23313270070), (23313270073), (23313270076), of 3rd
year Computer Technology has completed the project work entitled “Car Rental System” in partial
fulfilment for award of Diploma in Computer Technology.
They have worked under my guidance and fulfilled the requirement for the submission of this thesis
during the session 2024-2025 under the guidance of Mr. N. S. Bhattad

Project guide Principal


Mr. N. S. Bhattad Mrs. M. Fadnavis

Head of the department External Examiner

Department of Computer Technology


Dharampeth Polytechnic
Nagpur
2024-2025
ACKNOWLEGEMENT

We are pleased to acknowledge Mr. N. S. Bhattad for their invaluable guidance during the course of this
project work. As our project Car Renatal System which envelops the automation of all work. In this
project we have tried to make our project more understandable and an make it in a simple way so that it
should be more easy to the witness.

We would also like to give special thanks to all the talented personalities of our institute who had given us
a moral support completing our visual basic project.
ABSTRACT

The Car Rental System is a web-based application designed and developed using HTML, CSS, JavaScript,
PHP, with the primary goal of simplifying and automating the process of renting cars for both users and
administrators. In the modern digital era, the demand for efficient, user-friendly, and accessible platforms has
increased significantly, and this system addresses that need by offering an organized solution for car rental
The system features two main modules: Client Interface and Admin Interface. The Client Interface allows users
sign up or log in securely using either their phone number or email ID, browse available cars with real-time and
details, request car rentals, and communicate with the admin. The Admin Interface provides complete control over
the system, allowing administrators to manage car listings, approve or reject rental requests, monitor user , and
handle messages from clients.
The front-end of the system utilizes HTML for structure, CSS for design and responsiveness, and JavaScript for
dynamic interactions. The back-end is powered by PHP, which handles server-side operations such as session
management, form processing, and interaction with the MySQL database. This technology stack ensures is
lightweight, scalable, and easy to maintain. The Car Rental System enhances the user experience through an
intuitive layout, clean navigation, and responsive design. It minimizes manual work, reduces human error, and
saves time for both clients and admins. Furthermore, the system has been designed to be easily extendable for
future features such as online payments, driver integration, and real-time tracking.

This project not only fulfills the basic requirements of a car rental platform but also provides a robust and
framework for digital transformation in the car rental industry.
CONTENTS PAGE NO

ABSTRACT iv

1.0 INTRODUCTION 7

2.0 LITERATURE REVIEW 10

2.1 Problem Specification 12

2.2 Background and Related work 13

3.0 DESIGN AND WORKING OF PROCESSES 15

`15
3.1 Data Flow Diagram(DFD)

`16
3.2 (DFD)2
`17
3.3 Flow Of Project
18
3.4 Use Case Diagram

4.0 METHODOLOGY 20

4.1 Hardware Requirement 20

4.2 Proposed System 21

4.3 Overview 22

5.0 TESTING 26

5.1 Introduction To Testing 26

5.2 Types of testing 27

5.3 Test Cases 28

6.0 RESULTS AND CODE 30

7.0 Review And Discussion 50

8.0 Conclusion And Future Scope 55

9.0 Application 58
60
10.0 REFERENCES
CHAPTER 1
INTRODUCTION

Transportation is one of the fundamental needs in today’s fast-paced world. As technology


continues to transform industries, the automobile rental industry has seen a significant shift
from traditional operations to digital platforms. The Car Rental System project aims to
bridge the gap between car rental service providers and customers by offering a simple,
automated, and efficient web-based platform.
This project is a web-based application developed using PHP, HTML, CSS, JavaScript,
AJAX, MySQL, and jQuery. It includes two main interfaces — Admin Panel and Client
Panel. Clients can browse available cars, request a car for rent, send messages to the admin,
and complete payments online. The admin, on the other hand, has complete control over
managing car listings, rental requests, payments, and communication with users.

Traditional car rental services rely on manual bookings, paperwork, and in-person
verification, which are time- consuming and prone to delays or errors. The proposed system
overcomes these limitations by offering a seamless and secure way to manage the entire car
rental process online. This project aims to provide: Automated Rental Request System –
Clients can book a car based on availability. Centralized Admin Management – Admin can
add/edit/delete car listings, approve or reject requests, and view payment history.
Secure Login and Registration – Clients can register and log in using their email or mobile
number with a password. Dynamic Interaction – Messaging between clients and admin
enables better customer service. Online Payment Feature – Clients can make payments
securely through integrated payment gateways .
This project aims to provide:

Automated Rental Request System – Clients can book a car based on availability.

Centralized Admin Management – Admin can add/edit/delete car listings, approve or reject
requests, and payment history.

Secure Login and Registration – Clients can register and log in using their email or mobile
number with a password.

Dynamic Interaction – Messaging between clients and admin enables better customer service.
Online Payment Feature – Clients can make payments securely through integrated payment
gateways
CHAPTER 2
LITERATURE REVIEW

The shift from traditional car rental methods to digital platforms has revolutionized the way rental services
operate. Previously, customers had to visit rental offices, fill out physical forms, and wait for approvals — a
process that was both inefficient and timeconsuming. With the increasing demand for flexibility,
transparency, and speed,web-based car rental systems have emerged as a necessity.
.

Many existing systems offer basic features such as listing cars and collecting customer details. However,
they often lack automation, multi-role access, online payment integration, and real-time communication.
The Car Rental System project addresses these gaps by offering an advanced solution that integrates all
essential features into a single, easy-to-use interface.
2.1 PROBLEM SPECIFICATION

Car rental businesses often face challenges such as manual booking processes, delayed approvals, lack of
centralized records, and miscommunication between clients and service providers. Clients, on the other
hand, expect faster services, transparent pricing, and the ability to book rentals online without hassle. The
proposed Car Rental System resolves these issues by enabling clients to: View and filter available cars,
Send rental requests with preferred dates, Communicate with the admin for assistance, Make secure
payments online.

Meanwhile, the admin can: Manage the entire system via a web interface, Approve or reject rental
requests based on availability, Communicate with clients and maintain payment history, Track user
activity and system performance.
This online platform promotes real-time access, accurate data handling, and complete control over rental
operations.

Key issues faced in traditional systems include:


1. Manual Process and Delays – Bookings and approvals require manual verification, causing delays.
2. Limited Communication – No real-time communication channel between clients and service
providers.
3. No Online Payment Option – Clients need to pay in person, causing inconvenience.
4. Decentralized Data – Hard to track rental history, payments, or user activity. The Car Rental System
overcomes these challenges byincorporating a unified system with multiple modules for a streamlined
experience
While the current version of the Car Rental System built using HTML, CSS, JavaScript, PHP, and MySQL
meets the basic functional requirements, there are several areas where enhancements can be made to improve
usability, performance, and scalability.
The following are some detailed suggestions for improvements:

1. Enhanced Security Features Implement two-factor authentication (2FA) for user and admin login.
Use prepared statements and input sanitization throughout the system to prevent SQL injection.
Introduce CAPTCHA on login and signup forms to avoid bot registrations.

2. Online Payment Integration Integrate trusted payment gateways like Razorpay, Stripe, or PayPal to enable
secure online transactions. Include options for advance booking fees, refunds, and payment tracking in the
admin panel.

3. Live Availability and Booking Calendar Use AJAX or real-time APIs to show live availability of cars.
Integrate a booking calendar system that highlights available and reserved dates for each car. 4. Vehicle
Management Enhancements Allow admins to upload multiple images per vehicle with image galleries
2.2 BACKGROUND AND RELATED WORK

Traditional car rental services rely on manual bookings, paperwork, and in-person verification, which are time-
consuming and prone to delays or errors. The proposed system overcomes these limitations by offering a
seamless and secure way to manage the entire car rental process online. This project aims to provide:
Automated Rental Request System – Clients can book a car based on availability. Centralized Admin
Management – Admin can add/edit/delete car listings, approve or reject requests, and view payment history.
Secure Login and Registration – Clients can register and log in using their email or mobile number with a
password. Dynamic Interaction – Messaging between clients and admin enables better customer service

This project is a web-based application developed using PHP, HTML, CSS, JavaScript, AJAX, MySQL, and
jQuery. It includes two main interfaces — Admin Panel and Client Panel. Clients can browse available cars, a car
for rent, send messages to the admin, and complete payments online. The admin, on the other hand, has complete
control over managing car listings, rental requests, payments.
CHAPTER 3
DESIGN AND WORKING OF PROCESS

3.1 DFD 01
3.2 DFD 02

.
3.3 Flow Of the Project
3.4 Use Case Diagram
CHAPTER 4
METHODOLOGY

4.1 HARDWARE REQUIRMENT

APP REQUIREMENT: -

CPU: - Minimum Quad core processor with 32-bit architecture

RAM: - 1 GB

STORAGE: - 8 G B

NETWORK: - The application works online, so no internet connection is required

SOFTWARE REQUIREMENT: - Mobile or Tablet (min. Android 5.0)

OPERATING SYSTEM: - Android OS

SERVER SIDE REQUIREMENT:

Device: Localhost or Web Hosting Server


CPU: Intel Core i5 8th GEN or higher
RAM: Minimum 8 GB
Storage: 512 GB SSD or higher
Network: Stable internet connection for hosting and database access
4.2 PROPOSED SYSTEM

• This system is a web-based Car Rental Management System.


• It is developed using PHP for server-side scripting and MySQL for database management.
• The system contains two main modules: Admin Panel and Client Panel.
• The client can register, log in, view available cars, send rental requests, message the admin, and make
payments.
• The admin has complete control — managing cars, requests, clients, messages, and payment logs.

• Application features Secure Login System for both Admin and Clients

• Admin Panel Functionalities:


Add/Edit/Delete Car Listings

Approve/Reject Rental Requests

View and Respond to Messages

Manage Payments and Client Records

• Client Panel Functionalities:

View cars with images, rates, and specs

Send rental requests with date and duration

Communicate with Admin via built-in messaging

Make online payments

Interactive User Interface using jQuery and JavaScript Live Request Status Update through AJAX

• User-Friendly UI (Color-coded task quadrants)


4.3 OVERVIEW

• Overall Description will describe major components of the system, interconnection

• Specific Requirements will describe the functions of actors, their role in the system and constraints.

• Objective: -

• To automate the process of car rental booking.

• To provide a centralized admin system with client interaction..

• Existing system: -
Most car rentals are still managed manuallyor through basic phone call bookings. Lack of
instant communication and transparency between provider and client.

• Scope: -

• Dynamic rental booking system.

• Real-time messaging between admin and user.

• Built-in online payment functionality.

• Complete admin control and request tracking.


• Proposed system: -
A web-based platform with full backend and frontend integration. Ensures automated, secure, and real-
time car rental operations

• User requirement: -
Client: Needs a way to browse, request, and pay for rentals online.
Admin: Requires a centralized panel to manage rentals, cars, and users.

• Overall Description: -
The rest of this document will give further details on the overall product description, including the
hardware, software, and communications interfaces, product functions, user characteristics, and any
assumptions that will be made.
. Performance requirements
• The app should function smoothly on devices with at least 1GB RAM.
• Task operations should respond within milliseconds.
• The Pomodoro Timer should run accurately without interruptions.

Design requirements
• Simple and intuitive UI for easy navigation.

• Color-coded priority indicators for tasks.

• Offline functionality to ensure availability without the internet.

.
Performance requirements
• The app should function smoothly on devices with at least 1GB RAM.
• Task operations should respond within milliseconds.
• The Pomodoro Timer should run accurately without interruptions.

Design requirements
• Simple and intuitive UI for easy navigation.

• Color-coded priority indicators for tasks.

• Offline functionality to ensure availability without the internet.

Software Attributes
• Developed using Java, XML, and Android SDK.

• Compatible with Android 5.0 and above.

• Uses SQLite database for offline storage.


CHAPTER 5
TESTING

5.1 Introduction to Testing


Testing is one of the most essential phases in the Software Development Life Cycle (SDLC). It helps to
ensure that the software developed is reliable, secure, functional, and user-friendly. In our Car Rental
System, testing played a crucial role in verifying the correctness of each module before the system was
delivered for deployment. The goal was to identify and resolve bugs and to ensure that all functionalities
work as expected for both admin and client interfaces.
In our Car Rental System, testing played a crucial role in verifying the correctness of each module
before the system was delivered for deployment.
The goal was to identify and resolve bugs and to ensure that all functionalities work as expected for both
admin and client interfaces. Furthermore, it allowed us to detect performance issues, validate security
implementations, and confirm proper database interactions.

Objectives of Testing
• To ensure that all the functionalities of the Car Rental System work correctly.
• To identify any bugs or issues in the client and admin modules

• To validate that user input is correctly processed and stored in the database.

• To confirm that the system meets the user requirements and design specifications.

•To enhance the reliability and performance of the application.

• To verify user access levels and prevent unauthorized data manipulation.


5.2 Types of Testing

Black Box Testing


Black box testing was performed by treating the system as a "black box" — the internal code
was not considered. We provided various inputs through the frontend and observed the
outputs.

Modules Tested:

User Signup & Login: Tested with valid and invalid credentials, blank fields, and
incorrect formats. Car Booking: Validated the booking process with different inputs like
past dates, invalid duration, missing data, etc. Contact Admin: Sent messages with and
without subjects to test validations.

Navigation Testing:
Ensured all pages (Home, Cars, Contact, Profile) were linked properly. Error Handling:
Checked how the system reacts when incorrect forms are submitted.

Results: The system displayed appropriate success and error messages. The
application prevented unauthorized access and blank submissions. Booking requests
were generated correctly and displayed in the admin panel.
5.3 Test Cases

Test Case Input Expected Actual Status


Output Output
Login Test Email: Redirect to Redirect to Pass
(Valid) test@exampl Dashboard Dashboard
e.com
Password:
123456
Login Test Email: Error Error Pass
(Invalid) wrong@exa Message: Message
mple.com Invalid Displayed
Password: Login
xyz
Booking All fields Error Error Pass
Form(Blank empty Message Message
Fields) Displayed
Car Listing Visit Cars Show All All Cars Pass
Page Cars with Displayed
Details
Message Subject: Error Error Pass
Admin blank Message Message
Message: Displayed
filled

OUTPUTS : All Test cases With High Priority are PASSED


CHAPTER 6
RESULT OF PROJECT

Make Sure PHP Version 5.5 only How to run


Project

1. Create file on your local system named carrental .


2. Put carrental folder inside root directory.

Database Configuration

1. Open phpMyAdmin -> Create Database cars -> Import database cars.sql
2. Registered User

Login Details for user: personal user id’s can be created

For Admin Panel


Login Details for admin : admin/admin
.5.1 Database :
5.2 HomePage :
5.3 User Login Page :
5.4 User Login Panel :
5.5 Booking And Payment :
5.6 Admin Login Panel :

(A)
.

(B)
.

(C)
(D)
CODE

6.1 DATABASE:

-- phpMyAdmin SQL Dump


-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Aug 05, 2015 at 07:14 AM
-- Server version: 5.5.27
-- PHP Version: 5.4.7

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;


/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `cars`
--

-- --------------------------------------------------------

--
-- Table structure for table `admin`
--

CREATE TABLE IF NOT EXISTS `admin` (


`admin_id` int(11) NOT NULL AUTO_INCREMENT,
`uname` varchar(255) NOT NULL,
`pass` varchar(255) NOT NULL,
PRIMARY KEY (`admin_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- Dumping data for table `admin`
--

INSERT INTO `admin` (`admin_id`, `uname`, `pass`) VALUES


(1, 'admin', 'admin');
--
-- Table structure for table `cars`
--

CREATE TABLE IF NOT EXISTS `cars` (


`car_id` int(11) NOT NULL AUTO_INCREMENT,
`car_name` varchar(255) NOT NULL,
`car_type` varchar(255) NOT NULL,
`image` text NOT NULL,
`hire_cost` int(11) NOT NULL,
`capacity` int(11) NOT NULL,
`status` varchar(255) NOT NULL,
PRIMARY KEY (`car_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;

--
-- Dumping data for table `cars`
--

INSERT INTO `cars` (`car_id`, `car_name`, `car_type`, `image`, `hire_cost`, `capacity`, `status`) VALUES
(1, 'Mercedes Benz', 'Mercedes Benz', 'car1.jpg', 20000, 5, 'Available'),
(2, 'Range Rover', 'LandRover', 'car2.jpg', 30000, 6, 'Available'),
(3, 'Harrier', 'Toyota', 'car3.jpg', 20000, 6, 'Available'),
(5, 'LandCruiser V8', 'LandCruiser ', 'images (2).jpg', 20000, 5, 'Available'),
(6, 'Security Vehicles', 'Hammar Cars', 'sonkort2.png', 30000, 8, 'Available'),
(7, 'Wedding Limousine', 'Wedding Limousine', 'images (3).jpg', 50000, 10, 'Available');

-- --------------------------------------------------------

--
-- Table structure for table `client`
--

CREATE TABLE IF NOT EXISTS `client` (


`client_id` int(11) NOT NULL AUTO_INCREMENT,
`fname` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`id_no` int(11) NOT NULL,
`phone` int(11) NOT NULL,
`location` varchar(255) NOT NULL,
`gender` varchar(255) NOT NULL,
`car_id` int(11) NOT NULL,
`status` varchar(255) NOT NULL,
`mpesa` varchar(255) NOT NULL,
PRIMARY KEY (`client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

--
-- Dumping data for table `client`--
INSERT INTO `client` (`client_id`, `fname`, `email`, `id_no`, `phone`, `location`, `gender`, `car_id`, `status`,
`mpesa`) VALUES
(2, 'felix kiamba', '[email protected]', 30073147, 705053484, 'nairobi', 'Male', 1, 'Approved',
'GTD45H7H6'),
(3, 'concepter', '[email protected]', 27695131, 707403614, 'kisii', 'Female', 2, 'Approved', 'DJFL870FDK9'),
(4, 'enock bosire', '[email protected]', 1234567, 717056766, 'narok', 'Male', 2, 'Approved', 'HJHK678X');

-- --------------------------------------------------------

--
-- Table structure for table `hire`
--

CREATE TABLE IF NOT EXISTS `hire` (


`hire_id` int(11) NOT NULL AUTO_INCREMENT,
`client_id` int(11) NOT NULL,
`car_id` int(11) NOT NULL,
`status` varchar(255) NOT NULL,
PRIMARY KEY (`hire_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `message`
--

CREATE TABLE IF NOT EXISTS `message` (


`msg_id` int(11) NOT NULL AUTO_INCREMENT,
`client_id` int(11) NOT NULL,
`message` varchar(255) NOT NULL,
`status` varchar(255) NOT NULL,
`time` datetime NOT NULL,
PRIMARY KEY (`msg_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

--
-- Dumping data for table `message`
--

INSERT INTO `message` (`msg_id`, `client_id`, `message`, `status`, `time`) VALUES


(2, 0, 'Am happy its working?', 'Unread', '0000-00-00 00:00:00'),
(3, 0, 'Thanks for that..OK?', 'Unread', '0000-00-00 00:00:00'),
(5, 0, 'I love this. It worked the way i want...', 'Unread', '2015-08-04 21:45:33');

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;


/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
6.2 CSS:

* { padding:0; margin:0; outline:0; }


body {
background:#f9ebae;
font-family: Verdana, sans-serif;
font-size:11px;
line-height:14px;
color:#5e5e5e;
}
input, textarea, select { font-family: Verdana, sans-serif; font-size:13px; }
textarea { overflow:hidden; }

.field { border:solid 1px #d3cfc7; background:#fff; padding:5px; }


.small-field { border:solid 1px #d3cfc7; background:#fff; padding:3px 1px; font-size:11px; }

.checkbox { width:13px; height:13px; vertical-align:top; position:relative; top:2px; }

.button { background:#eee url(images/button.gif) repeat-x 0 0; border:solid 1px #b1a874; color:#7f7f7f; font-


size:11px; padding:2px 6px 2px 6px; cursor:pointer; line-height:14px !important; }
.button:hover { color:#333; border-color:#857b42; }

.field:focus { color:#000; border-color:#857b42;}

a img { border:0; }

a { color:#ba4c32; text-decoration: underline; cursor:pointer; }


a:hover { color:#8d341f; text-decoration: none;}

.left, .alignleft { float:left; display:inline; }


.right, .alignright { float:right; display:inline; }

.cl { font-size:0; line-height:0; clear:both; display:block; height:0; }

.al { text-align: left; }


.ar { text-align: right; }
.ac { text-align: center !important; }

h1{ font-size:22px; line-height:24px; color:#fff; font-weight: normal;}


h1 a{ color:#fff; text-decoration: none; }
h2 { font-size:15px; font-weight: normal; }
h3 { font-size:12px; line-height:14px; font-weight: normal; }
h3 a{ text-decoration: none; }

.shell { width:988px; margin:0 auto; }

#header { height:89px; background:url(images/header.gif); white-space:nowrap; }


#header h1{ float:left; display:inline; padding-top:12px; }
#top-navigation { float:right; white-space:nowrap; color:#fff; padding-top:15px; }
#top-navigation a{ color:#fff; }
#top-navigation span{ color:#dca598; }
#top { height:53px; }

#navigation { height:36px;}
#navigation ul{ list-style-type: none;}
#navigation ul li{ float:left; display:inline; margin-right:2px;}
#navigation ul li a,
#navigation ul li a span { float:left; height:36px; background:url(images/tab.gif) no-repeat 0 0; padding:0 0 0
15px;}
#navigation ul li a span { background-position:right 0; padding:0 15px 0 0;}
#navigation ul li a { line-height:36px; color:#907525; text-decoration: none; }

#navigation ul li a.active,
#navigation ul li a:hover { background-position:0 bottom;}

#navigation ul li a.active span,


#navigation ul li a:hover span{ background-position:right bottom;}

#navigation ul li a.active { font-size:12px; font-weight: bold; color:#887e42; }

#container { padding:20px 0;}

.small-nav { color:#978b48; padding-bottom:20px; }


.small-nav a{ color:#6f6636; }

#main {}
#content { float:left; width:750px; }
#sidebar { float:right; width:225px; }

.table {}
.table th{ background:#fffdfa url(images/th.gif) repeat-x 0 0; color:#818181; text-align: left; padding:7px 10px;
border-bottom:solid 1px #d2d1cb;}
.table td{ background:#fbfcfc; border-bottom:solid 1px #e0e0e0; padding:8px 10px; }
.table tr.odd td{ background:#f8f8f8; }
.table tr:hover td{ background:#fff9e1; }
.table a.ico{ }

.box { background:#fbfcfc; height:100%; padding:1px; margin-bottom:20px; }


.box-head { background:#ba4c32; height:32px; color:#fff; padding: 0 10px; line-height:32px; white-space:nowrap;
border-bottom:solid 1px #fff; }
.box-head .right{ padding-top:5px; line-height:13px;}
.box-head .right label,
.box-head .right input { float:left; }
.box-head .right label { padding:4px 0 0 0;}
.box-head .right input { margin-left:5px;}

.pagging { height:20px; padding:8px 10px; line-height:19px; color:#949494; }


.pagging a{ background:url(images/pagging.gif) repeat-x 0 0; height:20px; float:left; padding:0 8px; border:solid
1px #d5d5d5; text-decoration: none; color:#949494; margin-left:5px; }
.pagging a:hover { border-color:#8c3521; background:#ba4c32; color:#fff; }
.pagging span{ float:left; margin-left:5px; padding-top:2px; }

a.ico { color:#9d9c9a; font-size:10px; text-decoration: none; padding:0 0 0 14px; background-repeat:no-repeat;


background-position:0 0; }
a.ico:hover { color:#333;}
a.del { background-image:url(images/del.gif)}
a.edit { background-image:url(images/edit.gif); margin-left:14px;}

.form { padding:15px 10px 5px 10px; }


.form label{ display:block; font-weight: bold; font-size:13px; padding-bottom:4px; }
.form label span{ color:#999; font-weight: normal;}
.form .field { display:block; }
.form .inline-field .field { display:inline;}
.form .req { font-size:13px; float:right; white-space:nowrap; color:#999; }
.form p{ padding-bottom:15px; }

.size1 { width:716px; }
.size2 { width:80px; }
.size3 { width:120px; }
textarea.size1 { height:180px; }

.buttons { text-align: right; padding:10px; background:#eee; border-top:solid 1px #e0e0e0; }


.buttons .button{ margin-left:3px;}

.box-content { padding:10px; }

.sort { border-top:solid 1px #e0e0e0; padding-top:10px; margin-top:15px; }


.sort label{ display:block; font-weight: bold;}
.sort .field{ display:block; margin-top:5px; }
.sort select.field{ width:203px; }

.box-content p { padding-top:10px; }
.select-all{}
.select-all label{ text-decoration: underline; padding-left:4px; }

.add-button,
.add-button span { float:left; height:26px; background:url(images/add-button.gif) no-repeat 0 0; padding:0 0 0
28px; }
.add-button span { background-position:right 0; padding:0 10px 0 0; }
.add-button { font-weight: bold; font-size:12px; color:#747474; text-decoration: none; line-height:26px; }
.add-button:hover { color:#333;}

#footer { height:44px; background:url(images/footer.gif); line-height:44px; color:#fff;}


#footer a{ color:#fff; }

.msg { position:relative; padding-right:35px; margin-bottom:10px; }


.msg p{ padding:9px 10px 9px 40px; font-size:12px; background-repeat:no-repeat; background-position:10px
5px;}
.msg a.close{ font-size:0; line-height:0; position:absolute; top:0; right:0; width:34px; height:34px;
background:url(images/close.gif); text-indent: -4000px;}

.msg-ok p{ background-color:#fffac2; border:solid 1px #dbd6a2; color:#5e5c40; background-


image:url(images/msg-ok.gif); }
.msg-error p{ background-color:#f3c598; border:solid 1px #e8b084; color:#ba4c32; background-
image:url(images/msg-error.gif); }

/*** CSS3 ***/


.box { -moz-border-radius:5px; -webkit-border-radius:5px; -moz-box-shadow: 0 0 6px #978f6c; -webkit-box-
shadow: 0 0 6px #978f6c;}
.box-head { -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px; -webkit-border-top-left-radius:5px; -
webkit-border-top-right-radius:5px; }

.field, .button { -moz-border-radius:4px; -webkit-border-radius:4px; }


.small-field, .button, .pagging a { -moz-border-radius:3px; -webkit-border-radius:3px; }

.msg p { -moz-border-radius:6px; -webkit-border-radius:6px; }

.button { -moz-box-shadow: 0 0 2px #978f6c; -webkit-box-shadow: 0 0 2px #978f6c;}

6.3 PHP:

<!DOCTYPE html>
<html lang="en">
<head>
<title>Car Rental</title>
<meta charset="utf-8">
<meta name="author" content="pixelhint.com">
<meta name="description" content="La casa free real state fully responsive html5/css3 home page website
template"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />

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


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

<script type="text/javascript" src="js/jquery.js"></script>


<script type="text/javascript" src="js/main.js"></script>
</head>
<body>
<section class="">
<?php
include 'header.php';
?>

<section class="caption">
<h2 class="caption" style="text-align: center">Find You Dream Cars For Hire</h2>
<h3 class="properties" style="text-align: center">Range Rovers - Mercedes Benz - Landcruisers</h3>
</section>
</section><!-- end hero section -->

<section class="search">
<div class="wrapper">
<div id="fom">
<form method="post">
<h3 style="text-align:center; color: #000099; font-weight:bold; text-decoration:underline">Admin Login
Area</h3>
<table height="100" align="center">
<tr>
<td>Email Address:</td>
<td><input type="text" name="uname" placeholder="Enter Username" required></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="pass" placeholder="Enter Password" required></td>
</tr>
<tr>
<td colspan="2" style="text-align:center"><input type="submit" name="login" value="Login
Here"></td>
</tr>
</table>
</form>
<?php
if(isset($_POST['login'])){
include 'includes/config.php';

$uname = $_POST['uname'];
$pass = $_POST['pass'];

$query = "SELECT * FROM admin WHERE uname = '$uname' AND pass = '$pass'";
$rs = $conn->query($query);
$num = $rs->num_rows;
$rows = $rs->fetch_assoc();
if($num > 0){
session_start();
$_SESSION['uname'] = $rows['uname'];
$_SESSION['pass'] = $rows['pass'];
echo "<script type = \"text/javascript\">
alert(\"Login Successful.................\");
window.location = (\"admin/index.php\")
</script>";
} else{
echo "<script type = \"text/javascript\">
alert(\"Login Failed. Try Again................\");
window.location = (\"login.php\")
</script>";
}
}
?>
</div>
<a href="#" class="advanced_search_icon" id="advanced_search_btn"></a>
</div>

</section><!-- end search section -->

<footer>
<div class="wrapper footer">
<ul>
<li class="links">
<ul>
<li>OUR COMPANY</li>
<li><a href="#">About Us</a></li>
<li><a href="#">Terms</a></li>
<li><a href="#">Policy</a></li>
<li><a href="#">Contact</a></li>
</ul>
</li>

<li class="links">
<ul>
<li>OTHERS</li>
<li><a href="#">...</a></li>
<li><a href="#">...</a></li>
<li><a href="#">...</a></li>
<li><a href="#">...</a></li>
</ul>
</li>

<li class="links">
<ul>
<li>OUR CAR TYPES</li>
<li><a href="#">Mercedes</a></li>
<li><a href="#">Range Rover</a></li>
<li><a href="#">Landcruisers</a></li>
<li><a href="#">Others.</a></li>
</ul>
</li>

<?php include_once "includes/footer.php" ?>


CHAPTER 7
REVIEW AND DISSCUSION

REVIEW

The Car Rental System project was successfully developed using PHP, MySQL,
HTML, CSS, and JavaScript. All intended functionalities including user login,
car booking, admin approval system, and message communication between client
and admin were implemented and tested thoroughly.
The results of the system are as follows:
1) Users can register, log in, and request car rentals easily.
2) Admins are able to manage car listings and booking requests efficiently.
3) All modules were tested under different conditions and performed as expected.
4) The user interface is intuitive and responsive, which enhances user experience.
Discussion:

The application ensures smooth communication and efficient car booking management.
However, features like real-time fare calculation based on distance or time, payment
integration, and GPS-based car tracking can be added in the future to enhance system
functionality and usability.

The development of the Car Rental System using HTML, CSS, JavaScript, and PHP
highlights the practical application of full-stack web development technologies in solving
real-world problems. Throughout the development process, several key aspects were
considered, including user experience, system security, functionality, and scalability.

The separation of interfaces for clients and admins ensured role-based access, simplifying
usability and administration. Front-end technologies were effectively used to create a
clean, responsive layout, while PHP handled server-side operations such as data
processing, authentication, and rental management. JavaScript added interactivity and
validations, reducing user errors and enhancing overall experience.

One of the major discussions during development was how to balance ease-of-use with
system performance. Special attention was given to designing intuitive navigation,
minimizing loading times, and displaying vehicle data clearly, including images and
rental details.
Security was also a critical consideration, especially in handling user login and sensitive
data. Input validations, password hashing, and session management were implemented to
prevent unauthorized access.
Additionally, the project opened avenues for exploring advanced topics such as real-time
booking status updates, automated emails, and data analytics—all of which could be
integrated in future versions.
CHAPTER 8
CONCLUSION AND FUTURE SCOPE

Conclusion:

The Car Rental System developed using HTML, CSS, JavaScript, and PHP successfully fulfills
the requirements of a modern web-based vehicle booking platform. The system provides two
interfaces—client and admin—each with tailored functionalities. Clients can register, log in,
browse available cars with images, request rentals, and communicate with the admin. Admins
can efficiently manage rental requests, approve or reject bookings, and maintain communication
with users.
The project demonstrates practical implementation of front-end technologies (HTML, CSS,
JavaScript) for a responsive and interactive user interface, while the back-end, developed in
PHP, ensures robust data handling and secure user authentication. The integration of web
technologies creates a smooth, user-friendly experience across devices.
In conclusion, this system reduces manual effort, enhances rental process efficiency, and
provides a scalable foundation for future features such as online payments, driver assignment,
and real-time vehicle tracking. It proves to be a valuable solution for small to medium car rental
businesses aiming for digital transform

The Car Rental System developed with HTML, CSS, JavaScript, and PHP provides
a strong foundation for automating the vehicle rental process
Future Scope

1. Online Payment Integration Implementing secure online payment gateways (like


Razorpay, PayPal, or UPI) would allow customers to

2. make advance payments or deposits directly through the platform.

3. Real-Time Vehicle Tracking GPS-based vehicle tracking can be integrated to let


users and admins monitor the location of rented cars, enhancing transparency and
safety.

4. Mobile App Development Creating a companion mobile application for Android


and iOS can make the system more accessible and user-friendly for clients on the
go.

5. Driver Assignment and Ratings A feature to assign drivers along with cars and
allow users to rate and review both vehicles and drivers can improve service quality
and trust.

6. Automatic Availability Management Adding a dynamic calendar to block or


show availability of vehicles based on booking dates can help avoid overlapping
bookings.

7. Multilingual Support To cater to a wider audience, the system can be enhanced to


support multiple languages and regional preferences
CHAPTER-9
APPLICATIONS

The Car Rental System developed using HTML, CSS, JavaScript, and PHP has a
wide range of real-world applications, particularly in the transportation and travel
industries. Its flexibility, scalability, and user-friendliness make it suitable for
various use cases.

Below are some of the key applications:

1. Local Car Rental Businesses Small to medium-sized car rental companies can
use this system to digitize their operations. It eliminates the need for manual
bookings, physical paperwork, and face-to-face interactions by offering a
complete online platform.

2. Tourism and Travel Agencies Travel agencies can integrate this system into
their websites to allow tourists to book vehicles online in advance. This provides
added convenience to travelers and streamlines vehicle management for agencies.

3. Airport Car Rentals The system can be adapted for use at airports, where
travelers often require vehicles upon arrival. With real-time availability and
instant booking, this system can improve customer service and reduce wait times.

4. Corporate Car Booking Portals Companies that offer transportation facilities


to their employees can use a customized version of this system to manage
corporate car bookings, monitor usage, and schedule vehicle assignments
efficiently.

5. Peer-to-Peer Car Sharing Platforms With additional features, the system can
support peer-to-peer (P2P) vehicle sharing, where individual car owners list their
vehicles for rent, and users can browse and book available options.

6. Self-Drive and Chauffeur-Driven Rentals The platform can support both self-
drive and driver-assigned bookings, offering flexibility to customers based on
their needs and preferences.

7. Educational Institutions and Projects This system can serve as a practical


project for students in computer science or IT, demonstrating skills in full-stack
development, user authentication, database management, and real-world problem-
solving.

8. Event or Function Transportation Management For weddings, parties, or


corporate events, the system can be used to manage multiple car bookings and
scheduling, ensuring timely and organized transportation for guests.

.
CHAPTER 10
REFERENCES

➢ During the development of this project, a wide range of resources was consulted. Our references
include subject notes, design principles from various articles, data from reputable websites and
books, and several open source and paid resources. Most of the code was developed in-house,
though certain sections were inspired by articles from popular technical websites. Key sources
include:

1. Subject Notes and Course Materials:

a. Internal lecture notes and course handouts provided bythe Department of Computer
Technology.

2. Design and Development Articles:


a. Articles on UI/UX design and mobile app development from well-known technology
websites and blogs.

3. Online Programming Resources:


a. Tutorials and documentation from websites such as W3Schools, GeeksforGeeks, and Stack
Overflow.

4. Books on Software Engineering and Project Management:


a. Referenced texts that provided insights into our project strategies and development
methodologies

5. Open Source Documentation and APIs:

a. Documentation for PHP, JavaScript, and BootStrap, which were crucial in the
development of the application.

6. Additional Research Sources:


a. Data and best practices found via Google web search and Wikipedia entries related to task
prioritization and productivity techniques.
REFERENCES LINKS:

• PHP Documentation: https://www.php.net/manual/en/

• MySQL Official Guide: https://dev.mysql.com/doc/

• W3Schools Tutorials: https://www.w3schools.com/

• Stack Overflow: https://stackoverflow.com/

• Bootstrap Documentation: https://getbootstrap.com/

• GitHub Open Source Car Rental Projects (for UI/UX refrences)

You might also like