getConnection(); $stmt = $pdo->prepare("SELECT * FROM excel_templates WHERE id = ?"); $stmt->execute([$id]); $template = $stmt->fetch(PDO::FETCH_ASSOC); if (!$template) { header("Location: template_dashboard.php?status=error&message=" . urlencode("Template not found")); exit; } // Check mappings $stmt = $pdo->prepare("SELECT id FROM template_mapping WHERE template_id = ?"); $stmt->execute([$id]); $hasMappings = $stmt->fetch(PDO::FETCH_ASSOC); error_log("Loaded JSON import template: " . print_r($template, true)); ?> <?= htmlspecialchars($template['name']) ?> - JSON Import - <?= htmlspecialchars($titlewebsite, ENT_QUOTES, 'UTF-8'); ?>
- JSON Import
Template ID:
JSON mode
Flusso: inserisci/scansiona un codice per recuperare il JSON da API, oppure incolla manualmente un JSON nel secondo tab. Ogni JSON aggiunto diventa una riga della tabella di preview. Quando hai finito, seleziona le righe e clicca Prosegui.
> Lo scanner barcode normalmente scrive qui il codice e invia Enter.