summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lsces@lsces.co.uk>2010-12-09 10:19:22 +0000
committerLester Caine <lsces@lsces.co.uk>2010-12-09 10:19:22 +0000
commit313fce6a7e60a375e3aa488ca15898f89a733d56 (patch)
treead021d86a8b6e0ba666bceec22d00c81116e12e4
parentaf694f09d634e2faa143c429b63085b1455e1d83 (diff)
downloadcontact-313fce6a7e60a375e3aa488ca15898f89a733d56.tar.gz
contact-313fce6a7e60a375e3aa488ca15898f89a733d56.tar.bz2
contact-313fce6a7e60a375e3aa488ca15898f89a733d56.zip
Add push pin for postcode on Multimap and Googlemaps so that directions to works
-rw-r--r--lookup_contact_inc.php12
-rw-r--r--templates/display_address.tpl4
2 files changed, 8 insertions, 8 deletions
diff --git a/lookup_contact_inc.php b/lookup_contact_inc.php
index 0274d29..26eb172 100644
--- a/lookup_contact_inc.php
+++ b/lookup_contact_inc.php
@@ -12,7 +12,6 @@ require_once( CONTACT_PKG_PATH.'Contact.php');
require_once( TASKS_PKG_PATH.'Tasks.php');
require_once( LIBERTY_PKG_PATH.'lookup_content_inc.php' );
-if ( isset($_REQUEST['content_id']) ) {
// if we already have a gContent, we assume someone else created it for us, and has properly loaded everything up.
if( empty( $gContent ) || !is_object( $gContent ) ) {
if( @BitBase::verifyId( $_REQUEST['content_id'] ) ) {
@@ -25,10 +24,11 @@ if ( isset($_REQUEST['content_id']) ) {
$gBitSmarty->clear_assign( 'gContent' );
$gBitSmarty->assign( 'gContent', $gContent );
}
- if( is_object( $gContent ) ) {
- $gTask = new Tasks( NULL, $_REQUEST['content_id'] );
- $gTask->mInfo['tasks'] = $gTask->getList( $_REQUEST );
- $gBitSmarty->assign_by_ref( 'taskInfo', $gTask->mInfo );
- }
+/*
+if( is_object( $gContent ) ) {
+ $gTask = new Tasks( NULL, $_REQUEST['content_id'] );
+ $gTask->mInfo['tasks'] = $gTask->getList( $_REQUEST );
+ $gBitSmarty->assign_by_ref( 'taskInfo', $gTask->mInfo );
}
+*/
?>
diff --git a/templates/display_address.tpl b/templates/display_address.tpl
index 9235eb1..e8e5c64 100644
--- a/templates/display_address.tpl
+++ b/templates/display_address.tpl
@@ -31,9 +31,9 @@
Easting: {$pageInfo.x_coordinate|escape} Northing: {$pageInfo.y_coordinate|escape}
&nbsp;&lt;<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>&gt;&nbsp;&lt;<a href="http://www.bing.com/maps/?cp={$pageInfo.x_coordinate}~{$pageInfo.y_coordinate}&lvl=16&style=r#" title="{$pageInfo.title}">
+ </a>&gt;&nbsp;&lt;<a href="http://www.bing.com/maps/?cp={$pageInfo.x_coordinate}~{$pageInfo.y_coordinate}&lvl=16&style=r&q={$pageInfo.postcode}#" title="{$pageInfo.title}">
Multimap
- </a>&gt;&nbsp;&lt;<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}">
+ </a>&gt;&nbsp;&lt;<a href="http://www.google.co.uk/maps?f=q&source=s_q&hl=en&q={$pageInfo.postcode}&ll={$pageInfo.x_coordinate},{$pageInfo.y_coordinate}&z=16" title="{$pageInfo.title}">
Google
</a>&gt;<br />
{$pageInfo.rpa|escape}