<?php
include(dirname(__FILE__) . '/../header.php');
?>
<h2>NNさんの予約リスト</h2>

<?php if(is_array($ress)) : ?>
<table width="100%" border="1px">
<th>resid</th><th>rescode</th><th>予約日</th><th>プラン</th><th>チェックイン</th><th>チェックアウト</th><th>料金</th><th>actions</th>
<?php foreach ($ress as $res): ?>
<tr>
<td><?php echo $res['resid'] ?></td>
<td><?php echo $res['rescode'] ?></td>
<td><?php echo $res['created'] ?></td>
<td><?php echo $res['planid'] ?></td>
<td><?php echo $res['cin'] ?></td>
<td><?php echo $res['cout'] ?></td>
<td><?php echo $res['total_price'] ?></td>
<td>
<?php
echo '<a href="' . site_url('my/resdetail/'. $res['resid']) . '">詳細</a>';
?>
</td></tr>

<?php endforeach;?>
</table>
<?php endif;?>

<?php
include(dirname(__FILE__) . '/../footer.php');
?>
