= $h($pageTitle) ?>
Crop Information
Current Alerts
| # | Alert | Level |
|---|---|---|
| No alerts | ||
Fertiliser & Disease Control
| # | Product | Date |
|---|---|---|
| No records | ||
Irrigation & Weather
| # | Event | Date |
|---|---|---|
| No records | ||
prepare( 'SELECT COUNT(*) FROM block_info WHERE modx_user_id = ? AND status = 2' ); $stmtArchived->execute([$userId]); $archivedCount = (int) $stmtArchived->fetchColumn(); $stmtDeleted = $pdo->prepare( 'SELECT COUNT(*) FROM block_info WHERE modx_user_id = ? AND status = 3' ); $stmtDeleted->execute([$userId]); $deletedCount = (int) $stmtDeleted->fetchColumn(); // ── Block list (status 0 = new, 1 = active) ─────────────────────────────── $stmtBlocks = $pdo->prepare( 'SELECT * FROM block_info WHERE modx_user_id = ? AND status <= 1 ORDER BY id ASC' ); $stmtBlocks->execute([$userId]); $blocks = $stmtBlocks->fetchAll(); // ── Flash messages ──────────────────────────────────────────────────────── $flashSuccess = $_SESSION['flash_success'] ?? null; $flashError = $_SESSION['flash_error'] ?? null; unset($_SESSION['flash_success'], $_SESSION['flash_error']); $h = fn($v) => htmlspecialchars((string) $v, ENT_QUOTES, 'UTF-8'); include __DIR__ . '/../../layouts/header.php'; include __DIR__ . '/../../layouts/navbar.php'; ?>
| # | Alert | Level |
|---|---|---|
| No alerts | ||
| # | Product | Date |
|---|---|---|
| No records | ||
| # | Event | Date |
|---|---|---|
| No records | ||