update dossier chekcqual

This commit is contained in:
2025-05-16 18:46:16 +02:00
parent c53c298401
commit fa44531778
405 changed files with 89887 additions and 833 deletions
+39 -20
View File
@@ -37,6 +37,10 @@ if (isset($idtd)) {
}
?>
<?php
if (isset($_GET['idtrf'])) {
$idtrftd = $_GET['idtrf'];
}
$tdquery = new WA_MySQLi_RS("tdquery", $cmctrfdb, 1);
$tdquery->setQuery("SELECT * FROM `trf-details` WHERE `trf-details`.idtrfdetails='$idtrftd'");
@@ -614,8 +618,16 @@ $conn->close();
<input type="hidden" class="form-control-file" id="idtrftd" name="idtrftd" value="<?php echo $idtrftd; ?>">
<!-- Aggiungi altri input o elementi HTML necessari per il caricamento del file -->
<br>
<button type="submit" id="uploadButtonmark1" class="btn btn-primary" <?php echo $fileUploaded ? 'disabled' : ''; ?>>Carica</button>
<button type="submit" id="uploadButtonmark1" class="btn btn-primary" <?php echo $fileUploaded ? 'disabled' : ''; ?>>
Carica
</button>
<span id="loadingSpinner" class="spinner-border spinner-border-sm" role="status" aria-hidden="true" style="display: none;"></span>
<?php if ($fileUploaded): ?>
<small class="text-muted d-block mt-1">
(rimuovi l'immagine presente prima di metterne una nuova / remove the current image before uploading a new one)
</small>
<?php endif; ?>
</form><br><br>
UPLOADED FILES
<?php
@@ -692,30 +704,35 @@ $conn->close();
});
}
});
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('.deleteFileBtn').forEach(button => {
button.addEventListener('click', function(event) {
event.preventDefault(); // Impedisce il comportamento predefinito
event.stopPropagation(); // Impedisce la propagazione dell'evento al form
const fileId = this.getAttribute('data-fileid');
const iddataTd = this.getAttribute('data-iddata');
const idtrf = this.getAttribute('data-idtrf');
document.querySelectorAll('.deleteFileBtn').forEach(button => {
button.addEventListener('click', function() {
const fileId = this.getAttribute('data-fileid');
const iddataTd = this.getAttribute('data-iddata');
const idtrf = this.getAttribute('data-idtrf'); // Aggiungi questa linea
Swal.fire({
title: 'Sei sicuro di voler cancellare questo file?',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Sì, cancella!',
cancelButtonText: 'No, chiudi!'
}).then((result) => {
if (result.isConfirmed) {
window.location.href = 'delete_filetd.php?idfile=' + fileId + '&iddata_td=' + iddataTd + '&idtrf=' + idtrf; // Modifica l'URL
}
Swal.fire({
title: 'Sei sicuro di voler cancellare questo file?',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Sì, cancella!',
cancelButtonText: 'No, chiudi!'
}).then((result) => {
if (result.isConfirmed) {
window.location.href = 'delete_filetd.php?idfile=' + fileId + '&iddata_td=' + iddataTd + '&idtrf=' + idtrf;
}
});
});
});
});
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var handleCemarkSelection = function() {
@@ -986,7 +1003,8 @@ $conn->close();
</script>
<script>
function openPopup2() {
var popupUrl = 'qualcheck.php'; // Sostituisci con il percorso della tua pagina per l'aggiunta dei loghi
var idcompany = '<?php echo $idcompany; ?>';
var popupUrl = 'qualcheck.php?idcompany=' + encodeURIComponent(idcompany);
var popupWidth = 1000;
var popupHeight = 700;
var popupLeft = (screen.width - popupWidth) / 2;
@@ -995,6 +1013,7 @@ $conn->close();
window.open(popupUrl, 'Aggiungi Logo', popupOptions);
}
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
function updateSelectDropdown() {