<?php 
    }
} else {
    echo "Page 2";
}
?>
	</div>
	<div id="mat_pagethree">
	<table class="mat_table table" border="0" cellpadding="8" cellspacing="8">
		<?php 
// Confirmation
// Fields
foreach ($this->fields_p1 as $field) {
    if ($field->type == 'spacer') {
        echo "</table>";
        echo MatukioHelperUtilsBooking::getSpacerField();
        echo "<table class=\"mat_table table\">\n";
    } elseif ($field->type == 'spacertext') {
        // We don't show it on page 3
    } else {
        echo '<tr>';
        echo '<td class="key" width="150px">';
        echo '<label for="' . $field->field_name . '" width="100" title="' . JText::_($field->label) . '">';
        echo JText::_($field->label);
        if ($field->required == 1) {
            echo " <span class=\"mat_req\">*</span>";
        }
        echo '</label>';
        echo '</td>';
        echo '<td>';
        echo MatukioHelperUtilsBooking::getConfirmationfields($field->field_name);