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

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

<?php if(is_array($plans)) : ?>
<?php foreach ($plans as $plan): ?>
<h2 class="entry_title"><?php echo $plan['plan_name'] ?></h2>
<div class="entry_content">
<?php echo $plan['summary'] ?><br />
料金 :<?php echo number_format($plan['a_basic_price']) ?>円～<br />
提供期間 :
<?php echo substr($plan['start_date'], 0, 10);
echo ' (' . $this->Common_model->week($plan['start_date']) . ')';
echo " ～ " . substr($plan['end_date'], 0, 10);
echo ' (' . $this->Common_model->week($plan['end_date']) . ')';
?><br />
受入人数 :<?php echo $plan['guest_min'] . '～' . $plan['guest_max'] . '人' ?><br />

<?php
echo '<a href="' . site_url('plans/detail/'. $plan['planid']) . '">詳細</a>';
?>
</div><!-- entry_content -->
<?php endforeach;?>
<?php endif;?>

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