0% found this document useful (0 votes)
53 views166 pages

Car Wash Riya

The Car Washing Management System is an online platform that allows users to browse and book car washing services from various locations after registering on the site. It aims to automate the car washing process, improving efficiency and user experience by centralizing data and providing easy access to information. The system includes features for both users and administrators, facilitating management of bookings, inquiries, and washing points.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views166 pages

Car Wash Riya

The Car Washing Management System is an online platform that allows users to browse and book car washing services from various locations after registering on the site. It aims to automate the car washing process, improving efficiency and user experience by centralizing data and providing easy access to information. The system includes features for both users and administrators, facilitating management of bookings, inquiries, and washing points.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 166

ABSTRACT

It is an Car Washing Management System that enables users to check for different washing points
accessible at the online store. The project consists list of car washing Points displayed in various
categories. The user may browse through these washing plans as per categories. If the user likes a
washing plans he/she may add it to his/her cart. he/she must register on the site first. He/she can then
login using same id password next time. In this way, the Car washing Management system project
brings a whole Washing Points on the web and makes it simple for both Washing Plans purchaser and
dealer.

Advantage and disadvantage of manual system is list below:-

Advantage :-

1) There is no requirement of power.


2) Helps Car washing shops to automate car washing online.

3) By Paying Extra charge we can invite them to our place

f for washing our car.

Disadvantage:-

1) Does not keep track of washing point.

2) Difficult to generate a report.

3) It is very much time consuming.

4) Difficult to search a record

5) Data may not be perfect


TABLE OF CONTENT

Chapter 1

1. Project Overview....................................................................................................................................7
Chapter 2
2. Feasibility Report................................................................................................................................10
3. System Analysis....................................................................................................................................12
Chapter 3
4. Requirement Specification..................................................................................................................14
5. System Design........................................................................................................................................17
Chapter 4
6. Data flow diagram.................................................................................................................................18
7.E-R Model..............................................................................................................................................21
8. Database Implementation.....................................................................................................................22
9. Screenshots............................................................................................................................................25
Chapter 5
10. Coding..................................................................................................................................................39
Chapter 6
11. Conclusion…....................................................................................................................................196
12. Bibliography.....................................................................................................................................197
1. Project Overview
We aim to become a pioneer in the car washing industry by completely focusing on customers, our
employees, growth, innovation and efficiency. All of these elements will drive us towards success and
show us as one company that can perform and give value for money.

When it comes car washing services, Cool Service is the most trusted and reliable name in the car washing
business. This system uses large quantity of water, thus water recycling plant is also an integral part of
the car washing system but at this level we are only presented the car washing only. And this
project continually strive to offer the best of services - both in terms of man and machine, to our clients
Moreover, car washing system is fully automated with different stages of foaming, washing, drying and
brushing. And this project claim to offer the best of rates, which are tailor-made depending upon the
facilities, availed and offer both intercity and intra-city car washing facilities. In Car Washing System,
we performed all the operations needed to clean the car successfully by using higly expert and
experience worker, also developed mimic of the whole system and works and checked the overall
process step by step by visualization. Car washing workers are educated, polite, and reliable and are
trained to handle acute breakdowns. Further, this project’s utmost priority is quality. A car wash is a
service that cleans both the outside and the inside of a vehicle. Self-serve car washes, fully automated car
washes, and full-service car washes with employees are all available options. It simplifies automotive
cleaning and washing. Blowers or dryers, brushes, conveyor/tunnel carwash equipment, air
compressors, applicator pump stations, conveyors, high-pressure equipment, pump stands/racks, and
other things are utilized for car washing. Shampooing, rinsing, washing, and drying are all automated
steps of the car wash.

Car Washing Management System is fully automated with different stages of foaming, washing, drying
and brushing. In Car Washing System, we performed all the operations needed to clean the car
successfully by using highly expert and experience worker, also developed mimic of the whole system
and works and checked the overall process step by step by visualization. Authorized person maintains
the car washing details in papers, which is a tedious task if any updating or changes need to be done.

 Details are stored in Papers.

 Maintenance is a huge problem.

 Updation, changes in details is a tedious task.

 Performance is not achieved up to the requirements.


Proposed System

In the Previous System, Details are Stored Manually in papers, to share the details between employees was a
financial drawback. Updating in the details is a tedious task.

But a new system was proposed to overcome the above drawbacks.

Functionalities and advantages of proposed system are:

 Data is Centralized which has overcome the Sharing problem in previous system.

 As data is Maintained electronically, it’s easy for a person to update the details, which has
overcome the tedious updation in previous system.

 Maintenance is easy and performance is good.

 Mainly the system has automated the Transportation Process.


2. Feasibility Report
Preliminary investigation examine project feasibility, the likelihood the system will be useful to the
organization. The main objective of the feasibility study is to test the Technical, Operational and
Economical feasibility for adding new modules and debugging old running system. All system is
feasible if they are unlimited resources and infinite time. There are aspects in the feasibility study
portion of the preliminary investigation:

 Technical Feasibility
 Operation Feasibility
 Economical Feasibility

3.1. Technical Feasibility

The technical issue usually raised during the feasibility stage of the investigation includes the
following:

 Does the necessary technology exist to do what is suggested?


 Do the proposed equipments have the technical capacity to hold the data required to use the new
system?
 Will the proposed system provide adequate response to inquiries, regardless of the number or
location of users?
 Can the system be upgraded if developed?
 Are there technical guarantees of accuracy, reliability, ease of access and data security?

Earlier no system existed to cater to the needs of ‘Secure Infrastructure Implementation System’. The current
system developed is technically feasible. It is a web based user interface for audit workflow . Thus it
provides an easy access to the users. The database’s purpose is to create, establish and maintain a
workflow among various entities in order to facilitate all concerned users in their various capacities or
roles. Permission to the users would be granted based on the roles specified.
3.2. Operational Feasibility

Proposed projects are beneficial only if they can be turned out into information system. That
will meet the organization’s operating requirements. Operational feasibility aspects of the project are to
be taken as an important part of the project implementation. Some of the important issues raised are to
test the operational feasibility of a project includes the following: -

 Is there sufficient support for the management from the users?


 Will the system be used and work properly if it is being developed and implemented?
 Will there be any resistance from the user that will undermine the possible application benefits?
This system is targeted to be in accordance with the above-mentioned issues. Beforehand, the
management issues and user requirements have been taken into consideration. So there is no question of
resistance from the users that can undermine the possible application benefits.

3.3. Economic Feasibility

A system can be developed technically and that will be used if installed must still be a good investment
for the organization. In the economical feasibility, the development cost in creating the system is
evaluated against the ultimate benefit derived from the new systems. Financial benefits must equal or
exceed the costs.
3. System Analysis
Overview

We aim to become a pioneer in the car washing industry by completely focusing on customers, our
employees, growth, innovation and efficiency. All of these elements will drive us towards success and
show us as one company that can perform and give value for money. This Service will make A manager
to think of whether the transportation is expensive and maintaining quality or not.

In Car Washing Management System, we performed all the operations needed to clean the car
successfully by using highly expert and experience worker, also developed mimic of the whole system,
works and checked the overall process step by step by visualization.

. In this project, we use PHP and MySQL database. It has two modules.

1. Admin
2. Users

Admin
1. Dashboard: In this section, admin can see two wheeler and four wheeler
vehicle detail in brief.
2. Washing Points: In this section, admin can manage washing location
(Add/Update).
3. Add Car Washing Booking: In this section, admin add car washing
booking on his/her end.
4. Car Washing Booking: In this section, admin can view booking details
of car washing which is booked by users.
5. Manage Enquiries: In this section, admin can read the enquiries of
users.
6. Pages: In this section, the admin can manage about us and contact us
pages.

Admin
can also change the password of his/her account.
Users

1. Home Page: Users can see the listed vehicles on the home page.
2. About Us: Users can view about us page.
3. Washing plans: User can view car washing plans and book that plans.
4. Washing points: User can view car washing location.
5. Contact us: Users can view the contact us page and do eqnuiry.
4. Requirement Specification

Hardware Configuration :

Client Side:

RAM 512 MB

Hard disk 10 GB

Processor 1.0 GHz

Server side:

RAM 1 GB

Hard disk 20 GB

Processor 2.0 GHz

Software Requirement:

Client Side:

Web Browser Google Chrome or any compatible browser

Operating System
Windows or any equivalent OS
Server Side:

Web Server APACHE

Server side Language PHP5.6 or above version

Database Server MYSQL

Web Browser Google Chrome or any compatible browser

Operating System Windows or any equivalent OS

APACHE

The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for
modern operating systems including UNIX and Windows. The goal of this project is to provide a secure,
efficient and extensible server that provides HTTP services in sync with the current HTTP standards.
The Apache HTTP Server ("http") was launched in 1995 and it has been the most popular web server on
the Internet since April 1996. It has celebrated its 20th birthday as a project in February 2015.
PHP

• PHP stands for PHP: Hypertext Preprocessor.

• PHP is a server-side scripting language, like ASP.


• PHP scripts are executed on the server.
• PHP supports many databases (MYSQL, Informix, Oracle, Sybase, Solid, Generic ODBC,
etc.).
• PHP is open source software.

• PHP is free to download and use.

MYSQL

• MYSQL is a database server

• MYSQL is ideal for both small and large applications


• MYSQL supports standard SQL
• MYSQL compiles on a number of platforms

• MYSQL is free to download and use

• How to access MySQL: http://localhost/phpmyadmin


5. System Design
Unified Modeling Language Diagrams (UML):

 The unified modeling language allows the software engineer to express an analysis model using
the modeling notation that is governed by a set of syntactic semantic and pragmatic rules.

 A UML system is represented using five different views that describe the system from distinctly
different perspective. Each view is defined by a set of diagram, which is as follows.

User Model View

i. This view represents the system from the users perspective.

ii. The analysis representation describes a usage scenario from the end-users perspective.
Structural model view

 In this model the data and functionality are arrived from inside the system.

 This model view models the static structures.

Behavioral Model View

 It represents the dynamic of behavioral as parts of the system, depicting the interactions of
collection between various structural elements described in the user model and structural
model view.

Implementation Model View

 In this the structural and behavioral as parts of the system are represented as they are to be
built.

Environmental Model View

In this the structural and behavioral aspects of the environment in which the system is to be implemented are
represented.

UML is specifically constructed through two different domains they are


6. DATA FLOW DIAGRAM L EVEL 1

