-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompanyaddcar.php
155 lines (129 loc) · 4.08 KB
/
companyaddcar.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>MRKTPLC</title>
<link rel="stylesheet" href="slick.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="fixed.css">
<link rel="stylesheet" href="bootstrap.min.css">
</head>
<body data-spy="scroll" data-target="#navbarResponsive">
<style>
body {
background-color: black;
color: white;
font-family: Arial, sans-serif;
}
input[type="text"], input[type="number"], input[type="file"] {
background-color: transparent;
border: none;
border-bottom: 1px solid white;
color: white;
font-size: 18px;
margin-bottom: 20px;
padding: 10px;
width: 100%;
}
label {
display: block;
font-size: 20px;
margin-bottom: 10px;
}
.btnn {
background-color: crimson;
border: none;
color: white;
cursor: pointer;
font-size: 18px;
margin-top: 20px;
padding: 10px 20px;
}
.btnn:hover {
background-color: #ff6666;
}
.register {
background-color: rgba(255, 255, 255, 0.1);
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
margin: 30px auto;
padding: 60px;
width: 80%;
}
h2 {
font-size: 30px;
text-align: center;
text-transform: uppercase;
}
</style>
<?php
require_once('connection.php');
session_start();
$value = $_SESSION['email'];
$_SESSION['email'] = $value;
$sql="select * from company where EMAIL='$value'";
$name = mysqli_query($con,$sql);
$rows=mysqli_fetch_assoc($name);
?>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="companydash.php">
<h2>COMPANY DASHBOARD</h2>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="companydash.php">CAR MANAGEMENT</a>
</li>
<li class="nav-item">
<a class="nav-link" href="companybooking.php">BOOKING REQUESTS</a>
</li>
<li class="nav-item">
<a class="nav-link" href="index.php">LOG OUT</a>
</li>
</ul>
</div>
</nav>
<div class="main">
<div class="register">
<h2>Enter Details Of New Car</h2>
<form id="register" action="companyupload.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 Ksh)" required>
<br><br>
<label>Company Name: </label>
<br>
<input type="text" name="cname"
id="name" placeholder="Enter Name of the Company Renting" 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>
</body>
</html>