0% found this document useful (0 votes)
39 views42 pages

Carsaraf 1

Car showroom php project documentation

Uploaded by

rithik anbalagan
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)
39 views42 pages

Carsaraf 1

Car showroom php project documentation

Uploaded by

rithik anbalagan
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/ 42

CAR SHOP MANAGEMENT SYSTEM

A Project Report submitted to


Bishop Heber College (Autonomous), Tiruchirappalli
affiliated to Bharathidasan University, Tiruchirappalli – 620024
in partial fulfilment of the requirements for the award of the degree of

Bachelor of Vocation in Information Technology

By
P. PAVITHRA SARATHI
(Register No.: 215915115)

Under the guidance of


Dr. J SAI GEETHA, MCA., M.Phil., Ph.D., SET., NET.

Department of Information Technology


Bishop Heber College (Autonomous)
(Nationally Accredited with ‘A++’ Grade by NAAC with a CGPA of 3.69 out of 4)
(Recognized by UGC as “College of Excellence”)
Tiruchirappalli – 620 017

NOVEMBER 2023
Department of Information Technology,
Bishop Heber College (Autonomous)
Tiruchirappalli – 620 017, Tamil Nadu, India
Phone No.: 0431 – 277 0136

CERTIFICATE

This Viva-Voce examination for the candidate P. PAVITHRA

SARATHI (Reg. No.: 215915115) was held on

Signature of the HOD

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

This is to certify that the project work entitled “CAR SHOP


MANAGEMENT SYSTEM” is a Bonafide work done under my supervision by
P. PAVITHRA SARATHI (Reg. No. 215915115) and submitted to Bishop Heber
College (Autonomous), Tiruchirappalli – 620 017 in partial fulfilment of the
requirements for the award of the degree of Bachelor of Vocation in Information
Technology during the odd semester of the academic year (2023 – 2024).

Signature of the Guide


DECLARATION

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

M.Phil., Ph.D., SET., NET., Associate Professor, Department of Information


Technology, Bishop Heber College (Autonomous), Tiruchirapalli-620 017 and has
not been included in any other project work submitted for any other degree.

Name of the Candidate : P. PAVITHRA SARATHI

Register Number : 215915115

Semester : FIVE

Academic Year : 2023 – 2024

Course Code : U21ITPJ5

Signature of the Candidate


ACKNOWLEDGEMENTS

First of all, I would thank ALMIGHTY GOD for granting abundant grace,
good health and knowledge to do this Project.

I express my sincere gratitude to Dr. D. PAUL DHAYABARAN, M.Sc.,


M.Phil., PGDCA., Ph.D., Principal of Bishop Heber College (Autonomous),
Tiruchirappalli for his blessings.

I am highly indebted to Dr. J. JOHN RAYBIN JOSE, M. Sc., MCA, M.


Phil., PGDCA, Ph. D., SET, Associate Professor and Head, Department of
Information Technology, Bishop Heber College (Autonomous), Trichy for providing
his support and guidance during this project work.

I wish to place on record my gratitude to Dr. J SAI GEETHA, MCA.,


M.Phil., Ph.D., SET., NET., Associate Professor in Department of Information
Technology, Bishop Heber College (Autonomous), Trichy for her support during this
project work.

I record my gratitude to all the staff members of the Department of


Information Technology for their contribution in my academic endeavours and
developments.

I record my deep sense of gratitude to my beloved parents and my friends for


their encouragement and moral support extended during the period of my 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.

This project aims at creating an web application which tracks Customer


records, booking. vehicle records, etc and it provides easy to use web based interface
for customers. Car shop Management System provides a solution to a shop for
organizing data using software application. This software application helps
administrator to update data in step by step process while selling cars to customer.
Admin should have a full access to all available functions and generate any type of
useful reports such as total of sold cars between o dates, monthly and yearly income,
etc....
CONTENTS

PAP’

S. No. CHAPTER PAGE No.


No
1 INTRODUCTION 1

2 SYSTEM STUDY 2

2.1 Project Description 2

2.1.1. Existing system 2

2.1.2. Proposed system 2

2.1.3 Module Description 3

2.2 Requirement Analysis 4

2.2.1 Hardware Requirements 4

2.2.2 Software Requirements 5

3 SYSTEM DESIGN 6

3.1 Logical design 6

3.2 Database Design 6

4 SYSTEM DEVELOPMENT 9

4.1 Program Code 9

5 SYSTEM TESTING 27

