示例#1
0
			<td class="key" width="80px">
				<?php 
    echo JTEXT::_('COM_MATUKIO_FEES');
    ?>
			</td>
			<td>
				<?php 
    $tmp = MatukioHelperUtilsEvents::getFormatedCurrency($this->event->fees, MatukioHelperSettings::getSettings('currency_symbol', '$'));
    if ($buchopt[0] == 2) {
        if ($buchopt[2][0]->paid == 1) {
            $tmp .= " - " . JTEXT::_('COM_MATUKIO_PAID');
        }
    }
    echo $tmp . " " . JTEXT::_('COM_MATUKIO_PRO_PERSON');
    if (MatukioHelperSettings::getSettings('show_different_fees', 1) && $this->event->different_fees) {
        echo MatukioHelperFees::getFeesShow($this->event);
    }
    ?>
			</td>
		</tr>
	<?php 
}
?>
	<?php 
// Files:
$datfeld = MatukioHelperUtilsEvents::getEventFileArray($this->event);
$htxt = array();
for ($i = 0; $i < count($datfeld[0]); $i++) {
    if ($datfeld[0][$i] != "" and ($datfeld[2][$i] == 0 or $my->id > 0 and $datfeld[2][$i] == 1 or $buchopt[0] == 2 and $datfeld[2][$i] == 2 or $buchopt[2][0]->paid == 1 and $datfeld[2][$i] == 3)) {
        // Still a joke
        $filelink = JRoute::_("index.php?option=com_matukio&view=matukio&task=downloadfile&a6d5dgdee4cu7eho8e7fc6ed4e76z=" . sha1(md5($datfeld[0][$i])) . $this->event->id);
    $htxt = MatukioHelperSettings::getSettings('currency_symbol', '$') . " " . MatukioHelperUtilsEvents::getFormatedCurrency($this->event->fees);
    if (MatukioHelperSettings::getSettings('frontend_usermehrereplaetze', 1) > 0) {
        if ($buchopt[0] != 2) {
            $htxt .= " " . JTEXT::_('COM_MATUKIO_PRO_PERSON');
        }
        if ($buchopt[0] == 2 and $buchopt[2][0]->nrbooked > 1) {
            $htxt = MatukioHelperUtilsEvents::getFormatedCurrency($buchopt[2][0]->payment_brutto, MatukioHelperSettings::getSettings('currency_symbol', '$')) . " (" . $htxt . " " . JTEXT::_('COM_MATUKIO_PRO_PERSON') . ")";
        }
    }
    if ($buchopt[0] == 2) {
        if ($buchopt[2][0]->paid == 1) {
            $htxt .= " - " . JTEXT::_('COM_MATUKIO_PAID');
        }
    }
    if (MatukioHelperSettings::getSettings('show_different_fees', 1) && $this->event->different_fees) {
        $htxt .= MatukioHelperFees::getFeesShow($this->event);
    }
    $html .= MatukioHelperUtilsEvents::getTableCell($htxt, 'd', 'l', '80%', 'sem_rowd') . "</tr>";
}
// Dateien herunterladen
$datfeld = MatukioHelperUtilsEvents::getEventFileArray($this->event);
$htxt = array();
for ($i = 0; $i < count($datfeld[0]); $i++) {
    if ($datfeld[0][$i] != "" and ($datfeld[2][$i] == 0 or $my->id > 0 and $datfeld[2][$i] == 1 or $buchopt[0] == 2 and $datfeld[2][$i] == 2 or $buchopt[2][0]->paid == 1 and $datfeld[2][$i] == 3)) {
        // TODO improve security.. dirks way is a joke.. security by obscurity in opensource!!1
        // index.php?s=" . MatukioHelperUtilsBasic::getRandomChar() . "&amp;option=" . JFactory::getApplication()->input->get('option') . "&amp;task=34&amp;a6d5dgdee4cu7eho8e7fc6ed4e76z="
        // . sha1(md5($datfeld[0][$i])) . $this->event->id .
        $filelink = JRoute::_("index.php?option=com_matukio&view=matukio&task=downloadfile&a6d5dgdee4cu7eho8e7fc6ed4e76z=" . sha1(md5($datfeld[0][$i])) . $this->event->id);
        $htxt[] = "<tr><td style=\"white-space:nowrap;vertical-align:top;\"><span style=\"background-image:url(" . MatukioHelperUtilsBasic::getComponentImagePath() . "0002.png);background-repeat:no-repeat;background-position:2px;padding-left:18px;vertical-align:middle;\" >\n            <a href=\"" . $filelink . "\" target=\"_blank\">" . $datfeld[0][$i] . "</a></span></td><td width=\"80%\" style=\"vertical-align:top;\">" . $datfeld[1][$i] . "</td></tr>";
    }
}