forked from rajanpatel1011/Courier-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoffices-list.php
More file actions
143 lines (128 loc) · 3.44 KB
/
Copy pathoffices-list.php
File metadata and controls
143 lines (128 loc) · 3.44 KB
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
<?php
session_start();
require_once('database.php');
require_once('library.php');
isUser();
$sql = "SELECT *
FROM tbl_offices";
$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>View All Office Details </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="20%">Office Name </td>
<td class="newtext" bgcolor="#EDEDED" width="20%">Address</td>
<td class="newtext" bgcolor="#EDEDED" width="10%">City</td>
<td class="newtext" bgcolor="#EDEDED" width="15%">Phone Numner</td>
<td class="newtext" bgcolor="#EDEDED" width="20%">Office Timing</td>
<td class="newtext" bgcolor="#EDEDED" width="15%">Contact Person</td>
</tr>
<?php
while($data = dbFetchAssoc($result)){
extract($data);
?>
<tr onMouseOver="this.bgColor='gold';" onMouseOut="this.bgColor='#FFFFFF';" bgcolor="#FFFFFF" style="height:20px;">
<td class="gentxt"><?php echo $off_name; ?></td>
<td class="gentxt"><?php echo $address; ?></td>
<td class="gentxt"><?php echo $city; ?></td>
<td class="gentxt"><?php echo $ph_no; ?></td>
<td class="gentxt"><?php echo $office_time; ?></td>
<td class="gentxt"><?php echo $contact_person; ?></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>