-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoffices-list.php
More file actions
137 lines (129 loc) · 4.01 KB
/
Copy pathoffices-list.php
File metadata and controls
137 lines (129 loc) · 4.01 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
<?php
error_reporting(1);
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><font face="euphemia">OFFICE DETAILLS </font></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%"><font face="euphemia">Office Name</font> </td>
<td class="newtext" bgcolor="#EDEDED" width="20%"><font face="euphemia">Address</font></td>
<td class="newtext" bgcolor="#EDEDED" width="10%"><font face="euphemia">City</font></td>
<td class="newtext" bgcolor="#EDEDED" width="15%"><font face="euphemia">Phone Number</font></td>
<td class="newtext" bgcolor="#EDEDED" width="20%"><font face="euphemia">Office Timing</font></td>
<td class="newtext" bgcolor="#EDEDED" width="15%"><font face="euphemia">Contact Person</font></td>
</tr>
<?php
while($data = dbFetchAssoc($result)){
extract($data);
?>
<tr onMouseOver="this.bgColor='gray';" onMouseOut="this.bgColor='#FFFFFF';" bgcolor="#FFFFFF" style="height:20px;">
<td class="gentxt"><font face="euphemia"><?php echo $off_name; ?></font></td>
<td class="gentxt"><font face="euphemia"><?php echo $address; ?></font></td>
<td class="gentxt"><font face="euphemia"><?php echo $city; ?></font></td>
<td class="gentxt"><font face="euphemia"><?php echo $ph_no; ?></font></td>
<td class="gentxt"><font face="euphemia"><?php echo $office_time; ?></font></td>
<td class="gentxt"><font face="euphemia"><?php echo $contact_person; ?></font></td>
</tr>
<?php
} //while
?>
</tbody></table>
<br>
</td>
</tr>
<tr>
<td colspan="2" class="aalpha" bgcolor="009148" height="25"><div align="center"><font face="euphemia"><font color="ffffff"></font></FONT></tr>
<td><table border="0" cellpadding="0" cellspacing="0" align="center" width="900">
<tbody><tr>
<td width="900"><img src="home_files/footer.jpg" ></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</body></html>