switch ($el) {
        case "SEM_NUMBER":
            $html .= "<input type=\"hidden\" name=\"limit\" value=\"" . $this->limit . "\">";
            break;
        case "SEM_SEARCH":
            $html .= "<input type=\"hidden\" name=\"search\" value=\"" . $this->search . "\">";
            break;
        case "SEM_CATEGORIES":
            $html .= "<input type=\"hidden\" name=\"catid\" value=\"" . $this->catid . "\">";
            break;
        case "SEM_TYPES":
            $html .= "<input type=\"hidden\" name=\"dateid\" value=\"" . $this->dateid . "\">";
            break;
    }
}
if ($this->art == 0) {
    $html .= "<input type=\"hidden\" name=\"dateid\" id=\"dateid\" value=\"" . $this->dateid . "\">";
} elseif ($this->art == 1) {
    $html .= "<input type=\"hidden\" name=\"catid\" id=\"catid\" value=\"" . $this->catid . "\">";
} elseif ($this->art == 2) {
    $html .= "<input type=\"hidden\" name=\"catid\" id=\"catid\" value=\"" . $this->catid . "\">";
}
$html .= MatukioHelperUtilsEvents::getHiddenFormElements($this->art, "", "", "", $this->limitstart, 0, "", -1);
$html .= " <input type=\"hidden\" name=\"art\" id=\"hidden_art\" value=\"" . $this->art . "\">";
echo $html;
echo MatukioHelperUtilsBasic::getCopyright();
?>
</form>
</div>
<!-- End Matukio by compojoom.com -->
}
MatukioHelperUtilsEvents::printHeading("{$temp1}", "{$temp2}");
// Anzeige Eingabefelder
echo "</table>";
$html = MatukioHelperUtilsEvents::getEventEdit($this->event, 1, true);
// Anzeige Funktionsknoepfe unten
if (MatukioHelperSettings::getSettings('event_buttonposition', 2) > 0) {
    $html .= MatukioHelperUtilsEvents::getTableHeader(4) . "<tr>" . MatukioHelperUtilsEvents::getTableCell($knopfunten, 'd', 'c', '100%', 'sem_nav_d') . "</tr>" . MatukioHelperUtilsEvents::getTableHeader('e');
}
if ($this->event->published == "") {
    $html .= "\n<input type=\"hidden\" name=\"published\" value=\"1\" />";
} else {
    $html .= "\n<input type=\"hidden\" name=\"published\" value=\"" . $this->event->published . "\" />";
}
$html .= "<input type=\"hidden\" name=\"id\" value=\"" . $this->event->id . "\" />";
$html .= MatukioHelperUtilsEvents::getHiddenFormElements("", $this->catid, $this->search, $this->limit, $this->limitstart, 0, $this->dateid, -1);
echo $html;
?>

	<script type="text/javascript">
		jQuery("#btnSave").click(function(){
			if (jQuery('#adminForm').validationEngine('validate')) {
				jQuery("adminForm").submit();
			}
		});
	</script>

	<input type="hidden" name="option" value="com_matukio"/>
	<input type="hidden" name="view" value="createevent"/>
	<input type="hidden" name="controller" value="createevent"/>
	<input type="hidden" name="task" value="saveevent"/>
            if (MatukioHelperSettings::getSettings('frontend_ratingsystem', 0) > 0) {
                $hinttext = JTEXT::_('COM_MATUKIO_RATING') . "::" . htmlspecialchars($row->comment);
                $htxt = "<img src=\"" . MatukioHelperUtilsBasic::getComponentImagePath() . "240" . $row->grade . ".png\" class=\"editlinktip hasTip\" title=\"" . $hinttext . "\">";
                $html .= MatukioHelperUtilsEvents::getTableCell($htxt, 'd', 'c', '', "sem_row");
            }
        }
        $html .= MatukioHelperUtilsEvents::getTableCell("<img src=\"" . MatukioHelperUtilsBasic::getComponentImagePath() . $bild . "\" border=\"0\" alt=\"" . $altbild . "\">", 'd', 'c', '', "sem_row");
        $html .= "\n</tr>";
    }
} else {
    $spalten = 3;
    if ($this->art == 2) {
        $spalten = 9;
    }
    $html .= "\n<tr>" . MatukioHelperUtilsEvents::getTableCell(JTEXT::_('COM_MATUKIO_NO_BOOKING_FOUND'), 'd', 'l', '', 'sem_row', $spalten) . "</tr>";
}
$html .= MatukioHelperUtilsEvents::getTableHeader('e');
// Hidden fields
if ($this->kurs->nrbooked <= 1 || MatukioHelperSettings::getSettings('frontend_usermehrereplaetze', 1) < 1) {
    $html .= "<input type=\"hidden\" name=\"nrbooked\" value=\"1\" />";
}
$html .= MatukioHelperUtilsEvents::getHiddenFormElements($zurueck[$this->art], $this->catid, $this->search, $this->limit, $this->limitstart, $this->kurs->id, $this->dateid, -1);
// Farbbeschreibungen anzeigen
$html .= MatukioHelperUtilsEvents::getColorDescriptions(JTEXT::_('COM_MATUKIO_PARTICIPANT_ASSURED'), JTEXT::_('COM_MATUKIO_WAITLIST'), JTEXT::_('COM_MATUKIO_NO_SPACE_AVAILABLE'), 1);
// Anzeige Funktionsknoepfe unten
if (MatukioHelperSettings::getSettings('event_buttonposition', 2) > 0) {
    $html .= MatukioHelperUtilsEvents::getTableHeader(4) . "<tr>" . MatukioHelperUtilsEvents::getTableCell($knopfunten, 'd', 'c', '100%', 'sem_nav_d') . "</tr>" . MatukioHelperUtilsEvents::getTableHeader('e');
}
echo $html;
echo "</table>";
echo "</form>";
// Ausgabe der unsichtbaren Formularfelder
// ---------------------------------------
if (MatukioHelperSettings::getSettings('oldbookingform', false)) {
    if ($this->event->nrbooked <= 1 or MatukioHelperSettings::getSettings('frontend_usermehrereplaetze', 1) < 1) {
        $html .= "<input type=\"hidden\" name=\"nrbooked\" value=\"1\">";
    }
}
$this->uidtemp = -1;
if ($this->art == 3) {
    if ($usrid == 0) {
        $this->uidtemp = "";
    } else {
        $this->uidtemp = $usrid;
    }
}
$html .= MatukioHelperUtilsEvents::getHiddenFormElements(3, $this->catid, $this->search, $this->limit, $this->limitstart, $this->event->id, $this->dateid, $this->uidtemp);
echo $html;
echo MatukioHelperUtilsBasic::getCopyright();
// Oldbooking form
if ($this->art != 3) {
    if ($this->art == 1 && MatukioHelperSettings::getSettings('booking_edit', 1)) {
        if ($buchopt[0] == 2 && $buchopt[2][0]->paid == 0) {
            // Buchung bearbeiten
            ?>
			<input type="hidden" name="option" value="com_matukio"/>
			<input type="hidden" name="view" value="event"/>
			<input type="hidden" name="controller" value="event"/>
			<input type="hidden" name="task" value="bookevent"/>
			<input type="hidden" name="booking_id" value="<?php 
            echo $buchopt[2][0]->id;
            ?>