Location: PHPKode > projects > ClassroomBookings > system/application/views/profile/profile_index.php
<?php
echo $this->session->flashdata('saved');

$icondata[0] = array('profile/edit', 'Edit my details', 'user_edit.gif' );
$this->load->view('partials/iconbar', $icondata);
?>

<?php if($myroom){ ?>
<h3>Staff bookings in my rooms</h3>
<ul>
<?php
foreach($myroom as $booking){
	$string = '<li>%s is booked on %s by %s for %s. %s</li>';
	if($booking->notes){ $booking->notes = '('.$booking->notes.')'; }
	if(!$booking->displayname){ $booking->displayname = $booking->username; }
	echo sprintf($string, $booking->name, date("d/m/Y", strtotime($booking->date)), $booking->displayname, $booking->periodname, $booking->notes);
}
?>
</ul>
<?php } ?>



<?php if($mybookings){ ?>
<h3>My bookings</h3>
<ul>
<?php
foreach($mybookings as $booking){
	$string = '<li>%s is booked on %s for %s. %s.</li>';
	if($booking->notes){ $notes = '('.$booking->notes.')'; }
	echo sprintf($string, $booking->name, date("d/m/Y", strtotime($booking->date)), $booking->periodname, $notes);
}
?>
</ul>
<?php } ?>


<h3>My total bookings</h3>
<ul>
	<li>Number of bookings ever made: <?php echo $total['all'] ?></li>
	<li>Number of bookings this year to date: <?php echo $total['yeartodate'] ?></li>
	<li>Number of current active bookings: <?php echo $total['active'] ?></li>
</ul>
Return current item: ClassroomBookings