modified pdf1 and tabeldescription

This commit is contained in:
2026-03-17 14:38:43 +01:00
parent 5e5a7483ab
commit 70d39770f8
62 changed files with 1142 additions and 204 deletions
+7 -5
View File
@@ -80,14 +80,16 @@ foreach ($idartchs as $idartch) {
$pdf->Ln();
}
$prevrepLabel = ($_SESSION['langselect'] == 'it') ? 'N. Rapporto Precedente' : 'Previous Report n.';
// Reference certificate number
if (isset($trfData['previousreportnumber']) && trim($trfData['previousreportnumber']) !== '') {
// Stampa la riga
if (!empty($trfData['previousreportnumber'])) {
$prevrepLabel = ($_SESSION['langselect'] == 'it') ? 'N. Rapporto Precedente' : 'Previous Report n.';
$refCertLabel = ($_SESSION['langselect'] == 'it')
? 'Numero del certificato di riferimento'
: 'Reference certificate number';
$pdf->Cell(50, 6, $prevrepLabel, 1, 0, 'L');
$pdf->Cell(50, 6, $refCertLabel, 1, 0, 'L');
$pdf->Cell(140, 6, $trfData['previousreportnumber'], 1, 0, 'L', true);
$pdf->Ln();
}
@@ -103,12 +103,14 @@ foreach ($idartchs as $idartch) {
$pdf->Cell(140, 6, $articleCharacteristic, 1, 0, 'L', TRUE);
$pdf->Ln();
}
$prevrepLabel = ($_SESSION['langselect'] == 'it') ? 'N. Rapporto Precedente' : 'Previous Report n.';
// Stampa la riga
if (!empty($trfData['previousreportnumber'])) {
$prevrepLabel = ($_SESSION['langselect'] == 'it') ? 'N. Rapporto Precedente' : 'Previous Report n.';
$pdf->Cell(50, 6, $prevrepLabel, 1, 0, 'L');
$pdf->Cell(140, 6, $trfData['previousreportnumber'], 1, 0, 'L', true);
// Reference certificate number
$refCertLabel = ($_SESSION['langselect'] == 'it')
? 'Numero del certificato di riferimento'
: 'Reference certificate number';
$pdf->Cell(50, 6, $refCertLabel, 1, 0, 'L');
$pdf->Cell(140, 6, $trfData['previousreportnumber'], 1, 0, 'L', TRUE);
$pdf->Ln();
}
+2 -2
View File
@@ -47,8 +47,8 @@ $pdf->Ln();
include('pdfcreation/headerreporttable.php');
$pdf->Ln();
//header certificate contact
//include('pdfcreation/headercertificatetable.php');
//$pdf->Ln();
include('pdfcreation/headercertificatetable.php');
$pdf->Ln();
//invoice contact
include('pdfcreation/invoicecontacttable.php');
$pdf->Ln();
+2 -2
View File
@@ -38,8 +38,8 @@ $pdf->Ln();
$pdf->Ln();
$pdf->Ln();
//header report contact
//include('pdfcreation/headerreporttable.php');
//$pdf->Ln();
include('pdfcreation/headerreporttable.php');
$pdf->Ln();
//header certificate contact
include('pdfcreation/headercertificatetable.php');
$pdf->Ln();
+3 -3
View File
@@ -39,12 +39,12 @@ $pdf->Ln();
include('pdfcreation/fileattached.php');
$pdf->Ln();
$pdf->Ln();
//header report contact
include('pdfcreation/headerreporttable.php');
$pdf->Ln();
//header certificate contact
include('pdfcreation/headercertificatetable.php');
$pdf->Ln();
//header certificate contact
//include('pdfcreation/headercertificatetable.php');
//$pdf->Ln();
//invoice contact
include('pdfcreation/invoicecontacttable.php');
$pdf->Ln();
+2 -2
View File
@@ -38,8 +38,8 @@ $pdf->Ln();
$pdf->Ln();
$pdf->Ln();
//header report contact
//include('pdfcreation/headerreporttable.php');
//$pdf->Ln();
include('pdfcreation/headerreporttable.php');
$pdf->Ln();
//header certificate contact
include('pdfcreation/headercertificatetable.php');
$pdf->Ln();