-
Notifications
You must be signed in to change notification settings - Fork 0
/
plaque_searchdisplay.php
125 lines (105 loc) · 4.23 KB
/
plaque_searchdisplay.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="Edmonton Alberta plaques,Edmonton Historical Board Plaques,Edmonton Historical Board plaques recognition program, Edmonton Alberta landmark plaques, Edmonton Alberta building plaques, historic sites of Edmonton Alberta, Edmonton Alberta historic sites, historic buildings of Edmonton Alberta, Edmonton Alberta historic buildings, historic sites, historic buildings" />
<meta name="description" content="Search plaques awarded on Edmonton Alberta’s landmark buildings and places. " />
<title>Edmonton Historical Board</title>
<link rel="stylesheet" type="text/css" href="css/lightbox.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder" ></script>
<script type="text/javascript" src="js/lightbox.js"></script>
</head>
<body>
<div id="header">
<div align="center">
<div id="logo">
<img src="images/cooltext442749221.png" atl="HeaderImage"/>
</div>
<ul id="topmenu">
<li><a href="index.html">Home</a></li>
<li class="current"><a href="Plaques.html">Plaques</a></li>
<li><a href="awards.html">Awards</a></li>
<li ><a href="Landmarks.html">Landmark</a></li>
<li><a href="about_us.html">About Us</a></li>
<li><a href="contact_us.html">Contact Us</a></li>
</ul></div>
</div>
<div id="contents">
<?php require_once("admin/projectClasses/controller.php");
$m_plaque = new controllerClass();
if(isset($_GET['id']))
{
//display individual
$result=$m_plaque->getPlaqueById($_GET['id']);
while ($row = mysql_fetch_array($result))
{
//call display function()
displayListing($row);
}
}else{
//call dislay function() with empty parameters
//displayListing($plaque_vars);
}
function displayListing($row)
{
?>
<h1>Plaque Details</h1>
<h2>Plaque receipent: <?php echo $row['plq_recipient'];?></h2>
<p><strong>Plaque Inscription:</strong><?php echo $row['plq_inscription'];?></p>
<p><strong> Click on <a href="plaque_toursmap.php?id=<?php echo $row['pkplaque_id']; ?>">Plaque Neighbourhood Map</a> to view the map </strong></p>
<br />
<h1>Landmark Details</h1>
<?php
$m_plaque = new controllerClass();
$result=$m_plaque->getLandmarkAllfromPlaque($row['pkplaque_id']);
while($row2=mysql_fetch_array($result))
{
?>
<p><strong>Landmark Name: <?php echo $row2['land_name']; ?></strong></p>
<p class="heading"><strong>Landmark Address: </strong><?php echo $row2['street_address'];?><br />
<strong>Landmark Locations: </strong><?php echo $row2['location'];?><br />
<strong>Landmark Classification: </strong><?php echo $row2['classification'];?><br />
<strong>Landmark Designation: </strong><?php echo $row2['designation'];?><br />
<strong>Year Built: </strong> <?php echo $row['land_age'];?></p>
<p><strong>Landmark Description: </strong><?php echo $row2['land_description'];?><br /></p>
<!-- <p><Strong>Click on <a href="landmark_toursmap.php?id=<?php //echo $row2['pklandmark_id'];?>">Landmarks Neighbourhood Walking map</a> to view the map</Strong></p>
-->
<?php
}
?>
<br />
<h1>Plaque Images:</strong></h1>
<?php
$m_images = new controllerClass();
$results=$m_images->getImagesByPlaqueId($row['pkplaque_id']);
if($results){?>
<tr>
<?php
while($row = mysql_fetch_array($results))
{
if($i%3==0 && $i!=0)
{
echo " </tr>\n";
echo " <tr valign=\"top\">\n";
}
?>
<td><a href="<?php echo "images/gallery/".$row['image_name']?>" rel="lightbox" title="<?php echo stripslashes($row['image_title']); ?>">
<img src="<?php echo "images/gallery/small/".trim($row['image_name']); ?>" alt="<?php echo stripslashes($row['image_title']); ?>"></a></td>
<?php } ?>
</tr>
<?php
}
}
?>
</div>
<ul id="menu">
<li><a href="plaque_search.php">Search plaques </a></li>
</ul>
<div id="footer">
Copyright © 2009 Edmonton Historical Board.
All Rights Reserved.
</a></div>
</body>
</html>