$bend = '00:00'; foreach ($b as $bc) { $bend = min(substr($bc['end'], 11, 5), $bend); } if ($aend != $bend) { return $aend < $bend ? -1 : 1; } if (count($a) != $count($b)) { return count($a) < count($b) ? -1 : 1; } if ($a[0]['desc'] != $b[0]['desc']) { return $a[0]['desc'] < $b[0]['desc'] ? -1 : 1; } return 0; } foreach (SouthamptonopendayDataSource::getAllTimetables() as $timetableevent) { // print_r($timetableevent); $subjname[(string) $timetableevent['uri']] = (string) $timetableevent['label']; $subjbroader[(string) $timetableevent['uri']] = (string) $timetableevent['broader']; $timetable[(string) $timetableevent['uri']][substr((string) $timetableevent['start'], 0, 10)][md5($timetableevent['desc'])][] = $timetableevent; } //print_r($timetable); foreach ($subjname as $uri => $name) { $short = str_replace('http://id.southampton.ac.uk/opendays/2012/07/subject/', '', $uri); if ($subjbroader[$uri] == 'Subject') { echo "<li class='" . $subjbroader[$uri] . " subj_" . $short . "'><h2 id='subj_" . $short . "' class='clickable' onclick='chooseSubject(\"" . $name . "\"); updateHash(\"subject\", \"" . $short . "\")' title='Select " . htmlspecialchars($name, ENT_QUOTES) . "'>" . $name . "</h2>"; } else { echo "<li style='display:none' class='" . str_replace(' ', '', $subjbroader[$uri]) . "'><h2>" . $name . "</h2>"; } foreach (array('2012-07-06', '2012-07-07') as $date) { echo "<div class='_{$date}'>";
<ul> <li style='text-align:center'><img style='padding:10px;' src='http://users.ecs.soton.ac.uk/crw104/img/logo/uos.png'/></li> <?php foreach (SouthamptonopendayDataSource::getBookmarks() as $bookmark) { echo "<li title='Jump to " . $bookmark['label'] . "' class='clickable' style='text-align:center' onclick='zoomTo(\"" . $bookmark['area'] . "\", false); updateFunc();'>" . $bookmark['label'] . "</li>"; } ?> </ul>