Alan Lam 8 лет назад
Родитель
Сommit
bd554eaeb7
2 измененных файлов с 1 добавлено и 22 удалено
  1. BIN
      public/img/retest.png
  2. 1 22
      template_processing/age_verification/test_pdf.php

BIN
public/img/retest.png


+ 1 - 22
template_processing/age_verification/test_pdf.php

@@ -7,28 +7,7 @@ if($test->retest) {
 	$pdf->SetLeftMargin(83);
 	$pdf->SetY(10);
 
-	$pdf->SetFont("Arial", "B", $header_font_size);
-	$pdf->SetTextColor(0, 0, 255);
-	$pdf->Cell(43, 4, "RETEST", 0, 1);
-
-	$pdf->SetY($pdf->GetY() + 2);
-
-	// Find previous test
-	$previous_test = $test->getPreviousTest();
-	if($previous_test) {
-
-		$previous_test_pass_text = $previous_test->pass ? "PASS" : "FAIL";
-		$previous_test_unix_start = Util::getUnixTimeFromUTC($previous_test->dts_start);
-
-		$previous_test_date = date("d/m/Y", $previous_test_unix_start);
-
-		$pdf->SetFont("Arial", "", $normal_font_size);
-		$pdf->SetTextColor(0, 0, 0);
-		$pdf->Cell(43, 4, "Prev. Test Date: $previous_test_date", 0, 1);
-		$pdf->Cell(43, 4, "Prev. Test Result: $previous_test_pass_text", 0, 1);
-
-	}
-
+	$pdf->Image("public/img/retest.png", 83, $pdf->GetY(), 63);
 }
 
 $pdf->SetLeftMargin(10);