start copy from cimac web

This commit is contained in:
2026-05-14 08:47:13 +02:00
commit dfc6ed40ae
3624 changed files with 899295 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
require_once('../Connections/cmctrfdb.php');
require_once('../webassist/mysqli/rsobj.php');
if (isset($_GET['idtd']) && !empty($_GET['idtd'])) {
$idtd = $_GET['idtd'];
// Query per aggiornare statustd a "Revision" e impostare signnametd e signedontd a NULL
$updateSQL = "UPDATE data_td SET statustd = 'Revision', signnametd = NULL, signedontd = NULL WHERE iddata_td = ?";
$stmt = $cmctrfdb->prepare($updateSQL);
$stmt->bind_param("i", $idtd);
$stmt->execute();
$stmt->close();
// Reindirizza a cstd.php senza variabili
header("Location: cstd.php");
exit();
} else {
// Reindirizza a cstd.php in caso di ID non valido
header("Location: cstd.php");
exit();
}