Beispiel #1
0
    die;
}
?>
<div class="maincontainer">
	<span style="font-size: 1.5em;">Hey there, <b><?php 
echo $_SESSION['username'];
?>
</b></span>
	<table class="userhome">
		<tbody>
			<tr>
				<td style="width: 50%">
					<div class="tile">
						<h2>Recent Activity</h2>
						<?php 
$notifications = NotificationManager::getFromBLID($userObject->getBLID(), 0, 10);
// TODO NotifcationManager::getFromUser(9789, 10);
if ($notifications !== false) {
    foreach ($notifications as $noteId) {
        $noteObject = NotificationManager::getFromId($noteId);
        echo '<div style="background-color: #eee; border-radius: 15px; padding: 15px; margin: 5px;">';
        echo $noteObject->toHTML();
        echo '<br /><span style="font-size: 0.8em;">' . date("M jS Y, g:i A", strtotime($noteObject->getDate())) . '</span>';
        echo '</div>';
    }
}
?>
					</div>
				</td>
				<td>
					<div class="tile">