Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (17 sloc) 759 Bytes
<?php
if (!isset($currenttab)) {
$currenttab = 'attending';
}
$tabs = array();
$row = array();
$activated = array();
$inactive = array();
$urlparams = "startyear=$startyear&amp;startmonth=$startmonth&amp;startday=$startday&amp;";
$urlparams .= "endyear=$endyear&amp;endmonth=$endmonth&amp;endday=$endday";
$url = "?{$urlparams}";
$row[] = new tabobject('attending',$CFG->wwwroot.'/blocks/facetoface/mysignups.php'.$url,get_string('bookings','block_facetoface'));
$row[] = new tabobject('attendees',$CFG->wwwroot.'/blocks/facetoface/mysessions.php'.$url.'&amp;search=',get_string('sessions','block_facetoface'));
$tabs[] = $row;
$activated[] = $currenttab;
/// Print out the tabs and continue!
print_tabs($tabs, $currenttab, $inactive, $activated);