update stats e nota template

This commit is contained in:
2026-07-16 14:34:09 +02:00
parent d256370712
commit 546b4ced69
8 changed files with 670 additions and 18 deletions
@@ -39,6 +39,7 @@ try {
$button_bg_color = trim($_POST['button_bg_color'] ?? '#007bff');
$button_text_color = trim($_POST['button_text_color'] ?? '#ffffff');
$button_label = trim($_POST['button_label'] ?? 'Click Me');
$template_note = trim($_POST['template_note'] ?? '');
// Allowed source types
if (!in_array($source_type, ['XLS', 'API', 'JSON', 'PDF'], true)) {
@@ -122,6 +123,7 @@ try {
button_bg_color = ?,
button_text_color = ?,
button_label = ?,
template_note = ?,
updated_at = NOW()
WHERE id = ?
");
@@ -144,6 +146,7 @@ try {
$button_bg_color,
$button_text_color,
$button_label,
$template_note,
$id
]);