-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathafter1.php
258 lines (242 loc) · 12.7 KB
/
after1.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Planner Dashboard</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800'><link rel="stylesheet" href="./style1.css">
</head>
<body>
<!-- partial:index.partial.html -->
<!-- Dashboard (Parent Block)-->
<div class="dashboard">
<!-- Dashboard Sidebar (Block)-->
<div class="dashboard-sidebar">
<!-- Brand (Element)-->
<div class="dashboard-sidebar__brand"><img class="logo" src="./img copy/Capture.png"/></div>
<!-- Dashboard Nav (Block)-->
<div class="dashboard-nav">
<ul>
<!-- Item (Element)-->
<li class="dashboard-nav__item"><a href="home"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/169963/planner_dashboard_home.svg"/>Profile</a></li>
<!-- Item:Selected (Element:Modifier) -->
<li class="dashboard-nav__item dashboard-nav__item--selected"><a href="my_trip"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/169963/planner_dashboard_my_trip.svg"/>Make Request</a></li>
<!-- Item (Element)-->
<li class="dashboard-nav__item"><a href="discover_places"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/169963/planner_dashboard_discover_places.svg"/>Pending requests</a></li>
<!-- Item (Element)-->
<li class="dashboard-nav__item"><a href="notifications"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/169963/planner_dashboard_notifications.svg"/>Active Requests</a></li>
<!-- Item (Element)-->
<li class="dashboard-nav__item"><a href="settings"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/169963/planner_dashboard_settings.svg"/>Delivered Requests</a></li>
<!-- Item (Element)-->
<li class="dashboard-nav__item"><a href="discover_places"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/169963/planner_dashboard_discover_places.svg"/>Points</a></li>
</ul>
</div>
</div>
<!-- Dashboard Content (Block)-->
<div class="dashboard-content">
<!-- Dashboard Header (Block)-->
<div class="dashboard-header">
<div class="dashboard-header__new" ><button type="button" class="btn btn-outline-success mb-1 "><a href="index.html">Logout</button></div>
</div>
<!-- Dashboard Content Panel (Element)-->
<div class="dashboard-content__panel dashboard-content__panel--active" data-panel-id="home">
<div class="col-md-8">
<div class="tab-content profile-tab" id="boot">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
<div class="row">
<div class="col-md-6">
<label>User Id</label>
</div>
<div class="col-md-6">
<p><?php echo $_POST["username"];
?></p>
</div>
</div>
<div class="row">
<div class="col-md-6">
<label>Name</label>
</div>
<div class="col-md-6">
<p><?php echo $_POST["firstname"]. " " . $_POST["lastname"];
?></p>
</div>
</div>
<div class="row">
<div class="col-md-6">
<label>Email</label>
</div>
<div class="col-md-6">
<p><?php echo $_POST["email"]; ?></p>
</div>
</div>
<div class="row">
<div class="col-md-6">
<label>Phone</label>
</div>
<div class="col-md-6">
<p><?php echo $_POST["pno"]; ?></p>
</div>
</div>
<div class="row">
<div class="col-md-6">
<label>Address</label>
</div>
<div class="col-md-6">
<p><?php echo $_POST["addres"]; ?></p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Dashboard Content Panel (Element)-->
<div class="dashboard-content__panel " data-panel-id="my_trip">
<!-- Dashboard List (Block) -->
<div class="card mb-4">
<div class="card-body">
<h6 class="mb-4">Make request</h6>
<br></br>
<form action="eleven.php" method="post">
<div class="form-row">
<div class="form-group col-md-6">
<input type="hidden" class="form-control" id="inputusername4" value="<?php echo $_POST["username"];
?>" name="username">
</div>
<div class="form-group col-md-6">
<input type="hidden" class="form-control" id="inputusername4" value="<?php echo $_POST["firstname"];
?>" name="firstname">
</div>
<div class="form-group col-md-6">
<input type="hidden" class="form-control" id="inputusername4" value="<?php echo $_POST["lastname"];
?>" name="lastname">
</div>
<div class="form-group col-md-6">
<input type="hidden" class="form-control" id="inputusername4" value="<?php echo $_POST["email"];
?>" name="email">
</div>
<div class="form-group col-md-6">
<input type="hidden" class="form-control" id="inputusername4" value="<?php echo $_POST["pno"];
?>" name="pno">
</div>
<div class="form-group col-md-6">
<input type="hidden" class="form-control" id="inputusername4" value="<?php echo $_POST["addres"];
?>" name="addres">
</div>
<div class="form-group col-md-6">
<label for="inputEmail4">Type</label>
<div class="input-group">
<select class="custom-select" id="inputGroupSelect04" name="typ">
<option selected>Choose the type</option>
<option value="Large household appliances (refrigerators/freezers, washing machines, dishwashers)">Large household appliances (refrigerators/freezers, washing machines, dishwashers)</option>
<option value="Small household appliances (toasters, coffee makers, irons, hairdryers)">Small household appliances (toasters, coffee makers, irons, hairdryers)</option>
<option value="Information technology (IT) and telecommunications equipment (personal computers, telephones, mobile phones, laptops, printers)">Information technology (IT) and telecommunications equipment (personal computers, telephones, mobile phones, laptops, printers)</option>
<option value="Consumer equipment (televisions, stereo equipment, electric toothbrushes)">Consumer equipment (televisions, stereo equipment, electric toothbrushes)</option>
<option value=">Lighting equipment (fluorescent lamps)">Lighting equipment (fluorescent lamps)</option>
<option value="Electrical and electronic tools (handheld drills, saws, screwdrivers)">Electrical and electronic tools (handheld drills, saws, screwdrivers)</option>
<option value="Toys, leisure and sports equipment">Toys, leisure and sports equipment</option>
<option value="Medical equipment systems (with the exception of all implanted and infected products)">Medical equipment systems (with the exception of all implanted and infected products)</option>
<option value="Monitoring and control instruments">Monitoring and control instruments</option>
<option value="Automatic dispensers">Automatic dispensers</option>
</select>
</div>
<!-- <input type="email" class="form-control" id="inputEmail4" placeholder="Email"> -->
</div>
</div>
<br></br>
<div class="form-group">
<label for="inputAddress">Quantity</label>
<input type="text" class="form-control" id="inputAddress" placeholder="in kgs" name=quantity>
</div>
<br></br>
<div class="form-group">
<label for="inputAddress2">Residential address</label>
<input type="text" class="form-control" id="inputAddress2" placeholder="Apartment, studio, or floor" name="resadd">
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputCity">City</label>
<input type="text" class="form-control" id="inputCity" name="city">
</div>
<div class="form-group col-md-2">
<label for="inputZip">Zip</label>
<input type="text" class="form-control" id="inputZip" name="zip">
</div>
</div>
<button type="submit" class="btn btn-primary d-block mt-3">Submit</button>
<br></br>
<br></br>
</form>
</div>
</div>
</div>
<!-- Dashboard Content Panel (Element)-->
<div class="dashboard-content__panel" data-panel-id="discover_places">
<?php
$sername="localhost";
$username="root";
$password="";
$dbname="ewc";
$conn=mysqli_connect($sername,$username,$password,$dbname);
if(!$conn)
{
die("Connection Failed:".mysqli_connect_error());
}
$sql="SELECT username,typ,quantity,resadd,city,zip from requests";
$result=mysqli_query($conn,$sql);
if(mysqli_num_rows($result)>0)
{
while($row1=mysqli_fetch_assoc($result))
{
if(strcmp($row1["username"],$_POST["username"])==0)
{?>
<div class="col-md-8">
<div class="tab-content profile-tab" id="boot">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
<div class="row">
<div class="col-md-6">
<label>Type</label>
</div>
<div class="col-md-6">
<p><?php echo $row1["typ"];
?></p>
</div>
</div>
<div class="row">
<div class="col-md-6">
<label>Quantiity</label>
</div>
<div class="col-md-6">
<p><?php echo $row1["quantity"];
?></p>
</div>
</div>
</div>
</div>
</div>
<?php
}
}
}
else
{
echo "no data";
}
mysqli_close($conn);
?>
</div>
<!-- Dashboard Content Panel (Element)-->
<div class="dashboard-content__panel" data-panel-id="notifications">
<p>Notifications</p>
</div>
<!-- Dashboard Content Panel (Element)-->
<div class="dashboard-content__panel" data-panel-id="settings">
<p>Settings</p>
</div>
</div>
<!-- Dashboard Preview (Block) -->
</div>
<!-- partial -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script><script src="./script.js"></script>
</body>
</html>