5.1 Unit Testing 27

5.2 Integration Testing 28

5.3 Validation testing 29

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

The Car Shop Management System plays a vital role in Business


Management. For using this proposed web Application requires least requirements.
The minimum requirements are enough for downloading and using this proposed Web
Application.

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.1.1 Existing System


The existing system is a website developed using Php programming language.
The disadvantages of the existing system include In the existing scenario, if someone
has to buy a car or even interested in buying any car, then the person has to go to the
showroom. Not only once, but every time, whenever he/she is looking for some fact,
the only option left is to go to the shop. This is very time consuming and very hectic
as well. Sometimes, the buyer even lost interest because of this practice.
 It is not portable, where the user can’t use anytime anywhere.
 User interface is not convenient for the users to handle several data at a time.
 Lack of flexibility in report generation
2.1.2 Proposed System
The proposed Car shop management system is very effective. If someone is
interested in buying any car, then he/she can check all the information related to the
car in the given portal. He/she can even book the test drive within the system. The
proposed system also helps the buyer to check which cars and companies are good for
them, by showing them the past reviews about the car/companies. The proposed
system is so helpful and effective.

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:

Purpose: Enables authorized users to register the system.

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:

Purpose: Enables authorized users to securely access the system.

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:

Purpose: Serves as the main dashboard for users after login.

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:

Purpose: Allows users to visit their car brand

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:

Purpose: Allows users to securely log out of the system.

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.

2.2 REQUIREMENT ANALYSIS


Requirements analysis involves frequent communication with system users to
determine specific feature expectations, resolution of conflict or ambiguity in
requirements as demanded by the various users or groups of users, avoidance of
feature creep and documentation of all aspects of the project development process
from start to finish. Energy should be directed towards ensuring that the final system
or product conforms to client needs rather than attempting to user expectations to fit
the requirements. Requirements analysis is combination of hardware, software and
human factors engineering expertise as well as skills in dealing with people.

4
2.2.1. HARDWARE REQUIREMENT

The hardware specification of the laptop computer system available for


developing the project is given below

Processor : Intel Core I5

Hard disk : 500GB


RAM :4GB
Keyboard : Standard QWERTY Keyboard

Mouse : Standard mouse with 2 buttons

2.2.2. SOFTWARE REQUIREMENTS

A software requirement specification (SRS) is a complete description of the


behaviour of the system to be developed. It includes a set of use cases that describe all
the interaction the users will have with the software.

WINDOWS

An operating system is software that communicate with the hardware and


allows other to run. It comprises the system software, and other utilities. The
Operating system used as platform to develop this project in windows 8.1 Pro. It is a
multi-user operating system.

VISUAL STUDIO CODE


Visual Studio Code (VS Code) is a highly acclaimed, open-source code editor
that has rapidly become a favourite among developers and programmers worldwide.
This versatile tool offers an exceptional development environment for a wide range of
programming languages and platforms.

PHP & MYSQL

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.

Front End: HTML, CSS, JS

Back End: PHP and MYSQL

6
3. SYSTEM DESIGN

Systems design is the process of defining the architecture, components,


modules, interfaces, and data for a system to satisfy specified requirements. Systems
design could be seen as the application of systems theory to product development.
3.1. LOGICAL DESIGN
Logical design is an abstract concept in computer programming by which
programmers arrange data in a series of logical relationships known as attributes or
entities. An entity refers to a chunk of information, whereas an attribute defines the
unique properties of an entity.

Car Shop Management System

Admin Coustomer

Add Car Registeration

Car Delivery Car Booking

Delete Car Payment

Fig 3.1. Logical Design for Car Shop Management System

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.

Table 3.1 Validation & Types on Login Page


Field Name Field Type Validation Test

User Name Varchar Regular Expression


Validator
Regular Field Validator
Password Varchar Regular Expression
Validator
Regular Field Validator

Table 3.3 Car details:

Field Name Field Type Description

Car Name Varchar The admin needs to login


with username. Then Only
it will navigate.

Car Model Integer The admin needs to login


with username. Then Only
it will navigate.

Car Price Integer The admin needs to login


with username. Then Only
it will navigate.

9
Table 3.4 Booking Details :

Field Name Field Type Description

Car Name Varchar The admin needs to login


with username. Then Only
it will navigate.

Car Model Integer The admin needs to login


with username. Then Only
it will navigate.

Car Price Integer The admin needs to login


with username. Then Only
it will navigate.

