diff --git a/public/userarea/edit_template_xls.php b/public/userarea/edit_template_xls.php index c3dd001..ef817d2 100644 --- a/public/userarea/edit_template_xls.php +++ b/public/userarea/edit_template_xls.php @@ -1,26 +1,27 @@ 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")); + header("Location: templates_dashboard.php?status=error&message=" . urlencode("Template not found")); exit; } -// Recupera tutte le routine dal database +// Retrieve all routines $stmt = $pdo->prepare("SELECT * FROM routine"); $stmt->execute(); $routines = $stmt->fetchAll(PDO::FETCH_ASSOC); @@ -34,7 +35,6 @@ $routines = $stmt->fetchAll(PDO::FETCH_ASSOC); - Edit Template <?= htmlspecialchars($titlewebsite, ENT_QUOTES, 'UTF-8'); ?> @@ -44,19 +44,22 @@ $routines = $stmt->fetchAll(PDO::FETCH_ASSOC);
+
+
-
Update XLS Template
+
Update Template
-

Edit the following form in order to update the selected import XLS template

+

Edit the following form in order to update the selected import template

Mandatory Fields

  • Template Name
  • -
  • Row Header and Column Header: where the title of the excel starts
  • -
  • Schema
  • +
  • Source Type
  • +
  • Schema and Client
  • +
  • Row Header and Column Header only for XLS templates
@@ -69,34 +72,44 @@ $routines = $stmt->fetchAll(PDO::FETCH_ASSOC);
+
- +
- +
+ + + Choose the source used by this template +
+ +
- +
-
- - +
+ +
- +
- - + +
@@ -110,12 +123,12 @@ $routines = $stmt->fetchAll(PDO::FETCH_ASSOC);
- +
- +
@@ -128,7 +141,7 @@ $routines = $stmt->fetchAll(PDO::FETCH_ASSOC); - +
@@ -136,7 +149,7 @@ $routines = $stmt->fetchAll(PDO::FETCH_ASSOC); - +
@@ -144,11 +157,12 @@ $routines = $stmt->fetchAll(PDO::FETCH_ASSOC); +
+
+
@@ -175,9 +191,8 @@ $routines = $stmt->fetchAll(PDO::FETCH_ASSOC);