mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
Add AP filter to admin list; fix reset as unstyled button
This commit is contained in:
@@ -694,6 +694,11 @@ class Database {
|
||||
$params[] = intval($filters['orientation']);
|
||||
}
|
||||
|
||||
if (!empty($filters['ap'])) {
|
||||
$sql .= " AND t.ap_program_id = ?";
|
||||
$params[] = intval($filters['ap']);
|
||||
}
|
||||
|
||||
$stmt = $this->pdo->prepare($sql);
|
||||
$stmt->execute($params);
|
||||
return (int) $stmt->fetchColumn();
|
||||
@@ -736,6 +741,11 @@ class Database {
|
||||
$params[] = intval($filters['orientation']);
|
||||
}
|
||||
|
||||
if (!empty($filters['ap'])) {
|
||||
$sql .= " AND t.ap_program_id = ?";
|
||||
$params[] = intval($filters['ap']);
|
||||
}
|
||||
|
||||
$sql .= " GROUP BY t.id ORDER BY t.year DESC, t.submitted_at DESC";
|
||||
|
||||
if ($limit > 0) {
|
||||
|
||||
Reference in New Issue
Block a user