forked from waveney/chippenham
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInfoFood.php
More file actions
53 lines (47 loc) · 2.06 KB
/
InfoFood.php
File metadata and controls
53 lines (47 loc) · 2.06 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
<?php
include_once("int/fest.php");
include_once("int/MapLib.php");
include_once("int/ProgLib.php");
dohead("Food and Drink",[],1);
global $PLANYEAR;
/*
?>
<div class=TwoCols><script>Register_Onload(Set_ColBlobs,'Blob',5)</script>
<div class=OneCol id=TwoCols1>
<div id=Blob1><div id=BlobMap> */
echo "<div id=MapWrap><div id=DirPaneWrap>";
echo "<div id=DirPane><div id=DirPaneTop></div><div id=Directions></div></div>";
echo "</div><div id=map style='min-height:400px; max-height:400px;'></div></div>";
$Center = Feature('FoodCenter',0);
if ($Center) {
Init_Map(0,$Center,18,11); // Center on the Angel
} else {
Init_Map(-1,0,18,11); // Center on the Default Loc
}
// </div></div><div id=Blob4>
echo "<h2>Looking for the best Food and Drink in town?</h2>";
echo "These establishments have supported the festival.<p>";
$Food = Gen_Get_Cond('FoodAndDrink', "Year=$PLANYEAR ORDER By Importance DESC, SN");
if ($Food) {
echo "<div class=Scrolltable><table class=InfoTable><tr class=FoodHead><td>Name<td>Address<td>Post Code<td>" .
"Phone<td>What's on offer over the festival<td>Directions";
foreach ($Food as $f) {
echo "<tr><td>" . $f['SN'] . "<td>" . $f['Address'] . "<td>" . $f['PostCode'] . "<td>" . $f['Phone'] .
"<td>" . $f['Description'] . "<td><button onclick=ShowDirect(" . (2000000 + $f['id']) . ")>Directions</button>\n";
}
echo "</table></div>";
} else {
$Food = Gen_Get_Cond('FoodAndDrink', "Year=" . ($PLANYEAR-1) . " ORDER By Importance DESC, SN");
if ($Food) {
echo "These are last year's supporters<Br>";
echo "<div class=Scrolltable><table class=InfoTable><tr class=FoodHead><td>Name<td>Address<td>Post Code<td>" .
"Phone<td>What's on offer over the festival<td>Directions";
foreach ($Food as $f) {
echo "<tr><td>" . $f['SN'] . "<td>" . $f['Address'] . "<td>" . $f['PostCode'] . "<td>" . $f['Phone'] .
"<td>" . $f['Description'] . "<td><button onclick=ShowDirect(" . (2000000 + $f['id']) . ")>Directions</button>\n";
}
echo "</table></div>";
}
}
echo TnC('Food_And_Drink_Tail');
dotail();