forked from prasangafdo/RapidDeliveryweb1.5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcourierParcels.php
117 lines (95 loc) · 3.41 KB
/
courierParcels.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
<html>
<link href="css/style2.css" rel="stylesheet">
<link href="css/style3.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/scrolling-nav.css" rel="stylesheet">
<link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Open+Sans:600'>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
<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="courierHome.php">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>
</ul>
<ul>
<div class="userName">
<?php
include('courierSession.php');
echo "<h3> $login_session </h3>";
?>
</div>
</div>
</div>
</div>
</nav>
<?php
require 'connect.php';
$pickup_addr = $_POST['pickupaddress'];
$state_address = $_POST['stateaddress'];
$sql = "SELECT id, pickup_address, delivery_address, package_type, contact_no, state_address FROM
parcel where pickup_address like '$pickup_addr' AND state_address like '$state_address'";
if (mysqli_query($con, $sql)) {
$results = mysqli_query($con, $sql) or die(mysql_error());
$x=1;
while ($row = mysqli_fetch_array($results, MYSQLI_ASSOC)) {
if ($x <= 1)
{
extract($row);
echo "<table id=\"keywords\" cellspacing=\"0\" cellpadding=\"0\">";
echo "<thead>
<br/><br/>
<br/>
<br/>
<br/><br/>
<br/>
<tr>
<th><span>ID</span></th>
<th><span>pickup_address</span></th>
<th><span>delivery_address</span></th>
<th><span>package_type</span></th>
<th><span>contact_no</span></th>
<th><span>state_address</span></th>
</tr>
</thead>
<tbody>
<tr>
<td class=\"lalign\">".$id ."</td>
<td>".$pickup_address."</td>
<td>".$delivery_address."</td>
<td>".$package_type."</td>
<td>".$contact_no."</td>
<td>".$state_address."</td>
</tr>
</tr>
</tbody>
</table>";
}
}
}
?>
<div class="login">
<h1>Select Parcel</h1>
<form class="form" method="post" action="courierParcelsSingle.php">
<p class="field">
<input type="text" name="parcel_ID" placeholder="Parcel ID" required/>
<i class="fa fa-user"></i>
</p>
<p class="submit"><input type="submit" name="sent" value="Select this parcel"></p>
</form>
</div> <!--/ Login-->
</body>
</html>