diff --git a/admin/find_tickets.php b/admin/find_tickets.php index 8c37be01..456c52d1 100644 --- a/admin/find_tickets.php +++ b/admin/find_tickets.php @@ -37,6 +37,7 @@ require(HESK_PATH . 'hesk_settings.inc.php'); require(HESK_PATH . 'inc/common.inc.php'); require(HESK_PATH . 'inc/admin_functions.inc.php'); require(HESK_PATH . 'inc/status_functions.inc.php'); +require(HESK_PATH . 'inc/mail_functions.inc.php'); hesk_load_database_functions(); hesk_session_start(); @@ -60,25 +61,9 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php'); /* Print admin navigation */ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); -?> - - - - - -
-
-
-
-

-
- Check for compatibility with old date format */ - if (preg_match("/(\d{4})-(\d{2})-(\d{2})/", hesk_GET('dt'), $m)) { - $_GET['dt'] = $m[2] . $m[3] . $m[1]; - } - /* -> Now process the date value */ $dt = preg_replace('/[^0-9]/', '', hesk_GET('dt')); if (strlen($dt) == 8) { - $date = substr($dt, 4, 4) . '-' . substr($dt, 0, 2) . '-' . substr($dt, 2, 2); - $date_input = substr($dt, 0, 2) . '/' . substr($dt, 2, 2) . '/' . substr($dt, 4, 4); + $date = substr($dt, 0, 4) . '-' . substr($dt, 4, 2) . '-' . substr($dt, 6, 2); + $date_input = $date; /* This search is valid even if no query is entered */ if ($no_query) { @@ -250,9 +230,6 @@ LEFT(`message`, 400) AS `message`, hesk_process_messages($hesk_error_buffer, 'NOREDIRECT'); } - /* This will handle error, success and notice messages */ - $handle = hesk_handle_messages(); - # echo "$sql
"; // That's all the SQL we need for count @@ -261,24 +238,49 @@ LEFT(`message`, 400) AS `message`, /* Prepare variables used in search and forms */ require_once(HESK_PATH . 'inc/prepare_ticket_search.inc.php'); - - /* If there has been an error message skip searching for tickets */ - if ($handle !== FALSE) { - $href = 'find_tickets.php'; - require_once(HESK_PATH . 'inc/ticket_list.inc.php'); - } ?> +
+
+
+

+ +

+
+ +
+
+
+ +
+ +
+ + '; + } - +
+
+
+ diff --git a/admin/show_tickets.php b/admin/show_tickets.php index f0c0e3a9..caa22758 100644 --- a/admin/show_tickets.php +++ b/admin/show_tickets.php @@ -93,32 +93,28 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); ?>
-
-
- -
-
+ /* Clean unneeded session variables */ + hesk_cleanSessionVars('hide'); + ?> - data-error="" - required> -
+ } ?>>
@@ -515,7 +512,7 @@ $more2 = empty($_GET['more2']) ? 0 : 1; :   -