diff options
| author | Lester Caine <lsces@lsces.co.uk> | 2010-12-08 22:23:10 +0000 |
|---|---|---|
| committer | Lester Caine <lsces@lsces.co.uk> | 2010-12-08 22:23:10 +0000 |
| commit | af694f09d634e2faa143c429b63085b1455e1d83 (patch) | |
| tree | 66bae76124ab03a918fdeb687029d678ef0915d8 /templates | |
| parent | d4e637fb6511e9c9dae998af4e7f16daa96dd536 (diff) | |
| download | contact-af694f09d634e2faa143c429b63085b1455e1d83.tar.gz contact-af694f09d634e2faa143c429b63085b1455e1d83.tar.bz2 contact-af694f09d634e2faa143c429b63085b1455e1d83.zip | |
Replace address lookup with access to 'address' package generic database.
This adds map location data to the address and links to OSM, multimap and googlemap
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/display_address.tpl | 20 | ||||
| -rw-r--r-- | templates/list.tpl | 22 |
2 files changed, 27 insertions, 15 deletions
diff --git a/templates/display_address.tpl b/templates/display_address.tpl index a2a7620..9235eb1 100644 --- a/templates/display_address.tpl +++ b/templates/display_address.tpl @@ -7,10 +7,16 @@ {$pageInfo.pao},<br />{/if} {if isset($pageInfo.number) && ($pageInfo.number <> '') } {$pageInfo.number},<br />{/if} - {if isset($pageInfo.street) && ($pageInfo.street <> '') } - {$pageInfo.street},<br />{/if} - {if isset($pageInfo.locality) && ($pageInfo.locality <> '') } - {$pageInfo.locality}, {/if} + {if isset($pageInfo.house) && ($pageInfo.house <> '') } + {$pageInfo.house},<br />{/if} + {if isset($pageInfo.add1) && ($pageInfo.add1 <> '') } + {$pageInfo.add1},<br />{/if} + {if isset($pageInfo.add2) && ($pageInfo.add2 <> '') } + {$pageInfo.add2}, {/if} + {if isset($pageInfo.add3) && ($pageInfo.add3 <> '') } + {$pageInfo.add3},<br />{/if} + {if isset($pageInfo.add4) && ($pageInfo.add4 <> '') } + {$pageInfo.add4}, {/if} {if isset($pageInfo.town) && ($pageInfo.town <> '') } {$pageInfo.town}, {/if} {if isset($pageInfo.county) && ($pageInfo.county <> '') } @@ -23,8 +29,12 @@ {formlabel label="Visual Centre Coordinates" for="street_start_x"} {forminput} Easting: {$pageInfo.x_coordinate|escape} Northing: {$pageInfo.y_coordinate|escape} - <<a href="http://www.multimap.com/maps/?map={$pageInfo.prop_lat},{$pageInfo.prop_lng}|17|4&loc=GB:{$pageInfo.prop_lat}:{$pageInfo.prop_lng}:17" title="{$pageInfo.title}"> + <<a href="http://www.openstreetmap.org/index.html?mlat={$pageInfo.x_coordinate}&mlon={$pageInfo.y_coordinate}&zoom=16&layers=BOFT" title="{$propertyInfo.title}"> + OpenStreetMap + </a>> <<a href="http://www.bing.com/maps/?cp={$pageInfo.x_coordinate}~{$pageInfo.y_coordinate}&lvl=16&style=r#" title="{$pageInfo.title}"> Multimap + </a>> <<a href="http://www.google.co.uk/maps?f=q&source=s_q&hl=en&ll={$pageInfo.x_coordinate},{$pageInfo.y_coordinate}&z=16" title="{$pageInfo.title}"> + Google </a>><br /> {$pageInfo.rpa|escape} {/forminput} diff --git a/templates/list.tpl b/templates/list.tpl index f6f199a..b882623 100644 --- a/templates/list.tpl +++ b/templates/list.tpl @@ -41,21 +41,23 @@ {if isset($listcontacts[content].uprn) && ($listcontacts[content].uprn <> '') }UPRN: {$listcontacts[content].uprn} {/if} {if isset($listcontacts[content].postcode) && ($listcontacts[content].postcode <> '') } {tr}Address{/tr} - - {if isset($listcontacts[content].sao) && ($listcontacts[content].sao <> '') } - {$listcontacts[content].sao}, {/if} - {if isset($listcontacts[content].pao) && ($listcontacts[content].pao <> '') } - {$listcontacts[content].pao}, {/if} - {if isset($listcontacts[content].number) && ($listcontacts[content].number <> '') } - {$listcontacts[content].number}, {/if} - {if isset($listcontacts[content].street) && ($listcontacts[content].street <> '') } - {$listcontacts[content].street}, {/if} - {if isset($listcontacts[content].locality) && ($listcontacts[content].locality <> '') } - {$listcontacts[content].locality}, {/if} + {if isset($listcontacts[content].house) && ($listcontacts[content].house <> '') } + {$listcontacts[content].house}, {/if} + {if isset($listcontacts[content].add1) && ($listcontacts[content].add1 <> '') } + {$listcontacts[content].add1}, {/if} + {if isset($listcontacts[content].add2) && ($listcontacts[content].add2 <> '') } + {$listcontacts[content].add2}, {/if} + {if isset($listcontacts[content].add3) && ($listcontacts[content].add3 <> '') } + {$listcontacts[content].add3}, {/if} + {if isset($listcontacts[content].add4) && ($listcontacts[content].add4 <> '') } + {$listcontacts[content].add4}, {/if} {if isset($listcontacts[content].town) && ($listcontacts[content].town <> '') } {$listcontacts[content].town}, {/if} {if isset($listcontacts[content].county) && ($listcontacts[content].county <> '') } {$listcontacts[content].county}, {/if} {$listcontacts[content].postcode} + {if isset($listcontacts[content].grideast) } + <{$listcontacts[content].grideast|escape} , {$listcontacts[content].gridnorth|escape}> {/if} {/if} <br /> {tr}Refs{/tr}: {$listcontacts[content].refs|default:0} |
