-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkout-view.inc
38 lines (38 loc) · 1.58 KB
/
checkout-view.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<? $keyNum=array(0,1,2,3,4); ?>
<? if ($inventory_checkin!="Yes") { $inventory_checkin="No"; } ?>
<h2>Checking in: <? echo $last_name; ?>, <? echo $first_name; ?></h2>
<h3>Booking #: <? echo $reservation_id; ?></h3>
<form action="<? echo $PHP_SELF; ?>" method="POST">
<input type="hidden" name="activity" value="<? echo $activity; ?>">
<input type="hidden" name="form_action" value="update">
<input type="hidden" name="reservation_id" value="<? echo $reservation_id; ?>">
<input type="hidden" name="last_name" value="<? echo $last_name; ?>">
<input type="hidden" name="first_name" value="<? echo $first_name; ?>">
<input type="hidden" name="room_id" value="<? echo $room_id; ?>">
<table>
<tr><td>Arrival:</td><td><? echo $arrival_date; ?></td></tr>
<tr><td>Departure:</td><td><? echo $departure_date; ?></td></tr>
<tr><td>Room #:</td><td><? echo $room_id; ?></td></tr>
<tr><td>Keys issued: <? echo $keys_out; ?></td><td>Keys returned:
<?
foreach($keyNum AS $key) {
if ($key<=$keys_out) {
?>
<input type="radio" name="keys_in" value="<? echo $key; ?>"><? echo $key; ?>
<? }
}
?>
</td></tr>
<tr><td>Chips issued: <? echo $chips_out; ?></td><td>Chips returned:
<? foreach($keyNum AS $key) { ?>
<? if ($key<=$keys_out) { ?>
<input type="radio" name="chips_in" value="<? echo $key; ?>"><? echo $key; ?>
<? }
}
?>
</td></tr>
<tr><td>Checkin inventory submitted?:</td><td><? echo $inventory_checkin; ?></td></tr>
<tr><td>Checkout inventory complete?:<input type="checkbox" name="inventory_checkout" value="Yes"></td></tr>
<tr><td colspan="2"><input type="submit" value="Checkin"></td></tr>
</table>
</form>