diff --git a/public/contactpopaudit.php b/public/contactpopaudit.php index 2533929..db80638 100644 --- a/public/contactpopaudit.php +++ b/public/contactpopaudit.php @@ -549,30 +549,31 @@ unset($wa_repeatcount);
- "> + " pattern="[0-9]+([\,\.][0-9]{1})?" inputmode="decimal">
- "> + " pattern="[0-9]+([\,\.][0-9]{1})?" inputmode="decimal">
- "> + " pattern="[0-9]+([\,\.][0-9]{1})?" inputmode="decimal">
- "> + " pattern="[0-9]+([\,\.][0-9]{1})?" inputmode="decimal">
- "> + " pattern="[0-9]+([\,\.][0-9]{1})?" inputmode="decimal">
- "> + " pattern="[0-9]+([\,\.][0-9]{1})?" inputmode="decimal">
+
@@ -580,8 +581,9 @@ unset($wa_repeatcount);
- "> + " pattern="[0-9]+([\,\.][0-9]{1})?" inputmode="decimal">
+

diff --git a/public/languages/en/general.php b/public/languages/en/general.php index 1fd88cf..a6b567d 100644 --- a/public/languages/en/general.php +++ b/public/languages/en/general.php @@ -334,3 +334,8 @@ $language_audittitle = "Language to be used for the audit"; $outsourced_processestitle = "Outsourced processes"; $people_involved_title = "Numero persone coinvolte"; $personinvolvedtitle = "Quantity of people involved in PPE-related processes"; +$certificationtypedtitle = "Module D Certification Type Requested"; +$certd_1 = "Initial certification"; +$certd_2 = "Annual certification surveillance"; +$certd_3 = "Renewal"; +$certd_4 = "Extension"; diff --git a/public/languages/en/pdflang.php b/public/languages/en/pdflang.php index 98d7242..1e781c9 100644 --- a/public/languages/en/pdflang.php +++ b/public/languages/en/pdflang.php @@ -94,3 +94,25 @@ $alreradytestedtlab = "Tested by another lab"; $renewdate = "Expiry date renewal certificate"; $producersign = "Manufacturer's signature"; $signtext = "Signature"; +$certificationtypedtitle = "Module D Certification Type Requested"; +$certd_1 = "Initial certification"; +$certd_2 = "Annual certification surveillance"; +$certd_3 = "Renewal"; +$certd_4 = "Extension"; +$activitiestitle = "Activities carried out"; +$designtitle = "Design"; +$salestitle = "Sales"; +$buyertitle = "Purchases"; +$purchasestitle = "Purchases"; +$productiontitle = "Production"; +$customer_caretitle = "Customer care"; +$qualitytitle = "Quality"; +$other_activitytitle = "Other activity (specify)"; +$other_activitypersontitle = "Quantity of people involved"; +$total_workforcetitle = "Total workforce involved"; +$language_audittitle = "Language to be used for the audit"; +$outsourced_processestitle = "Outsourced processes"; +$people_involved_title = "Numero persone coinvolte"; +$personinvolvedtitle = "Quantity of people involved in PPE-related processes"; +$sitentitle = "Place N."; +$totalpersontitle = "Total workforce involved"; diff --git a/public/languages/it/general.php b/public/languages/it/general.php index 31d35c7..9bac04a 100644 --- a/public/languages/it/general.php +++ b/public/languages/it/general.php @@ -338,3 +338,8 @@ $language_audittitle = "Lingua da utilizzare per l'audit"; $outsourced_processestitle = "Processi in outsourcing"; $people_involved_title = "Numero persone coinvolte"; $personinvolvedtitle = "Numero di persone coinvolte nei processi relativi al DPI"; +$certificationtypedtitle = "Tipo certificazione modulo D richiesta"; +$certd_1 = "Certificazione iniziale"; +$certd_2 = "Sorveglianza annuale"; +$certd_3 = "Rinnovo"; +$certd_4 = "Estensione"; diff --git a/public/languages/it/pdflang.php b/public/languages/it/pdflang.php index 4d7c620..b703c10 100644 --- a/public/languages/it/pdflang.php +++ b/public/languages/it/pdflang.php @@ -94,3 +94,26 @@ $alreradytestedtlab = "Testato da altro Lab"; $renewdate = "Data Scadenza Certificato da rinnovare"; $producersign = "Firma del fabbricante"; $signtext = "Firma"; +$certificationtypedtitle = "Tipo certificazione modulo D richiesta"; +$certd_1 = "Certificazione iniziale"; +$certd_2 = "Sorveglianza annuale"; +$certd_3 = "Rinnovo"; +$certd_4 = "Estensione"; +$activitiestitle = "Attività svolte"; +$designtitle = "Progettazione"; +$salestitle = "Commerciale"; +$purchasestitle = "Acquisti"; +$productiontitle = "Produzione"; +$customer_caretitle = "Assistenza clienti"; +$buyertitle = "Acquisti"; +$qualitytitle = "Qualità"; +$other_activitytitle = "Altra attività (specificare)"; +$other_activitypersontitle = "Numero persone coinvolte"; +$total_workforcetitle = "Totale addetti coinvolti"; +$language_audittitle = "Lingua da utilizzare per l'audit"; +$outsourced_processestitle = "Processi in outsourcing"; +$people_involved_title = "Numero persone coinvolte"; +$personinvolvedtitle = "Numero di persone coinvolte nei processi relativi al DPI"; +$certificationtypedtitle = "Tipo certificazione modulo D richiesta"; +$sitentitle = "Sede N."; +$totalpersontitle = "Totale addetti coinvolti"; diff --git a/public/pdf/998rev0applicationform20240919091517.pdf b/public/pdf/998rev0applicationform20240919091517.pdf new file mode 100644 index 0000000..808fe06 Binary files /dev/null and b/public/pdf/998rev0applicationform20240919091517.pdf differ diff --git a/public/pdf/998rev0applicationform20240919091611.pdf b/public/pdf/998rev0applicationform20240919091611.pdf new file mode 100644 index 0000000..c3a63ad Binary files /dev/null and b/public/pdf/998rev0applicationform20240919091611.pdf differ diff --git a/public/pdf/998rev0applicationform20240919091803.pdf b/public/pdf/998rev0applicationform20240919091803.pdf new file mode 100644 index 0000000..aaf122e Binary files /dev/null and b/public/pdf/998rev0applicationform20240919091803.pdf differ diff --git a/public/pdf/998rev0applicationform20240919092346.pdf b/public/pdf/998rev0applicationform20240919092346.pdf new file mode 100644 index 0000000..c86ebe1 Binary files /dev/null and b/public/pdf/998rev0applicationform20240919092346.pdf differ diff --git a/public/pdf/998rev0applicationform20240919093053.pdf b/public/pdf/998rev0applicationform20240919093053.pdf new file mode 100644 index 0000000..3929747 Binary files /dev/null and b/public/pdf/998rev0applicationform20240919093053.pdf differ diff --git a/public/pdf/998rev0applicationform20240919093734.pdf b/public/pdf/998rev0applicationform20240919093734.pdf new file mode 100644 index 0000000..4e0fdc5 Binary files /dev/null and b/public/pdf/998rev0applicationform20240919093734.pdf differ diff --git a/public/pdf/998rev0applicationform20240919094949.pdf b/public/pdf/998rev0applicationform20240919094949.pdf new file mode 100644 index 0000000..6ec5cc1 Binary files /dev/null and b/public/pdf/998rev0applicationform20240919094949.pdf differ diff --git a/public/pdf/998rev0applicationform20240919095258.pdf b/public/pdf/998rev0applicationform20240919095258.pdf new file mode 100644 index 0000000..3af3d90 Binary files /dev/null and b/public/pdf/998rev0applicationform20240919095258.pdf differ diff --git a/public/pdf/998rev0applicationform20240919095459.pdf b/public/pdf/998rev0applicationform20240919095459.pdf new file mode 100644 index 0000000..112bebb Binary files /dev/null and b/public/pdf/998rev0applicationform20240919095459.pdf differ diff --git a/public/pdfcreation/auditablem18b.php b/public/pdfcreation/auditablem18b.php new file mode 100644 index 0000000..5b37a36 --- /dev/null +++ b/public/pdfcreation/auditablem18b.php @@ -0,0 +1,147 @@ + +SetFont('', '', 8); +$pdf->Cell(90, 6, $certificationtypedtitle, 1, 0, 'C'); +$pdf->SetFillColor(232, 242, 255); +$certificationtyped = $trfData['certificationtyped']; + +// Definisci i valori corrispondenti +switch ($certificationtyped) { + case 1: + $certificationtyped_label = $certd_1; + break; + case 2: + $certificationtyped_label = $certd_2; + break; + case 3: + $certificationtyped_label = $certd_3; + break; + case 4: + $certificationtyped_label = $certd_4; + break; + default: + $certificationtyped_label = $certd_1; // Valore predefinito se non corrisponde a nessun caso +} + +// Inserisci la label corretta nel PDF +$pdf->Cell(100, 6, $certificationtyped_label, 1, 0, 'C', TRUE); + +$pdf->Ln(); +$pdf->Ln(); +$kindcont = 'audit'; +// parse contacts data with variable kindofcontacts +$contactsinfo = mysqli_query($cmctrfdb, "SELECT * FROM contacts WHERE contacts.idtrf='$idtrf' AND contacts.kindofcontacts='$kindcont'"); + +// Stampa $audititletop una volta sola all'inizio +$pdf->SetFont('Arial', '', 8); +$pdf->SetTextColor(0, 0, 0); +$pdf->SetFont('', 'B', '10'); +$audititletop = html_entity_decode($auditplacepdf, ENT_QUOTES, 'UTF-8'); +$audititletop = iconv('UTF-8', 'windows-1252', $audititletop); +$pdf->Cell(190, 6, $audititletop, 1, 0, 'C'); +$pdf->Ln(); + +// Inizializza il contatore per il numero sequenziale delle sedi +$sitenumber = 1; + +// Verifica se ci sono dati e itera su ogni record +while ($contactsinfoData = mysqli_fetch_assoc($contactsinfo)) { + $companyname = html_entity_decode($contactsinfoData['companyname'], ENT_QUOTES, 'UTF-8'); + + // Titolo per ogni sede con numero sequenziale + $pdf->SetFont('Arial', '', 10); + $pdf->Cell(190, 6, $sitentitle . " " . $sitenumber, 1, 0, 'C'); + $pdf->Ln(); + + $sitenumber++; // Incrementa il numero sequenziale per ogni sede + + // Stampa dei dati aziendali + $pdf->SetFont('Arial', '', 8); + $pdf->SetTextColor(0, 0, 0); + $pdf->Cell(40, 6, html_entity_decode($companypdf, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->SetFillColor(232, 242, 255); + $pdf->Cell(150, 6, $companyname, 1, 0, 'C', TRUE); + $pdf->Ln(); + $pdf->Cell(40, 6, html_entity_decode($addresspdf, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(150, 6, html_entity_decode($contactsinfoData['address'], ENT_QUOTES, 'UTF-8'), 1, 0, 'C', TRUE); + $pdf->Ln(); + $pdf->Cell(40, 6, html_entity_decode($citypdf, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, html_entity_decode($contactsinfoData['city'], ENT_QUOTES, 'UTF-8'), 1, 0, 'C', TRUE); + $pdf->Cell(40, 6, html_entity_decode($zippdf, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, $contactsinfoData['cap'], 1, 0, 'C', TRUE); + $pdf->Ln(); + $pdf->Cell(40, 6, html_entity_decode($vatpdf, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, $contactsinfoData['piva'], 1, 0, 'C', TRUE); + $pdf->Cell(40, 6, html_entity_decode($countrypdf, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, $contactsinfoData['country'], 1, 0, 'C', TRUE); + $pdf->Ln(); + $pdf->Cell(40, 6, html_entity_decode($phonepdf, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, $contactsinfoData['telephone'], 1, 0, 'C', TRUE); + $pdf->Cell(40, 6, html_entity_decode($emailpdf, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, html_entity_decode($contactsinfoData['email'], ENT_QUOTES, 'UTF-8'), 1, 0, 'C', TRUE); + $pdf->Ln(); + $pdf->Cell(40, 6, html_entity_decode($contactnamepdf, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, html_entity_decode($contactsinfoData['contactname'], ENT_QUOTES, 'UTF-8'), 1, 0, 'C', TRUE); + $pdf->Cell(40, 6, html_entity_decode($contactsurnamepdf, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, html_entity_decode($contactsinfoData['contactsurname'], ENT_QUOTES, 'UTF-8'), 1, 0, 'C', TRUE); + $pdf->Ln(); + + // Calcola il totale delle persone + $totalperson = $contactsinfoData['otheractivitiesperson'] + + $contactsinfoData['purchaseperson'] + + $contactsinfoData['qualityperson'] + + $contactsinfoData['csperson'] + + $contactsinfoData['productionperson'] + + $contactsinfoData['salesperson'] + + $contactsinfoData['projectperson']; + + + + // Stampa dei campi aggiuntivi in modo compatto con label (colonna_title) senza grassetto + $pdf->Cell(40, 6, html_entity_decode($activitiestitle, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(150, 6, html_entity_decode($contactsinfoData['activities'], ENT_QUOTES, 'UTF-8'), 1, 0, 'C', TRUE); + $pdf->Ln(); + + $pdf->Cell(40, 6, html_entity_decode($designtitle, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, $contactsinfoData['projectperson'], 1, 0, 'C', TRUE); + $pdf->Cell(40, 6, html_entity_decode($salestitle, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, $contactsinfoData['salesperson'], 1, 0, 'C', TRUE); + $pdf->Ln(); + + $pdf->Cell(40, 6, html_entity_decode($productiontitle, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, $contactsinfoData['productionperson'], 1, 0, 'C', TRUE); + $pdf->Cell(40, 6, html_entity_decode($customer_caretitle, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, $contactsinfoData['csperson'], 1, 0, 'C', TRUE); + $pdf->Ln(); + + $pdf->Cell(40, 6, html_entity_decode($qualitytitle, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, $contactsinfoData['qualityperson'], 1, 0, 'C', TRUE); + $pdf->Cell(40, 6, html_entity_decode($purchasestitle, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, $contactsinfoData['purchaseperson'], 1, 0, 'C', TRUE); + $pdf->Ln(); + + $pdf->Cell(40, 6, html_entity_decode($other_activitytitle, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, html_entity_decode($contactsinfoData['otheractivities'], ENT_QUOTES, 'UTF-8'), 1, 0, 'C', TRUE); + $pdf->Cell(40, 6, html_entity_decode($other_activitypersontitle, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(55, 6, $contactsinfoData['otheractivitiesperson'], 1, 0, 'C', TRUE); + $pdf->Ln(); + // Stampa il campo Total Persons + $pdf->Cell(60, 6, html_entity_decode($totalpersontitle, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(130, 6, $totalperson, 1, 0, 'C', TRUE); // Campo "Total Persons" + $pdf->Ln(); + $pdf->Cell(60, 6, html_entity_decode($language_audittitle, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(130, 6, html_entity_decode($contactsinfoData['languageforaudit'], ENT_QUOTES, 'UTF-8'), 1, 0, 'C', TRUE); + $pdf->Ln(); + + $pdf->Cell(60, 6, html_entity_decode($outsourced_processestitle, ENT_QUOTES, 'UTF-8'), 1, 0, 'C'); + $pdf->Cell(130, 6, html_entity_decode($contactsinfoData['outsourcing_process'], ENT_QUOTES, 'UTF-8'), 1, 0, 'C', TRUE); + $pdf->Ln(); + + // Spazio vuoto tra i dati delle aziende + $pdf->Ln(6); +} + + +?> diff --git a/public/pdfcreation/pdf5and6.php b/public/pdfcreation/pdf5and6.php index e4ed783..da2e741 100644 --- a/public/pdfcreation/pdf5and6.php +++ b/public/pdfcreation/pdf5and6.php @@ -11,7 +11,11 @@ $pdf->Cell(0, 9, $secondsent, 0, 1); //$pdf->Cell(0,9,$foursent,0,1); // ***start with Audit address //typecert 3 info -include('pdfcreation/auditable.php'); +if ($idcertificate == 5) { + include('pdfcreation/auditable.php'); +} elseif ($idcertificate == 6) { + include('pdfcreation/auditablem18b.php'); +} $pdf->Ln(); //include('pdfcreation/invoicecontacttable.php'); $pdf->Ln(); diff --git a/public/typeofcertificate6.php b/public/typeofcertificate6.php index b0c0a86..dd7ba49 100644 --- a/public/typeofcertificate6.php +++ b/public/typeofcertificate6.php @@ -358,6 +358,12 @@ $idprotectioncategoryJson = json_encode($idproteccategorylistRecord); .table tbody .for-add:nth-child(1) { display: none; } + + .flashing-green { + background-color: #d4edda; + /* Verde chiaro */ + transition: background-color 0.5s ease; + }