diff options
| author | Lester Caine <lsces@lsces.co.uk> | 2010-12-09 10:19:22 +0000 |
|---|---|---|
| committer | Lester Caine <lsces@lsces.co.uk> | 2010-12-09 10:19:22 +0000 |
| commit | 313fce6a7e60a375e3aa488ca15898f89a733d56 (patch) | |
| tree | ad021d86a8b6e0ba666bceec22d00c81116e12e4 | |
| parent | af694f09d634e2faa143c429b63085b1455e1d83 (diff) | |
| download | contact-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.php | 12 | ||||
| -rw-r--r-- | templates/display_address.tpl | 4 |
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} <<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}"> + </a>> <<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>> <<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>> <<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>><br /> {$pageInfo.rpa|escape} |