Visit

View Washing
Points

View Washing
Plans

Raise Enquiry

Booking for car


wash
DATA FLOW DIAGRAM LEVEL 2

Sign in

Dashboard

Manage Washing
Points

(Add/ Update)

Add Car wash booking

Manage Car wash


booking

Manage Enquiries

Manage Pages

Change Password
7. ENTITY-RELATIONSHIP Diagrams

E-R (Entity-Relationship) Diagram is used to represents the relationship between entities in the table.
The symbols used in E-R diagrams are:
SYMBOL PURPOSE

Represents Entity sets.

Represent attributes.

Represent Relationship Sets.

Line represents flow

Structured analysis is a set of tools and techniques that the analyst.


To develop a new kind of a system:
The traditional approach focuses on the cost benefit and feasibility analysis, Project management, and
hardware and software selection a personal considerations.
E-R DIGARM
8. Database Implementation

MYSQL- MySQL ("My S-Q-L", officially, but also called "My Sequel") is (as of July 2013) the world's
second most widely used open-source relational database management system (RDBMS). It is named
after co-founder Michael Widenius daughter, My. The SQL phrase stands for Structured Query
Language. The MySQL development project has made its source code available under the terms of the
GNU General Public License, as well as under a variety of proprietary agreements. MySQL was owned
and sponsored by a single for-profit firm, the Swedish company MySQL AB, now owned by Oracle
Corporation .MySQL is a popular choice of database for use in web applications, and is a central
component of the widely used LAMP opens source web application software stack (and other 'AMP'
stacks). LAMP is an acronym for "Linux, Apache, MySQL, Perl/PHP/Python." Free-software-open
source projects that require a full-featured database management system often use MySQL. For
commercial use, several paid editions are available, and offer additional functionality. Applications
which use MySQL databases Library Management System include: TYPO3, MODx, Joomla,
WordPress, phpBB, MyBB, Drupal and other software. MySQL is also used in many high-profile, large-
scale websites, including Wikipedia, Google (though not for searches), Facebook, Twitter, Flickr, and
YouTube.

Database tables

In this project various tables used for maintain the information.

admin : This table use to store admin login details.

tblenquiry: This table store the enquiry details of users..


tblwashingpoints: This table use to store location of car washing.

tblcarwashbooking: This table use to car washing booking details.

tblpage: This table use to store pages info details.


Class Diagram / Schema:

The class diagram shows a set of classes, interfaces, collaborations and their relationships.
9. Output Screen of Project

Home Page
About Us
Washing Points(Locations)
Washing Plans
Contact Us
Booking

Admin Login Page


Dashboard

Change Password
Add Washing Points

Manage Washing Points


Update Washing Points

Add Car Washing Booking


New Booking

View New Booking


Completed Booking

View Completed Booking


All Booking

Manage Enquiry
Update Page Data

Update Contact Us Information


10. CODING

Admin
About

<?php

session_start();

error_reporting(0);

include('includes/config.php');

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

header('location:index.php');

