<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ci-hotel</title>
<link rel="stylesheet" href="<?php echo site_url('css/ci-hotel.css') ?>" type="text/css" />
</head>
<body>
<div id="wrap">
<div id="main">
<div id="header">
<div id="site-title">
<h1>ci-hotel</h1>
</div><!-- /site-title -->
</div><!-- /header -->
<div id="content">

<?php if(is_array($hotels)) : ?>
<?php foreach ($hotels as $hotel): ?>
<h2 class="entry_title"><?php echo $hotel['hotel_name'] ?></h2>
<div class="entry_content">
<?php
echo '<a href="' . site_url('hotel/detail/'. $hotel['hotelid']) . '">詳細</a>';
?>
</div><!-- entry_content -->
<?php endforeach;?>
<?php endif;?>

</div><!-- /content -->
</div><!-- /main -->
</div><!-- /wrap -->
<div id="footer">Copyright &copy; 2010 ci-hotel Project</div>

</body>
</html>
