Alan Lam пре 2 година
родитељ
комит
6ee161d14d
1 измењених фајлова са 75 додато и 72 уклоњено
  1. 75 72
      template_processing/age_verification_greene_king/test_pdf.php

+ 75 - 72
template_processing/age_verification_greene_king/test_pdf.php

@@ -140,7 +140,7 @@ else {
 
 <div style="clear: both;"></div>
 
-
+<!-- Page 1 / Machine Test -->
 <div style="float: left; width: 49.25%">
 	<h3 class="section">Gaming Machine Test Details</h3>
 
@@ -218,62 +218,6 @@ else {
 
 	<br />
 
-	<div class="subheader">
-		<strong>Play Details</strong>
-	</div>
-	<div class="wide-field-names">
-		<div class="bl">
-			<div class="field">Machine Played:</div>
-			<div class="value"><?=TestPDF::getValueHtml($values["play_machine"] ?? "")?></div>
-		</div>
-
-		<div class="bl">
-			<div class="field">Machine Position:</div>
-			<div class="value"><?=TestPDF::getValueHtml($values["play_machine_position"] ?? "")?></div>
-		</div>
-
-		<?php
-		$play_jackpot = $values["play_jackpot"] ?? "";
-		if(!empty($play_jackpot)) {
-			$play_jackpot = "£" . number_format($play_jackpot, 2);
-		}
-		?>
-
-		<div class="bl">
-			<div class="field">Jackpot Value:</div>
-			<div class="value"><?=TestPDF::getValueHtml($play_jackpot)?></div>
-		</div>
-
-		<?php
-		$play_machine_stake = $values["play_machine_stake"] ?? "";
-		if(!empty($play_machine_stake)) {
-			$play_machine_stake = "£" . number_format($play_machine_stake, 2);
-		}
-		?>
-
-		<div class="bl">
-			<div class="field">Stake Played:</div>
-			<div class="value"><?=TestPDF::getValueHtml($play_machine_stake)?></div>
-		</div>
-
-		<div class="bl">
-			<div class="field">Minutes Played:</div>
-			<div class="value"><?=TestPDF::getValueHtml($values["play_minutes"] ?? "")?></div>
-		</div>
-
-		<?php
-		$play_spent = $values["play_spent"] ?? "";
-		if(!empty($play_spent)) $play_spent = "£" . number_format($play_spent, 2);
-		?>
-
-		<div>
-			<div class="field">Amount Spent:</div>
-			<div class="value"><?=TestPDF::getValueHtml($play_spent)?></div>
-		</div>
-	</div>
-
-	<br />
-
 	<section>
 		<div class="subheader">
 			<strong>Staff</strong>
@@ -290,9 +234,8 @@ else {
 		<br />
 	</section>
 
-
 </div>
-
+<!-- Page 1 / Alcohol Test -->
 <div style="float: right; width: 49.25%">
 
 	<h3 class="section">Alcohol Test Details</h3>
@@ -355,21 +298,71 @@ else {
 		<strong>Description:</strong><br />
 		<?=TestPDF::getValueHtml($bar_staff_description)?><br />
 		<br />
+	</section>
+
+
+</div>
+
+<div class="clear" style="page-break-before: always"></div>
+
+<!-- Page 2 / Machine Test -->
+<div style="float: left; width: 49.25%">
+	<div class="subheader">
+		<strong>Play Details</strong>
+	</div>
+	<div class="wide-field-names">
+		<div class="bl">
+			<div class="field">Machine Played:</div>
+			<div class="value"><?=TestPDF::getValueHtml($values["play_machine"] ?? "")?></div>
+		</div>
+
+		<div class="bl">
+			<div class="field">Machine Position:</div>
+			<div class="value"><?=TestPDF::getValueHtml($values["play_machine_position"] ?? "")?></div>
+		</div>
 
 		<?php
-		if($receipt_config) {
-			?>
-			<div class="subheader">
-				<strong>Receipt</strong>
-			</div>
-			<img src="var:bar_receipt" width="<?=$receipt_config["width"]?>" height="<?=$receipt_config["height"]?>" alt="" />
-			<?php
+		$play_jackpot = $values["play_jackpot"] ?? "";
+		if(!empty($play_jackpot)) {
+			$play_jackpot = "£" . number_format($play_jackpot, 2);
+		}
+		?>
+
+		<div class="bl">
+			<div class="field">Jackpot Value:</div>
+			<div class="value"><?=TestPDF::getValueHtml($play_jackpot)?></div>
+		</div>
+
+		<?php
+		$play_machine_stake = $values["play_machine_stake"] ?? "";
+		if(!empty($play_machine_stake)) {
+			$play_machine_stake = "£" . number_format($play_machine_stake, 2);
 		}
 		?>
-	</section>
+
+		<div class="bl">
+			<div class="field">Stake Played:</div>
+			<div class="value"><?=TestPDF::getValueHtml($play_machine_stake)?></div>
+		</div>
+
+		<div class="bl">
+			<div class="field">Minutes Played:</div>
+			<div class="value"><?=TestPDF::getValueHtml($values["play_minutes"] ?? "")?></div>
+		</div>
+
+		<?php
+		$play_spent = $values["play_spent"] ?? "";
+		if(!empty($play_spent)) $play_spent = "£" . number_format($play_spent, 2);
+		?>
+
+		<div>
+			<div class="field">Amount Spent:</div>
+			<div class="value"><?=TestPDF::getValueHtml($play_spent)?></div>
+		</div>
+	</div>
 
 	<section>
-		<h3 class="section">ID Stage Reference</h3>
+		<h3 class="subheader">ID Stage Reference</h3>
 
 		<div>
 			<div style="color: green;">1: Challenge on entry</div>
@@ -378,14 +371,24 @@ else {
 			<div style="color: red;">4: Challenge after play</div>
 			<div style="color: red;">5: No challenge</div>
 		</div>
-
-		<br />
 	</section>
 
-
+</div>
+<!-- Page 2 / Alcohol Test -->
+<div style="float: right; width: 49.25%">
+	<?php
+	if($receipt_config) {
+		?>
+		<div class="subheader">
+			<strong>Receipt</strong>
+		</div>
+		<img src="var:bar_receipt" width="<?=$receipt_config["width"]?>" height="<?=$receipt_config["height"]?>" alt="" />
+		<?php
+	}
+	?>
 </div>
 
-<div class="clear" style="page-break-before: always"></div>
+<div class="clear"></div>
 
 <h3 class="section">Other Test Details</h3>