CMXX - dealers
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user