forked from yasharthratan/DBMS-project-E-Courier-Services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcourier-list.php
218 lines (195 loc) · 6.79 KB
/
courier-list.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
<?php
session_start();
require_once('database.php');
require_once('library.php');
isUser();
$sql = "SELECT cid, cons_no, ship_name, rev_name, pick_date, pick_time, status
FROM tbl_courier
WHERE status != 'Delivered'
ORDER BY cid DESC
LIMIT 0, 20";
$result = dbQuery($sql);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Admin</title>
<link href="css/mystyle.css" rel="stylesheet" type="text/css">
<link href="css/style.css" rel="stylesheet" type="text/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">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<link href="new.css" rel="stylesheet">
<style type="text/css">
</style>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-md sticky-top">
<div class="container-fluid">
<a class="navbar-brand" href="http://localhost/index.php#"><img src="images/logo.png"></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 active">
<a class="nav-link" href="http://localhost/index.php#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="login.php">Admin Login</a>
</li>
</ul>
</div>
</div>
</nav>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="900">
<tbody>
<tr>
<td width="900">
<?php include("header.php"); ?>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF">
<script language="JavaScript">
var checkflag = "false";
function check(field) {
if (checkflag == "false") {
for (i = 0; i < field.length; i++) {
if (field[i].type == "checkbox" && field[i].name != "chkAll") {
field[i].checked = true;
}
}
checkflag = "true";
} else {
for (i = 0; i < field.length; i++) {
if (field[i].type == "checkbox" && field[i].name != "chkAll") {
field[i].checked = false;
}
}
checkflag = "false";
}
}
function confirmDel(field, msg) {
count = 0;
for (i = 0; i < field.length; i++) {
if (field[i].type == "checkbox" && field[i].name != "chkAll" && field[i].checked == true) {
count++;
}
}
if (count == 0) {
alert("Select any one record to delete!");
return false;
} else {
return confirm(msg);
}
}
</script>
<table border="0" align="center" width="80%">
<tbody>
<tr>
<td class="LargeBlue" bgcolor="#FFFFFF" align="left"> </td>
</tr>
<tr>
<td class="LargeBlue" bgcolor="#FFFFFF" align="left">
<div class="Partext1" align="center" style="margin-bottom:10px;"><strong class="h5">Update Shipment </strong></div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="1" cellspacing="1" align="center" width="95%">
<tbody>
<tr>
<td>
</td>
</tr>
</tbody>
</table>
<table class="blackbox" border="0" cellpadding="1" cellspacing="1" align="center" width="95%">
<tbody>
<tr class="BoldRED" bgcolor="#FFFFFF" style="height:20px;">
<td class="newtext" bgcolor="#EDEDED" width="6%">
<div align="center">Edit</div>
</td>
<td class="newtext" bgcolor="#EDEDED" width="10%">Consignment No </td>
<td class="newtext" bgcolor="#EDEDED" width="7%">Shipper</td>
<td class="newtext" bgcolor="#EDEDED" width="11%">Receiver</td>
<td class="newtext" bgcolor="#EDEDED" width="11%">Pickup Date/Time</td>
<td class="newtext" bgcolor="#EDEDED" width="9%">Status</td>
</tr>
<?php
while ($data = dbFetchAssoc($result)) {
extract($data);
?>
<tr onMouseOver="this.bgColor='gold';" onMouseOut="this.bgColor='#FFFFFF';" bgcolor="#FFFFFF">
<td class="gentxt" align="center">
<a href="edit-courier.php?cid=<?php echo $cid; ?>">
<img src="images/edit_icon.gif" border="0" height="20" width="20"></a>
</td>
<td class="gentxt"><?php echo $cons_no; ?></td>
<td class="gentxt"><?php echo $ship_name; ?></td>
<td class="gentxt"><?php echo $rev_name; ?></td>
<td class="gentxt"><?php echo $pick_date; ?> - <?php echo $pick_time; ?></td>
<td class="gentxt"><?php echo $status; ?></td>
</tr>
<?php
} //while
?>
</tbody>
</table>
<br>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="900">
<tbody>
<tr>
<td bgcolor="" height="40" width="476"> </td>
<td bgcolor="" width="304">
<div align="right"></div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<!--- Connect -->
<footer id="connect">
<div class="container-fluid padding">
<div class="row text-center">
<div class="col-md-4">
<a class="navbar-brand" href="#"><img src="images/logo.png"></a>
<hr class="light">
<p>999-999-9999</p>
<p>email@gmail.com</p>
<p>Dtreet name</p>
<p>City, State, 00000</p>
</div>
<div class="col-md-4">
<hr class="light">
<h5>Our hours</h5>
<hr class="light">
<p>Monday: 9am to 5pm</p>
<p>Saturday: 10am to 6pm</p>
<p>Sunday closed</p>
</div>
<div class="col-md-4">
<hr class="light">
<h5>Service Area</h5>
<hr class="light">
<p>City, State, 00000</p>
<p>City, State, 00000</p>
<p>City, State, 00000</p>
<p>City, State, 00000</p>
</div>
</div>
</div>
</footer>
</body>
</html>