Ejemplo n.º 1
0
                 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") . "\";");
         }
     }
     $priorities_options = makecheckbox('priority1', $lng['ticket']['high'], '1');
     $priorities_options .= makecheckbox('priority2', $lng['ticket']['normal'], '2');
     $priorities_options .= makecheckbox('priority3', $lng['ticket']['low'], '3');
     $category_options = '';