<?php
defined('_JEXEC') or die('Restricted access');
$cfg = JEVConfig::getInstance();
$this->data = $data = $this->datamodel->getDayData($this->year, $this->month, $this->day);
$this->Redirectdetail();
$cfg = JEVConfig::getInstance();
$Itemid = JEVHelper::getItemid();
$hasevents = false;
echo '<fieldset><legend class="ev_fieldset">' . JText::_('JEV_EVENTSFORTHE') . '</legend><br />' . "\n";
echo '<table align="center" width="90%" cellspacing="0" cellpadding="5" class="ev_table">' . "\n";
?>
<tr valign="top">
<td colspan="2" align="center" class="cal_td_daysnames">
<!-- <div class="cal_daysnames"> -->
<?php echo JEventsHTML::getDateFormat($this->year, $this->month, $this->day, 0); ?>
<!-- </div> -->
</td>
</tr>
<?php
//DLL show events with a start and finish date first...
for ($h = 0; $h < 24; $h++)
{
if (count($data['hours'][$h]['events']) > 0)
{
$hasevents = true;
$start_time = JEVHelper::getTime($data['hours'][$h]['hour_start']);
$hasevents = true;
echo '<tr><td class="ev_td_left">' . $start_time . '</td>' . "\n";
echo '<td class="ev_td_right"><ul class="ev_ul">' . "\n";
foreach ($data['hours'][$h]['events'] as $row)
{
// //dll trying to test if it is a repeat event or not...
// if ($row->is_repeat()) {
// echo "IS-REPEAT";
// }
$listyle = 'style="border-color:' . $row->bgcolor() . ';"';
echo "<li class='ev_td_li' $listyle>\n";
$this->loadedFromTemplate('icalevent.list_row', $row, 0);
echo "</li>\n";
}
echo "</ul></td></tr>\n";
}
}
// Timeless Events DLL-Last
if (count($data['hours']['timeless']['events']) > 0)
{
$start_time = JText::_('TIMELESS');
$hasevents = true;
echo '<tr><td class="ev_td_left">' . $start_time . '</td>' . "\n";
echo '<td class="ev_td_right"><ul class="ev_ul">' . "\n";
foreach ($data['hours']['timeless']['events'] as $row)
{
$listyle = 'style="border-color:' . $row->bgcolor() . ';"';
echo "<li class='ev_td_li' $listyle>\n";
$this->loadedFromTemplate('icalevent.list_row', $row, 0);
echo "</li>\n";
}
echo "</ul></td></tr>\n";
}
if (!$hasevents)
{
echo '<tr><td class="ev_td_right" colspan="3"><ul class="ev_ul" >' . "\n";
echo "<li class='ev_td_li ev_td_li_noevents' >\n";
echo JText::_('JEV_NO_EVENTS');
echo "</li>\n";
echo "</ul></td></tr>\n";
}
echo '</table><br />' . "\n";
echo '</fieldset><br /><br />' . "\n";
// $this->showNavTableText(10, 10, $num_events, $offset, '');
Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons
Your membership will ensure that JEvents continues to be the best events calendar for Joomla.
GWE Systems Ltd, the company behind JEvents, is excited to announce the preview release of EasyLayouts - the tool that makes it easy to create layouts for your Joomla content and custom fields.
See our blog post for an exciting special offer to our Gold Members