Example #1
0
function outputSingleDayEvents($daysEvents, $dayOfWeek, $daylink)
{
    echo '<div class="single-day" id="day-' . $daylink . '">';
    usort($daysEvents, cmpEventLength);
    foreach ($daysEvents as $event) {
        if ($event != null) {
            displayEvent($event);
        }
    }
    echo '</div>';
}
Example #2
0
<?php

/**
 * feed.php: utility script to display an abbreviated newsfeed on the supervisor page.
 */
ob_start();
require '../db.php';
require '../functions.php';
ob_end_clean();
?>
<html>
<head>                                  
<link rel="stylesheet" type="text/css" href="../resources/fcn.css"/>
</head>
                <?php 
$query = $dbh->prepare("SELECT * FROM events ORDER BY date DESC LIMIT 20");
$query->execute();
while ($row = $query->fetch()) {
    echo displayEvent($row, $CONTEXT_EVENT_FEED);
}
?>
</html>