Files
Siro/backend/transit/vehicle/list.php
T

13 lines
371 B
PHP

<?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()]);