Vehicle - Service System # Greg
Vehicle - Service System # Greg
Vehicle - Service System # Greg
PROJECT DOCUMENTATION.
NAME: SAMSON ONDITI OTIENO
ADM NO: KP/DICT/3381/21F
COURSE TITLE: INFORMATION
COMMUNICATION TECHNOLOGY
LEVEL: DIPLOMA
COURSE CODE: 2920
PAPER CODE: 2920/305
INDEX NO:
PAPER NAME: PROJECT
SUPERVISED BY:
Project submitted to the Kenya National Examinations Council for partial fulfillment of the
award of Diploma in Information Communication Technology.
1
DECLARATION
I declare that this project is my original work by my own efforts and has not been submitted to
KNEC or any Institution for examination purposes.
Student name:
Sign:
………………………………………………
Supervisor name:
……………………………………………….
Sign:
…………………………………………………
2
DEDICATION
I dedicate this project to my family and friends for their financial and social support towards
achieving the completion of this project in.
3
ACKNOWLEDGEMENT
4
Table of Contents
BONDO TECHNICAL TRAINING INSTIITUTE........................................................................1
MAGARI ONLINE-VEHICLE MARKETING SYSTEM.............................................................1
DECLARATION.............................................................................................................................2
DEDICATION.................................................................................................................................3
ACKNOWLEDGEMENT...............................................................................................................4
ABSTRACT....................................................................................................................................6
CHAPTER ONE..............................................................................................................................7
INTRODUCTION.......................................................................................................................7
1.1 Problem statement..............................................................................................................7
1.1.1 Problem definition:..........................................................................................................7
1.1.2Objectives.........................................................................................................................8
1.1.3 Justification of monitoring system..................................................................................8
1.1.4 Scope...............................................................................................................................8
1.1.5 The solution.....................................................................................................................9
1.1.6 Conceptual framework....................................................................................................9
1.2 Feasibility Study...............................................................................................................10
1.2.1 Objective of Feasibility Study.......................................................................................10
1.2.2 Types of Feasibility Study.............................................................................................10
CHAPTER TWO...........................................................................................................................12
LITERATURE REVIEW..........................................................................................................12
2.0 Introduction/Review.........................................................................................................12
CHAPTER THREE.......................................................................................................................13
METHODOLOGY.....................................................................................................................13
3.0 Introduction......................................................................................................................13
3.1 Requirements Analysis.....................................................................................................13
Functional requirements.........................................................................................................13
Operational requirements.......................................................................................................13
Specify the performance standards to be attained by the new system, the storage of the
database and other features........................................................................................................13
5
Performance requirements......................................................................................................13
3.2 System Investigations Report...........................................................................................14
3.3 Terms of Reference..........................................................................................................14
3.4 Fact finding techniques....................................................................................................14
Disadvantages of Observation................................................................................................15
2. Interviews..........................................................................................................................15
3.5 Preliminary study.............................................................................................................15
3.5.1 Preliminary study report................................................................................................15
Poor management database....................................................................................................16
Insecurity of company’s data and information......................................................................16
Slow in generating reports......................................................................................................16
Uneconomical.........................................................................................................................16
3.6 System design: Waterfall..................................................................................................17
CHAPTER FOUR: SYSTEM DESIGN.....................................................................................18
4.0 Introduction..........................................................................................................................18
4.1 User classes and characteristics...........................................................................................18
4.2 Implementation Tools..........................................................................................................18
4.2.1 CONTEXT DIAGRAMS..................................................................................................18
4.2.2 Data Flow Diagrams.........................................................................................................19
4.2.2.1 Merits of DFDs..............................................................................................................21
4.3 Symbols Used in DFDs........................................................................................................21
4.4 User Interface Design...........................................................................................................22
4.5 Logical Design.....................................................................................................................22
4.6 System Flow Charts.............................................................................................................22
4.7 Entity Relationship Diagram (ERD)....................................................................................23
4.8 Entity Relationships Diagrams Decomposition...................................................................23
4.9 Database Design...................................................................................................................23
Information systems determines how the data is stored, processed and accessed in an
organization and is a major factor in the design of information systems as it determines the
speed of access, efficiency, and amount of storage space taken by the files. In this system
Databases provide a comprehensive implementation of the system by providing central data
and file management tools for different users............................................................................23
6
4.10 Input Design.......................................................................................................................25
4.11 Output Design....................................................................................................................25
4.12 Coding................................................................................................................................25
CHAPTER FIVE: CONCLUSION AND RECOMMENDATION..............................................26
5.1 Conclusion...........................................................................................................................26
5.2. Recommendation................................................................................................................26
REFERENCES..............................................................................................................................27
APPEDIX 1...................................................................................................................................28
BUDGET...................................................................................................................................28
APPENDIX 2.................................................................................................................................29
GANTT CHART........................................................................................................................29
SYSTEM CODING.......................................................................................................................30
HOMEPAGE.............................................................................................................................30
Customer registration page........................................................................................................31
Sell vehicle page........................................................................................................................34
SYSTEM SCREENSHOTS...........................................................................................................39
HOMEPAGE.............................................................................................................................39
LOGIN PAGE............................................................................................................................40
BILLINGPAGE.........................................................................................................................41
7
ABSTRACT
Online vehicle repair and marketing is a system for booking and display of services for a
company to boost the growth of the company and increase its customer reach.
This system will work online and all users are required to log in to the system before performing
any action or service. It will include a registration procedure for clients, administration and
employees.
Employees will need to log in daily and will provide their details during registration which will
then be added to a database. This means that the system will run with a database to store
employees’ and clients information.
Clients will access this platform on a website and they can be able to communicate with the
administration and the company as whole. This will help them to make their orders or raise any
issues they have.
The administration will also be able to communicate with the clients and be able to know what
type of service the customers want and make arrangements for deliveries.
8
CHAPTER ONE
INTRODUCTION
Online vehicle repair and marketing is a system for booking and display of services for a
company to boost the growth of the company and increase its customer reach. This system will
work online and all users are required to log in to the system before performing any action or
service. It will include a registration procedure for clients, administration and employees.
Employees will need to log in daily and will provide their details during registration which will
then be added to a database. This means that the system will run with a database to store
employees’ and client’s information. Clients will access this platform on a website and they can
be able to communicate with the administration and the company as whole. This will help them
to make their orders or raise any issues they have. The administration will also be able to
communicate with the clients and be able to know what type of service the customers want and
make arrangements for deliveries.
9
iii. Reduced reach.
iv. Too many customers at the physical premise causing fatigue to the employees.
v. High cost due to large number of staff and manual booking process.
1.1.2Objectives.
Online vehicle repair and marketing is a system for booking and display of services for a
company to boost the growth of the company and increase its customer reach.
This system will work online and all users are required to log in to the system before
performing any action or service. It will include a registration procedure for clients,
administration and employees.
Employees will need to log in daily and will provide their details during registration
which will then be added to a database. This means that the system will run with a
database to store employees’ and clients information.
Clients will access this platform on a website and they can be able to communicate with
the administration and the company as whole. This will help them to make their orders or
raise any issues they have.
The administration will also be able to communicate with the clients and be able to know
what type of service the customers want and make arrangements for deliveries.
1.1.4 Scope
The current system will be an online system accessible all over the world by everyone
irrespective of the physical location. This will ensure the increase in the number of customers
and also minimize paperwork and amount of time taken while travelling to the physical location
to book for the appointment or look for a good car to purchase.
Customers and clients will be able to access and book the services from anywhere with internet
connection from various devices including their phones, computers, PDA’s etc.
10
1.1.5 The solution
The proposed system will be an online system which is accessible over the internet and is
expected to improve and make the clients experience delighting and enjoyable.
Advantages of the proposed system
i. Is accessible from anywhere.
ii. It is cheaper compared to manual system
iii. It improves the customer -booking experience.
iv. Booking is faster with the proposed system
v. It reduces the amount of paperwork.
vi. There is improved security.
VEHIICLE BOOKING
DATABASE
SYSTEM
EMPLOYEE
ADMIN
MENU
ADMIN
11
1.2 Feasibility Study
The feasibility study is carried out to determine whether there is need for a new system
development of a better system or upgrade of the current system.
It is a research into possibility of developing a solution to a problem
Economic Feasibility
I will determine if the new system is worth developing in terms of its advantages and
disadvantages an organization can face.
Selling vehicles is more economical than putting adverts on the local dailies, TV stations, radio
stations or waiting for the customer to come to the physical location.
Speed up the rate of data processing .The process of retrieving record will end up being an easy
job and very fast process .A simple query will be used to retrieve any required record.
12
Operational Feasibility
This feasibility determines whether the system will be able to perform the designated functions
within the existing organization environment with its current personnel and existing procedure,
this is:
It determines if the personnel will have the necessary skills of using the proposed system and if
the personnel does not have the necessary skills how are they going to be acquired.
Accommodation of the new system for example office space comfort and so on.
13
CHAPTER TWO
LITERATURE REVIEW
2.0 Introduction/Review.
ONLINE CAR REPAIR AND MARKETING SYSTEMS’ main aim is to provide services to our
client securely, conveniently and with little or no errors possible and in return get profit.
Other goals of ONLINE CAR REPAIR AND MARKETING SYSTEMS’ are:
i. Giving back to the society in the company operates in.
ii. Focusing on our clients and employees.
iii. Giving our clients a user friendly booking system.
iv. Making profit and offering quality services.
v. Expanding to reach out the entire East Africa region.
According to http://www.business.ftc.gov the internet provides unprecedented opportunities for
the collection and sharing of information from and about customers.
The same website goes further to clarify that the consumers/ customers have very strong
concerns about the security of their personal information and finances on the internet market
place. ONLINE CAR REPAIR AND MARKETING SYSTEMS’ wishes to introduce secure
payment systems such as PayPal and M-Pesa to curb the fraud. This will ensure the clients
confidence in the payment system of the company
To borrow a quote from Geoff Ramsey of E-marketer “Listening means that marketers set aside
their ingrained command and control ” style of delivering messages on one way path and instead
open their senses to what customers are saying , doing , feeling and thinking .
As ONLINE CAR REPAIR AND MARKETING SYSTEMS’, the proposed system will allocate
our esteemed customers a space to write to us on a forum their good experiences, dissatisfaction
and their opinions.
This will help improve our services and range of goods and services to suite the customers feel
and needs .The new system will also explore the social media by adding Myspace®, Facebook®
and Twitter® handles on it to help reach out and listen to our customers’ needs.
“Institutional trust refers to individuals trust towards institutions like laws in a society or in case
of e-commerce the technology itself” (McKnight et al 2009).
The company is ready to foster the trust by providing a trusted booking system to its clients.
14
CHAPTER THREE
METHODOLOGY.
3.0 Introduction
System analysis is the process of gathering and interpreting facts, diagnosing problems about the
existing operations of the situation prevailing so that the new system will advocate / address the
problem.
The model that is being followed is the waterfall model. This model states that the phases are
organized in a linear order.
Functional requirements.
Specifies the kind of data that the database will have, database records related details of the
database.
Removals of wrong entries are possible whenever necessary. It provides facility of updating
whenever any changes are to be made
Operational requirements.
Performance requirements.
The following performance standards should be taken care of while developing the system:-
(i)User friendliness.
The system should be easy to learn and understand so that the new user can also use the system
without any difficulty.
(ii)User satisfaction.
The system should meet the user expectations.
15
(iii)Response time.
The response time of all the operations should be low.
a) Error handling.
Response to the user errors should be taken care of to ensure that the system operates without a
halt.
b) Safety and security.
The new system should be able to tackle or avoid catastrophic behavior.
c) Robustness.
The system should recover from undesired events without human intervention
The system should allow a user to upload a vehicle that he/she wants to sell, book the vehicle
service or order the vehicle after entering his/her details and the details of the vehicle after
registering.
Observation
This involves deeper inspection of the current system by seeing what is actually going on daily
basis.
The analyst made the observation on objects, activities actions of interest.
The analysts spend five days at main gate office to observe the flow of information.
16
Advantages of Observation
i. It enables the analyst to get firsthand information.
ii. Data collected is highly reliable. The analyst was able to see clearly what actions and
activities are undertaken and also identify tasks which have been omitted or inaccurately
imputed in the recording and signing book.
Disadvantages of Observation
i. Tasks being observed were subject to interruptions
ii. Sometimes costly because it requires the analyst to be present throughout the day.
iii. Time consuming because the analyst needed to observe persons all the time.
iv. Sometimes activities tended to take place at off times and this inconveniences the analyst
2. Interviews.
It is the direct communication between the users, management, clients, and the analyst to obtain
answers, comments and suggestion about the current system.
The analyst interviewed staff, non-staff and clients to view the problems the encountered.
Advantages of Interviews.
ii. It was easy to conduct because there was a laid down schedule.
iii. It enabled the analysis team to probe the respondent to obtain information.’
iv. The analyst was able to observe the interviewees non-verbal communication and obtain
some information.
Disadvantages of Interview.
i. Requires high skills in communication and interpersonal relationship.
ii. It is time consuming and costly to prepare.
17
Some of the problems encountered are as follows:-
The result of poor storage, cancellations and rewriting of each and every record during editing,
updating and completeness of reports since this purely manual before the record of interest if
found.
Uneconomical
The manual system requires many users to record and analyze the organization data for reports
unlike the computerized which may require a single user for the entire work.
This makes sure that the company saves money which could have been used to hire overtime
staff.
18
3.6 System design: Waterfall.
The figure below illustrates a waterfall development model. In this model, stages are set as series
with the flow of time and information from left to right. The model define the order of stages that
will be delivered completely to the management at the end of each stage.
Problem definition
Feasibility study
System design
Implementation
Maintenance
19
CHAPTER FOUR: SYSTEM DESIGN
4.0 Introduction
System design is the process of planning a new system or one to replace or complement an
existing system. This step produces the main structure of the system. The design of this
project entails selection of development tools and production of detailed procedures that
describe how the design process will be carried out and implemented in a new system. The
objective of systems design is to produce the design specifications for the system that will
satisfy the requirements defined during the systems analysis.
20
Here is a context diagram of the system:-
Admin
Login
Add vehicle
Client
Admin
Database
Online Car sales and
Client repair
User request
21
The DFD enables the software engineer to develop models of the information domain &
functional domain at the same time. As the DFD is refined into greater levels of details, the
analyst performs an implicit functional decomposition of the system.
22
At the same time, the DFD refinement results in a corresponding refinement of the data as it
moves through the process that embodies the applications. A context-level DFD for the system
the primary external entities produce information for use by the system and consume information
generated by the system. The labeled arrow represents data objects or object hierarchy.
Process
Data store
Data flow
Register user Update user Search user Unregister user View user
details
23
4.4 User Interface Design
The user interface is the appearance of a systems and the interactivity to the user. The goal of
every system is to make as easy to use by the user as possible.
The user interface should be simple to be used by the user as possible
Start
Home page
24
4.7 Entity Relationship Diagram (ERD)
This is a diagrammatic representation of how the entities within the system relate to one another,
the constraints and the cardinality mappings between the entities. Entities include customers,
employees, vehicle system, and vehicle manager.
Customers
Admin Employees
This shows various system entities and their relationship to the other entity in the system.
Information systems determines how the data is stored, processed and accessed in an
organization and is a major factor in the design of information systems as it determines the speed
of access, efficiency, and amount of storage space taken by the files. In this system Databases
provide a comprehensive implementation of the system by providing central data and file
management tools for different users.
25
Table Design
Administrator table
FIELDNAME DATATYPE SIZE DESCRIPTION
Vehicle table
Customers’ table
FIELDNAME DATATYPE SIZE DESCRIPTION
26
4.10 Input Design
Inputs are the only feedback information that the user feeds into the system. This may
include the user supplying his/her details after being requested by the system. The details
can be passwords, email or the username.
The input should be designed to address the following issues.
i. User friendliness.
ii. Security.
User friendliness
The input should be easy to be understood and used by the user.
The technology that is used to enter the details to the system should also be familiar and easy to
the users.
Security
The system should allow only users with special permission to add or remove items .The users
who are registered to the system should also access some pages which cannot be accessed by the
unregistered users.
The system should also be able to tackle the online security issues such as hacking and cracking.
4.12 Coding
The code of every system is critical because the code can used in future to upgrade or solve the
problems which may arise in the system. The code should be followed by a clear documentation
which states what the code does. The code should be also made tidy.
27
CHAPTER FIVE: CONCLUSION AND RECOMMENDATION
5.1 Conclusion.
The use of the system will provide a new, improved service to any firm that implements it,
saving time and effort, allowing staff to carry out their work whilst reducing their workload
much more accurately and enjoy using the system. The system will also provide means of
storage that is efficient and will limit the risks involving the stored data.
5.2. Recommendation.
According to the research study of the project, it is certain that the new system will be a success
and efficient. For one to use the new system, they must register and login to the system thus
providing essential information to the database that will be used for the company’s future
reference and analysis. The company will also use the information provided to make future
planning.
28
REFERENCES
1. Jung, Jayakrishnan, and Park, “Modeling of Real-time Shared-Taxi Dispatch Algorithms” Institute of
Transportation Studies, University of California, pp 3-8, 10-18, August, 2012.
2. Anurag Mandle, Akshay Jaiswal, Bhushan Dod, Roshan Lokhande, “Taxi Automation Using Real
Time Adaptive Scheduling”, International Journal on Recent and Innovation Trends in Computing and
Communication, pp 1-3, March 2014.
3. A. Michael Berman, Sue M. Lewis and Anthony Conto, “Location-Aware Computing”, EDUCAUSE
Evolving Technologies Committee, USA, pp 2-7, November 2008.
29
APPEDIX 1
BUDGET
The following will be the requirements and the budget estimates for carrying out the system
30
APPENDIX 2
GANTT CHART
The proposed system will have a time schedule to be strictly followed to start and end in time
without delays.
The following table shows activities and duration that each activity will take at a given time
Activity JAN FEB MAR APR MAY JUNE JULY AUG
10TH 1ST
2021 2021
Requirements 2021
Physical Design
Logical Design
Coding
Testing
Documentation
31
SYSTEM CODING
This is the part of the system where the actual codes of the system are created and tested. It is the
crucial part of the system because the codes are the ones that make up the system.
HOMEPAGE
<?php
include("header.php");
include("sidebar.php");
if(isset($_SESSION["custid"]))
{
header("Location: account.php");
}
?>
<div id="main">
<h3>E-workshop - Complete Auto solutions</h3>
<table width="537" border="0">
<tr>
<td colspan="2"><p>First In Kenya, dedicated web portal on car servicing and repair, 2n
d hand Vehicle showroom, etc. A network of execlusive car workshops members. The team is he
lping car owners to find the right car workshops based on Customers Reviews and Industry Stan
dards.</p>
<p> </p></td>
</tr>
<tr>
<td width="236"><a href="login.php"><img src="images/login.jpg" width="276" heigh
t="129" /></a></td>
<td width="285"><a href="registration.php"><img src="images/registration.png" widt
h="277" height="138" /></a></td>
</tr>
<tr>
<td><p><strong> Online car servicing booking</strong><strong><a hre
f="login.php"><img src="images/onlinevehicleservice.gif" width="276" height="131" /></a></
strong></p></td>
<td valign="top"><a href="login.php"><img src="images/sellcar.png" width="280" heig
ht="156" /></a></td>
</tr>
<tr>
32
<td><a href="vehiclestore.php"><img src="images/buy vehicles.jpg" width="276" heigh
t="182" /></a></td>
<td><a href="sparepartsstore.php"><img src="images/spareparts.jpg" width="283" heigh
t="182" /></a></td>
</tr>
</table>
</div>
<?php
include("footer.php");
?>
33
}
} else{
$username = trim($_POST["username"]);
}
} else{
echo "Oops! Something went wrong. Please try again later.";
}
//close statement
mysqli_stmt_close($stmt);
}
}
//validate password
if(empty(trim($_POST["password"]))){
$password_err = "Please enter a password";
} elseif(strlen(trim($_POST["password"])) < 6){
$password_err = "password must have atlest 6 characters.";
} else{
$password = trim($_POST["password"]);
}
//validate confirm password
if(empty(trim($_POST["confirm_password"]))){
$confirm_password_err = "please confirm password";
} else{
$confirm_password = trim($_POST["confirm_password"]);
if(empty($password_err) && ($password != $confirm_password)){
$confirm_password_err = "password did not match.";
}
}
//check input errors before inserting to database
if(empty($username_err) && empty($password_err) && empty($confirm_password_err)){
//prepare an insert statement
$sql ="INSERT INTO users(username, password) VALUES (?, ?)";
if($stmt = mysqli_prepare($link, $sql)){
//bind variables to the prepared statement as parameters
mysqli_stmt_bind_param($stmt, "ss", $param_username, $param_password);
//set parameters
$param_username = $username;
$param_password = password_hash($password, PASSWORD_DEFAULT);
//ATTEMPT TP EEXECUTE PREPARED STATEMENT
if(mysqli_stmt_execute($stmt)){
//redirectto login page
header("location: login.php");
} else{
echo "Oops! Something went wrong.Please try again later.";
}
34
//close statement
mysqli_stmt_close($stmt);
}
}
//close connection
mysqli_close($link);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Signup</title>
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/4.5.2/css/bootstrap.min.css">
<style>
body{ font: 14px sans-serif; }
.wrapper{ width: 360px; padding: 20px; }
</style>
</head>
<body>
<div class="wrapper">
<h2>signup</h2>
<p>Please fill this form to create an account.</p>
<form action="<?php echo
htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="post">
<div class="form-group">
<label>Username</label>
<input type="text" name="username"
class="form-control <?php echo (!empty($username_err)) ? 'is-invalid' : '';
?>" value="<?php echo $username; ?>">
<span class="invalid-feedback"><?php echo
$username_err; ?></span>
</div>
<div class="form-group">
<label>Password</label>
<input type="password" name="password"
class="form-control <?php echo (!empty($password_err)) ? 'is-invalid' : ''; ?>"
value="<?php echo $password; ?>">
<span class="invalid-feedback"><?php echo
$password_err; ?></span>
</div>
<div class="form-group">
<label> confirm password</label>
35
<input type="password" name="confirm_password" class="form-control" <?php
echo(!empty($confirm_password_err)) ? 'is-invalid' : ''; ?> value="<?php echo
$confirm_password; ?>">
<span class="invalid-feedback"><?php echo $confirm_password_err; ?></span>
</div>
<div class="form-group">
<input type= "submit" class="btn btn-primary" value="Submit">
<input type= "reset" class="btn btn-secondary ml-2" value="Reset">
</div>
<p>Already have an account? <a href="login.php">log in here</a>.</p>
</form>
</div>
</body>
</html>
<script type="text/javascript">
function validate()
{
if(document.form1.vehname.value=="")
{
alert("Enter Vehicle");
document.form1.vehname.focus();
return false;
}
if(document.form1.model.value=="")
{
alert("Enter Model");
document.form1.model.focus();
return false;
}
if(document.form1.brand.value=="")
{
alert("Enter Brand");
document.form1.brand.focus();
return false;
36
}
if(document.form1.estdprice.value=="")
{
alert("Enter the Estimated Price");
document.form1.estdprice.focus();
return false;
}
if(document.form1.other.value=="")
{
alert("Enter other info");
document.form1.other.focus();
return false;
}
}
</script>
<?php
if(isset($_POST["submit"]))
{
move_uploaded_file($_FILES["file"]["tmp_name"],
"upload/" . $_FILES["file"]["name"]);
$img = $_FILES["file"]["name"];
$sql ="insert into vehicle(custid,vehname,model,brand,images,estmdprice,otherinfo,status) value
s('$_SESSION[custid]','$_POST[vehname]','$_POST[model]','$_POST[brand]','$img','$_POST[
estdprice]','$_POST[other]','Pending')";
if (!mysqli_query($sql,$con))
{
die('Error: ' . mysqli_error());
}
}
if(isset($_POST["update"]))
{
move_uploaded_file($_FILES["file"]["tmp_name"],
"upload/" . $_FILES["file"]["name"]);
$img = $_FILES["file"]["name"];
if(empty($img)){
$img = $_POST['image'];
}
if($img != "")
{
37
$sql ="update vehicle set custid='$_SESSION[custid]',vehname='$_POST[vehname]',model='$_
POST[model]',brand='$_POST[brand]',images='$img',estmdprice='$_POST[estdprice]',otherinfo
='$_POST[other]' where sellno='$_GET[updtid]'";
}
else
{
$sql ="update vehicle set custid='$_SESSION[custid]',vehname='$_POST[vehname]',model='$_
POST[model]',brand='$_POST[brand]',estmdprice='$_POST[estdprice]',otherinfo='$_POST[oth
er]' where sellno='$_GET[updtid]'";
}
if (!mysqli_query($sql,$con))
{
die('Error: ' . mysqli_error());
}
if(mysqli_affected_rows() == 1)
{
$recresult = "<font color='green'><b>Vehicle record updated successfully...</b></font>";
}
}
?>
<?php
if(isset($_GET['updtid']))
{
$sql= "SELECT * FROM `vehicle`";
$res=mysqli_query($connection,$sql);
}
?>
<div id="main">
<a name="TemplateInfo"></a>
<h1>Sell vehicles</h1>
<?php
if(isset($_POST["submit"]))
{
?>
<center><h3>Vehicles record added successfully.. </center></h3>
<?php
}
else
{
echo $recresult;
38
?>
39
<img src="<?php echo $imgsrc; ?>" width="179" height="148" />
<?php
}
?>
</td>
</tr>
<tr>
<th height="37" scope="row">Estimated Price (In Dhs)</th>
<td><label for="phone"></label>
<label for="estdprice"></label>
<input name="estdprice" type="text" value="<?php echo $row['estmdprice']; ?>" i
d="estdprice" size="35" (event.keyCode < 45 || event.keyCode > 57) event.retur
nValue = false;"/></td>
</tr>
<tr>
<th height="45" scope="row">Other Info</th>
<td><label for="mobile"></label>
<label for="other"></label>
<textarea name="other" cols="15" id="other" ><?php echo $row['otherinfo']; ?></
textarea></td>
</tr>
<tr>
<th scope="row"> </th>
<td>
<?php if(isset($_GET['updtid']))
{
?>
<input type="submit" name="update" id="update" value="Update vehicle" /><?php
}else{ ?><input type="submit" name="submit" id="submit" value="Sell vehicle" /><?php } ?
></td>
</tr>
</table>
<?php
}
?>
</form>
<p> </p>
<br />
</div>
40
<?php
include("footer.php");
?>
SYSTEM SCREENSHOTS
HOMEPAGE
41
LOGIN PAGE
42
BILLINGPAGE
43