baseline 7.4 as-is produzione

This commit is contained in:
2026-09-09 14:32:53 +00:00
commit 71ec465d7a
3638 changed files with 859299 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
<?php␍
␍
// Basic example of PHP script to handle with jQuery-Tabledit plug-in.␍
// Note that is just an example. Should take precautions such as filtering the input data.␍
␍
//header('Content-Type: application/json');␍
␍
include('db-connect.php');␍
␍
$input = filter_input_array(INPUT_POST);␍
␍
if ($input['action'] === 'edit') ␍
{ ␍
$sqlSelect="SELECT * FROM trfstandards WHERE idtrfstandards='" . $input['id'] . "'";␍
$records=mysqli_query($con,$sqlSelect);␍
if(mysqli_num_rows($records)>0){␍
$sql = "UPDATE trfstandards SET idprotectioncategory='" . $input['idprotectioncategory'] . "'" ." , iddpicategory='" . $input['iddpicategory'] . "'" ." WHERE idtrfstandards='" . $input['id'] . "'";␍
mysqli_query($con,$sql);␍
}␍
else {␍
$sql = "INSERT INTO trfstandards SET idtrfdetails ='" . $input['idtrfdetails'] . "', idstandards='" . $input['idstandards'] . "'" ." , idprotectioncategory='" . $input['idprotectioncategory'] . "'" ." , iddpicategory='" . $input['iddpicategory'] . "'";␍
}␍
mysqli_query($con,$sql);␍
␍
␍
} ␍
if ($input['action'] === 'delete') ␍
{␍
mysqli_query($con,"DELETE FROM trfstandards WHERE idtrfstandards='" . $input['id'] . "'");␍
} ␍
␍
␍
//mysqli_close($mysqli);␍
␍
echo json_encode($input);␍
?>␍