* Date: 2026-6-1 */ $id = isset($_GET['id']) ? intval($_GET['id']) : 0; $product = $db->fetch("SELECT * FROM {$db->table('product')} WHERE id = ?", [$id]); if(empty($product)) { header('Location: /'); exit; } $channel = $db->fetch("SELECT * FROM {$db->table('channel')} WHERE id = ?", [$product['channel_id']]); $litpic = $product['litpic'] ?: $site['template_dir'].'images/nopic.jpg'; $specs = json_decode($product['specs'] ?? '[]', true); $attrs = json_decode($product['attrs'] ?? '[]', true); $prevProduct = $db->fetch("SELECT id, title FROM {$db->table('product')} WHERE channel_id = ? AND id < ? AND status = 1 ORDER BY id DESC LIMIT 1", [$product['channel_id'], $id]); $nextProduct = $db->fetch("SELECT id, title FROM {$db->table('product')} WHERE channel_id = ? AND id > ? AND status = 1 ORDER BY id ASC LIMIT 1", [$product['channel_id'], $id]); ?> <?php echo htmlspecialchars($product['title']); ?> - <?php echo htmlspecialchars($site['site_name']); ?>

<?php echo htmlspecialchars($product['title']); ?>

< 上一篇: 下一篇: >