checkUserAccess($thisclient)) die('Access Denied!'); $info=($_POST && $errors)?Format::htmlchars($_POST):array(); $type = array('type' => 'viewed'); Signal::send('object.view', $ticket, $type); $dept = $ticket->getDept(); if ($ticket->isClosed() && !$ticket->isReopenable()) $warn = sprintf(__('%s is marked as closed and cannot be reopened.'), __('This ticket')); //Making sure we don't leak out internal dept names if(!$dept || !$dept->isPublic()) $dept = $cfg->getDefaultDept(); if ($thisclient && $thisclient->isGuest() && $cfg->isClientRegistrationEnabled()) { ?>

',''); ?>

getField('subject'); echo $subject_field->display($ticket->getSubject()); ?> #getNumber(); ?>
hasClientEditableFields() // Only ticket owners can edit the ticket details (and other forms) && $thisclient->getId() == $ticket->getUserId()) { ?>

: getStatus()) ? $S->getLocalName() : ''; ?>
: getName() : ''); ?>
: getCreateDate()); ?>
: getName()), MB_CASE_TITLE); ?>
: getEmail()); ?>
: getPhoneNumber(); ?>
getId()) as $i=>$form) { // Skip core fields shown earlier in the ticket view $answers = $form->getAnswers()->exclude(Q::any(array( 'field__flags__hasbit' => DynamicFormField::FLAG_EXT_STORED, 'field__name__in' => array('subject', 'priority'), Q::not(array('field__flags__hasbit' => DynamicFormField::FLAG_CLIENT_VIEW)), ))); // Skip display of forms without any answers foreach ($answers as $j=>$a) { if ($v = $a->display()) $sections[$i][$j] = array($v, $a); } // Set form titles $forms[$i] = $form->getTitle(); } foreach ($sections as $i=>$answers) { ?>
getField()->get('label'); ?>:

getUserName(); $clientId = TicketUser::lookupByEmail($email)->getId(); $ticket->getThread()->render(array('M', 'R', 'user_id' => $clientId), array( 'mode' => Thread::MODE_CLIENT, 'html-id' => 'ticketThread') ); if ($blockReply = $ticket->isChild() && $ticket->getMergeType() != 'visual') $warn = sprintf(__('This Ticket is Merged into another Ticket. Please go to the %s%d%s to reply.'), 'Parent'); ?>
isClosed() || $ticket->isReopenable()) && !$blockReply) { ?>

isAttachmentsEnabled()) { print $attachments->render(array('client'=>true)); } ?>
isClosed() && $ticket->isReopenable()) { ?>