Just to update this in case anyone else tries to do this, I was finally able to dissect the file down and pull the needed info using the builtin functions in the class.ticket.php file in my tickets_checkin.php file. I am sure its still really ugly and could have been done better but I am not very good at php. Just alot of trial and error. I will also fix it up with some html for printing but this at least shows the info I wanted on a quick print link. tickets_checkin.php:
?php
require('staff.inc.php');
require_once(INCLUDE_DIR.'class.ticket.php');
$ticket = $user = null; //clean start.
//LOCKDOWN...See if the id provided is actually valid and if the user has access.
if($_REQUEST) {
if(!($ticket=Ticket:($_REQUEST)))
$errors=sprintf(__('%s: Unknown or invalid ID.'), __('ticket'));
elseif(!$ticketcheckStaffAccess($thisstaff)) {
$errors=__('Access denied. Contact admin if you believe this is in error');
$ticket=null; //Clear ticket obj.
}
}
if(!$errors) {
// Retrieve Ticket Information
$TicketID = $_GET;
$Subject = $ticket->getSubject();
$TicketNo = $ticket->getNumber();
$TOwner = $ticket->getName();
$CDate = $ticket->getCreateDate();
$OPhone = $ticket->getPhoneNumber();
}
echo $TOwner;
echo $OPhone;
echo $Subject;
echo $CDate;
echo $TicketNo;
?>