diff --git a/public/userarea/importify/blanktemplate.php b/public/userarea/importify/blanktemplate.php index 527f98f..b6625bb 100644 --- a/public/userarea/importify/blanktemplate.php +++ b/public/userarea/importify/blanktemplate.php @@ -20,7 +20,48 @@ + @@ -70,9 +111,64 @@
Importify:
+ Insert new template + Import File + + + +

+ + + + + + + + + + + + + + + + + setQuery("SELECT * FROM template_importify"); + $templateimportify->execute(); + + $wa_startindex = 0; + while (!$templateimportify->atEnd()) { + $wa_startindex = $templateimportify->Index; + ?> + + + + + + + + + + + + moveNext(); + } + $templateimportify->moveFirst(); //return RS to first record + unset($wa_startindex); + unset($wa_repeatcount); + + ?> +
Template NameDescriptionFile SourceLab NameAction
getColumnVal("templatename")); ?>getColumnVal("templatedescription")); ?>getColumnVal("fileextension")); ?>getColumnVal("labname")); ?> + "> + " role="button" data-toggle="tooltip" title="Go"> + + " role="button" data-toggle="tooltip" title="Delete"> + +
diff --git a/public/userarea/importify/cancel-importifytemplate.php b/public/userarea/importify/cancel-importifytemplate.php new file mode 100644 index 0000000..622dc66 --- /dev/null +++ b/public/userarea/importify/cancel-importifytemplate.php @@ -0,0 +1,35 @@ + +prepare($query)) { + // Lega i parametri + $stmt->bind_param("i", $id); + + // Esegui la query + if ($stmt->execute()) { + // Reindirizza alla dashboard + header("Location: importifydashboard.php"); + exit(); + } else { + echo "Errore nell'esecuzione della query."; + } + } else { + echo "Errore nella preparazione della query."; + } + + // Chiudi la dichiarazione + $stmt->close(); +} else { + echo "ID non specificato."; +} + +// Chiudi la connessione +$conn->close(); diff --git a/public/userarea/importify/importifydashboard.php b/public/userarea/importify/importifydashboard.php new file mode 100644 index 0000000..54484a5 --- /dev/null +++ b/public/userarea/importify/importifydashboard.php @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + +
+ + + + + +
+ +
+ + + +
+ +
+ +
+
+
+
+ +
+

Importify

+
+
+
+ + +
+
+
+
+
Importify:
+ Insert new template + Import File + + + + + +

+
+ + + + + + + + + + + + + + + + + + setQuery("SELECT * FROM template_importify"); + $templateimportify->execute(); + + $wa_startindex = 0; + while (!$templateimportify->atEnd()) { + $wa_startindex = $templateimportify->Index; + ?> + + + + + + + + + + + + moveNext(); + } + $templateimportify->moveFirst(); //return RS to first record + unset($wa_startindex); + unset($wa_repeatcount); + + ?> +
Template NameDescriptionFile SourceLab NameAction
getColumnVal("templatename")); ?>getColumnVal("templatedescription")); ?>getColumnVal("fileextension")); ?>getColumnVal("labname")); ?> + "> + + + " role="button" data-toggle="tooltip" title="Go"> + + + + " role="button" data-toggle="tooltip" title="Delete"> + + + +
+
+ + +
+
+
+
+ + + +
+ +
+ +
+ + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/userarea/importify/insert-importifytemplate.php b/public/userarea/importify/insert-importifytemplate.php new file mode 100644 index 0000000..5b816ae --- /dev/null +++ b/public/userarea/importify/insert-importifytemplate.php @@ -0,0 +1,332 @@ + + +Action = "insert"; + $InsertQuery->Table = "`template_importify`"; + + $InsertQuery->bindColumn("templatename", "s", "" . ((isset($_POST["templatename"])) ? $_POST["templatename"] : "") . "", "WA_DEFAULT"); + $InsertQuery->bindColumn("templatedescription", "s", "" . ((isset($_POST["templatedescription"])) ? $_POST["templatedescription"] : "") . "", "WA_DEFAULT"); + $InsertQuery->bindColumn("fileextension", "s", "" . ((isset($_POST["fileextension"])) ? $_POST["fileextension"] : "") . "", "WA_DEFAULT"); + $InsertQuery->bindColumn("idcompany", "i", "" . ((isset($_POST["idcompany"])) ? $_POST["idcompany"] : "") . "", "WA_DEFAULT"); + $InsertQuery->bindColumn("iduser", "i", "" . ((isset($_POST["iduser"])) ? $_POST["iduser"] : "") . "", "WA_DEFAULT"); + $InsertQuery->bindColumn("labname", "s", "" . ((isset($_POST["labname"])) ? $_POST["labname"] : "") . "", "WA_DEFAULT"); + $InsertQuery->bindColumn("createdon", "s", "" . ((isset($_POST["createdon"])) ? $_POST["createdon"] : "") . "", "WA_DEFAULT"); + $InsertQuery->saveInSession(""); + $InsertQuery->execute(); + + $InsertGoTo = "importifydashboard.php"; + if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo ? rel2abs($InsertGoTo, dirname(__FILE__)) : ""; + $InsertQuery->redirect($InsertGoTo); +} +?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + +
+ + + + + +
+ +
+ + + +
+ +
+ +
+
+
+
+ +
+

