Location: PHPKode > projects > Horizon Blogging Software > templates/firebrick/firebrick_calendar.php
<?php if (!(defined('IN_HBS')) || IN_HBS !== TRUE) { header('Location: 404.php'); exit(); } ?>
<?php if (isset($empty) && $empty===TRUE) { ?>
<div style='width: 98%; background-color: #FFCACA; font-weight: bold; font-family: Verdana; font-size: 14px; padding: 5px; border: 1px dashed #FF0000;' align='center'><div align='center'>No events were found today.</div></div><br />
<?php } else if (isset($list) && $list===TRUE) { ?>
<p>$event_title</p>
<?php } else if (isset($draw) && $draw===TRUE) { ?>
<table align="center" id="Calendar">
<tr><th colspan="7"><?php echo "$monthName $year"; ?></th></tr>
<tr>
<?php foreach ($weekDays as $wd) { ?>
<td class="weekDays"><?=$wd ?></td>
<?php } ?>
</tr>
<?php foreach ($day as $d) { if ($d['nl']===TRUE) {echo '<tr>'; }?>
<?php if ($d['event']===TRUE) { ?>
<td class="<?=$d['class'] ?>"><a href="?year=<?=$d['year'] ?>&amp;month=<?=$d['month'] ?>&amp;day=<?=$d['id'] ?>"><?=$d['id'] ?></a></td>
<?php } else { ?>
<td class="<?=$d['class'] ?>"><?=$d['id'] ?></td>
<?php } if ($d['endl']===TRUE) {echo '</tr>'; }?>
<?php } ?>
</table>
<p>
<center><a href="?year=<?=$prevYear ?>&amp;month=<?=$prevMonth ?>&amp;day=<?=$prevDay ?>">&laquo; Prev</a> |
<a href="?year=<?=$nYear ?>&amp;month=<?=$nMonth ?>&amp;day=<?=$nDay ?>">Next &raquo;</a></center>
</p>
<?php } ?>

Return current item: Horizon Blogging Software