-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvehicles.php
More file actions
140 lines (136 loc) · 4.13 KB
/
vehicles.php
File metadata and controls
140 lines (136 loc) · 4.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sign up</title>
<link href="public/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="public/css/style.css" rel="stylesheet" type="text/css">
<script src="public/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="public/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="public/js/script.js"></script>
<style>
span{
color: red;
}
.container{
padding-top: 150px;
}
h2{
text-align: center;
}
h1{
text-align: center;
}
.vehicles li{
width: 80%;
height: 34px;
background: #C5396E;
text-align: center;
color: #fff;
font-size: 18px;
border-radius: 6px;
margin-bottom: 10px;
padding-top: 5px;
}
body{
background: #286A86;
}
.plan-tile{
background: #E065A6;
padding: 10px;
border-radius: 3px;
text-align: center;
width: 80%;
height: 120px;
}
</style>
</head>
<body>
<div class="row top">
<div class="">
<div class="head ">
<center>
<h1>AUTO MECH</h1>
<h4>Complete Online Vehicle Service Management</h4>
</center>
</div>
<div class="nav">
<nav class="list">
<ul>
<li class="active"><a href="index.php">HOME</a> </li>
<li><a href="about.html">ABOUT</a> </li>
<li><a href="offices.html">CONTACT</a> </li>
<li><a href="features.html">FEATURES</a> </li>
<li>
<div class="login-btn">
<center> <a href="login.php"> <button class="login">LOGIN</button></a></center>
</div>
</li>
</ul>
</nav>
</div>
</div>
</div>
<?php
$cars=array("BMW","Audi","Bugatti","Ford","Fiat","Jaguar","Lamborghini","Land Rover","Mini","Hyundai");
$bikes=array("Harley-Davidson","Ninja","Mahindra","Yamaha","Duke","Ducati","Kawasaki","Royal Enfield","Honda","Bajaj",);
$jeeps=array("Range Rover","Nissan","Skoda","Ford","Mahindra","Kia Sportage","Jeep","Volvo","Land Rover","Hummer");
?>
<div class="container">
<div class="row">
<div class="col-md-4">
<h2>Car Brands</h2>
<ul class="vehicles">
<?php
foreach ($cars as $car){
echo "<li>$car</li>";
}
?>
</ul>
</div>
<div class="col-md-4">
<h2>Bike Brands</h2>
<ul class="vehicles">
<?php
foreach ($bikes as $bike){
echo "<li>$bike</li>";
}
?>
</ul>
</div>
<div class="col-md-4">
<h2>4x4 Cars Brands</h2>
<ul class="vehicles">
<?php
foreach ($jeeps as $jeep){
echo "<li>$jeep</li>";
}
?>
</ul>
</div>
</div>
<div class="row">
<h1>PLANS</h1>
<?php
$plan1=array("Name"=>"Silver","Validity"=>"6 Months","Type"=>"Water Service");
$plan2=array("Name"=>"Gold","Validity"=>"1 year","Type"=>"Water Service & Maintanance");
$plan3=array("Name"=>"Platinum","Validity"=>"2 year","Type"=>"Water Service & Maintanance and Spairs");
$plans=array("plan1"=>$plan1,"plan2"=>$plan2,"plan3"=>$plan3);
foreach ($plans as $plan){
echo "<div class='col-md-4'>
<div class='plan-tile'>
<h4>$plan[Name]</h4>
<h4>$plan[Validity]</h4>
<h4>$plan[Type]</h4>
</div>
</div>";
}
?>
<div class="row">
<?php
?>
</div>
</div>
</body>
</html>