-
Notifications
You must be signed in to change notification settings - Fork 16
/
addcar.php
186 lines (145 loc) · 3.41 KB
/
addcar.php
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ADMINISTRATOR</title>
</head>
<body>
<style>
*{
margin: 0;
padding: 0;
}
body{
background-image: url("../images/regs.jpg");
background-size: cover;
background-position: center;
/* margin-top: 0px; */
}
.main{
width: 400px;
margin: 100px auto 0px auto;
margin-top: 30px;
}
.btnn{
width: 240px;
height: 40px;
background: #ff7200;
border:none;
margin-top: 30px;
margin-left: 40px;
font-size: 18px;
border-radius: 10px;
cursor: pointer;
color:#fff;
transition: 0.4s ease;
}
.btnn:hover{
background: #fff;
color:#ff7200;
}
.btnn a{
text-decoration: none;
color: black;
font-weight: bold;
}
h2{
text-align: center;
padding: 20px;
font-family: sans-serif;
}
.register{
background-color: rgba(0,0,0,0.6);
width: 100%;
font-size: 18px;
border-radius: 10px;
border: 1px solid rgba(255,255,255,0.3);
box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
color: #fff;
margin: auto;
}
form#register{
margin: 40px;
margin-top: 10px;
}
label{
font-family: sans-serif;
font-size: 18px;
font-style: italic;
}
input#name{
width:300px;
border:1px solid #ddd;
border-radius: 3px;
outline: 0;
padding: 7px;
background-color: #fff;
box-shadow:inset 1px 1px 5px rgba(0,0,0,0.3);
}
#back{
width: 100px;
height: 40px;
background: #ff7200;
border:none;
margin-top: 10px;
margin-left: 20px;
font-size: 18px;
}
#back a{
text-decoration: none;
color: black;
font-weight: bold;
}
#fam{
color: #ff7200;
font-family: 'Times New Roman';
font-size: 50px;
padding-left: 20px;
margin-top:-10px;
text-align: center;
letter-spacing: 2px;
display: inline;
margin-left: 250px;
}
.reg{
width: 100%;
}
</style>
<button id="back"><a href="adminvehicle.php">HOME</a></button>
<div class="main">
<div class="register">
<h2>Enter Details Of New Car</h2>
<form id="register" action="upload.php" method="POST" enctype="multipart/form-data">
<label>Car Name : </label>
<br>
<input type ="text" name="carname"
id="name" placeholder="Enter Car Name" required>
<br><br>
<label>Fuel Type : </label>
<br>
<input type ="text" name="ftype"
id="name" placeholder="Enter Fuel Type" required>
<br><br>
<label>Capacity : </label>
<br>
<input type="number" name="capacity" min="1"
id="name" placeholder="Enter Capacity Of Car" required>
<br><br>
<label>Price : </label>
<br>
<input type="number" name="price" min="1"
id="name" placeholder="Enter Price Of Car for One Day(in rupees)" required>
<br><br>
<label>Car Image : </label>
<br>
<input type="file" name="image" required>
<br><br>
<input type="submit" class="btnn" value="ADD CAR" name="addcar">
</input>
</form>
</div>
</div.main>
</body>
</html>