' . $hesklang['trackID'] . ': | ' . $trackingID . ' |
' . $hesklang['ticket_status'] . ': | ' . $hesklang[$ticket['statusKey']] . ' |
' . $hesklang['created_on'] . ': | ' . $ticket['dt'] . ' |
' . $hesklang['last_update'] . ': | ' . $ticket['lastchange'] . ' |
' . $hesklang['last_replier'] . ': | ' . $ticket['repliername'] . ' |
' . $hesklang['category'] . ': | ' . $category['name'] . ' |
';
// Show IP and time worked to staff
if (!empty($_SESSION['id'])) {
echo '
' . $hesklang['ts'] . ': | ' . $ticket['time_worked'] . ' |
' . $hesklang['ip'] . ': | ' . $ticket['ip'] . ' |
' . $hesklang['email'] . ': | ' . $ticket['email'] . ' |
';
}
echo '';
// Assigned to?
if ($ticket['owner'] && !empty($_SESSION['id'])) {
$ticket['owner'] = hesk_getOwnerName($ticket['owner']);
echo '
' . $hesklang['taso3'] . ' |
' . $ticket['owner'] . ' |
';
}
echo '
' . $hesklang['name'] . ': |
' . $ticket['name'] . ' |
';
echo '
';
// Custom fields
$num_cols = 0;
echo '';
foreach ($hesk_settings['custom_fields'] as $k => $v) {
if (($v['use'] == 1 || (! empty($_SESSION['id']) && $v['use'] == 2)) && hesk_is_custom_field_in_category($k, $ticket['category'])) {
if ($num_cols == 3) {
echo '
';
$num_cols = 0;
}
switch ($v['type']) {
case 'date':
$ticket[$k] = hesk_custom_date_display_format($ticket[$k], $v['value']['date_format']);
break;
}
?>
: |
|
';
// Print initial ticket message
if ($ticket['message'] != '') {
$newMessage = hesk_unhortenUrl($ticket['message']);
if ($ticket['html']) {
$newMessage = hesk_html_entity_decode($newMessage);
}
echo '' . $newMessage . '
';
}
// Print replies
while ($reply = hesk_dbFetchAssoc($res)) {
$reply['dt'] = hesk_date($reply['dt'], true);
$theReply = hesk_unhortenUrl($reply['message']);
if ($reply['html']) {
$theReply = hesk_html_entity_decode($theReply);
}
echo '
' . $hesklang['date'] . ': | ' . $reply['dt'] . ' |
' . $hesklang['name'] . ': | ' . $reply['name'] . ' |
' . $theReply . '
';
}
// Print "end of ticket" message
echo $hesklang['end_ticket'];
?>