Update: 2026-07-12 05:40:28
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
// transit/vehicle/list.php
|
||||
|
||||
require_once __DIR__ . '/../../transit/connect_admin.php';
|
||||
|
||||
$st = $transit_con->prepare(
|
||||
"SELECT id, plate, make, model, year, color, capacity, vehicle_type, is_active, notes, created_at
|
||||
FROM transit_vehicles WHERE org_id=? ORDER BY plate ASC"
|
||||
);
|
||||
$st->execute([$transit_org_id]);
|
||||
|
||||
jsonSuccess(['vehicles' => $st->fetchAll()]);
|
||||
Reference in New Issue
Block a user