From b44884a99e19e96bb947fab8996c40943ae03d7e Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Wed, 20 May 2015 00:07:04 -0400 Subject: [PATCH] #204 Use leaflet to get a basic map displayed. Still needs to be improved though. Also may not use the CDN. --- admin/admin_ticket.php | 41 ++++++++++++++++++++++++++++++----------- inc/header.inc.php | 2 ++ inc/headerAdmin.inc.php | 2 ++ 3 files changed, 34 insertions(+), 11 deletions(-) diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php index 2c306a7c..365901a0 100644 --- a/admin/admin_ticket.php +++ b/admin/admin_ticket.php @@ -861,19 +861,38 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); { echo ' '; } - $locationText = ''; - if (strpos($ticket['Location'], 'N/A') === false) - { - $locationText = $hesklang['click_for_map']; - } - else - { - $locationText = $hesklang['location_unavailable']; - } if ($modsForHesk_settings['request_location']) { - echo ' '; - // TODO ADD LOCATION CROSSHAIR + $locationText = ''; + if (strpos($ticket['latitude'], 'E') === false) + { + $locationText = $hesklang['click_for_map']; + } + else + { + $locationText = $hesklang['location_unavailable']; + } + ?> + + + + +
+ + diff --git a/inc/header.inc.php b/inc/header.inc.php index 19fc20ef..656049b5 100644 --- a/inc/header.inc.php +++ b/inc/header.inc.php @@ -60,6 +60,7 @@ require(HESK_PATH . 'modsForHesk_settings.inc.php'); + @@ -68,6 +69,7 @@ require(HESK_PATH . 'modsForHesk_settings.inc.php'); + css/bootstrap-iconpicker.min.css" rel="stylesheet"> + @@ -68,6 +69,7 @@ require(HESK_PATH . 'modsForHesk_settings.inc.php'); +