예제 #1
0
	<?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 
        }
        ?>
	<?php 
    }
}
예제 #2
0
?>
</p>

<h2><?php 
echo __('Available entries');
?>
</h2>

<?php 
if (count($activities) == 0) {
    ?>
<p><?php 
    echo __('This user does not have any entry.');
    ?>
</p>
<?php 
} else {
    ?>
<ul class="blocklist">
	<?php 
    foreach ($activities as $activity) {
        ?>
		<?php 
        echo block_item($activity->getName(), array(color_square($activity->getColor()), link_to(__('Select'), 'home/overallIndex?activityId=' . $activity->getId())));
        ?>
	<?php 
    }
    ?>
</ul>
<?php 
}
예제 #3
0
    echo __('Book for another person');
    ?>
</h2>
	<!-- <p><?php 
    // echo __('You may also book for people in the following group(s):')
    ?>
</p> -->
	<ul class="blocklist">
		<?php 
    foreach ($groupsAsLeader as $group) {
        ?>
			<?php 
        if ($group->getMembersCount() > 0) {
            ?>
				<?php 
            echo block_item($group->getName(), array(__('(%count%)', array('%count%' => $group->getMembersCount())), link_to(__('Select'), 'home/usergroupIndex?usergroupId=' . $group->getId())));
            ?>
			<?php 
        }
        ?>
		<?php 
    }
    ?>
	</ul>
	<?php 
}
?>
</div>

<div class="blockbody">
<?php