CMXX - Dealers

This commit is contained in:
“VeLiTi”
2025-04-13 17:16:12 +02:00
parent cb18443af9
commit c3e5873912
25 changed files with 2630 additions and 100 deletions

View File

@@ -86,6 +86,14 @@ if ($create_allowed === 1 && $_POST){
case 'dealers':
//SEND CONTENT TO API
$payload = json_encode($content, JSON_UNESCAPED_UNICODE);
//API call
$api_call = ioServer('/v2/dealers',$payload);
//returns results
$api_response = json_decode($api_call ,true);
//Provide feedback
$log_results[$content['name']] = $api_response['rowID'].' '.$api_response['status'];
break;
}
@@ -217,7 +225,6 @@ $view ='
const processingResults = document.getElementById(\'processingResults\');
const resultsContent = document.getElementById(\'resultsContent\');
const downloadCsvBtn = document.getElementById(\'downloadCsvBtn\');
const tableName = document.getElementById(\'table_name\').value;
// Convert pasted Excel data to HTML table
convertBtn.addEventListener(\'click\', function() {
@@ -283,7 +290,9 @@ $view ='
tableData.push(rowData);
});
// 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));