« Back to History
index.php
|
20261119_140743.php
Initial Domain Snapshot
Copy Code
<?php require_once __DIR__ . '/../partials/header.php'; require_once __DIR__ . '/../core/db.php'; /* Define project phases (manual, intentional) */ $phases = [ 'Foundation' => 100, 'Core UI' => 100, 'Database & Control Panel' => 100, 'Business Modules' => 0, ]; /* Recent activity (derive from DB lightly) */ $recent = $pdo->query(" SELECT 'Decision' AS type, decision_code AS title, decision_date AS dt FROM decisions ORDER BY decision_date DESC LIMIT 3 ")->fetchAll(); /* Next focus (manual, single-focus) */ $next_focus = [ 'Start Production / ERP module documentation', 'Use real business rules as stress test', ]; ?> <h1>Project Dashboard</h1> <p class="intro"> Yeh dashboard <strong>project ki current reality</strong> dikhata hai — planning nahi, sirf ground truth. </p> <!-- OVERALL PHASE STATUS --> <section class="card"> <h2>Overall Project Status</h2> <?php foreach ($phases as $name => $percent): ?> <div class="phase"> <div class="phase-head"> <strong><?= htmlspecialchars($name) ?></strong> <span><?= $percent ?>%</span> </div> <div class="bar"> <div class="fill" style="width:<?= $percent ?>%"></div> </div> </div> <?php endforeach; ?> </section> <!-- PHASE SUMMARY --> <section class="card highlight"> <h2>Phase Summary</h2> <ul> <li>Foundation — ✅ Completed</li> <li>Core UI — ✅ Completed</li> <li>Database & Control Panel — ✅ Completed</li> <li>Business Modules — ⏳ Not Started</li> </ul> </section> <!-- RECENT ACTIVITY --> <section class="card"> <h2>Recent Activity</h2> <?php if ($recent): ?> <ul> <?php foreach ($recent as $r): ?> <li> <?= htmlspecialchars($r['dt']) ?> — <?= htmlspecialchars($r['type']) ?>: <?= htmlspecialchars($r['title']) ?> </li> <?php endforeach; ?> </ul> <?php else: ?> <p>No recent activity.</p> <?php endif; ?> </section> <!-- NEXT FOCUS --> <section class="card highlight"> <h2>Next Focus (Single Direction)</h2> <ul> <?php foreach ($next_focus as $n): ?> <li><?= htmlspecialchars($n) ?></li> <?php endforeach; ?> </ul> </section> <section class="card"> <h2>How to Use This Dashboard</h2> <ul> <li>Yeh Jira nahi hai — yeh mirror hai</li> <li>Percentages manual aur intentional hain</li> <li>Sirf phases track karo, micro tasks nahi</li> <li>Agar clarity kam lage, decision log dekho</li> </ul> </section> <?php require_once __DIR__ . '/../partials/footer.php';