<?php

require_once __DIR__ . '/navbar.php';
$pdo = require __DIR__ . '/../config/db.php';
if (session_status() === PHP_SESSION_NONE) session_start();
$role = $_SESSION['role'] ?? null;
if ($role !== 'admin') {
    header('Location: ../ooh_project/index.php?page=login');
    exit;
}

$plans = $pdo->query('SELECT * FROM planning ORDER BY id DESC')->fetchAll();

?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">  
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>OOH Management</title>
    <link rel="icon" type="image/x-icon" href="../ooh_project/favicon.ico">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body style="background-color: #efefef;">
<div class="container mt-2">
    <h2 class="mb-2 w-100 text-center text-dark d-inline-block" style="position:relative;">
        Strategic Planning
    </h2>

    
</body>
</html>