EasySpec

+
+
+
+ + +
+
+
+
+
Importify: Insert new template
+ +
+
+ + +
+ +
+
+ + +
+
+
+ +
+ +
+
+ + +
+
+
+ +
+ +
+
+ +
+
+
+ + +
+ +
+
+ + +
+
+
+ + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+
+ + +
+
+ +
+ +
+
+
+
+ + + +
+ +
+ +
+ + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/userarea/importify/update-importifytemplate.php b/public/userarea/importify/update-importifytemplate.php new file mode 100644 index 0000000..81ec733 --- /dev/null +++ b/public/userarea/importify/update-importifytemplate.php @@ -0,0 +1,277 @@ + + +Action = "update"; + $UpdateQuery->Table = "`template_importify`"; + + $UpdateQuery->bindColumn("templatename", "s", "" . ((isset($_POST["templatename"])) ? $_POST["templatename"] : "") . "", "WA_DEFAULT"); + $UpdateQuery->bindColumn("templatedescription", "s", "" . ((isset($_POST["templatedescription"])) ? $_POST["templatedescription"] : "") . "", "WA_DEFAULT"); + $UpdateQuery->bindColumn("fileextension", "s", "" . ((isset($_POST["fileextension"])) ? $_POST["fileextension"] : "") . "", "WA_DEFAULT"); + $UpdateQuery->bindColumn("idcompany", "i", "" . ((isset($_POST["idcompany"])) ? $_POST["idcompany"] : "") . "", "WA_DEFAULT"); + $UpdateQuery->bindColumn("iduser", "i", "" . ((isset($_POST["iduser"])) ? $_POST["iduser"] : "") . "", "WA_DEFAULT"); + $UpdateQuery->bindColumn("labname", "s", "" . ((isset($_POST["labname"])) ? $_POST["labname"] : "") . "", "WA_DEFAULT"); + $UpdateQuery->bindColumn("modifiedon", "s", "" . ((isset($_POST["updateon"])) ? $_POST["updateon"] : "") . "", "WA_DEFAULT"); + + $UpdateQuery->addFilter("idimporttemplates", "=", "i", "" . ($_GET['idimporttemplates']) . ""); + $UpdateQuery->execute(); + $UpdateGoTo = "importifydashboard.php"; + if (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo ? rel2abs($UpdateGoTo, dirname(__FILE__)) : ""; + $UpdateQuery->redirect($UpdateGoTo); +} +?> + +setQuery("SELECT * FROM template_importify WHERE template_importify.idimporttemplates='$idimporttemplates'"); +$updatequery->execute(); + +?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + +
+ + + + + +
+ +
+ + + +
+ +
+ +
+
+
+
+ +
+

EasySpec

+
+
+
+ + +
+
+
+
+
EasySpec:
+ +
+
+ +
+ +
+
+ + " required> +
+
+
+ +
+ +
+
+ + " id="templatedescription"> +
+
+
+ +
+ +
+
+ +
+
+
+ + + +
+ +
+
+ + " id="labname" required> +
+
+
+ + + + + + + + + + + + + + + +
+
+ +
+
+
+ + +
+
+ +
+
+
+
+
+
+ +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file