예제 #1
0
    }
} else {
    ?>
	<?php 
    foreach ($zones as $zone) {
        ?>
		<?php 
        if ($zone->getDirectRoomsCount($activity->getId(), RoomPeer::getActiveCriteria()) > 0) {
            ?>
			<h3><?php 
            echo $zone->getName();
            ?>
</h3>
			<ul class="blocklist">
				<?php 
            foreach ($zone->getDirectRooms($activity->getId(), RoomPeer::getActiveCriteria()) as $room) {
                ?>
					<?php 
                $features_array = $room->getValuedFeaturesArray();
                ?>

					<?php 
                echo block_item($room->getName(), array(color_square($activity->getColor()), definition_list(array(__('Capacity') => $room->getCapacity(), __('Address') => $room->getAddress())), definition_list($features_array), link_to(__('Select'), 'reservation/index?roomId=' . $room->getId())));
                ?>
				<?php 
            }
            ?>
			</ul>
		<?php 
        }
        ?>