« Back to History
view.php
|
20260722_120325.php
Initial Domain Snapshot
Copy Code
<?php require_once __DIR__ . '/../partials/header.php'; require_once __DIR__ . '/../core/db.php'; $code = $_GET['code'] ?? ''; /* fetch decision */ $dStmt = $pdo->prepare(" SELECT * FROM decisions WHERE decision_code=? "); $dStmt->execute([$code]); $decision = $dStmt->fetch(); /* fallback */ if (!$decision) { $decision = [ 'decision_code' => 'DL-001', 'decision_date' => '2025-12-25', 'title' => 'Module Page Format aur Boundaries Freeze', 'status' => 'Active', 'priority' => 'Highest', 'summary' => 'Har module ke liye fixed documentation format lock kiya gaya.', 'reason' => 'Context loss aur AI misuse prevent karne ke liye.', 'change_policy' => 'Change sirf new Decision Log ke through allowed.', 'approval_required' => 'Project Owner only', 'id' => 0 ]; } /* fetch rules */ $rStmt = $pdo->prepare(" SELECT rule_text FROM decision_rules WHERE decision_id=? "); $rStmt->execute([$decision['id']]); $rules = $rStmt->fetchAll(); ?> <h1><?= htmlspecialchars($decision['decision_code']) ?></h1> <p class="meta"> <strong>Date:</strong> <?= htmlspecialchars($decision['decision_date']) ?> | <strong>Status:</strong> <?= htmlspecialchars($decision['status']) ?> | <strong>Priority:</strong> <?= htmlspecialchars($decision['priority']) ?> </p> <section class="card"> <h2>Decision Summary</h2> <p><?= htmlspecialchars($decision['summary']) ?></p> </section> <section class="card"> <h2>Reason</h2> <p><?= htmlspecialchars($decision['reason']) ?></p> </section> <?php if ($rules): ?> <section class="card highlight"> <h2>Locked Rules</h2> <ul> <?php foreach ($rules as $r): ?> <li><?= htmlspecialchars($r['rule_text']) ?></li> <?php endforeach; ?> </ul> </section> <?php endif; ?> <section class="card"> <h2>Change Policy</h2> <p><strong>Allowed:</strong> <?= htmlspecialchars($decision['change_policy']) ?></p> <p><strong>Approval Required:</strong> <?= htmlspecialchars($decision['approval_required']) ?></p> </section> <?php require_once __DIR__ . '/../partials/footer.php';