} if (strlen($ticket['subject']) > 20) { $ticket['subject'] = substr($ticket['subject'], 0, 17) . '...'; } $ticket = htmlentities_array($ticket); eval("\$tickets.=\"" . getTemplate("tickets/archived_tickets") . "\";"); $count++; $_cid = $ticket['customerid']; } } $i++; } eval("echo \"" . getTemplate("tickets/archivesearch") . "\";"); } else { $archived = array(); $archived = ticket::getLastArchived($db, 6, $userinfo['adminid']); $tickets = ''; if ($archived !== false) { foreach ($archived as $id => $ticket) { $ticket['lastchange'] = date("d.m.y H:i", $ticket['lastchange']); $ticket['priority'] = ticket::getPriorityText($lng, $ticket['priority']); if ($ticket['lastreplier'] == '1') { $ticket['lastreplier'] = $lng['ticket']['staff']; } else { $ticket['lastreplier'] = $lng['ticket']['customer']; } if (strlen($ticket['subject']) > 20) { $ticket['subject'] = substr($ticket['subject'], 0, 17) . '...'; } eval("\$tickets.=\"" . getTemplate("tickets/archived_tickets") . "\";"); }