« Back to History
cms_detail.php
|
20260722_120325.php
Initial Domain Snapshot
Copy Code
function render_cms_detail($ctx, $filters) { $pdo = $ctx['pdo']; $cid = $ctx['company_id']; $month = $filters['month']; $period = $filters['period']; $year = date('Y', strtotime($month)); $monthNum = date('n', strtotime($month)); $stmt = $pdo->prepare(" SELECT * FROM cms_detail WHERE company_id = :cid AND year = :year AND month = :month AND period = :period "); $stmt->execute([ ':cid'=>$cid, ':year'=>$year, ':month'=>$monthNum, ':period'=>$period ]); $row = $stmt->fetch(PDO::FETCH_ASSOC); ob_start(); ?> <div class="print-page"> <h2>CMS Detail</h2> <p><?= $year ?> - <?= date('M', strtotime($month)) ?> (<?= $period ?>)</p> <p>Total: <?= number_format($row['loom_salary_amount'] ?? 0) ?></p> </div> <?php return ob_get_clean(); }