forked from prasangafdo/RapidDeliveryweb1.5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCourierhome.php
240 lines (192 loc) · 7.74 KB
/
Courierhome.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
<!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">
<meta name="description" content="">
<meta name="author" content="">
<title>Rapid Delivery</title>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
height: 100%;
}
/* Optional: Makes the sample page fill the window. */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/scrolling-nav.css" rel="stylesheet">
<link href="css/style2.css" rel="stylesheet">
</head>
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand page-scroll" href="#page-top">Rapid Delivery</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li class="hidden">
<a class="page-scroll" href="#page-top"></a>
</li>
<li>
<a class="page-scroll" href="#Find-couriers">Find couriers</a>
</li>
<li>
<a class="page-scroll" href="#Switch-Vehicle">Switch Vehicle</a>
</li>
<li>
<a class="page-scroll" href="#View-completed-jobs">View completed jobs</a>
</li>
</ul>
<ul>
<div class="userName">
<?php
include('courierSession.php');
echo "<h3> $login_session </h3>";
?>
<form action="logout.php" method="post">
<div class="logout">
<input name="btn_logout" type="submit" value="Logout">
</form>
</div>
</ul>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<!-- Intro Section -->
<section id="courier_intro-section" class="courier_intro-section">
<div class="container">
<div class="row">
<div class="welcomePane">
<h1>Welcome to Rapid Delivery</h1>
<!-- <div class="welcomePane-img">
</div>-->
<img class="img-responsive" src="images/courier-services-2.jpg">
<h1>About Rapid Deliery </h1>
<p align="justify">
Rapid Delivery is a 24/7 courier service, located in Colombo, Sri Lanka. Our company was founded in mid-2017 by a final year software engineering student of the University of the west of England with the aim of providing a better courier service that is focused on delivery transparency with the support of GPS.
Packages are collected from any Sri Lankan address and taken to any final destination requested by the client. Although “Rapid Delivery” originally only delivers parcels to Sri Lankan addresses, they now deliver parcels to any global location requested by incorporated clients.
Rapid Delivery us, utilize Intelligent Dispatch, which is an artificial intelligence and fleet management system to allocate a booking to the most appropriate vehicle for transport mode (including bicycles, motorbikes and vans of varying sizes).
</p>
</div>
</div>
</section>
<section id="Find-couriers" class="about-section">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1>Find couriers</h1>
<p align="justify">
<form method="post" action="courierparcels.php" >
<input type="text" name="pickupaddress" id="pickupaddress" placeholder="Pickup location">
<input type="text" name="stateaddress" id="stateaddress" placeholder="Delivery location">
<input type="submit" Value="Search" id="" class="submitBtn">
</form>
</p>
</div>
</div>
</div>
</section>
<section id="Switch-Vehicle" class="exchange-section">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1>Switch Vehicle</h1>
<p align="justify">
<form method="post" action="shiftVehicle.php" >
<input type="text" name="vehicleID" id="vehicleID" placeholder="Vehicle ID">
<input type="submit" Value="Shift Package" id="" class="submitBtn"><!--Need to remove onclocks-->
</form>
</p>
</div>
</div>
</div>
</section>
<section id="View-completed-jobs" class="completedJobs-section">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1>View Your jobs</h1>
<?php
require 'connect.php';
//include('courierSession.php');
$sql = "SELECT id FROM courier WHERE username = '$login_session'";
if (mysqli_query($con, $sql)) {
if (mysqli_query($con, $sql)) {
$results = mysqli_query($con, $sql) or die(mysql_error());
$x=1;
while ($row = mysqli_fetch_array($results, MYSQLI_ASSOC)) {
extract($row);
$id;
$sql = "SELECT * FROM
parcel_status where courier_id = '$id'";
//0 is for no parcels
if (mysqli_query($con, $sql)) {
$results = mysqli_query($con, $sql) or die(mysql_error());
while ($row = mysqli_fetch_array($results, MYSQLI_ASSOC)) {
{
extract($row);
echo "<table id=\"keywords\" cellspacing=\"0\" cellpadding=\"0\">
<thead>
<br/><br/>
<tr>
<th><span>ID</span></th>
<th><span>Courier ID</span></th>
<th><span>Customer ID</span></th>
<th><span>Status</span></th>
<th><span>Vehicle ID</span></th>
<th><span>Parcel ID</span></th>
</tr>
</thead>
<tbody>
<tr>
<td class=\"lalign\">".$id."</td>
<td>".$courier_id."</td>
<td>".$customer_id."</td>
<td>".$status."</td>
<td>".$Vehicle_ID."</td>
<td>".$parcel_ID."</td>
</tr>
</tr>
</tbody>
</table>";
}
}
}
}
}
}
?>
</div>
</div>
</div>
</section>
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<!-- Scrolling Nav JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/scrolling-nav.js"></script>
</body>
</html>