} else { $htxt = " "; $htbr = ""; } $html .= MatukioHelperUtilsEvents::getTableCell($htxt, 'h', '', $htbr, "sem_row"); } // Ausgabe der Statusgrafik if (MatukioHelperSettings::getSettings('event_statusgraphic', 2) > 0) { $htxt = " "; // Ampel if (MatukioHelperSettings::getSettings('event_statusgraphic', 2) == 1 and $row->nrbooked > 0) { $htxt = "<img src=\"" . MatukioHelperUtilsBasic::getComponentImagePath() . "230" . $buchopt[3] . ".png\" alt=\"" . $buchopt[1] . "\">"; } elseif (MatukioHelperSettings::getSettings('event_statusgraphic', 2) == 2 and $row->nrbooked > 0) { // Säule if (MatukioHelperSettings::getSettings('frontend_userviewteilnehmer', 0) == 2 and JFactory::getUser()->id and $this->art == 0 or MatukioHelperSettings::getSettings('frontend_userviewteilnehmer', 0) == 1 and $this->art == 0 or MatukioHelperSettings::getSettings('frontend_teilnehmerviewteilnehmer', 0) > 0 and JFactory::getUser()->id and $this->art == 1 or MatukioHelperSettings::getSettings('frontend_ownereditevent', 1) > 0 and $this->art == 2) { $htxt = MatukioHelperUtilsEvents::getProcentBar($row->maxpupil, $buchopt[4], $buchopt[3]); } } $html .= MatukioHelperUtilsEvents::getTableCell($htxt, 'd', 'c', '24', "sem_row"); } $html .= "</tr>"; } } else { $html .= "<tr>"; $html .= MatukioHelperUtilsEvents::getTableCell(JTEXT::_('COM_MATUKIO_NO_EVENT_FOUND'), 'h', '', '100%', 'sem_row'); $html .= "</tr>"; } $html .= "</table>"; $html .= "</table>"; // --------------------------------------- // Ausgabe der Seitennavigation
// Show participants (if allowed) if (MatukioHelperSettings::getSettings('frontend_userviewteilnehmer', 0) == 2 and $user->id > 0 or MatukioHelperSettings::getSettings('frontend_userviewteilnehmer', 0) == 1) { $htxt = " "; if ($event->nrbooked > 0) { $viewteilnehmerlink = JRoute::_("index.php?option=com_matukio&view=participants&cid=" . $event->id . "&art=0"); echo "<div class=\"mat_event_show_bookings\"><a href=\"" . $viewteilnehmerlink . "\"><span class=\"mat_button\" style=\"cursor:pointer;\"\n title=\"" . JTEXT::_('COM_MATUKIO_BOOKINGS') . "\">" . $gebucht->booked . "</span></a></div>"; } } // Status image if (MatukioHelperSettings::getSettings('event_statusgraphic', 2) > 0) { // Ampel if (MatukioHelperSettings::getSettings('event_statusgraphic', 2) == 1 and $event->nrbooked > 0) { echo " <div class=\"mat_event_status_lights\"><img src=\"" . MatukioHelperUtilsBasic::getComponentImagePath() . "230" . $buchopt[3] . ".png\" alt=\"" . $buchopt[1] . "\" class=\"hasTip\" title=\"" . $buchopt[1] . "\" /></div>"; } elseif (MatukioHelperSettings::getSettings('event_statusgraphic', 2) == 2 and $event->nrbooked > 0) { // Säule echo "<div class=\"mat_event_status_column\">" . MatukioHelperUtilsEvents::getProcentBar($event->maxpupil, $buchopt[4], $buchopt[3]) . "</div>"; } } ?> </div> </div> <?php echo "<div style=\"clear:both\"></div>"; echo "</div>"; // Inner echo "</div>"; // End Single Event holder } // End for if (count($this->allEvents) == 0) { echo JTEXT::_('COM_MATUKIO_NO_EVENT_FOUND');