diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php index 382f1e19..b7fcfcb2 100644 --- a/admin/admin_ticket.php +++ b/admin/admin_ticket.php @@ -916,7 +916,24 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); ?>
- + + +
@@ -1298,7 +1315,6 @@ function hesk_getAdminButtons($category_id) } $dropdown = ' -
@@ -1315,8 +1331,6 @@ function hesk_getAdminButtons($category_id) '; // Location and UA - $has_location_or_user_agent = false; - if ($modsForHesk_settings['display_user_agent_information'] && $ticket['user_agent'] !== NULL && $ticket['screen_resolution_height'] !== NULL @@ -1324,22 +1338,14 @@ function hesk_getAdminButtons($category_id) && $ticket['screen_resolution_width'] !== NULL && $ticket['screen_resolution_width'] != 0 ) { - $has_location_or_user_agent = true; $dropdown .= '
-

'.$hesklang['device_information'].'

-
-
-
-
- '.buildUserAgentBody($ticket['user_agent'], $ticket['screen_resolution_width'], $ticket['screen_resolution_height']).' -
-
+

'.$hesklang['device_information'].'

+ '.buildUserAgentBody($ticket['user_agent'], $ticket['screen_resolution_width'], $ticket['screen_resolution_height']).'
'; } else if ($modsForHesk_settings['display_user_agent_information']) { - $has_location_or_user_agent = true; $dropdown .= '
@@ -1358,7 +1364,6 @@ function hesk_getAdminButtons($category_id)

' . $locationText . '

-
-
'; +
'; if ($hasLocation): - $dropdown .= '

+ $dropdown .= '

@@ -1391,47 +1395,38 @@ function hesk_getAdminButtons($category_id) value="'. $ticket['longitude'] . '">
-
'; else: + $dropdown .= '
'; $errorCode = explode('-', $ticket['latitude']); $key = 'location_unavailable_' . $errorCode[1]; $dropdown .= '
' . $hesklang[$key] . '
'; endif; - $dropdown .= '
-
'; - - // Only output JavaScript if we have coordinates - if (strpos($ticket['latitude'], 'E') === false): - ?> - -
'; } + $dropdown .= '
'; + /* Lock ticket button */ if ($can_resolve) { - $template = '
  • %s
  • '; + $template = + ''; $dropdown .= $ticket['locked'] ? sprintf($template, 0, 'unlock', $hesklang['tul']) : sprintf($template, 1, 'lock', $hesklang['tlo']); @@ -1439,7 +1434,16 @@ function hesk_getAdminButtons($category_id) /* Tag ticket button */ if ($can_archive) { - $template = '
  • %s
  • '; + $template = + ''; $dropdown .= $ticket['archive'] ? sprintf($template, 0, $hesklang['remove_archive']) @@ -1448,7 +1452,16 @@ function hesk_getAdminButtons($category_id) /* Import to knowledgebase button */ if ($hesk_settings['kb_enable'] && hesk_checkPermission('can_man_kb', 0)) { - $dropdown .= '
  • ' . $hesklang['import_kb'] . '
  • '; + $dropdown .= + ''; } /* Delete ticket */ @@ -1462,7 +1475,16 @@ function hesk_getAdminButtons($category_id) $tmp = 'delete_ticket=1'; $txt = $hesklang['dele']; } - $dropdown .= '
  • ' . $txt . '
  • '; + $dropdown .= + ''; } $dropdown .= '
    '; $options .= $dropdown; @@ -2141,7 +2163,7 @@ function hesk_printCanned() function buildUserAgentBody($user_agent, $width, $height) { global $hesklang; - echo ' + return '