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

<h2>プラン一覧</h2>

<?php if(is_array($plans)) : ?>
<table class="list">
<th>id</th><th>name</th><th>概要</th><th>料金</th><th>actions</th>
<?php foreach ($plans as $plan): ?>
<tr>
<td><?php echo $plan['planid'] ?></td>
<td><?php echo $plan['plan_name'] ?></td>
<td><?php echo $plan['summary'] ?></td>
<td><?php echo number_format($plan['a_basic_price']) ?>円～</td>
<td>
<?php
echo '<a href="' . site_url('plans/detail/'. $plan['planid']) . '">詳細</a>';
?>
</td></tr>

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

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