-
Notifications
You must be signed in to change notification settings - Fork 16
/
courier-list.php
153 lines (137 loc) · 4.15 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
<?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, destination
FROM tbl_courier
WHERE status != 'Delivered'
AND availability = 'active'
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">
<style type="text/css">
<!--
.style2 {color: #FFFFFF}
-->
</style>
</head>
<body>
<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"><strong>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">
<td class="newtext" bgcolor="#EDEDED" width="6%" style="height: 20px"><div align="center">Edit</div></td>
<td class="newtext" bgcolor="#EDEDED" width="10%" style="height: 20px">Consignment No </td>
<td class="newtext" bgcolor="#EDEDED" width="7%" style="height: 20px">Shipper</td>
<td class="newtext" bgcolor="#EDEDED" width="11%" style="height: 20px">Receiver</td>
<td class="newtext" bgcolor="#EDEDED" width="11%" style="height: 20px">Pickup Date/Time</td>
<td class="newtext" bgcolor="#EDEDED" width="9%" style="height: 20px">Status</td>
<td class="newtext" bgcolor="#EDEDED" width="9%" style="height: 20px">Destination</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>
<td class="gentxt"><?php echo $destination; ?></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="#2284d5" height="40" width="476"> </td>
<td bgcolor="#2284d5" width="304"><div align="right"></div></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</body></html>