Carsaraf 1
Carsaraf 1
By
P. PAVITHRA SARATHI
(Register No.: 215915115)
NOVEMBER 2023
Department of Information Technology,
Bishop Heber College (Autonomous)
Tiruchirappalli – 620 017, Tamil Nadu, India
Phone No.: 0431 – 277 0136
CERTIFICATE
Examiners:
1.
2.
Dr. J SAI GEETHA, MCA., M.Phil., Ph.D., SET., NET.,
Associate Professor,
Department of Information Technology,
Bishop Heber College (Autonomous),
Tiruchirappalli – 620 017.
Date:
CERTIFICATE
I hereby declare that the work presented in this project work report is the
original work done by me under the guidance of Dr. J SAI GEETHA, MCA.,
Semester : FIVE
First of all, I would thank ALMIGHTY GOD for granting abundant grace,
good health and knowledge to do this Project.
P. PAVITHRA SARATHI
ABSTRACT
The main purpose of this Car Shop Management System is that it provides
provision to customers to buy or book vehicles their cars. This abstract provides an
overview of the key components and benefits of this innovative system.
PAP’
2 SYSTEM STUDY 2
3 SYSTEM DESIGN 6
4 SYSTEM DEVELOPMENT 9
5 SYSTEM TESTING 27
6 SYSTEM IMPLEMENTATION 30
7 CONCLUSION 34
BIBLIOGRAPHY 35
1. INTRODUCTION
The Car shop management system is suitable for retailers or resellers of all
types. The control panel of the vehicle showroom can be mounted on any operating
system. Product capabilities include quick inventory changes, complete user
management, photo uploads, image optimization, marketing reports, and easy
download. This program does not require specific models, frames, decoding, or
server-side technologies. Managing cars to your company's facilities involves more
than just issuing badges or recording entry and exit times. It encompasses security,
efficiency, and the overall buyers experience. Traditional paper-based systems are
often inefficient and lack the capabilities required to meet the security standards of
today's organizations.
1
2.SYSTEM STUDY
2. 1 PROJECT DESCRIPTION
The Car Shop Management System is a comprehensive software solution
designed to streamline and enhance the day-to-day operations of businesses of all
sizes. This project aims to create an integrated platform that covers various aspects of
company management.
2
2.1.3 Module Description
A module is a software component or part of a program that contains one or
more routines. One or more independently developed modules make up a program.
An enterprise-level software application may contain several different modules, and
each module serves unique and separate business operations. Modules make a
programmer’s job easy by allowing the programmer to focus on only one area of the
functionality of the software application. Modules are typically incorporated into the
program (software) through interfaces.
Module Description
The Car Shop Management System contains six modules. The details of these
modules are as follows:
1. Register Module:
Description: Users can quickly and easily register new user by inputting their details,
purpose of buyers, and other relevant information. This module ensures a smooth and
efficient check-in process.
2. Login Module:
Description: Users can log in using their credentials (username and password) to gain
access to the Car Shop Management System. Authentication ensures that only
authorized personnel can use the system.
3. Home Module:
Description: The Home module displays a user-friendly dashboard where users can
view details, to access car data, and initiate check-out the brands. It provides a central
hub for managing activities and accessing important information.
3
4. Brand Module:
Description: User can access their car brands in the shop, and other relevant
information. This module ensures a smooth and efficient check-in process.
5.Book Module:
Purpose: Provides a list of visitors who have completed their visits and checked
Description: Users can access a list who have completed their buying and checked out
of the premises. This module helps keep track of user departures and ensures accurate
records.
6. Logout Module:
Description: Users can log out of their accounts to ensure the security of the system
and protect sensitive data. The Logout module ensures a proper exit from the
application.
4
2.2.1. HARDWARE REQUIREMENT
WINDOWS
PHP and MySQL, a dynamic duo in web development, work together to create
powerful and interactive web applications. PHP, a server-side scripting language,
provides the logic and functionality necessary to build dynamic web pages. PHP
5
enables developers to generate dynamic content, process user input, and interact with
databases, while MySQL efficiently manages data storage, retrieval, and manipulation.
6
3. SYSTEM DESIGN
Admin Coustomer
7
3.2 DATABASE DESIGN
Database design is the process of producing a detailed data model of database.
This data model contains all the needed logical and physical design choices and
physical storage parameters needed to generate a design in a data definition language,
which can then be used to create a database. A fully attributed data model contains
detailed attributes for each entity. A good database design is important in ensuring
consistent data, elimination of data redundancy, efficient execution of queries and
high-performance application. Taking the time to design a database saves time and
frustration during development, and a well-designed database ensures ease of access
and retrieval of information.
3.2.1 DATAFLOW DIAGRAM
Data Flow Diagram (DFD) provides a visual representation of the flow of
information (i.e., data) within a system. By drawing a Data Flow Diagram, the
information provided by and delivered to someone who takes part in system processes,
the information needed in order to complete the processes and the information needed
to be stored and accessed.
Brand Selection
Customer
Registratio
n
CAR SHOP
Car Delivery
MANAGEMENT
SYSTEM
Car Deatils
Car Booking
Fig 3.2 Data flow Diagram for Car Shop Management System
8
3.2.2 Table Design
One of the most common data structures is a database table. A database table
consists of rows and columns. A database table is also called a two-dimensional array.
An array is like a list of values, and each value is identified by a specific index.
9
Table 3.4 Booking Details :
10
4. SYSTEM DEVELOPMENT
Index.php:
<?php
session_start();
if(isset($_POST["login"])){
$useremail=$_POST['useremail'];
$pass=$_POST['pass'];
$db = mysqli_connect("localhost","root","","car_showroom");
$numrows=mysqli_num_rows($query);
if($numrows !=0)
{
while($row=mysqli_fetch_assoc($query))
{
$dbuseremail=$row['email'];
$dbpass=$row['pass'];
$dbusername=$row['name'];
}
$_SESSION['s_name']= $dbusername;
/* Redirect browser */
header("Location: indexlogin.php");
}
}
else
{
$message = "Invalid credentials !";
11
echo "<script type='text/javascript'>alert('$message');</script>";
}
}
else {
echo "All fields are required!";
}
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-
scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div class="header">
<div class="wrap">
<div class="header-bot">
<div class="logo">
<a href="index.html"><img src="images/logo.png" alt="" style ="width:450px;
height: 160px;"></a>
</div>
<div class="cart">
12
<div class="menu-main">
<ul class="dc_css3_menu">
<li class="active"><a href="index.php">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="services.php">Brands</a></li>
<li><a href="contact.php">Contact</a></li>
<li><a href="login.php">Login</a></li>
<li><a href="register.php">Signup</a></li>
</ul>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<div class="header-bottom">
<div class="wrap">
<div class="page-not-found">
<div class="text-center">
<h2>SIGN IN
</h2>
</div>
<div class="col-md-3"></div>
<div class="col-md-6">
<form class="text-center" action="login.php" method="post" >
<div ><br/>
<label>Email</label>
<input type="text" class="form-control transparent-input" size="50"
placeholder="YOUR EMAIL" name="useremail" required >
</div>
<div ><br/>
<label>PASSWORD</label>
<input type="password" class="form-control transparent-input" size="50"
placeholder="PASSWORD PLEASE" name="pass" required >
</div>
<div><br/>
13
<button type="submit" class="btn btn-warning" value="login" name="login">Sign
in</button>
</div>
</form>
</div>
<div class="col-md-3"></div>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="wrap">
<div class="footer-top">
<div class="col_1_of_5 span_1_of_5">
<div class="footer-grid twitts">
<h3>Our Company</h3>
<div class="f_menu">
<ul>
<li>This is a CAR selling dealer</li>
<li>Please read our Terms and Conditions </li>
</ul>
</div>
</div>
</div>
14
<li><a href="#" style="opacity: 1;"><img src="images/follow_icon2.png"
alt=""></a></li>
<li><a href="#" style="opacity: 1;"><img src="images/follow_icon3.png"
alt=""></a></li>
<li><a href="#" style="opacity: 1;"><img src="images/follow_icon4.png"
alt=""></a></li>
<li><a href="#" style="opacity: 1;"><img src="images/follow_icon5.png"
alt=""></a></li>
</ul>
<p>+1 111-111-1111</p>
<span>support@autoexpress.com</span>
</div>
</div>
<div class="clear"></div>
</div>
</div>
</div>
</body>
</html>
Myform.php:
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-
scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div class="header">
<div class="wrap">
<div class="header-bot">
<div class="logo">
<a href="index.html"><img src="images/logo.png" alt="" style="width:450px; height:
160px;"></a>
</div>
<div class="cart">
15
<div class="menu-main">
<ul class="dc_css3_menu">
<li class="active"><a href="index.php">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="services.php">Brands</a></li>
<li><a href="contact.php">Contact</a></li>
<li><a href="login.php">Login</a></li>
<li><a href="register.php">Signup</a></li>
</ul>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<div class="header-bottom">
<div class="wrap">
<div class="page-not-found">
<div class="text-center">
<h2>User Account Registration
</h2>
</div>
<div class="col-md-3"></div>
<div class="col-md-6">
<div>
<label>Name</label>
<input type="text" class="form-control transparent-input" size="50"
placeholder="YOUR NAME " name="username" required>
</div>
<div><br/>
<label>Email</label>
<input type="text" class="form-control transparent-input" size="50"
placeholder="YOUR EMAIL" name="useremail" required>
</div>
16
<div><br/>
<label>Adress</label>
<input type="text" class="form-control transparent-input" size="50"
placeholder="YOUR ADDRESS" name="useraddress" required>
</div>
<div><br/>
<label>phone</label>
<input type="text" class="form-control transparent-input" size="50"
placeholder="YOUR PHONE NUMBER" name="userphone" required>
</div>
<div><br/>
<label>PASSWORD</label>
<input type="password" class="form-control transparent-input" size="50"
placeholder="PASSWORD PLEASE" name="pass" required>
</div>
<div><br/>
<button type="submit" name="reg" class="btn btn-warning" value="reg">Sign
up</button>
</div>
</form>
</div>
<div class="col-md-3"></div>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="wrap">
<div class="footer-top">
<div class="col_1_of_5 span_1_of_5">
<div class="footer-grid twitts">
<h3>Our Company</h3>
<div class="f_menu">
<ul>
17
<li>This is a CAR selling dealer</li>
<li>Please read our Terms and Conditions </li>
</ul>
</div>
</div>
</div>
</body>
</html>
<?php
$db=mysqli_connect("localhost","root","","car_showroom");
// REGISTER USER
if(isset($_POST['reg']))
{
18
$useremail = $_POST['useremail'];
$password = $_POST['pass'];
$userphone = $_POST['userphone'];
$useraddress = $_POST['useraddress'];
mysqli_query($db, $query);
?>
User_profile.php:
<?php
include('db_connect_db_new.php');
session_start(); $r_id = $_SESSION['rid'];
$sql = "SELECT * FROM info_visitor WHERE ReceiptID = $r_id";
$re = mysqli_query($link, $sql);
$result = mysqli_fetch_array($re, MYSQLI_ASSOC);
?>
<html>
<head>
<meta content="text/html; charset=windows-1252" http-equiv="content-type">
<link rel="stylesheet" href="BootStrap/css/bootstrap.min.css">
<style>
/*body {
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
height: 100vh;
}
@keyframes gradient {
19
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
*/
#col-1{
margin-left:-10%;
}
span {
text-underline-position: right;
font-size: 20px;
}
@media print {
/* style sheet for print goes here */
.hide-from-printer{ display:none; }
}
size: A4 landscape;
float: none;
width: auto;
border: 0;
margin: 0 5%;
padding: 0;
font-size:13pt;
}
.navbar-nav li.active a {
color: #fff !important;
background-color:#29292c !important;
}
.navbar {
margin-bottom: 0;
background-color:##ff4d4d;
border: 0;
font-size: 15px !important;
letter-spacing: 2px;
20
opacity:0.9;
color: #000000;
}
</style> </head>
<body>
<div class="row" >
</div>
</div>
<p style="text-align:center;padding-top:20px;">NOTE : This visitor badge is only
valid for x hours, please return it at the exit !</p>
<br>
<br>
<div style="text-align:center;"> <button type="button" id="button" class="hide-from-
printer"
onclick="window.print()" value="Print Badge">Print Badge</button> <a
type="button"
id="button" class="hide-from-printer" href="front.php">Back </a></div>
<a type="button" id="button" class="hide-from-printer" href="front.php"> </a>
21
</body>
</html>
Userout.php:
<?php
session_start();
if($_SESSION["loggedIn"] == 0)
header("location: index.php");
$userOf = $_SESSION["user"];
?>
<?php
$name = $rid = $time = $date = $success="";
$server = "localhost";
$uname = "root";
$pass = "";
$db = "db_vms";
$connect = mysqli_connect($server, $uname, $pass, $db);
if(!$connect)
die ("Error". mysqli_connect_error());
if($_SERVER["REQUEST_METHOD"]== "POST"){
if(!empty($_POST["rid"]))
$rid = $_POST["rid"];
date_default_timezone_set("Asia/Kathmandu");
$time = date("H:i:s");
$date = date("d/m/Y");
if(empty($rid))
echo "You have not entered the required fields Correctly !!";
else {
if(mysqli_num_rows(mysqli_query($connect,$query_s))>0){
22
mysqli_query($connect,$query);
$success = 1;
//echo $success;
// and refresh
else{
$success =0;
//echo $success;
}
}
}
?>
Db.php:
<?php
$server = "localhost";
$user = "root";
$dbName = "db_vms";
$pass = "";
$link = mysqli_connect($server, $user, $pass, $dbName);
if(!$link)
die("Error connecting database");
?>
SQL File:
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jul 05, 2020 at 09:17 AM
-- Server version: 5.6.21
-- PHP Version: 5.6.3
23
/*!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: `db_vms`
--
-- --------------------------------------------------------
--
-- Table structure for table `info_visitor`
--
--
-- Dumping data for table `info_visitor`
--
24
(2, 'Shreya Vaidya', 9841120696, 'Hello', 'BAba', '16', 1, 2019, '2019-01-16',
'18:29:38', 514571, 'OFFLINE', 'hello', '18:32:01', 'sumit', 'sumit'),
(3, 'Ursula', 9861549710, 'Etikai', 'Sumit', '16', 1, 2019, '2019-01-16', '21:39:59',
658639, 'OFFLINE', 'hello', '21:41:46', 'sumit', 'sumit'),
(4, 'Krishna', 9865321458, 'meet', 'job', '04', 7, 2020, '2020-07-04', '15:18:04', 617285,
'ONLINE', 'new employee', '00:00:00', 'sumit', ''),
(5, 'kisan', 9865324512, 'new job ', 'for meeting', '05', 7, 2020, '2020-07-05', '12:35:18',
820264, 'ONLINE', 'new customer', '00:00:00', 'Projectworlds', '');
-- --------------------------------------------------------
--
-- Table structure for table `login_info`
--
--
-- Dumping data for table `login_info`
--
--
-- Indexes for dumped tables
--
--
-- Indexes for table `info_visitor`
--
ALTER TABLE `info_visitor`
ADD PRIMARY KEY (`Serial`);
--
-- Indexes for table `login_info`
--
ALTER TABLE `login_info`
ADD PRIMARY KEY (`SnoPrimary`);
25
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `info_visitor`
--
ALTER TABLE `info_visitor`
MODIFY `Serial` int(11) NOT NULL
AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `login_info`
--
26
5. SYSTEM TESTING
27
5. 2 INTEGRATION TESTING:
Testing of integrated modules to verify combined functionality after
integration. Modules are typically code modules, individual applications, client and
server applications on a network, etc. This type of testing is especially relevant to
client/server and distributed system.
28
5.3 VALIDATION TESTING
This model of testing is extremely important especially if someone want to be
one of the best software testers. The software verification and validation testing are
the process after the validation testing stage is secondary to verification testing.
29
6. SYSTEM IMPLEMENTATION
30
6.2.2 Register Page
The User can register their details to login in this page. The details like full
name, contact, purpose, to meet whom, purpose and comment will be entered.
31
6.2.4 Veiw Page
Using this page user can view the cars available in the showroom.
32
6.2.6 Select page
Using this page user can select their car for booking purpose to order their car.
33
7. CONCLUSION
This Project helped me to get the better understanding to develop and derive
new class structures and organism them such that they will model real world systems
within computers. It also helped me in getting in the better understanding of basic
programming concepts of Php language, control structure, file handling etc.
34
BIBLIOGRAPHY
Books References:
1. Larry Ullman, “PHP and MySQL for Dynamic Web Sites”,2017 (5th Edition).
2. Robin Nixon, “Learning PHP, MySQL & JavaScript”, 2018 (5th Edition).
3. Josh Lockhart, "Modern PHP", 1st Edition, O'Reilly Media, Sebastopol, 2015.
4. David Sklar and Adam Trachtenberg, "PHP Cookbook", 3rd Edition, O'Reilly
Media, Sebastopol, 2014.
5. Matt Zandstra, "PHP Objects, Patterns, and Practice", 5th Edition, Apress, New
York, 2019.
Web References:
1. www.w3schools.com
2. www.php.net
3. www.stackoverflowPHP.com
4. www.javatpoint.com
5. www.phptutorial.com
35