<?php
include(dirname(__FILE__) . '/../header.php');
?>
<h2>部屋タイプ</h2>

<?php if(is_array($roomtypes)) : ?>
<table class="list">
<th>id</th><th>部屋名称</th><th>概要</th><th>期間</th><th>受入人数</th>
<?php foreach ($roomtypes as $roomtype): ?>
<tr>
<td><?php echo $roomtype['roomtypeid'] ?></td>
<td><?php echo $roomtype['roomtype_name'] ?></td>
<td><?php echo $roomtype['summary'] ?></td>
<td><?php echo substr($roomtype['start_date'], 0, 10) . '～' . substr($roomtype['end_date'], 0, 10) ?></td>
<td><?php echo $roomtype['guest_min'] . '～' . $roomtype['guest_max'] ?></td>
</tr>
<?php endforeach;?>
</table>
<?php endif;?>
<?php
include(dirname(__FILE__) . '/../footer.php');
?>
