fixed TF in inglese

This commit is contained in:
2025-09-12 15:15:33 +02:00
parent d106d42c03
commit 18364b7127
22 changed files with 1945 additions and 952 deletions
+12 -7
View File
@@ -831,7 +831,7 @@ $html .= <<<HTML
// Aggiungi qui il codice PHP fornito
while (!$riskquery->atEnd()) {
$risknumber = $riskquery->getColumnVal("risknumber");
$riskname_it = $riskquery->getColumnVal("riskname_it");
$riskname_it = $riskquery->getColumnVal($_SESSION['langselect'] == 'en' ? "riskname_en" : "riskname_it");
$applicable = ($riskquery->getColumnVal("applicable") == "1") ? 'checked' : '';
$customCheckId = "customCheck{$risknumber}";
$covertext = '';
@@ -961,12 +961,17 @@ if ($cemarkup == 'Y' && $fileUploaded) {
$fileDescription = htmlspecialchars($fileDetails['description_fileattached']);
$fileExtension = strtolower(pathinfo($filePath, PATHINFO_EXTENSION));
$textexmark = ($_SESSION['langselect'] === 'en')
? 'FILE (if different from image, the file is included in the zip as an attachment)'
: 'FILE (se diverso da immagine il file è caricato nello zip come allegato)';
$html .= <<<HTML
<tr>
<td class="first-column">FILE (se diverso da immagine il file è caricato nello zip come allegato)</td>
<td>
<tr>
<td class="first-column">$textexmark</td>
<td>
HTML;
if (in_array($fileExtension, ['jpg', 'jpeg', 'png', 'gif'])) {
$html .= "<img src='$filePath' alt='$fileDescription' style='max-height: 200px;'>";
} else {
@@ -1095,15 +1100,15 @@ $html .= <<<HTML
</thead>
<tbody>
<tr>
<td class="first-column">Imballaggio</td>
<td class="first-column">{$packtitle}</td>
<td class="header-data">{$packaging}</td>
</tr>
<tr>
<td class="first-column">Dichiarazione di conformità UE</td>
<td class="first-column">{$dectitle}</td>
<td class="header-data">{$declartext}</td>
</tr>
<tr>
<td class="first-column">Indirizzo del sito web</td>
<td class="first-column">{$webtitle}</td>
<td class="header-data">{$webaddress}</td>
</tr>