Example #1
0
// CLM-Container
echo '<div ><div id="turnier_paarungsliste">';
// componentheading vorbereiten
$heading = $this->turnier->name . ": " . JText::_('TOURNAMENT_PAIRINGLIST');
if ($this->turnier->published == 0) {
    echo CLMContent::componentheading($heading);
    echo CLMContent::clmWarning(JText::_('TOURNAMENT_NOTPUBLISHED') . "<br/>" . JText::_('TOURNAMENT_PATIENCE'));
} elseif ($this->turnier->rnd == 0) {
    echo CLMContent::componentheading($heading);
    require_once JPATH_COMPONENT . DS . 'includes' . DS . 'submenu_t.php';
    echo CLMContent::clmWarning(JText::_('TOURNAMENT_NOROUNDS'));
} else {
    // PDF-Link
    echo CLMContent::createPDFLink('turnier_paarungsliste', JText::_('TOURNAMENT_PAIRINGLIST_PRINT'), array('turnier' => $this->turnier->id, 'layout' => 'paarungsliste'));
    if ($jid != 0) {
        echo CLMContent::createPGNLink('turnier_paarungsliste', JText::_('TOURNAMENT_PGN_ALL'), array('turnier' => $this->turnier->id));
    }
    echo CLMContent::componentheading($heading);
    require_once JPATH_COMPONENT . DS . 'includes' . DS . 'submenu_t.php';
    $turParams = new clm_class_params($this->turnier->params);
    // alle Runden durchgehen
    foreach ($this->rounds as $value) {
        // published?
        if ($value->published == 1) {
            // Table aufziehen
            echo '<table cellpadding="0" cellspacing="0" class="runde">';
            // Kopfzeile
            echo '<tr><td colspan="9">';
            echo '<div style="text-align:left; padding-left:1%">';
            echo '<b>';
            echo $value->name;
Example #2
0
    ?>
    
    <?php 
}
?>
    
    <div id="pdf">
	
	<?php 
// PGN eigene Paarung
if ($params['pgntype'] > 0 and $jid != 0 and $club_jid == true) {
    echo CLMContent::createPGNLink('runde', JText::_('ROUND_PGN_CLUB'), array('saison' => $liga[0]->sid, 'liga' => $liga[0]->id, 'runde' => $runde, 'dg' => $dg));
}
// PGN gesamte Runde
if ($params['pgntype'] > 0 and $jid != 0) {
    echo CLMContent::createPGNLink('runde', JText::_('ROUND_PGN_ALL'), array('saison' => $liga[0]->sid, 'liga' => $liga[0]->id, 'runde' => $runde, 'dg' => $dg), 2);
}
// PDF
echo CLMContent::createPDFLink('runde', JText::_('PDF_ROUND'), array('saison' => $liga[0]->sid, 'layout' => 'runde', 'liga' => $liga[0]->id, 'runde' => $runde_orig, 'dg' => $dg));
?>
	<?php 
if ($liga[0]->runden_modus != 4 or isset($liga[$runde - 1]->datum) and $liga[$runde - 1]->datum > '2014-05-31') {
    ?>
		<div class="pdf"><a href="index.php?option=com_clm&view=runde&Itemid=<?php 
    echo $item;
    ?>
&saison=<?php 
    echo $liga[0]->sid;
    ?>
&liga=<?php 
    echo $liga[0]->id;
Example #3
0
    echo CLMContent::componentheading($heading);
    require_once JPATH_COMPONENT . DS . 'includes' . DS . 'submenu_t.php';
    echo CLMContent::clmWarning(JText::_('TOURNAMENT_ROUNDNOTPUBLISHED'));
    // Turnier/Runde kann ausgegeben werden
} else {
    $turParams = new clm_class_params($this->turnier->params);
    if ($this->round->datum != "0000-00-00" and $turParams->get('displayRoundDate', 1) == 1) {
        $heading .= ',&nbsp;' . JHTML::_('date', $this->round->datum, JText::_('DATE_FORMAT_CLM_F'));
        if (isset($this->round->startzeit) and $this->round->startzeit != '00:00:00') {
            $heading .= '  ' . substr($this->round->startzeit, 0, 5) . ' Uhr';
        }
    }
    // PDF-Link
    echo CLMContent::createPDFLink('turnier_runde', JText::_('PDF_TOURNAMENTROUND'), array('turnier' => $this->turnier->id, 'layout' => 'runde', 'dg' => $this->round->dg, 'runde' => $this->round->nr));
    if ($jid != 0) {
        echo CLMContent::createPGNLink('turnier_runde', JText::_('ROUND_PGN_ALL'), array('turnier' => $this->turnier->id, 'dg' => $this->round->dg, 'runde' => $this->round->nr));
    }
    echo CLMContent::componentheading($heading);
    require_once JPATH_COMPONENT . DS . 'includes' . DS . 'submenu_t.php';
    // Table aufziehen
    echo '<table cellpadding="0" cellspacing="0" class="runde">';
    // Kopfzeile
    echo '<tr><td colspan="9">';
    echo '<div style="text-align:left; padding-left:1%">';
    echo '<b>' . $this->round->name . '</b>';
    echo '</div>';
    echo '</td></tr>';
    // Ende Kopfzeile
    // headers
    ?>