<tr> <td colspan="8"> <?php $pageNav = $this->pagination($this->total, $this->filters['start'], $this->filters['limit']); $pageNav->setAdditionalUrlParam('show', $this->filters['show']); $pageNav->setAdditionalUrlParam('search', $this->filters['search']); echo $pageNav->render(); ?> </td> </tr> </tfoot> <tbody> <?php $k = 0; $sc = new \Components\Support\Tables\Comment($this->database); $st = new \Components\Support\Models\Tags(); // Collect all the IDs $ids = array(); if ($this->rows) { foreach ($this->rows as $row) { $ids[] = $row->id; } // Pull out the last activity date for all the IDs $lastactivities = array(); if (count($ids)) { $lastactivities = $sc->newestCommentsForTickets(true, $ids); $alltags = $st->checkTags($ids); } $cls = 'even'; for ($i = 0, $n = count($this->rows); $i < $n; $i++) { $row =& $this->rows[$i];
foreach ($this->tickets['major'] as $ticket) { if (!$ticket->summary) { $ticket->summary = substr($ticket->report, 0, 70); if (strlen($ticket->summary) >= 70) { $ticket->summary .= '...'; } if (!trim($ticket->summary)) { $ticket->summary = Lang::txt('(no content found)'); } } $ticket->summary = str_replace("\r", "", $ticket->summary); $ticket->summary = str_replace("\t", " ", $ticket->summary); $ticket->summary = str_replace("\n", " ", $ticket->summary); $sef = Route::url($base . $ticket->id); $link = rtrim(Request::base(), '/') . '/' . trim($sef, '/'); $st = new \Components\Support\Models\Tags($ticket->id); $tags = $st->render('string'); ?> <table id="ticket-info" width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse; border: 1px solid <?php echo $bdcolor['major']; ?> ; background: <?php echo $bgcolor['major']; ?> ; font-size: 0.9em; line-height: 1.6em; background-image: -webkit-gradient(linear, 0 0, 100% 100%, color-stop(.25, rgba(255, 255, 255, .075)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .075)), color-stop(.75, rgba(255, 255, 255, .075)), color-stop(.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, .075) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .075) 50%, rgba(255, 255, 255, .075) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(-45deg, rgba(255, 255, 255, .075) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .075) 50%, rgba(255, 255, 255, .075) 75%, transparent 75%, transparent); background-image: -ms-linear-gradient(-45deg, rgba(255, 255, 255, .075) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .075) 50%, rgba(255, 255, 255, .075) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, .075) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .075) 50%, rgba(255, 255, 255, .075) 75%, transparent 75%, transparent); background-image: linear-gradient(-45deg, rgba(255, 255, 255, .075) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .075) 50%, rgba(255, 255, 255, .075) 75%, transparent 75%, transparent);