<?php
require_once dirname(__DIR__) . '/bootstrap/chairman_bootstrap.php';
$health=$Chairman->health(); $tables=$Chairman->requiredTablesStatus();
?>
<!doctype html><html lang="zh-Hant"><head><meta charset="utf-8"><title>Chairman Install Check</title>
<style>body{background:#050914;color:#e7fbff;font-family:Arial;padding:25px}.box{border:1px solid #283c59;background:#0c1423;padding:18px;border-radius:12px;margin-bottom:15px}.ok{color:#32ffa7}.bad{color:#ff5a86}.gold{color:#ffc107}table{width:100%;border-collapse:collapse}td,th{border-bottom:1px solid #243650;padding:8px}th{background:#101a2c;text-align:left}pre{white-space:pre-wrap;color:#9ed9ff}</style></head>
<body><h1>Chairman Framework v2.0 Install Check</h1>
<div class="box"><h2>Health</h2><pre><?=chairman_h(json_encode($health,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT))?></pre></div>
<div class="box"><h2>Required V44 Tables</h2><table><tr><th>Table</th><th>Status</th></tr><?php foreach($tables as $t=>$s): ?><tr><td><?=chairman_h($t)?></td><td class="<?=($s==='OK')?'ok':'bad'?>"><?=chairman_h($s)?></td></tr><?php endforeach; ?></table></div>
<div class="box"><h2>Next Test URLs</h2><p class="gold">../api/api_health.php</p><p class="gold">../api/analysis_bridge_sample.php?race_date=2026-07-08</p><p class="gold">../api/api_production.php?race_date=2026-07-08</p><p class="gold">../cache/build_today_cache.php?race_date=2026-07-08</p><p class="gold">../api/api_cache_today.php?race_date=2026-07-08</p></div>
<div class="box"><h2>Adapter Test</h2><p class="gold">../api/api_adapter_test.php?race_date=2026-07-08&chairman_debug=1</p></div><div class="box"><h2>Engine v2.0 Test</h2><p class="gold">../api/api_engine.php?race_date=2026-07-08</p><p class="gold">engine_test.php?race_date=2026-07-08</p></div><div class="box"><h2>Production Core v3.1</h2><p class="gold">production_core_dashboard.php?race_date=2026-07-08</p><p class="gold">../api/api_production_core.php?race_date=2026-07-08</p></div></body></html>
