diff --git a/public/userarea/mescole.php b/public/userarea/mescole.php index b8d373d..cb28fa0 100644 --- a/public/userarea/mescole.php +++ b/public/userarea/mescole.php @@ -99,55 +99,62 @@ max-width: 70px; } - /* Nome Uscita */ + /* Nome (interno) */ #tabellaMescole th:nth-child(2), #tabellaMescole td:nth-child(2) { - width: 360px; - max-width: 360px; + width: 240px; + max-width: 240px; } - #tabellaMescole td:nth-child(2) a { + /* Nome Uscita */ + #tabellaMescole th:nth-child(3), + #tabellaMescole td:nth-child(3) { + width: 300px; + max-width: 300px; + } + + #tabellaMescole td:nth-child(3) a { color: #1f2d3d; text-decoration: none; font-weight: 600; } - #tabellaMescole td:nth-child(2) a:hover { + #tabellaMescole td:nth-child(3) a:hover { text-decoration: underline; color: #0d6efd; } /* Q.tà totale */ - #tabellaMescole th:nth-child(3), - #tabellaMescole td:nth-child(3) { - width: 140px; - max-width: 140px; + #tabellaMescole th:nth-child(4), + #tabellaMescole td:nth-child(4) { + width: 130px; + max-width: 130px; } /* Linee */ - #tabellaMescole th:nth-child(4), - #tabellaMescole td:nth-child(4) { - width: 260px; - max-width: 260px; + #tabellaMescole th:nth-child(5), + #tabellaMescole td:nth-child(5) { + width: 220px; + max-width: 220px; } /* Certificati */ - #tabellaMescole th:nth-child(5), - #tabellaMescole td:nth-child(5) { - width: 130px; - max-width: 130px; + #tabellaMescole th:nth-child(6), + #tabellaMescole td:nth-child(6) { + width: 120px; + max-width: 120px; } /* Stato */ - #tabellaMescole th:nth-child(6), - #tabellaMescole td:nth-child(6) { - width: 130px; - max-width: 130px; + #tabellaMescole th:nth-child(7), + #tabellaMescole td:nth-child(7) { + width: 120px; + max-width: 120px; } /* Azioni */ - #tabellaMescole th:nth-child(7), - #tabellaMescole td:nth-child(7) { + #tabellaMescole th:nth-child(8), + #tabellaMescole td:nth-child(8) { width: 190px; max-width: 190px; white-space: normal; @@ -358,6 +365,7 @@ } + @@ -396,6 +404,7 @@ ID + Nome Nome Uscita Q.tà Totale Linee Associate @@ -428,6 +437,7 @@ $sql = " SELECT m.id, + m.nome, m.nomeuscita, m.is_active, IFNULL(q.qty_totale, 0) AS qty_totale, @@ -460,6 +470,7 @@ - - - + - "; } else { while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { @@ -474,7 +485,10 @@ $toggleText = $isActive ? "Disattiva" : "Attiva"; $toggleClass = $isActive ? "btn-outline-warning" : "btn-outline-success"; - $nomeUscitaSafe = htmlspecialchars($row['nomeuscita']); + $nomeUscitaSafe = htmlspecialchars($row['nomeuscita'] ?? ''); + $nomeSafe = trim((string)($row['nome'] ?? '')) !== '' + ? htmlspecialchars($row['nome']) + : ""; $nCert = (int)($row['n_certificati'] ?? 0); $certBadge = $nCert > 0 @@ -483,6 +497,7 @@ echo " {$row['id']} + {$nomeSafe} {$nomeUscitaSafe} @@ -724,28 +739,27 @@
-
> - +
-
- - - - - - - - - - - -
CategoriaTitoloNome FileCaricato ilAzioni
+
+ + + + + + + + + + + +
CategoriaTitoloNome FileCaricato ilAzioni
+
- @@ -762,6 +776,11 @@ order: [ [0, 'desc'] ], + columnDefs: [{ + targets: [7], + orderable: false, + searchable: false + }], pageLength: 25, language: { url: 'https://cdn.datatables.net/plug-ins/1.13.6/i18n/it-IT.json'