CMXX - dealers

This commit is contained in:
“VeLiTi”
2025-05-08 13:42:19 +02:00
parent c3e5873912
commit da78217dd9
6 changed files with 226 additions and 50 deletions

View File

@@ -18,6 +18,7 @@ if ($create_allowed === 1 && $_POST){
$tableName = json_decode($_POST['table'],true);
$contents = json_decode($_POST['data'],true);
foreach ($contents as $content){
switch ($tableName) {
@@ -284,7 +285,7 @@ $view ='
cells.forEach((cell, index) => {
if (index < headers.length) {
rowData[headers[index]] = cell.textContent;
rowData[headers[index]] = cell.innerHTML;
}
});
@@ -292,7 +293,7 @@ $view ='
});
// GET TABLE NAME
const tableName = document.getElementById(\'table_name\').value;
// Use standard form submission approach instead of JSON
const form = new FormData();
form.append(\'table\', JSON.stringify(tableName));