else{ if($_POST['submit']=="Updat

e")

$pagetype=$_GET['type'];

$pagedetails=$_POST['pgedetails'];

$sql = "UPDATE tblpages SET detail=:pagedetails WHERE type=:pagetype";

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

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

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

$query -> execute();

$msg="Page data updated successfully";


}

?>

<!DOCTYPE HTML>

<html>

<head>

<title>CWMS | About Us Page</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name="keywords" content="Pooled Responsive web template, Bootstrap Web Templates, Flat
Web Templates, Android Compatible web template,

Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson,
Motorola web design" />

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

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

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

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

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

<script src="js/jquery-2.1.4.min.js"></script>

<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet'


type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<style>

.errorWrap

{ padding: 10px;

margin: 0 0 20px 0;
background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{ paddin

g: 10px; margin: 0

0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

<script type="text/JavaScript">

<!--

function MM_findObj(n, d) { //v4.01

var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length)

{ d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!

(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

if(!x && d.getElementById) x=d.getElementById(n); return x;

function MM_validateForm() { //v4.0

var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);

if (val) { nm=val.name; if ((val=val.value)!="") {

if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');

if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';

} else if (test!='R') { num = parseFloat(val);

if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';

if (test.indexOf('inRange') != -1) { p=test.indexOf(':');

min=test.substring(8,p); max=test.substring(p+1);

if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';

} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }

} if (errors) alert('The following error(s) occurred:\n'+errors);

document.MM_returnValue = (errors == '');

function MM_jumpMenu(targ,selObj,restore){ //v3.0

eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

if (restore) selObj.selectedIndex=0;

//-->

</script>

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

<script type="text/javascript">

bkLib.onDomLoaded(function() { nicEditors.allTextAreas()

});

</script>

</head>

<body>
<div class="page-container">

<!--/content-inner-->

<div class="left-content">

<div class="mother-grid-inner">

<!--header start here-->

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

<div class="clearfix"> </div>

</div>

<!--heder end here-->

<ol class="breadcrumb">

<li class="breadcrumb-item"><a href="dashboard.php">Home</a><i class="fa fa-angle-


right"></i>Update Page Data </li>

</ol>

<!--grid-->

<div class="grid-form">

<!---->

<div class="grid-form1">

<h3>Update Page Data</h3>

<?php if($error){?><div class="errorWrap"><strong>ERROR</strong>:<?php echo


htmlentities($error); ?> </div><?php }

else if($msg){?><div class="succWrap"><strong>SUCCESS</strong>:<?php echo htmlentities($msg);


?> </div><?php }?>

<div class="tab-content">

<div class="tab-pane active" id="horizontal-form">

<form class="form-horizontal" name="package" method="post" enctype="multipart/form-data">

<div class="form-group">
<label for="focusedinput" class="col-sm-2 control-label">Select page</label>

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

<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">

<option value="" selected="selected" class="form-control">***Select One***</option>

<option value="about.php?type=aboutus">aboutus</option>

</select>

</div>

</div>

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Selected Page</label>

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

<?php

switch($_GET['type'])

case "aboutus" :

echo "About US";

break;

default :

echo "";

break;

?>

</div>

</div>

<div class="form-group">
<label for="focusedinput" class="col-sm-2 control-label">Package Details</label>

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

<textarea class="form-control" rows="5" cols="50" name="pgedetails" id="pgedetails"


placeholder="Package Details" required>

<?php

$pagetype=$_GET['type'];

$sql = "SELECT detail from tblpages where type=:pagetype";

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

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

$query->execute();

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

$cnt=1;

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

foreach($results as $result)

echo htmlentities($result->detail);

}}

?>

</textarea>

</div>

</div>

<div class="row">

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

<button type="submit" name="submit" value="Update" id="submit" class="btn-primary


btn">Update</button>
</div>

</div>

</div>

</form>

<div class="panel-footer">

</div>

</form>

</div>

</div>

<!--//grid-->

<!-- script-for sticky-nav -->

<script>

$(document).ready(function() {

var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){

var scrollpos=$(window).scrollTop();

if(scrollpos >=navoffeset){

$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->


<!--inner block start here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->

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

<!--COPY rights end here-->

</div>

</div>

<!--//content-inner-->

<!--/sidebar-menu-->

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

<div class="clearfix"></div>

</div>

<script>

var toggle = true;

$(".sidebar-icon").click(function() {

if (toggle)

$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");

$("#menu span").css({"position":"absolute"});

else

$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");
setTimeout(function() {

$("#menu span").css({"position":"relative"});

}, 400);

toggle = !toggle;

});

</script>

<!--js -->

<script src="js/jquery.nicescroll.js"></script>

<script src="js/scripts.js"></script>

<!-- Bootstrap Core JavaScript -->

<script src="js/bootstrap.min.js"></script>

<!-- /Bootstrap Core JavaScript -->

</body>

</html>

<?php } ?>
ADD BOOKING
<?php

session_start();

error_reporting(0);

include('includes/config.php');

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

header('location:index.php');

else{

// Code for Booking

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

$ptype=$_POST['packagetype'];

$wpoint=$_POST['washingpoint'];

$fname=$_POST['fname'];

$mobile=$_POST['contactno'];

$date=$_POST['washdate'];

$time=$_POST['washtime'];

$message=$_POST['message'];

$status='New';

$bno=mt_rand(100000000, 999999999);

$sql="INSERT INTO
tblcarwashbooking(bookingId,packageType,carWashPoint,fullName,mobileNumber,washDate,washTim
e,message,status) VALUES(:bno,:ptype,:wpoint,:fname,:mobile,:date,:time,:message,:status)";
$query = $dbh->prepare($sql);

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

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

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

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

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

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

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

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

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

$query->execute();

$lastInsertId = $dbh->lastInsertId();

if($lastInsertId)

echo '<script>alert("Your booking done successfully. Booking number is "+"'.$bno.'")</script>';

echo "<script>window.location.href ='new-booking.php'</script>";

else

echo "<script>alert('Something went wrong. Please try again.');</script>";

?>

<!DOCTYPE HTML>

<html>
<head>

<title>CWMS | Add Car Washing Booking</title>

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

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

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

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

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

<script src="js/jquery-2.1.4.min.js"></script>

<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet'


type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{ padd

ing: 10px;

margin: 0 0 20px 0;

background: #fff;
border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body>

<div class="page-container">

<!--/content-inner-->

<div class="left-content">

<div class="mother-grid-inner">

<!--header start here-->

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

<div class="clearfix"> </div>

</div>

<!--heder end here-->

<ol class="breadcrumb">

<li class="breadcrumb-item"><a href="dashboard.php">Home</a><i class="fa fa-angle-


right"></i>Add Car Washing Booking </li>

</ol>

<!--grid-->

<div class="grid-form">

<!---->

<div class="grid-form1">
<h3>Add Car Washing Booking</h3>

<div class="tab-content">

<div class="tab-pane active" id="horizontal-form">

<form class="form-horizontal" name="washingpoint" method="post" enctype="multipart/form-data">

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Package Type</label>

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

<select name="packagetype" required class="form-control">

<option value="">Package Type</option>

<option value="1">BASIC CLEANING ($10.99)</option>

<option value="2">PREMIUM CLEANING ($20.99)</option>

<option value="3 ">COMPLEX CLEANING($30.99)</option>

</select>

</div>

</div>

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Washing Point</label>

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

<select name="washingpoint" required class="form-co

<option value="">Select Washing Point</option>

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

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

$query->execute();

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

{ ?>

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


>washingPointName);?> (<?php echo htmlentities($result->washingPointAddress);?>)</option>

<?php } ?>

</select>

</div>

</div>

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Full Name</label>

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

<input type="text" name="fname" class="form-control" required placeholder="Full Name">

</div>

</div>

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Mobile No</label>

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

<input type="text" name="contactno" class="form-control" pattern="[0-9]{10}" title="10 numeric


characters only" required placeholder="Mobile No.">

</div>

</div>

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Wash Date</label>

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

<input type="date" name="washdate" required class="form-control">

</div>
</div>

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Wash Time</label>

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

<input type="time" name="washtime" required class="form-control">

</div>

</div>

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Message (if any)</label>

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

<textarea name="message" class="form-control" placeholder="Message if any"></textarea>

</div>

</div>

<div class="row">

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

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

<button type="reset" class="btn-inverse btn">Reset</button>

</div>

</div>

</div>

</form>

<div class="panel-footer">
</div>

</form>

</div>

</div>

<!--//grid-->

<!-- script-for sticky-nav -->

<script>

$(document).ready(function() {

var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){

var scrollpos=$(window).scrollTop();

if(scrollpos >=navoffeset){

$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->


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

<!--COPY rights end here-->

</div>

</div>

<!--//content-inner-->

<!--/sidebar-menu-->

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

<div class="clearfix"></div>

</div>

<script>

var toggle = true;

$(".sidebar-icon").click(function() {

if (toggle)

$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");

$("#menu span").css({"position":"absolute"});

else

$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");

setTimeout(function() {

$("#menu span").css({"position":"relative"});

}, 400);

toggle = !toggle;
});

</script>

<!--js -->

<script src="js/jquery.nicescroll.js"></script>

<script src="js/scripts.js"></script>

<!-- Bootstrap Core JavaScript -->

<script src="js/bootstrap.min.js"></script>

<!-- /Bootstrap Core JavaScript -->

</body>

</html>

<?php } ?>
ADD CAR-WASHPOINT
<?php

session_start();

error_reporting(0);

include('includes/config.php');

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

header('location:index.php');

else{ if(isset($_POST['submit']

))

$wpname=$_POST['washingpointname'];

$wpaddress=$_POST['address'];

$wpcnumber=$_POST['contactno'];

$sql="INSERT INTO tblwashingpoints(washingPointName,washingPointAddress,contactNumber)


VALUES(:wpname,:wpaddress,:wpcnumber)";

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

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

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

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

$query->execute();

$lastInsertId = $dbh->lastInsertId();

if($lastInsertId)
{

echo "<script>alert('Car wash point added successfully');</script>";

echo "<script>window.location.href ='addcar-washpoint.php'</script>";

else

echo "<script>alert('Something went wrong. Please try again.');</script>";

?>

<!DOCTYPE HTML>

<html>

<head>

<title>CWMS | Add Washing Point</title>

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

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

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

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

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

<script src="js/jquery-2.1.4.min.js"></script>

<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet'


type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<style>

.errorWrap {
padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{ padd

ing: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body>

<div class="page-container">

<!--/content-inner-->

<div class="left-content">

<div class="mother-grid-inner">

<!--header start here-->

<?php include('includes/header.php');?>
<div class="clearfix"> </div>

</div>

<!--heder end here-->

<ol class="breadcrumb">

<li class="breadcrumb-item"><a href="dashboard.php">Home</a><i class="fa fa-angle-


right"></i>Add Washing Point </li>

</ol>

<!--grid-->

<div class="grid-form">

<!---->

<div class="grid-form1">

<h3>Add Washing Point</h3>

<div class="tab-content">

<div class="tab-pane active" id="horizontal-form">

<form class="form-horizontal" name="washingpoint" method="post" enctype="multipart/form-data">

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Car Wash Point Name</label>

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

<input type="text" class="form-control" name="washingpointname" id="washingpointname"


placeholder="Washing Point Name" required>

</div>

</div>

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Adress</label>

<div class="col-sm-8">
<textarea class="form-control" name="address" id="address" placeholder="Address" required
rows="4"></textarea>

</div>

</div>

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Contact Number</label>

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

<input type="text" class="form-control" name="contactno" id="contactno" placeholder="Contact


Number" required>

</div>

</div>

<div class="row">

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

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

<button type="reset" class="btn-inverse btn">Reset</button>

</div>

</div>

</div>

</form>

<div class="panel-footer">

</div>

</form>

</div>

</div>

<!--//grid-->
<!-- script-for sticky-nav -->

<script>

$(document).ready(function() {

var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){

var scrollpos=$(window).scrollTop();

if(scrollpos >=navoffeset){

$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->

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

<!--COPY rights end here-->

</div>

</div>

<!--//content-inner-->
<!--/sidebar-menu-->

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

<div class="clearfix"></div>

</div>

<script>

var toggle = true;

$(".sidebar-icon").click(function() {

if (toggle)

$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");

$("#menu span").css({"position":"absolue

else

$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");

setTimeout(function() {

$("#menu span").css({"position":"relative"});

}, 400);

toggle = !toggle;

});

</script>

<!--js -->

<script src="js/jquery.nicescroll.js"></script>

<script src="js/scripts.js"></script>
<!-- Bootstrap Core JavaScript -->

<script src="js/bootstrap.min.js"></script>

<!-- /Bootstrap Core JavaScript -->

</body>

</html>

<?php } ?>
ALL-BOOKING

<?php

session_start();

error_reporting(0);

include('includes/config.php');

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

header('location:index.php');

else{

?>

<!DOCTYPE HTML>

<html>

<head>

<title>CWMS | All Bookings</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

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

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


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

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

<script src="js/jquery-2.1.4.min.js"></script>

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

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

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

<script type="text/javascript">

$(document).ready(function() {

$('#table').basictable();

$('#table-breakpoint').basictable({

breakpoint: 768

});

$('#table-swap-axis').basictable({

swapAxis: true

});

$('#table-force-off').basictable({

forceResponsive: false

});

$('#table-no-resize').basictable({

noResize: true

});

$('#table-two-axis').basictable();

$('#table-max-height').basictable({

tableWrapper: true

});
});

</script>

<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet'


type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{ padd

ing: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>
<body>

<div class="page-container">

<!--/content-inner-->

<div class="left-content">

<div class="mother-grid-inner">

<!--header start here-->

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

<div class="clearfix"> </div>

</div>

<!--heder end here-->

<ol class="breadcrumb">

<li class="breadcrumb-item"><a href="dashboard.php">Home</a><i class="fa fa-angle-


right"></i>Manage All Bookings</li>

</ol>

<div class="agile-grids">

<!-- tables -->

<div class="agile-tables">

<div class="w3l-table-info">

<h2>All Bookings</h2>

<table id="table">

<thead>

<tr>

<th>Booking No.</th>

<th>Name</th>

<th width="200">Pacakge Type</th>


<th>Washing Point </th>

<th>Washing Date/Time </th>

<th width="200">Posting date </th>

<th>Action </th>

</tr>

</thead>

<tbody>

<?php $sql = "SELECT *,tblcarwashbooking.id as bid from tblcarwashbooking

join tblwashingpoints on tblwashingpoints.id=tblcarwashbooking.carWashPoint";

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

$query->execute();

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

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

foreach($results as $result)

?>

<tr>

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

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

<td width="50">

<?php $ptype=$result->packageType;

if($ptype==1): echo "BASIC CLEANING ($10.99)";endif;

if($ptype==2): echo "PREMIUM CLEANING ($20.99)";endif;

if($ptype==3): echo "COMPLEX CLEANING ($30.99)";endif;


?></td>

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

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

<td><?php echo htmlentities($result->washDate."/".$result->washTime);?></td>

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

<td><a href="booking-details.php?bid=<?php echo htmlentities($result->bid);?>&&bookingid=<?php


echo htmlentities($result->bookingId);?>">View</a>

</td>

<?php } ?>

</tr>

<?php } else { ?>

<tr>

<td colspan="6" style="color:red;">No Record found</td>

</tr>

<?php } ?>

</tbody>

</table>

</div>

</table>

</div>

<!-- script-for sticky-nav -->

<script>

$(document).ready(function() {

var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){
var scrollpos=$(window).scrollTop();

if(scrollpos >=navoffeset){

$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->

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

<!--COPY rights end here-->

</div>

</div>

<!--//content-inner-->

<!--/sidebar-menu-->

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

<div class="clearfix"></div>

</div>

<script>
var toggle = true;

$(".sidebar-icon").click(function() {

if (toggle)

$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");

$("#menu span").css({"position":"absolute"});

else

$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");

setTimeout(function() {

$("#menu span").css({"position":"relative"});

}, 400);

toggle = !toggle;

});

</script>

<!--js -->

<script src="js/jquery.nicescroll.js"></script>

<script src="js/scripts.js"></script>

<!-- Bootstrap Core JavaScript -->

<script src="js/bootstrap.min.js"></script>

<!-- /Bootstrap Core JavaScript -->

</body>
BOOKING-DETAILS
<?php

session_start();

error_reporting(0);

include('includes/config.php');

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

header('location:index.php');

else{ if(isset($_POST['update']

))

$id=$_GET['bid'];

$ttype=$_POST['txntype'];

$transactionno=$_POST['transactionno'];

$message=$_POST['message'];

$sql="update tblcarwashbooking set


adminRemark=:message,paymentMode=:ttype,txnNumber=:transactionno,status='Completed' where
id=:id";

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

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

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

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

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

$query->execute();
echo "<script>alert('Booking Details updated successfully');</script>";

//echo "<script>window.location.href ='managecar-washingpoints.php'</script>";

?>

<!DOCTYPE HTML>

<html>

<head>

<title>CWMS | New Bookings</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

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

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

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

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

<script src="js/jquery-2.1.4.min.js"></script>

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

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

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

<script type="text/javascript">

$(document).ready(function() {

$('#table').basictable();

$('#table-breakpoint').basictable({

breakpoint: 768
});

$('#table-swap-axis').basictable({

swapAxis: true

});

$('#table-force-off').basictable({

forceResponsive: false

});

$('#table-no-resize').basictable({

noResize: true

});

$('#table-two-axis').basictable();

$('#table-max-height').basictable({

tableWrapper: true

});

});

</script>

<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet'


type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;
border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{ padd

ing: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body>

<div class="page-container">

<!--/content-inner-->

<div class="left-content">

<div class="mother-grid-inner">

<!--header start here-->

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

<div class="clearfix"> </div>

</div>

<!--heder end here-->

<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="dashboard.php">Home</a><i class="fa fa-angle-
right"></i>Manage New Bookings</li>

</ol>

<div class="agile-grids">

<!-- tables -->

<div class="agile-tables">

<div class="w3l-table-info">

<h2>Bookings Details #<?php echo $_GET['bookingid'];?></h2>

<table id="table">

</thead

<tbody>

<?php

$bid=$_GET['bid'];

$sql = "SELECT * from tblcarwashbooking

join tblwashingpoints on tblwashingpoints.id=tblcarwashbooking.carWashPoint

where tblcarwashbooking.id='$bid'";

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

$query->execute();

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

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

foreach($results as $result)

{?>

<tr>

<th width="200">Booking Id#</th>


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

<th>Posting Date</th>

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

</tr>

<tr>

<th>Name</th>

<td width="300"><?php echo htmlentities($result->fullName);?></td>

<th>Mobile No</th>

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

</tr>

<tr>

<th>Package Type</th>

<td>

<?php $ptype=$result->packageType;

if($ptype==1): echo "BASIC CLEANING ($10.99)";endif;

if($ptype==2): echo "PREMIUM CLEANING ($20.99)";endif;

if($ptype==3): echo "COMPLEX CLEANING ($30.99)";endif;

?></td>

<th>Washing Point</th>

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

<br />

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

</tr>

<tr>

<th>Washing Date</th>
<td><?php echo htmlentities($result->washDate);?></td>

<th>Washing Time</th>

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

</tr>

<tr>

<th>Message (if Any)</th>

<td colspan="3"><?php echo htmlentities($result->message);?></td>

</tr>

<tr>

<th>Status</th>

<td colspan="3"><?php echo htmlentities($result->status);?></td>

</tr>

<?php if($result->adminRemark==''): ?>

<tr>

<td colspan="3">

<button data-toggle="modal" data-target="#myModal" class="btn-primary btn">Take Action</button>

</td>

</tr>

<?php else:?>

<tr>

<td colspan="4" style="color:blue; font-size:22px; text-align:center; font-weight:bold;">Admin


Details</td>

</tr>

<tr>
<th>Transaction Type</th>

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

<th>Transaction No.(if any)</th>

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

</tr>

<tr>

<th>Admin Remark</th>

<td colspan="3"><?php echo htmlentities($result->adminRemark);?></td>

</tr>

<?php endif;?>

<?php } } ?>

</tbody>

</table>

</div>

</table>

</div>

<!--Model-->

<div class="modal fade" id="myModal" role="dialog">

<div class="modal-dialog">

<!-- Modal content-->

<div class="modal-content">

<div class="modal-header">

<h4 class="modal-title">Update Booking #<?php echo $_GET['bookingid'];?></h4>

</div>

<div class="modal-body">
<form method="post">

<p>

<select name="txntype" required class="form-control">

<option value="">Transaction Type</option>

<option value="e-Wallet">e-Wallet</option>

<option value="UPI">UPI</option>

<option value="Debit/Credit Card">Debit/Credit Card</option

<option value="Cash">Cash</option>

<option value="Other">Other</option>

</select>

<p><input type="text" name="transactionno" class="form-control" placeholder="Transaction Number


(if any)"></p>

<p><textarea name="message" class="form-control" placeholder="Admin Remark"


required></textarea></p>

<p><input type="submit" class="btn btn-custom" name="update" value="Update"></p>

</form>

</div>

<div class="modal-footer">

<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

</div>

</div>

</div>

</div>

<!-- script-for sticky-nav -->

<script>

$(document).ready(function() {
var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){

var scrollpos=$(window).scrollTop();

if(scrollpos >=navoffeset){

$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->

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

<!--COPY rights end here-->

</div>

</div>

<!--//content-inner-->

<!--/sidebar-menu-->

<?php include('includes/sidebarmenu.php');

<div class="clearfix"></div>
</div>

<script>

var toggle = true;

$(".sidebar-icon").click(function() {

if (toggle)

$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");

$("#menu span").css({"position":"absolute"} }

else

$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");

setTimeout(function() {

$("#menu span").css({"position":"relative"});

}, 400);

toggle = !toggle;

});

</script>
CHANGE-PASSWARD
<?php

session_start();

error_reporting(0);

include('includes/config.php');

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

header('location:index.php');

else{

// Code for change password

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

$password=md5($_POST['password']);

$newpassword=md5($_POST['newpassword']);

$username=$_SESSION['alogin'];

$sql ="SELECT Password FROM admin WHERE UserName=:username and Password=:password";

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

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

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

$query-> execute();

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

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


{

$con="update admin set Password=:newpassword where UserName=:username";

$chngpwd1 = $dbh->prepare($con);

$chngpwd1-> bindParam(':username', $username, PDO::PARAM_STR);

$chngpwd1-> bindParam(':newpassword', $newpassword, PDO::PARAM_STR);

$chngpwd1->execute();

$msg="Your Password succesfully changed";

else {

$error="Your current password is wrong";

?>

<!DOCTYPE HTML>

<html>

<head>

<title>CWMS | Admin Change Password</title>

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

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

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

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

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

<script src="js/jquery-2.1.4.min.js"></script>

<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet'


type='text/css'/>
<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<script type="text/javascript">

function valid()

if(document.chngpwd.newpassword.value!= document.chngpwd.confirmpassword.value)

alert("New Password and Confirm Password Field do not match !!");

document.chngpwd.confirmpassword.focus();

return false;

return true;

</script>

<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{ padd

ing: 10px;
margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body>

<div class="page-container">

<!--/content-inner-->

<div class="left-content"> <div class="mother-grid-inner">

<!--header start here-->

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

<div class="clearfix"> </div>

</div>

<!--heder end here-->

<ol class="breadcrumb">

<li class="breadcrumb-item"><a href="dashboard.php">Home</a><i class="fa fa-angle-


right"></i>Change Password</li>

</ol>

<!--grid-->

<div class="grid-form">

<div class="grid-form1">

<?php if($error){?><div class="errorWrap"><strong>ERROR</strong>:<?php echo


htmlentities($error); ?> </div><?php }
else if($msg){?><div class="succWrap"><strong>SUCCESS</strong>:<?php echo htmlentities($msg);
?> </div><?php }?>

<div class="panel-body">

<form name="chngpwd" method="post" class="form-horizontal" onSubmit="return valid();">

<div class="form-group">

<label class="col-md-2 control-label">Current Password</label>

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

<div class="input-group">

<span class="input-group-addon">

<i class="fa fa-key"></i>

</span>

<input type="password" name="password" class="form-control1" id="exampleInputPassword1"


placeholder="Current Password" required="">

</div>

</div>

</div><div class="form-group">

<label class="col-md-2 control-label">New Password</label>

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

<div class="input-group">

<span class="input-group-addon">

<i class="fa fa-key"></i>

</span>

<input type="password" class="form-control1" name="newpassword" id="newpassword"


placeholder="New Password" required="">

</div>
</div>

</div>

<div class="form-group">

<label class="col-md-2 control-label">Confirm Password</label>

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

<div class="input-group">

<span class="input-group-addon">

<i class="fa fa-key"></i>

</span>

<input type="password" class="form-control1" name="confirmpassword" id="confirmpassword"


placeholder="Confrim Password" required="">

</div>

</div>

</div>

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

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

<button type="reset" class="btn-inverse btn">Reset</button>

</div>

</div>

</form>

</div>

</div>

</div>

</div>

<!--//grid-->
<!-- script-for sticky-nav -->

<script>

$(document).ready(function() {

var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){

var scrollpos=$(window).scrollTop();

if(scrollpos >=navoffeset){

$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->

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

<!--COPY rights end here-->

</div>

</div>
<!--//content-inner-->

<!--/sidebar-menu-->

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

<div class="clearfix"></div>

</div>

<script>

var toggle = true;

$(".sidebar-icon").click(function() { if (toggle)

{$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");

$("#menu span").css({"position":"absolute"});

else

$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");

setTimeout(function() {

$("#menu span").css({"position":"relative"});

}, 400);

toggle = !toggle;

});

</script>

<script src="js/jquery.nicescroll.js"></script>

<script src="js/scripts.js"></script>

<script src="js/bootstrap.min.js"></script>

</body>
COMPLETED-BOOKING
<?php

session_start();

error_reporting(0);

include('includes/config.php');

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

header('location:index.php');

else{

?>

<!DOCTYPE HTML>

<html>

<head>

<title>CWMS | Completed Bookings</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

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

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

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

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

<script src="js/jquery-2.1.4.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/table-style.css" />

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

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

<script type="text/javascript">

$(document).ready(function() {

$('#table').basictable();

$('#table-breakpoint').basictable({

breakpoint: 768

});

$('#table-swap-axis').basictable({

swapAxis: true

});

$('#table-force-off').basictable({

forceResponsive: false

});

$('#table-no-resize').basictable({

noResize: true

});

$('#table-two-axis').basictable();

$('#table-max-height').basictable({

tableWrapper: true

});

});

</script>
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet'
type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{ padd

ing: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body>

<div class="page-container">
<!--/content-inner-->

<div class="left-content"> <div class="mother-grid-inner">

<!--header start here-->

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

<div class="clearfix"> </div>

</div>

<!--heder end here-->

<ol class="breadcrumb">

<li class="breadcrumb-item"><a href="dashboard.php">Home</a><i class="fa fa-angle-


right"></i>Manage Completed Bookings</li>

</ol>

<div class="agile-grids">

<!-- tables -->

<div class="agile-tables">

<div class="w3l-table-info">

<h2>Completed Bookings</h2>

<table id="table">

<thead>

<tr> <th>Booking No.</th>

<th>Name</th>

<th width="200">Pacakge Type</th>

<th>Washing Point </th>

<th>Washing Date/Time </th>

<th width="200">Posting date </th>

<th>Action </th>
</tr>

</thead>

<tbody>

<?php $sql = "SELECT *,tblcarwashbooking.id as bid from tblcarwashbooking

join tblwashingpoints on tblwashingpoints.id=tblcarwashbooking.carWashPoint

where status='Completed'";

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

$query->execute();

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

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

foreach($results as $result)

{ ?> <tr>

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

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

<td width="50">

<?php $ptype=$result->packageType;

if($ptype==1): echo "BASIC CLEANING ($10.99)";endif;

if($ptype==2): echo "PREMIUM CLEANING ($20.99)";endif;

if($ptype==3): echo "COMPLEX CLEANING ($30.99)";endif;

?></td>

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

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

<td><?php echo htmlentities($result->washDate."/".$result->washTime);?></td>

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


<td><a href="booking-details.php?bid=<?php echo htmlentities($result->bid);?>&&bookingid=<?php
echo htmlentities($result->bookingId);?>">View</a>

</td>

<?php } ?>

</tr>

<?php } else { ?>

<tr>

<td colspan="6" style="color:red;">No Record found</td>

</tr>

<?php } ?>

</tbody>

</table>

</div>

</table>

</div>

<!-- script-for sticky-nav -->

<script>

$(document).ready(function() {

var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){

var scrollpos=$(window).scrollTop();

if(scrollpos >=navoffeset){

$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");
}

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->

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

<!--COPY rights end here-->

</div>

</div>

<!--//content-inner-->

<!--/sidebar-menu-->

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

<div class="clearfix"></div>

</div>

<script>

var toggle = true;

$(".sidebar-icon").click(function() {

if (toggle)

$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");
$("#menu span").css({"position":"absolute"}); }

else

$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");

setTimeout(function() {

$("#menu span").css({"position":"relative"});

}, 400);

toggle = !toggle;

});</script>

<!--js -->

<script src="js/jquery.nicescroll.js"></script>

<script src="js/scripts.js"></script>

<!-- Bootstrap Core JavaScript -->

<script src="js/bootstrap.min.js"></script>

<!-- /Bootstrap Core JavaScript -->

</body>

</html>

<?php } ?>
CONTACT
<?php

session_start();

//error_reporting(0);

include('includes/config.php');

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

header('location:index.php');

else{ if(isset($_POST['update']

))

$wpaddress=$_POST['address'];

$wpcnumber=$_POST['contactno'];

$ophrs=$_POST['openinghrs'];

$email=$_POST['emailid'];

$sql="update tblpages set


detail=:wpaddress,openignHrs=:ophrs,phoneNumber=:wpcnumber,emailId=:email where
type='contact'";

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

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

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

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

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

$query->execute();
echo "<script>alert('Details updates successfully');</script>";

echo "<script>window.location.href ='contact.php'</script>";

?>

<!DOCTYPE HTML>

<html>

<head>

<title>CWMS | Contact Us info</title>

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

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

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

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

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

<script src="js/jquery-2.1.4.min.js"></script>

<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet'


type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);


box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{ padd

ing: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body>

<div class="page-container">

<!--/content-inner-->

<div class="left-content">

<div class="mother-grid-inner">

<!--header start here-->

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

<div class="clearfix"> </div>

</div>

<!--heder end here--><ol class="breadcrumb"> <li class="breadcrumb-item"><a


href="dashboard.php">Home</a><i class="fa fa-angle-right"></i>Contact us information</li>

</ol>

<!--grid-->
<div class="grid-form">

<!---->

<div class="grid-form1">

<h3>Update Contact Information</h3>

<?php

$sql = "SELECT * from tblpages where type='contact'";

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

$query->execute();

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

foreach($results as $result)

?>

<div class="tab-content"><div class="tab-pane active" id="horizontal-form">

<form class="form-horizontal" name="washingpoint" method="post" enctype="multipart/form-data">

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Adress</label>

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

<textarea class="form-control" name="address" id="address" placeholder="Address" required rows="4"><?


php echo $result->detail; ?></textarea>

</div>

</div

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Opening Hours</label>

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

<input type="text" class="form-control" name="openinghrs" id="openinghrs" placeholder="Opening


Hour" value="<?php echo $result->openignHrs; ?>" required>
</div>

</div>

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Email Id</label>

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

<input type="email" class="form-control" name="emailid" id="emailid" placeholder="Email Id"


required value="<?php echo $result->emailId; ?>">

</div>

</div>

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Contact Number</label>

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

<input type="text" class="form-control" name="contactno" id="contactno" placeholder="Contact


Number" required value="<?php echo $result->phoneNumber; ?>">

</div>

</div>

<div class="row">

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

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

</div>

</div>

</div>

</form>

<?php } ?>

<div class="panel-footer">

</div>
</form>

</div>

</div>

<!--//grid-->

<!-- script-for sticky-nav -->

<script>

$(document).ready(function() {

var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){

var scrollpos=$(window).scrollTop();

if(scrollpos >=navoffeset){$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->

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

<!--COPY rights end here-->


</div>

</div>

<!--//content-inner-->

<!--/sidebar-menu-->

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

<div class="clearfix"></div>

</div>

<script>

var toggle = true;

$(".sidebar-icon").click(function() {

if (toggle) {

$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");

$("#menu span").css({"position":"absolute"});

else

$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");

setTimeout(function() {

$("#menu span").css({"position":"relative"});

}, 400); }

toggle = !toggle;

});

</script>

<!--js -->

<script src="js/jquery.nicescroll.js"></script>
DASHBOARD
<?php

session_start();

include('includes/config.php');

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

header('location:index.php');

else{

?>

<!DOCTYPE HTML>

<html>

<head>

<title>CWMS | Admin Dashboard</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

<!-- Bootstrap Core CSS -->

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

<!-- Custom CSS -->

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

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

<!-- Graph CSS -->

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


<!-- jQuery -->

<script src="js/jquery-2.1.4.min.js"></script>

<!-- //jQuery -->

<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet'


type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<!-- lined-icons -->

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<!-- //lined-icons -->

</head>

<body>

<div class="page-container">

<!--/content-inner-->

<div class="left-content"> <div class="mother-grid-inner">

<!--header start here-->

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

<!--header end here-->

<ol class="breadcrumb">

<li class="breadcrumb-item"><a href="dashboard.php">Home</a> <i class="fa fa-angle-


right"></i></li>

</ol>

<!--four-grids here-->

<div class="four-grids">

<a href="all-bookings.php" target="_blank">

<div class="col-md-3 four-grid">

<div class="four-agileits">
<div class="icon">

<i class="glyphicon glyphicon-list-alt" aria-hidden="true"></i>

</div>

<div class="four-text">

<h3>Total Bookings</h3>

<?php $sql = "SELECT id from tblcarwashbooking";

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

$query->execute();

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

$cnt=$query->rowCount();

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

</div>

</div>

</div>

</a>

<a href="new-booking.php" target="_blank">

<div class="col-md-3 four-grid">

<div class="four-agileinfo">

<div class="icon">

<i class="glyphicon glyphicon-list-alt" aria-hidden="true"></i>

</div>

<div class="four-text">

<h3>New Bookings</h3>

<?php $sql1 = "SELECT id from tblcarwashbooking where status='New'";

$query1 = $dbh -> prepare($sql1);


$query1->execute();

$results1=$query1->fetchAll(PDO::FETCH_OBJ);

$newbookings=$query1->rowCount(); ?>

<h4><?php echo htmlentities($newbookings);?></h4>

</div>

</div>

</div>

</a>

<a href="completed-booking.php" target="_blank">

<div class="col-md-3 four-grid">

<div class="four-wthree">

<div class="icon">

<i class="glyphicon glyphicon-list-alt" aria-hidden="true"></i>

</div>

<div class="four-text">

<h3>Completed Bookings</h3>

<?php $sql3 = "SELECT id from tblcarwashbooking where status='Completed'";

$query3= $dbh -> prepare($sql3);

$query3->execute();

$results3=$query3->fetchAll(PDO::FETCH_OBJ);

$completedbookings=$query3->rowCount();

?>

<h4><?php echo htmlentities($completedbookings);?></h4>

</div>

</div>
</div>

</a><a href="manage-enquires.php" target="_blank">

<div class="col-md-3 four-grid">

<div class="four-w3ls">

<div class="icon">

<i class="glyphicon glyphicon-folder-open" aria-hidden="true"></i>

</div>

<div class="four-text">

<h3>Enquiries</h3>

<?php $sql2 = "SELECT id from tblenquiry";

$query2= $dbh -> prepare($sql2);

$query2->execute();

$results2=$query2->fetchAll(PDO::FETCH_OBJ);

$cnt2=$query2->rowCount();

?>

<h4><?php echo htmlentities($cnt2);?></h4>

</div>

</div>

</div>

</a><div class="clearfix"></div>

</div>

div class="four-grids">

<a href="managecar-washingpoints.php" target="_blank">

<div class="col-md-3 four-grid">

<div class="four-w3ls">
<div class="icon">

<i class="glyphicon glyphicon-folder-open" aria-hidden="true"></i>

</div>

<div class="four-text">

<h3>Washing Points</h3>

<?php $sql5 = "SELECT id from tblwashingpoints";

$query5= $dbh -> prepare($sql5);

$query5->execute();

$results5=$query5->fetchAll(PDO::FETCH_OBJ);

$washingpoints=$query5->rowCount();

?>

<h4><?php echo htmlentities($washingpoints);?></h4>

</div>

</div>

</div>

</a>

<div class="clearfix"></div>

</div>

<!--//four-grids here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->

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

</div>
</div>

<!--/sidebar-menu-->

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

<div class="clearfix"></div></div>

<script>

var toggle = true;

$(".sidebar-icon").click(function() {

if (toggle)

$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");

$("#menu span").css({"position":"absolute"}); } else

$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");

setTimeout(function() {

$("#menu span").css({"position":"relative"});

}, 400); }

toggle = !toggle;

});</script>

<!--js -->

<script src="js/jquery.nicescroll.js"></script>

<script src="js/scripts.js"></script>

<!-- Bootstrap Core JavaScript -->

<script src="js/bootstrap.min.js"></script>

<!-- /Bootstrap Core JavaScript -->

<!-- morris JavaScript -->


<script src="js/raphael-min.js"></script>

<script src="js/morris.js"></script>

<script>

$(document).ready(function() {

//BOX BUTTON SHOW AND CLOSEjQuery('.small-graph-box').hover(function() {

jQuery(this).find('.box-button').fadeIn('fast'); }, function() {

jQuery(this).find('.box-button').fadeOut('fast');

});

jQuery('.small-graph-box .box-close').click(function() {

jQuery(this).closest('.small-graph-box').fadeOut(200);

return false; });

//CHARTS function gd(year, day, month)

{ return new Date(year, month - 1,

day).getTime();

graphArea2 = Morris.Area({

element: 'hero-area',

padding: 10,

behaveLikeLine: true,

gridEnabled: false, gridLineColor: '#dddddd',

axes: true, resize: true, smooth:true,

pointSize: 0, lineWidth: 0, fillOpacity:0.85,

data: [

{period: '2014 Q1', iphone: 2668, ipad: null, itouch: 2649},

{period: '2014 Q2', iphone: 15780, ipad: 13799, itouch: 12051},

{period: '2014 Q3', iphone: 12920, ipad: 10975, itouch: 9910},


{period: '2014 Q4', iphone: 8770, ipad: 6600, itouch: 6695},

{period: '2015 Q1', iphone: 10820, ipad: 10924, itouch: 12300},

{period: '2015 Q2', iphone: 9680, ipad: 9010, itouch: 7891},

{period: '2015 Q3', iphone: 4830, ipad: 3805, itouch: 1598},

{period: '2015 Q4', iphone: 15083, ipad: 8977, itouch: 5185},

{period: '2016 Q1', iphone: 10697, ipad: 4470, itouch: 2038},

{period: '2016 Q2', iphone: 8442, ipad: 5723, itouch: 1801} lineColors:

['#ff4a43','#a2d200','#22beef'],xkey: 'period', redraw: true, ykeys:

['iphone', 'ipad', 'itouch'],

labels: ['All Visitors', 'Returning Visitors', 'Unique Visitors'],

pointSize: 2,

hideHover: 'auto',

resize: true

});

});

</script>

</body>

</html>

<?php } ?>
EDITCAR-WASHPOINT
<?php

session_start();

error_reporting(0);

include('includes/config.php');

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

header('location:index.php');

else{ if(isset($_POST['submit']

))

$id=$_GET['wpid'];

$wpname=$_POST['washingpointname'];

$wpaddress=$_POST['address'];

$wpcnumber=$_POST['contactno'];

$sql="update tblwashingpoints set


washingPointName=:wpname,washingPointAddress=:wpaddress,contactNumber=:wpcnumber where
id=:id";

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

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

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

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

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

$query->execute();
echo "<script>alert('Car wash point updated successfully');</script>";

echo "<script>window.location.href ='managecar-washingpoints.php'</script>";

?>

<!DOCTYPE HTML>

<html>

<head>

<title>CWMS | Edit Washing Point</title>

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

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

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

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

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

<script src="js/jquery-2.1.4.min.js"></script>

<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet'


type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);


box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{ padd

ing: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body>

<div class="page-container">

<!--/content-inner-->

<div class="left-content">

<div class="mother-grid-inner">

<!--header start here-->

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

<div class="clearfix"> </div>

</div>

<!--heder end here-->

<ol class="breadcrumb"> <li class="breadcrumb-item"><a href="dashboard.php">Home</a><i


class="fa fa-angle-right"></i>Edit Washing Point </li </ol><!--grid-->

<div class="grid-form">
<!---->

<div class="grid-form1">

<h3>Edit Washing Point</h3>

<?php

$id=$_GET['wpid'];

$sql = "SELECT * from tblwashingpoints where id='$id'";

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

$query->execute();

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

foreach($results as $result)

{?>

<div class="tab-content">

<div class="tab-pane active" id="horizontal-form">

<form class="form-horizontal" name="washingpoint" method="post" enctype="multipart/form-data">

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Car Wash Point Name</label>

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

<input type="text" class="form-control" name="washingpointname" id="washingpointname" value="<?


php echo htmlentities($result->washingPointName);?>" required>

</div>

</div>

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Adress</label>

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

<textarea class="form-control" name="address" id="address" placeholder="Address" required rows="4"><?


php echo htmlentities($result->washingPointAddress);?></textarea>
</div>

</div>

<div class="form-group">

<label for="focusedinput" class="col-sm-2 control-label">Contact Number</label>

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

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


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

</div>

</div><div class="row">

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

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

</div>

</div>

</div>

</form>

<?php } ?> <div class="panel-footer">

</div>

</form>

</div>

<!--//grid-->

<!-- script-for sticky-nav -->

<script>

$(document).ready(function() {

var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){
var scrollpos=$(window).scrollTop();

if(scrollpos >=navoffeset){

$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->

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

<!--COPY rights end here-->

</div>

</div>

<!--//content-inner-->

<!--/sidebar-menu-->

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

<div class="clearfix"></div>

</div>

<script>var toggle = true;


$(".sidebar-icon").click(function() {

if (toggle)

$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");

$("#menu span").css({"position":"absolute"});

} else {

$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-
back");setTimeout(function() {

$("#menu span").css({"position":"relative"});

}, 400);

toggle = !toggle;});

</script>

<!--js -->

<script src="js/jquery.nicescroll.js"></script>

<script src="js/scripts.js"></script>

<!-- Bootstrap Core JavaScript -->

<script src="js/bootstrap.min.js"></script>

<!-- /Bootstrap Core JavaScript -->

</body>

</html>

<?php } ?>
INDEX
<?php

session_start();

include('includes/config.php');

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

$uname=$_POST['username'];

$password=md5($_POST['password']);

$sql ="SELECT UserName,Password FROM admin WHERE UserName=:uname and


Password=:password";

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

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

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

$query-> execute();

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

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

$_SESSION['alogin']=$_POST['username'];

echo "<script type='text/javascript'> document.location = 'dashboard.php'; </script>";

} else{echo "<script>alert('Invalid Details');</script>";

?>

<!DOCTYPE HTML>
<html>

<head>

<title>CWMS | Admin Sign in</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

<!-- Bootstrap Core CSS -->

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

<!-- Custom CSS -->

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

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

<!-- Graph CSS -->

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

<link rel="stylesheet" href="css/jquery-ui.css">

<!-- jQuery -->

<script src="js/jquery-2.1.4.min.js"></script>

<!-- //jQuery -->

<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet'


type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<!-- lined-icons -->

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<!-- //lined-icons -->

</head>

<body>
<div class="main-wthree">

<div class="container">

<div class="sin-w3-agile">

<h2>Sign In</h2>

<form method="post">

<div class="username">

<span class="username">Username:</span>

<input type="text" name="username" class="name" placeholder="" required="">

<div class="clearfix"></div>

</div>

<div class="password-agileits">

<span class="username">Password:</span>

<input type="password" name="password" class="password" placeholder="" required="">

<div class="clearfix"></div>

</div>

<div class="login-w3">

<input type="submit" class="login" name="login" value="Sign In">

</div>

<div class="clearfix"></div>

</form>

<div class="back"><a href="../index.php">Back to home</a>

</div>

</div>

</div>

</div>
LOGOUT
<?php

session_start();

$_SESSION = array();

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

$params = session_get_cookie_params();

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

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

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

);

unset($_SESSION['alogin']);

session_destroy(); // destroy session

header("location:index.php");

?>
MANAGE CAR-WASHINGPOINT
<?php

session_start();

error_reporting(0);

include('includes/config.php');

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

header('location:index.php');

else{

//Code for Deletion

if($_GET['rid']){

$id=$_GET['rid'];

$sql="delete from tblwashingpoints where id=:id";

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

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

$query->execute();

echo "<script>alert('Record Deleted');</script>";

echo "<script>window.location.href ='managecar-washingpoints.php'</script>";

?>

<!DOCTYPE HTML>

<html>

<head>
<title>CWMS | Manage Car Wash Point</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

<!-- Bootstrap Core CSS -->

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

<!-- Custom CSS -->

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

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

<!-- Graph CSS -->

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

<!-- jQuery -->

<script src="js/jquery-2.1.4.min.js"></script>

<!-- //jQuery -->

<!-- tables -->

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

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

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

<script type="text/javascript">

$(document).ready(function() {

$('#table').basictable();

$('#table-breakpoint').basictable({

breakpoint: 768

});
$('#table-swap-axis').basictable({

swapAxis: true

});

$('#table-force-off').basictable({

forceResponsive: false

});

$('#table-no-resize').basictable({

noResize: true

});

$('#table-two-axis').basictable();

$('#table-max-height').basictable({

tableWrapper: true

});

});

</script>

<!-- //tables -->

<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet'


type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<!-- lined-icons -->

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<!-- //lined-icons -->

</head>

<body>
<div class="page-container">

<!--/content-inner-->

<div class="left-content"

<div class="mother-grid-inner">

<!--header start here-->

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

<div class="clearfix"> </div>

</div>

<!--heder end here-->

<ol class="breadcrumb">

<li class="breadcrumb-item"><a href="dashboard.php">Home</a><i class="fa fa-angle-


right"></i>Manage Car Washing Points</li>

</ol><div class="agile-grids">

<!-- tables -->

<div class="agile-tables">

<div class="w3l-table-info">

<h2>Manage Car Washing Points</h2>

<table id="table">

<thead>

<tr>

<th>#</th>

<th >Washing Point Name</th><th>Address</th><th>Contact Number</th><th>Creation Date</th>

<th>Action</th>

</tr>

</thead>
<tbody>

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

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

$query->execute();

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

$cnt=1;

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

foreach($results as $result)

{ ?> <tr>

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


>washingPointName);?></td>

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

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

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

<td>

<a href="editcar-washpoint.php?wpid=<?php echo htmlentities($result->id);?>">Edit</a> | <a


href="managecar-washingpoints.php?rid=<?php echo htmlentities($result->id);?>" style="color:red;"
onClick="return confirm('Do you really want to delete');">Delete</a></td></tr><?php $cnt=$cnt+1;}
}?>

</tbody>

</table>

</div> </table>

</div>

<!-- script-for sticky-nav -->

<script>

$(document).ready(function() {
var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){

var scrollpos=$(window).scrollTop();

if(scrollpos >=navoffeset){

$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->

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

<!--COPY rights end here-->

</div>

</div>

<!--//content-inner-->

<!--/sidebar-menu-->

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

<div class="clearfix"></div>
</div>

<script>

var toggle = true;

$(".sidebar-icon").click(function() {

if (toggle)

$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");

$("#menu span").css({"position":"absolute"});

else

{$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");

setTimeout(function() { $("#menu span").css({"position":"relative"});

}, 400);

toggle = !togg});

</script>

<!--js -->

<script src="js/jquery.nicescroll.js"></script>

<script src="js/scripts.js"></script>

<!-- Bootstrap Core JavaScript -->

<script src="js/bootstrap.min.js"></script>

<!-- /Bootstrap Core JavaScript -->

</body>

</html>

<?php } ?>
MANAGE-ENQUIRES
<?php

session_start();

error_reporting(0);

include('includes/config.php');

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

header('location:index.php');

else{

// code for cancel

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

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

$status=1;

$sql = "UPDATE tblenquiry SET Status=:status WHERE id=:eid";

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

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

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

$query -> execute();

$msg="Enquiry successfully read";

?>

<!DOCTYPE HTML>

<html>
<head>

<title>CWMS | Manage Enquiry</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

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

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

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

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

<script src="js/jquery-2.1.4.min.js"></script>

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

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

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

<script type="text/javascript">

$(document).ready(function() {

$('#table').basictable();

$('#table-breakpoint').basictable({

breakpoint: 768

});

$('#table-swap-axis').basictable({

swapAxis: true

});

$('#table-force-off').basictable({

forceResponsive: false
});

$('#table-no-resize').basictable({

noResize: true

});

$('#table-two-axis').basictable();

$('#table-max-height').basictable({

tableWrapper: true

});

});

</script>

<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet'


type='text/css'/><link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet'
type='text/css'>

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{ padd

ing: 10px;

margin: 0 0 20px 0;
background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>

</head>

<body>

<div class="page-container">

<!--/content-inner-->

<div class="left-content">

<div class="mother-grid-inner">

<!--header start here--><?php include('includes/header.php');?>

<div class="clearfix"> </div>

</div>

<!--heder end here-->

<ol class="breadcrumb">

<li class="breadcrumb-item"><a href="dashboard.php">Home</a><i class="fa fa-angle-


right"></i>Manage Enquiries</li>

</ol>

<div class="agile-grids">

<!-- tables -->

<?php if($error){?><div class="errorWrap"><strong>ERROR</strong>:<?php echo


htmlentities($error); ?> </div><?php }

else if($msg){?><div class="succWrap"><strong>SUCCESS</strong>:<?php echo htmlentities($msg);


?> </div><?php }?>
<div class="agile-tables">

<div class="w3l-table-info">

<h2>Manage Enquiries</h2><table id="table">

<thead> <tr>

<th>Ticket id</th>

<th width="200">Name</th>

<th>Email</th>

<th>Subject </th>

<th>Description </th>

<th width="200">Posting date </th>

<th>Action </th>

</tr>

</thead>

<tbody>

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

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

$query->execute();

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

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

foreach($results as $result)

{?> <tr>

<td width="120">#TCKT-<?php echo htmlentities($result->id);?></td>

<td width="50"><?php echo htmlentities($result->FullName);?></td>

<td width="50">
<?php echo $result->EmailId;?></td>

<td width="200"><?php echo htmlentities($result->Subject);?></a></td>

<td width="400"><?php echo htmlentities($result->Description);?></td>

<td width="50"><?php echo htmlentities($result->PostingDate);?></td>

<?php if($result->Status==1)

{?><td>Read</td>

<?php } else {?>

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


confirm('Do you really want to read')" >Pending</a>

</td>

<?php } ?>

</tr>

<?php } }?>

</tbody>

</table>

</div>

</table>

</div>

<!-- script-for sticky-nav --><script>

$(document).ready(function() {

var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){

var scrollpos=$(window).scrollTop();
if(scrollpos >=navoffeset){

$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->

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

<!--COPY rights end here-->

</div>

</div>

<!--//content-inner-->

<!--/sidebar-menu-->

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

<div class="clearfix"></div>

</div>

<script>

var toggle = true;


$(".sidebar-icon").click(function() {

if (toggle){

$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");

$("#menu span").css({"position":"absolute"});

else

$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");

setTimeout(function() {

$("#menu span").css({"position":"relative"});

}, 400);

toggle = !toggle;

});

</script>

<!--js -->

<script src="js/jquery.nicescroll.js"></script>

<script src="js/scripts.js"></script>

<!-- Bootstrap Core JavaScript -->

<script src="js/bootstrap.min.js"></script>

<!-- /Bootstrap Core JavaScript -->

</body>

</html>

<?php } ?>
NEW-BOOKING
<?php

session_start();

error_reporting(0);

include('includes/config.php');

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

header('location:index.php');

else{

?>

<!DOCTYPE HTML>

<html>

<head>

<title>CWMS | New Bookings</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

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

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

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

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

<script src="js/jquery-2.1.4.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/table-style.css" />

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

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

<script type="text/javascript">$(document).ready(function() {

$('#table').basictable(); $('#table-breakpoint').basictable({

breakpoint: 768

});

$('#table-swap-axis').basictable({

swapAxis: true

});

$('#table-force-off').basictable({ forceResponsive: false

});

$('#table-no-resize').basictable({

noResize: true

});

$('#table-two-axis').basictable();

$('#table-max-height').basictable({

tableWrapper: true

});

});

</script>

<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet'


type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />


<style>

.errorWrap {

padding: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #dd3d36;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

.succWrap{ padd

ing: 10px;

margin: 0 0 20px 0;

background: #fff;

border-left: 4px solid #5cb85c;

-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);

</style>
</head>

<body>

<div class="page-container">

<!--/content-inner-->

<div class="left-content">

<div class="mother-grid-inner">

<!--header start here--><?php include('includes/header.php');?>


<div class="clearfix"> </div>

</div>

<!--heder end here--><ol class="breadcru <li class="breadcrumb-item"><a


href="dashboard.php">Home</a><i class="fa fa-angle-right"></i>Manage New Bookings</li> </ol>

<div class="agile-grids"> <!-- tables --<div class="agile-tables">

<div class="w3l-table-info"><h2>New Bookings</h2>

<table id="table">

<thead>

<tr>

<th>Booking No.</th>

<th>Name</th>

<th width="200">Pacakge Type</th>

<th>Washing Point </th>

<th>Washing Date/Time </th>

<th width="200">Posting date </th>

<th>Action </th>

</tr>

</thead>

<tbody>

<?php $sql = "SELECT *,tblcarwashbooking.id as bid from tblcarwashbooking

join tblwashingpoints on tblwashingpoints.id=tblcarwashbooking.carWashPoint

where status='New'";

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

$query->execute();

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

foreach($results as $result)

{?> <tr>

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

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

<td width="50">

<?php $ptype=$result->packageType;

if($ptype==1): echo "BASIC CLEANING ($10.99)";endif;

if($ptype==2): echo "PREMIUM CLEANING ($20.99)";endif;

if($ptype==3): echo "COMPLEX CLEANING ($30.99)";endif;

?></td>

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

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


>washDate."/".$result->washTime);?></td>

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

<td><a href="booking-details.php?bid=<?php echo htmlentities($result->bid);?>&&bookingid=<?php


echo htmlentities($result->bookingId);?>">View</a>

</td>

<?php } ?>

</tr> <?php } else { ?><tr>

<td colspan="6" style="color:red;">No Record found</td>

</tr><?php } ?></tbody></table></div> </table></div>

<!-- script-for sticky-nav -->


<script>

$(document).ready(function() { var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){

var scrollpos=$(window).scrollTop();

if(scrollpos >=navoffeset){

$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->

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

<!--COPY rights end here-->

</div>

</div>

<!--//content-inner-->

<!--/sidebar-menu-->

<?php include('includes/sidebarmenu.php');?>
<div class="clearfix"></div>

</div>

<script>

var toggle = true;

$(".sidebar-icon").click(function() {

if (toggle) {

$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");

$("#menu span").css({"position":"absolute"});

else

$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");

setTimeout(function() {

$("#menu span").css({"position":"relative"});

}, 400);

toggle = !toggle;

});

</script>

<!--js -->

<script src="js/jquery.nicescroll.js"></script>

<script src="js/scripts.js"></script>

<!-- Bootstrap Core JavaScript -->

<script src="js/bootstrap.min.js"></
INDEX
<?php //error_reporting(0);

include('includes/config.php');

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

$ptype=$_POST['packagetype'];

$wpoint=$_POST['washingpoint'];

$fname=$_POST['fname'];

$mobile=$_POST['contactno'];

$date=$_POST['washdate'];

$time=$_POST['washtime'];

$message=$_POST['message'];

$status='New';

$bno=mt_rand(100000000, 999999999);

$sql="INSERT INTO
tblcarwashbooking(bookingId,packageType,carWashPoint,fullName,mobileNumber,washDate,washTim
e,message,status) VALUES(:bno,:ptype,:wpoint,:fname,:mobile,:date,:time,:message,:status)";

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

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

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

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

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

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

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

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

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

$query->execute();

$lastInsertId = $dbh->lastInsertId();

if($lastInsertId)

echo '<script>alert("Your booking done successfully. Booking number is "+"'.$bno.'")</script>';

echo "<script>window.location.href ='washing-plans'</script>";

else

echo "<script>alert('Something went wrong. Please try again.');</script>";

?>

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<title>Car Wash management System | Home Page</title>

<!-- Favicon -->

<link href="img/favicon.ico" rel="icon">

<!-- Google Font -->

<link href="https://fonts.googleapis.com/css2?
family=Barlow:wght@400;500;600;700;800;900&display=swa p" rel="stylesheet">
<!-- CSS Libraries -->

<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
rel="stylesheet">

<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css"
rel="stylesheet">

<link href="lib/flaticon/font/flaticon.css" rel="stylesheet">

<link href="lib/animate/animate.min.css" rel="stylesheet">

<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">

<!-- Template Stylesheet -->

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

</head>

<body>

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

<!-- Carousel Start -->

<div class="carousel">

<div class="container-fluid">

<div class="owl-carousel">

<div class="carousel-item">

<div class="carousel-img">

<img src="img/carousel-1.jpg" alt="Image">

</div>

<div class="carousel-text">

<h3>Washing & Detailing</h3>

<h1>Keep your Car Newer</h1>

</div>

</div>
<div class="carousel-item">

<div class="carousel-img">

<img src="img/carousel-2.jpg" alt="Image">

</div>

<div class="carousel-text">

<h3>Washing & Detailing</h3>

<h1>Quality service for you</h1>

</div>

</div>

<div class="carousel-item">

<div class="carousel-img">

<img src="img/carousel-3.jpg" alt="Image">

</div>

<div class="carousel-text">

<h3>Washing & Detailing</h3>

<h1>Exterior & Interior Washing</h1>

</div>

</div>

</div>

</div>

</div>

<!-- Carousel End -->

<!-- About Start -->

<div class="about">

<div class="container">
<div class="row align-items-center">

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

<div class="about-img">

<img src="img/about.jpg" alt="Image">

</div>

</div>

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

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

<p>About Us</p>

<h2>car washing and detailing</h2>

</div>

<div class="about-content">

<p>

Lorem ipsum dolor sit amet elit. In vitae turpis. Donec in hendre dui, vel blandit
massa. Ut vestibu suscipi cursus. Cras quis porta nulla, ut placerat risus. Aliquam nec magna eget velit
luctus dictum

</p>

<ul>

<li><i class="far fa-check-circle"></i>Seats washing</li>

<li><i class="far fa-check-circle"></i>Vacuum cleaning</li>

<li><i class="far fa-check-circle"></i>Interior wet cleaning</li>

<li><i class="far fa-check-circle"></i>Window wiping</li>

</ul>

<a class="btn btn-custom" href="about.php">Learn More</a>

</div>

</div>
</div>

</div>

</div>

<!-- About End -->

<!-- Service Start -->

<div class="service">

<div class="container">

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

<p>What We Do?</p>

<h2>Premium Washing Services</h2>

</div>

<div class="row">

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

<div class="service-item">

<i class="flaticon-car-wash-1"></i>

<h3>Exterior Washing</h3>

</div>

</div>

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

<div class="service-item">

<i class="flaticon-car-wash"></i>

<h3>Interior Washing</h3>

</div>

</div>

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


<div class="service-item">

<i class="flaticon-vacuum-cleaner"></i>

<h3>Vacuum Cleaning</h3>

</div>

</div>

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

<div class="service-item">

<i class="flaticon-seat"></i>

<h3>Seats Washing</h3>

</div>

</div>

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

<div class="service-item">

<i class="flaticon-car-service"></i>

<h3>Window Wiping</h3>

</div>

</div>

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

<div class="service-item">

<i class="flaticon-car-service-2"></i>

<h3>Wet Cleaning</h3>
LOCATION
<div class="col-lg-12">

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

<p>Washing Points</p>

<h2>Car Washing & Care Points</h2>

</div>

<div class="row">

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

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

$query->execute();

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

foreach($results as $result)

{ ?>

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

<div class="location-item">

<i class="fa fa-map-marker-alt"></i>

<div class="location-text">

<h3><?php echo htmlentities($result->washingPointName);?></h3>

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

<p><strong>Call:</strong><?php echo htmlentities($result->contactNumber);?></p>

</div>

</div>

</div>

<?php } ?>
</div>

</div>

</div>

</div>

</div>

<!-- Location End -->

<?php include_once('includes/footer.php');?>

<!-- JavaScript Libraries -->

<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>

<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js"></
script>

<script src="lib/easing/easing.min.js"></script>

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

<script src="lib/waypoints/waypoints.min.js"></script>

<script src="lib/counterup/counterup.min.js"></script>

<!-- Contact Javascript File -->

<script src="mail/jqBootstrapValidation.min.js"></script>

<script src="mail/contact.js"></script>

<!-- Template Javascript -->

<script src="js/main.js"></script>

</body>

</html>
WASHING-PIANS
<?php //error_reporting(0);

include('includes/config.php');

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

$ptype=$_POST['packagetype'];

$wpoint=$_POST['washingpoint'];

$fname=$_POST['fname'];

$mobile=$_POST['contactno'];

$date=$_POST['washdate'];

$time=$_POST['washtime'];

$message=$_POST['message'];

$status='New';

$bno=mt_rand(100000000, 999999999);

$sql="INSERT INTO
tblcarwashbooking(bookingId,packageType,carWashPoint,fullName,mobileNumber,washDate,washTim
e,message,status) VALUES(:bno,:ptype,:wpoint,:fname,:mobile,:date,:time,:message,:status)";

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

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

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

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

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

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

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

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

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

$query->execute();

$lastInsertId = $dbh->lastInsertId();

if($lastInsertId)

echo '<script>alert("Your booking done successfully. Booking number is "+"'.$bno.'")</script>';

echo "<script>window.location.href ='printbill'</script>";

else

echo "<script>alert('Something went wrong. Please try again.');</script>";

?>

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<title>CWMS | Washing Plans</title>

<meta content="width=device-width, initial-scale=1.0" name="viewport">

<meta content="Free Website Template" name="keywords">

<meta content="Free Website Template" name="description">

<!-- Favicon -->


<link href="img/favicon.ico" rel="icon">

<!-- Google Font -->

<link href="https://fonts.googleapis.com/css2?
family=Barlow:wght@400;500;600;700;800;900&display=swa p" rel="stylesheet">

<!-- CSS Libraries -->

<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
rel="stylesheet">

<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css"
rel="stylesheet">

<link href="lib/flaticon/font/flaticon.css" rel="stylesheet">

<link href="lib/animate/animate.min.css" rel="stylesheet">

<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">

<!-- Template Stylesheet -->

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

</head>

<body>

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

<!-- Page Header Start -->

<div class="page-header">

<div class="container">

<div class="row">

<div class="col-12">

<h2>Washing Plan</h2>

</div>

<div class="col-12">
<a href="index.php">Home</a>

<a href="printbill.php">Price</a>

</div>

</div>

</div>

</div>

<!-- Page Header End -->

<!-- Price Start -->

<div class="price">

<div class="container">

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

<p>Washing Plan</p>

<h2>Choose Your Plan</h2>

</div>

<div class="row">

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

<div class="price-item">

<div class="price-header">

<h3>Basic Cleaning</h3>

<h2><span>Rs.</span><strong>100</strong><span>.99</span></h2>

</div>

<div class="price-body">

<ul>

<li><i class="far fa-check-circle"></i>Seats Washing</li>

<li><i class="far fa-check-circle"></i>Vacuum Cleaning</li>


<li><i class="far fa-check-circle"></i>Exterior Cleaning</li>

<li><i class="far fa-times-circle"></i>Interior Wet Cleaning</li>

<li><i class="far fa-times-circle"></i>Window Wiping</li>

</ul>

</div>

<div class="price-footer">

<a class="btn btn-custom" data-toggle="modal" data-target="#myModal">Book


Now</a>

</div>

</div>

</div>

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

<div class="price-item featured-item">

<div class="price-header">

<h3>Premium Cleaning</h3>

<h2><span>Rs</span><strong>200</strong><span>.99</span></h2>

</div>

<div class="price-body">

<ul>

<li><i class="far fa-check-circle"></i>Seats Washing</li>

<li><i class="far fa-check-circle"></i>Vacuum Cleaning</li>

<li><i class="far fa-check-circle"></i>Exterior Cleaning</li>

<li><i class="far fa-check-circle"></i>Interior Wet Cleaning</li>

<li><i class="far fa-times-circle"></i>Window Wiping</li>

</ul>
</div>

<div class="price-footer">

<a class="btn btn-custom" data-toggle="modal" data-target="#myModal">Book


Now</a>

</div>

</div>

</div>

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

<div class="price-item">

<div class="price-header">

<h3>Complex Cleaning</h3>

<h2><span>Rs</span><strong>300</strong><span>.99</span></h2>

</div>

<div class="price-body">

<ul>

<li><i class="far fa-check-circle"></i>Seats Washing</li>

<li><i class="far fa-check-circle"></i>Vacuum Cleaning</li>

<li><i class="far fa-check-circle"></i>Exterior Cleaning</li>

<li><i class="far fa-check-circle"></i>Interior Wet Cleaning</li>

<li><i class="far fa-check-circle"></i>Window Wiping</li>

</ul>

</div>

<div class="price-footer">

<a class="btn btn-custom" data-toggle="modal" data-target="#myModal">Book


Now</a>

</div>
</div>

</div>

</div>

</div>

</div>

<!-- Price End -->

<?php include_once('includes/footer.php');?>

<!--Model-->

<div class="modal fade" id="myModal" role="dialog">

<div class="modal-dialog">

<!-- Modal content-->

<div class="modal-content">

<div class="modal-header">

<h4 class="modal-title">Car Wash Booking</h4>

</div>

<div class="modal-body">

<form method="post">

<p>

<select name="packagetype" required class="form-control">

<option value="">Package Type</option>

<option value="1">BASIC CLEANING (Rs100.99)</option>

<option value="2">PREMIUM CLEANING (Rs200.99)</option>

<option value="3 ">COMPLEX CLEANING(Rs300.99)</option>

</select>
<p>

<select name="washingpoint" required class="form-control">

<option value="">Select Washing Point</option>

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

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

$query->execute();

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

foreach($results as $result)

{ ?>

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


>washingPointName);?> (<?php echo htmlentities($result->washingPointAddress);?>)</option>

<?php } ?>

</select></p>

<p><input type="text" name="fname" class="form-control" required placeholder="Full


Name"></p>

<p><input type="text" name="contactno" class="form-control" pattern="[0-9]{10}" title="10


numeric characters only" required placeholder="Mobile No."></p>

<p>Wash Date <br /><input type="date" name="washdate" required class="form-control"></p>

<p>Wash Time <br /><input type="time" name="washtime" required class="form-


control"></p>

<p><textarea name="message" class="form-control" placeholder="Message if


any"></textarea></p>

<p><input type="submit" class="btn btn-custom" name="book" value="Book Now"></p>

</form>

</div>

<div class="modal-footer">

<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>


</div>

</div>

</div>

</div>

<!-- JavaScript Libraries -->

<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>

<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js"></
script>

<script src="lib/easing/easing.min.js"></script>

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

<script src="lib/waypoints/waypoints.min.js"></script>

<script src="lib/counterup/counterup.min.js"></script>

<!-- Contact Javascript File -->

<script src="mail/jqBootstrapValidation.min.js"></script>

<script src="mail/contact.js"></script>

<!-- Template Javascript -->

<script src="js/main.js"></script>

</body>

</html>
11. Conclusion

The project titled as “Car Washing Management System” was deeply studied and analyzed to design
the code and implement. It was done under the guidance of the experienced project guide. All the current
requirements and possibilities have been taken care during the project time.

Car Washing Management System is used for maintain the car washing booking systems. This web
application will help to perform car washing results in high quality end product. Thus it will be User-
friendly and capable to wash multiple cars at a time.
12. Bibliography

For PHP
https://www.w3schools.com/php/default.asp
https://www.sitepoint.com/php/
https://www.php.net/

For MySQL
https://www.mysql.com/
http://www.mysqltutorial.org

For XAMPP
https://www.apachefriends.org/download.html

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