diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php index 9ffc2592..793feed3 100644 --- a/admin/admin_ticket.php +++ b/admin/admin_ticket.php @@ -644,7 +644,17 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
  • -
    +
    + + (' . $hesklang['seqid'] . ': ' . $ticket['id'] . ')'; + } + + echo $trackingID . $tmp; ?> +
  • @@ -892,22 +902,11 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); } ?>

    -

    - -

    - ' . $hesklang['archived'] . ''; } @@ -920,137 +919,61 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');

    -
    -
    -
    - - - - - - - - - - - - - - -
    - - - - '; - } else { - echo ''; - } - } else { - echo ' - - '; - } - } - ?> -
    - ' . $ticket['ip'] . ''; - - if ($can_ban_ips) { - if ($ip_id = hesk_isBannedIP($ticket['ip'])) { - if ($can_unban_ips) { - echo ' - - '; - } else { - echo ''; - } - } else { - echo ' - - '; - } - } - } - ?> -
    -
    -
    - - - - - - -
    -
    -
    -
    - -
    -
    - +
    + $hesklang['critical'], - 1 => $hesklang['high'], - 2 => $hesklang['medium'], - 3 => $hesklang['low'] - ); - $options = array(); - for ($i = 0; $i < 4; $i++) { - $selected = $ticket['priority'] == $i ? 'selected' : ''; - array_push($options, ''); - } + $priorityLanguages = array( + 0 => $hesklang['critical'], + 1 => $hesklang['high'], + 2 => $hesklang['medium'], + 3 => $hesklang['low'] + ); + $options = array(); + for ($i = 0; $i < 4; $i++) { + $selected = $ticket['priority'] == $i ? 'selected' : ''; + array_push($options, ''); + } - echo '
    '; - } elseif ($ticket['priority'] == 1) { - echo 'high-priority">'; - } else { - echo 'med-low-priority">'; - } + echo '
    '; + } elseif ($ticket['priority'] == 1) { + echo 'high-priority">'; + } else { + echo 'med-low-priority">'; + } - echo '

    ' . $hesklang['priority'] . '

    '; + echo '

    ' . $hesklang['priority'] . '

    '; - echo '
    + echo ' '; - if ($isManager) { - echo ''; - } - echo ' + if ($isManager) { + echo ''; + } + echo '
    '; - echo '

    ' . $hesklang['status'] . '

    '; - $status_options = array(); - $results = mfh_getAllStatuses(); - foreach ($results as $row) { - $selected = $ticket['status'] == $row['ID'] ? 'selected' : ''; - $status_options[$row['ID']] = ''; - } + echo '

    ' . $hesklang['status'] . '

    '; + $status_options = array(); + $results = mfh_getAllStatuses(); + foreach ($results as $row) { + $selected = $ticket['status'] == $row['ID'] ? 'selected' : ''; + $status_options[$row['ID']] = ''; + } - echo ' + echo '
    '; - if ($isManager) { - echo ''; - } - echo ' + if ($isManager) { + echo ''; + } + echo '
    '; - echo '

    ' . $hesklang['owner'] . '

    '; + echo '

    ' . $hesklang['owner'] . '

    '; - if (hesk_checkPermission('can_assign_others', 0) || $isManager) { - echo ' + if (hesk_checkPermission('can_assign_others', 0) || $isManager) { + echo '
    + $selectedForUnassign = 'selected'; + foreach ($admins as $k => $v) { + $selected = ''; + if ($k == $ticket['owner']) { + $selectedForUnassign = ''; + $selected = 'selected'; + } + echo ''; + } + echo ''; + echo ' '; - if ( ! $ticket['owner']) - { - echo ''; - } - echo '
    '; - } else { - echo '

    '; - echo isset($admins[$ticket['owner']]) ? $admins[$ticket['owner']] : - ($can_assign_self ? $hesklang['unas'] . ' [' . $hesklang['asss'] . ']' : $hesklang['unas']); - echo '

    '; - } - echo '

    ' . $hesklang['category'] . '

    '; - if (strlen($categories_options) && ($can_change_cat || $can_change_own_cat)) { - echo ' + if ( ! $ticket['owner']) + { + echo ''; + } + echo '
    '; + } else { + echo '

    '; + echo isset($admins[$ticket['owner']]) ? $admins[$ticket['owner']] : + ($can_assign_self ? $hesklang['unas'] . ' [' . $hesklang['asss'] . ']' : $hesklang['unas']); + echo '

    '; + } + echo '

    ' . $hesklang['category'] . '

    '; + if (strlen($categories_options) && ($can_change_cat || $can_change_own_cat)) { + echo '
    @@ -1115,11 +1038,12 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
    '; - } else { - echo '

    ' . $category['name'] . '

    '; - } - echo '
    '; - ?> + } else { + echo '

    ' . $category['name'] . '

    '; + } + echo '
    '; + ?> +
    @@ -1622,21 +1546,62 @@ function print_form() } // End print_form() function mfh_print_message() { - global $ticket, $hesklang, $hesk_settings, $modsForHesk_settings; + global $ticket, $hesklang, $hesk_settings, $can_ban_emails, $can_ban_ips, $trackingID, $modsForHesk_settings; ?>
  • -

    +

    + + + +
    + + + + + '; + } else { + echo ''; + } + } else { + echo ' + + '; + } + } + endif; ?> +
    + ' . $ticket['ip'] . ''; + + if ($can_ban_ips) { + if ($ip_id = hesk_isBannedIP($ticket['ip'])) { + if ($can_unban_ips) { + echo ' + + '; + } else { + echo ''; + } + } else { + echo ' + + '; + } + } + } + ?> +

    -
    -
    - -
    -
    - -
    -
    $v) { if ($v['use'] && $v['place'] == 0 && hesk_is_custom_field_in_category($k, $ticket['category'])) {