Table 3.3 Customer Detail:

Field Name Field Type Description

Customer Name Varchar The User can fill this field

Customer Number Integer The User can fill this field

Customer Email Varchar The User can fill this field

Customer Address Varchar The User can fill this field

10
4. SYSTEM DEVELOPMENT

System development is the process of code construction. It includes in the


internal development of customized systems, the creation of database systems, or the
acquisition of third party developed software.
4.1. PROGRAM CODE

Index.php:
<?php
session_start();

if(isset($_POST["login"])){

if(!empty($_POST['useremail']) && !empty($_POST['pass'])) {

$useremail=$_POST['useremail'];
$pass=$_POST['pass'];
$db = mysqli_connect("localhost","root","","car_showroom");

$query=mysqli_query($db,"SELECT * FROM customer WHERE email=


'".$useremail."' AND pass='".$pass."'");

$numrows=mysqli_num_rows($query);

if($numrows !=0)
{
while($row=mysqli_fetch_assoc($query))
{
$dbuseremail=$row['email'];
$dbpass=$row['pass'];
$dbusername=$row['name'];
}

if($useremail == $dbuseremail && $pass == $dbpass)


{

$_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="container-fluid row">

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

<div class="col_1_of_5 span_1_of_5">


<div class="footer-grid twitts">
<h3>Get in touch</h3>
<ul class="follow_icon">
<li><a href="#" style="opacity: 1;"><img src="images/follow_icon.png"
alt=""></a></li>
<li><a href="#" style="opacity: 1;"><img src="images/follow_icon1.png"
alt=""></a></li>

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="container-fluid row">

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

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

<form class="text-center" action="register.php" method="post" >

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

<div class="col_1_of_5 span_1_of_5">


<div class="footer-grid twitts">
<h3>Get in touch</h3>
<ul class="follow_icon">
<li><a href="#" style="opacity: 1;"><img src="images/follow_icon.png"
alt=""></a></li>
<li><a href="#" style="opacity: 1;"><img src="images/follow_icon1.png"
alt=""></a></li>
<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>

<?php
$db=mysqli_connect("localhost","root","","car_showroom");

// REGISTER USER
if(isset($_POST['reg']))
{

// receive all input values from the form


$username = $_POST['username'];

18
$useremail = $_POST['useremail'];
$password = $_POST['pass'];
$userphone = $_POST['userphone'];
$useraddress = $_POST['useraddress'];

if($useremail!='' || $username!=''|| $password!=''|| $userphone!=''|| $useraddress!='' )


{
$query = "CALL
register('$username','$useremail','$password','$userphone','$useraddress')";

mysqli_query($db, $query);

$message = "registration done ! ";


echo "<script type='text/javascript'>alert('$message');</script>";

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

.row{margin-top: 5%;margin-left: 20%;}


@page {

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 class="col-sm-8" >

<p style="width: 678px;" id="col-1">Date :<?php echo


$result['Date'];?>&nbsp;&nbsp;
Time in :&nbsp;<?php echo $result['TimeIN']?></p>
<br>
<span id="col-1" name="main">Name :&nbsp;
<?php echo $result['Name'];?></span><br>
<span id="col-1">Contact No :&nbsp;
<?php echo $result['Contact']?><br>
<span id="col-1">Purpose :&nbsp;
<?php echo $result['Purpose'];?></span><br>
<span id="col-1">Meeting :&nbsp;
<?php echo $result['meetingTo'];?></span><br>
<span id="col-1">Receipt ID :&nbsp;
<?php echo $result['ReceiptID'];?></span><br>
<span id="col-1">Comment :&nbsp;
<?php echo $result['Comment'];?></span><br>
</span>

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

$query_s = "SELECT ReceiptID FROM info_visitor WHERE ReceiptID = '$rid'";

$query = "UPDATE info_visitor SET Status = 'OFFLINE' , TimeOUT = '$time',


loggedOutBy = '$userOf' WHERE ReceiptID = '$rid' ";

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

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";


SET time_zone = "+00:00";

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

CREATE TABLE IF NOT EXISTS `info_visitor` (


`Serial` int(11) NOT NULL,
`Name` char(50) NOT NULL,
`Contact` bigint(10) NOT NULL,
`Purpose` varchar(100) NOT NULL,
`meetingTo` varchar(100) NOT NULL,
`day` varchar(50) NOT NULL,
`month` int(2) NOT NULL,
`year` int(4) NOT NULL,
`Date` date NOT NULL,
`TimeIN` time NOT NULL,
`ReceiptID` int(6) NOT NULL,
`Status` varchar(100) NOT NULL,
`Comment` varchar(100) NOT NULL,
`TimeOUT` time NOT NULL,
`registeredBy` varchar(30) NOT NULL,
`loggedOutBy` varchar(30) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `info_visitor`
--

INSERT INTO `info_visitor` (`Serial`, `Name`, `Contact`, `Purpose`, `meetingTo`,


`day`, `month`, `year`, `Date`, `TimeIN`, `ReceiptID`, `Status`, `Comment`,
`TimeOUT`, `registeredBy`, `loggedOutBy`) VALUES
(1, 'Sumit', 9841120696, 'Fun', 'Hellp', '16', 1, 2019, '2019-01-16', '18:28:06', 145513,
'OFFLINE', 'asd', '18:59:04', 'sumit', 'sumit'),

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

CREATE TABLE IF NOT EXISTS `login_info` (


`SnoPrimary` int(11) NOT NULL,
`userName` varchar(30) CHARACTER SET latin1 COLLATE latin1_general_cs
NOT NULL,
`pass` varchar(30) CHARACTER SET latin1 COLLATE latin1_general_cs NOT
NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `login_info`
--

INSERT INTO `login_info` (`SnoPrimary`, `userName`, `pass`) VALUES


(1, 'Projectworlds', 'Projectworlds'),
(2, 'shreya', 'shreya');

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

System testing of software or hardware is testing conducted on a complete,


integrated system to evaluate the system’s compliance with its specified requirements.
System testing is carried out by specialist’s testers or independent testers. The system
testing should investigate both functional and non-functional requirements of the
testing.
5.1 PROJECT TESTING
The project testing is used to test the whole project by using the different of
testing techniques. Testing is a series of different tests that whose primary purpose
Is t fully exercise the computer-based system.
5.1.1 UNIT TESTING:
Testing of individual software components or modules. Typically done by the
programmer and not by testers, as it requires detailed knowledge of the internal
program design and code. may require developing test driver modules or test
harnesses.

Fig 5.1 Unit Testing on Login Page

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.

Fig 5.2 Integration Testing on Add Visitor Page

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.

Fig 5.4 Validation Testing on Checking Out

Fig 5.6 Checked Out List

29
6. SYSTEM IMPLEMENTATION

System Implementation is the stage of the project when the theoretical


design is turned out into a working system. Thus, it can be consider being the
most critical stage in achieving a successful new system and in giving the user,
confidence that the new system will work and be effective.

6.1 SOFTWARE DEPLOYMENT

Software deployment is the process of making the application work on a target


device, whether it be a test server, production environment or a user’s computer.
Software deployment should only take place after through testing to ensure that all the
flaws a bug have been identified a fixed. It is usually a planned initiative that consists
of different steps or stages that occur in the production of operational software.
6.2 SOFTWARE DEMONSTRATION

Demo software is a trial version of a software program which allows people to


use it for free while they decide whether or not to buy it. For example, a program may
not allow people to save files, meaning that people can use the program to see how it
feels, but they cannot save the work they produce.
6.2.1 Home Page
The Main activities will be done in home page. In the navigation bar, the view
cars, checked out bookings and view data can be accessed

Fig 6.1 Home Page

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.

Fig 6.2 Register Page


6.2.3 Login Page
The User can login their details will be displayed as the login this page.

Fig 6.3 Login Page

31
6.2.4 Veiw Page
Using this page user can view the cars available in the showroom.

Fig 6.4 View Out

6.2.5 Search Page


The checked-out user and current active cars will be displayed here.

Fig 6.5 Search Page

32
6.2.6 Select page
Using this page user can select their car for booking purpose to order their car.

Fig 6.6 Select page

6.2.7 Order Page


The User can view their ordered car in the showroom using order
page.

Fig 6.7 Select page

33
7. CONCLUSION

In conclusion, it was a great experience to design and implement the Car


Shop Management System by using Php(Hypertext Preprocessor) and MySQL to
work on its documentation. While working on this project, I have learned many things
especially how to apply the concepts of Php in modelling of real world systems.

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.

Thus, the Car Shop Management System is a testament to the evolution of


visitor management. It offers not just security but also a warm welcome, not just data
but insights, not just functionality but efficiency. It's not just a system; it's a strategic
investment in the safety, reputation, and future of any organization.

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy