isStaff() || !is_object($ticket) ) die('Invalid path'); if(!$ticket->getId() or (!$thisuser->canAccessDept($ticket->getDeptId()) and $thisuser->getId()!=$ticket->getStaffId())) die('Access Denied'); $info=($_POST && $errors)?Format::htmlchars($_POST):array(); //Re-use the post info on error...savekeyboards.org //Auto-lock the ticket if locking is enabled..if locked already simply renew it. if($cfg->getLockTime() && !$ticket->acquireLock()) $warn.='Unable to obtain a lock on the ticket'; //We are ready baby...lets roll. Akon rocks! $dept = $ticket->getDept(); //Dept $staff = $ticket->getStaff(); //Assiged staff. $lock = $ticket->getLock(); //Ticket lock obj $id=$ticket->getId(); //Ticket ID. if($_REQUEST['response_id']) $response_id = $_REQUEST['response_id']; if($staff) $warn.='Ticket is assigned to '.$staff->getName().''; if(!$errors['err'] && ($lock && $lock->getStaffId()!=$thisuser->getId())) $errors['err']='This ticket is currently locked by another staff member!'; if(!$errors['err'] && ($emailBanned=BanList::isbanned($ticket->getEmail()))) $errors['err']='Email is in banlist! Must be removed before any reply/response'; if($ticket->isOverdue()) $warn.='Marked overdue!'; ?>
Ticket #getExtId()?> 
Name: getName())?>
Email: getEmail()?>
Phone: getPhone()?>
Source: getSource()?>  getIP()?>
Status: getStatus())?>
Priority: getPriority()?>
Department: getDeptName()?>
Create Date: getCreateDate())?>
Subject: getSubject())?>
Assigned Staff:
getName()):'- unassigned -'?>
Last Response: getLastResponseDate())?>
Related Tickets: getRelatedTicketsCount(); if($related>0) {?>
Last Message: getLastMessageDate())?>


Internal Notes ()
 -  posted by
Ticket Thread
0){ ?>
getAttachmentStr($msg_row['msg_id'],'M')?>
 
0){ ?>
 - 
getAttachmentStr($respID,'R')?>
0){ ?>
 - 
getAttachmentStr($respID,'R')?>

"; ?>