'.$hesklang['critical'].''; break; case 1: $ticket['priority']=''.$hesklang['high'].''; break; case 2: $ticket['priority']=$hesklang['medium']; break; default: $ticket['priority']=$hesklang['low']; } /* Set last replier name */ if ($ticket['lastreplier']) { if (empty($ticket['repliername'])) { $ticket['repliername'] = $hesklang['staff']; } } else { $ticket['repliername'] = $ticket['name']; } /* Other variables that need processing */ $ticket['dt'] = hesk_date($ticket['dt']); $ticket['lastchange'] = hesk_date($ticket['lastchange']); $random=mt_rand(10000,99999); // Print ticket head echo ' '; // Assigned to? if ($ticket['owner'] && ! empty($_SESSION['id']) ) { $ticket['owner'] = hesk_getOwnerName($ticket['owner']); echo' '; } // Continue with ticket head echo ' '; // Show IP and time worked to staff if ( ! empty($_SESSION['id']) ) { echo ' '; } // Custom fields foreach ($hesk_settings['custom_fields'] as $k=>$v) { if ($v['use']) { ?> '; // Print initial ticket message echo '

' . $ticket['message'] . '

'; // Print replies while ($reply = hesk_dbFetchAssoc($res)) { $reply['dt'] = hesk_date($reply['dt']); echo '
' . $hesklang['subject'] . ': ' . $ticket['subject'] . '
' . $hesklang['trackID'] . ': ' . $trackingID . '
' . $hesklang['ticket_status'] . ': ' . $ticket['status'] . '
' . $hesklang['created_on'] . ': ' . $ticket['dt'] . '
' . $hesklang['last_update'] . ': ' . $ticket['lastchange'] . '
' . $hesklang['taso3'] . ' ' . $ticket['owner'] . '
' . $hesklang['last_replier'] . ': ' . $ticket['repliername'] . '
' . $hesklang['category'] . ': ' . $category['name'] . '
' . $hesklang['ts'] . ': ' . $ticket['time_worked'] . '
' . $hesklang['ip'] . ': ' . $ticket['ip'] . '
' . $hesklang['email'] . ': ' . $ticket['email'] . '
:
' . $hesklang['date'] . ': ' . $reply['dt'] . '
' . $hesklang['name'] . ': ' . $reply['name'] . '

' . $reply['message'] . '

'; } // Print "end of ticket" message echo $hesklang['end_ticket']; ?>