Files
friendshiptours.org/site/en/bookingrequest_review.php
2015-11-12 19:58:50 -06:00

69 lines
2.9 KiB
PHP

<div class='page-box-center'>
<h2>Review Your Booking Request Information</h2>
<p>
Please review the information that you have entered. Click on the "Edit"
button below if you need to change anything. Otherwise, if everything is
correct, click on the "Submit" button to send us your booking request.
</p>
<form action="bookingrequest.php" method="post" accept-charset="utf-8">
<table class='data_table'>
<?php foreach($this->data['info'] as $key => $val): ?>
<?php if($key == 'review_submit'): continue; ?>
<?php elseif($key == "FirstName"): continue; ?>
<?php elseif($key == "MiddleName"): continue; ?>
<?php elseif($key == "LastName"): continue; ?>
<?php elseif($key == "Gender"): continue; ?>
<?php elseif($key == "Birthdate"): continue; ?>
<?php endif; ?>
<tr>
<td><strong><?php echo ucfirst(str_replace('_',' ',$key)) ?></strong></td>
<td>
<?php echo nl2br($val); ?>
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $val ?>" id="<?php echo $key ?>"/>
</td>
</tr>
<?php if($key == "booked_with_us_before"): ?>
<tr>
<td><strong>Passengers</strong></td>
<td>
<table class='passengers-review'>
<tbody>
<?php for($idx = 0; $idx < count($this->data["info"]["FirstName"]); $idx++): ?>
<?php if(!empty($this->data["info"]["FirstName"][$idx])): ?>
<tr>
<td>
<?php echo $this->data["info"]["FirstName"][$idx] ?>
<input type="hidden" name="FirstName[]" value="<?php echo $this->data["info"]["FirstName"][$idx] ?>" />
</td>
<td>
<?php echo $this->data["info"]["MiddleName"][$idx] ?>
<input type="hidden" name="MiddleName[]" value="<?php echo $this->data["info"]["MiddleName"][$idx] ?>" />
</td>
<td>
<?php echo $this->data["info"]["LastName"][$idx] ?>
<input type="hidden" name="LastName[]" value="<?php echo $this->data["info"]["LastName"][$idx] ?>" />
</td>
<td>
<?php echo $this->data["info"]["Gender"][$idx] ?>
<input type="hidden" name="Gender[]" value="<?php echo $this->data["info"]["Gender"][$idx] ?>" />
</td>
<td>
<?php echo $this->data["info"]["Birthdate"][$idx] ?>
<input type="hidden" name="Birthdate[]" value="<?php echo $this->data["info"]["Birthdate"][$idx] ?>" />
</td>
</tr>
<?php endif; ?>
<?php endfor; ?>
</tbody>
</table>
</td>
</tr>
<?php endif; ?>
<?php endforeach; ?>
</table>
<p>
<input type='submit' value='Edit Information' name='edit' id='edit'/>
<input type="submit" value="Submit Request &rarr;" name='submit' id='submit'/>
</p>
</form>
</div>