From ce8c681a2c3f535bc243d0f2c9d7fe630bbe7639 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sun, 6 Sep 2015 17:52:51 -0400 Subject: [PATCH] #326 Display a modal for user agent and screen res --- admin/admin_ticket.php | 59 ++++++++++++++++++++---- install/mods-for-hesk/sql/installSql.php | 4 ++ language/en/text.php | 6 ++- 3 files changed, 59 insertions(+), 10 deletions(-) diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php index ac928015..cf7e9e73 100644 --- a/admin/admin_ticket.php +++ b/admin/admin_ticket.php @@ -695,9 +695,6 @@ if($ticket['email'] != '') { /* Print admin navigation */ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); ?> -
@@ -885,12 +882,56 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); { echo ' '; } - if (isset($ticket['user_agent']) && $ticket['user_agent'] !== NULL) - { - $tooltipText = $hesklang['ticket_submitted_using']; - echo ''; - echo ''; - } + if ($ticket['user_agent'] !== NULL + && $ticket['screen_resolution_height'] !== NULL + && $ticket['screen_resolution_width'] !== NULL): + ?> + + + + +