📂
Open Tickets
🔥
Critical (P1)
👤
Unassigned
📅
Created Today
Closed Today
h
Avg Resolution

🎫 Tickets

Total:
Showing results for: "" ( ticket found)
Ticket List
'status', 'value' => trim($s), 'label' => 'Status: ' . trim($s)]; } } if (!empty($_GET['priority'])) { $priorities = is_array($_GET['priority']) ? $_GET['priority'] : explode(',', $_GET['priority']); foreach ($priorities as $p) { $activeFilters[] = ['type' => 'priority', 'value' => trim($p), 'label' => 'Priority: P' . trim($p)]; } } if (!empty($_GET['category'])) { $activeFilters[] = ['type' => 'category', 'value' => $_GET['category'], 'label' => 'Category: ' . $_GET['category']]; } if (!empty($_GET['type'])) { $activeFilters[] = ['type' => 'type', 'value' => $_GET['type'], 'label' => 'Type: ' . $_GET['type']]; } if (!empty($_GET['assigned_to'])) { $activeFilters[] = ['type' => 'assigned_to', 'value' => $_GET['assigned_to'], 'label' => 'Assigned To: ' . ($_GET['assigned_to'] === 'unassigned' ? 'Unassigned' : 'User #' . $_GET['assigned_to'])]; } if (!empty($_GET['search'])) { $activeFilters[] = ['type' => 'search', 'value' => $_GET['search'], 'label' => 'Search: "' . htmlspecialchars(substr($_GET['search'], 0, 20)) . (strlen($_GET['search']) > 20 ? '...' : '') . '"']; } ?>
Active Filters:
'Ticket ID', 'priority' => 'Priority', 'title' => 'Title', 'category' => 'Category', 'type' => 'Type', 'status' => 'Status', 'created_by' => 'Created By', 'assigned_to' => 'Assigned To', 'created_at' => 'Created', 'updated_at' => 'Updated', '_actions' => 'Actions' ]; foreach($columns as $col => $label) { if ($col === '_actions') { echo ""; } else { $newDir = ($currentSort === $col && $currentDir === 'asc') ? 'desc' : 'asc'; $sortClass = ($currentSort === $col) ? "sort-$currentDir" : ''; $sortParams = array_merge($_GET, ['sort' => $col, 'dir' => $newDir]); $sortUrl = '?' . http_build_query($sortParams); echo ""; } } ?> 0) { foreach($tickets as $row) { $creator = $row['creator_display_name'] ?? $row['creator_username'] ?? 'System'; $assignedTo = $row['assigned_display_name'] ?? $row['assigned_username'] ?? 'Unassigned'; echo ""; // Add checkbox column for admins if ($GLOBALS['currentUser']['is_admin'] ?? false) { echo ""; } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; // Quick actions column echo ""; echo ""; } } else { $colspan = ($GLOBALS['currentUser']['is_admin'] ?? false) ? '12' : '11'; echo ""; } ?>
$label$label
{$row['ticket_id']}{$row['priority']}" . htmlspecialchars($row['title']) . "{$row['category']}{$row['type']}{$row['status']}" . htmlspecialchars($creator) . "" . htmlspecialchars($assignedTo) . "" . date('Y-m-d H:i', strtotime($row['created_at'])) . "" . date('Y-m-d H:i', strtotime($row['updated_at'])) . ""; echo "
"; echo ""; echo ""; echo ""; echo "
"; echo "
"; echo "
";
                echo "╔════════════════════════════════════════╗\n";
                echo "║                                        ║\n";
                echo "║          NO TICKETS FOUND              ║\n";
                echo "║                                        ║\n";
                echo "║    [ ]  Empty queue - all clear!      ║\n";
                echo "║                                        ║\n";
                echo "╚════════════════════════════════════════╝";
                echo "
"; echo "