?> </td> <td><?php echo date('M d, Y h:i A', strtotime($list->getLastActivity())); ?> </td> <td><?php echo $list->getLastReplier(); ?> </td> <td><?php echo kyDepartment::get($list->getDepartmentId())->getTitle(); ?> </td> <td><?php echo kyTicketType::get($list->getTypeId())->getTitle(); ?> </td> <td><?php echo kyTicketStatus::get($list->getStatusId())->getTitle(); ?> </td> <td style=" background-color: <?php echo kyTicketPriority::get($list->getPriorityId())->getBackgroundColor(); ?> ;"> <span style="color: <?php echo kyTicketPriority::get($list->getPriorityId())->getForegroundColor(); ?> ;"> <?php
/** * Returns this ticket type. * * Result is cached until the end of script. * * @param bool $reload True to reload data from server. False to use the cached value (if present). * @return kyTicketType */ public function getType($reload = false) { if ($this->type !== null && !$reload) { return $this->type; } if ($this->type_id === null) { return null; } $this->type = kyTicketType::get($this->type_id); return $this->type; }
<th style="background-color: <?php echo kyTicketPriority::get($ticket_details->getPriorityId())->getBackgroundColor(); ?> ;">Priority</th> </tr> <tr> <td><?php echo kyDepartment::get($ticket_details->getDepartmentId())->getTitle(); ?> </td> <td><?php echo $ticket_details->getFullName(); ?> </td> <td><?php echo kyTicketType::get($ticket_details->getTypeId())->getTitle(); ?> </td> <td> <select name="status"> <?php foreach ($status_list as $status) { ?> <option value="<?php echo $status->id; ?> " <?php if ($status->id == $ticket_details->getStatusId()) { echo "selected"; }