query('SELECT * FROM macro_areas ORDER BY nome ASC'); $macro_areas = $stmt->fetchAll(PDO::FETCH_ASSOC); $total = count($macro_areas); $active = 0; $archived = 0; foreach ($macro_areas as $area) { if ($area['ativo']) { $active++; } else { $archived++; } } ?>
| # | Nome | Descrição | Status |
|---|---|---|---|
| Nenhuma macro área encontrada. | |||
Total de Macro Áreas: | Ativas: | Arquivadas: