diff --git a/includes/header.php b/includes/header.php index e6dabb2..0bad15e 100755 --- a/includes/header.php +++ b/includes/header.php @@ -26,6 +26,6 @@ \ No newline at end of file diff --git a/save_dataset.php b/save_dataset.php deleted file mode 100755 index dc18940..0000000 --- a/save_dataset.php +++ /dev/null @@ -1,30 +0,0 @@ -alert('Dataset guardado exitosamente.'); window.location.href = 'gestor_dataset.php?table=$table_name';"; -} diff --git a/add_dataset.php b/server_side/add_dataset.php similarity index 92% rename from add_dataset.php rename to server_side/add_dataset.php index f50fdc6..96a89d3 100644 --- a/add_dataset.php +++ b/server_side/add_dataset.php @@ -1,5 +1,5 @@ - - + + alert('Registro eliminado exitosamente.'); window.location.href = 'gestor_dataset.php?table=$table_name';"; + echo ""; } else { die("Error al eliminar el registro: " . mysqli_error($conn)); } diff --git a/edit.php b/server_side/edit.php similarity index 88% rename from edit.php rename to server_side/edit.php index e509c93..9a71c70 100755 --- a/edit.php +++ b/server_side/edit.php @@ -1,14 +1,14 @@ - +
@@ -63,4 +63,4 @@ if (isset($_POST['update_dataset'])) {
- \ No newline at end of file + \ No newline at end of file diff --git a/server_side/index.php b/server_side/index.php index ce36824..987dc46 100644 --- a/server_side/index.php +++ b/server_side/index.php @@ -1,3 +1,10 @@ + + @@ -22,6 +29,11 @@

Datatables server side processing with PHP and MYSQL


+
+ + Agregar Dataset + +
@@ -53,28 +65,28 @@ "table": "" // Pasar el nombre de la tabla } }, - /*"columns": [{ - "data": "instruction" + "columns": [{ + data: 0 }, { - "data": "input" + data: 1 }, { - "data": "output" + data: 2 }, { - "data": "created_ad" + data: 3 }, { - "data": "id", + data: 4, "render": function(data, type, row) { return ` Editar - Eliminar + Eliminar `; } } - ]*/ + ] }); }); diff --git a/server_side/save_dataset.php b/server_side/save_dataset.php new file mode 100755 index 0000000..f5a388b --- /dev/null +++ b/server_side/save_dataset.php @@ -0,0 +1,61 @@ +alert('Dataset guardado exitosamente.'); window.location.href = 'index.php?table=$table_name';"; + exit; +} +?> + + + +
+
+
+
+
Agregar Dataset a la tabla:
+
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+
+
+
+ + \ No newline at end of file