예제 #1
0
     if (!isset($spiele[$rundenarray][$wrij3['kennung']])) {
         // LIVE ODER ERGEBNIS ANFANG
         if ($wrij3['typ'] == $live_scoring_spieltyp_laeuft && date('d', time()) == date('d', $wrij3['datum'])) {
             $ergebnis_live = 'LIVE';
         } else {
             $ergebnis_live = $wrij3['ergebnis'];
         }
         // LIVE ODER ERGEBNIS ENDE
         $ergebnis_string = '<a href="/spielbericht.php?id=' . $wrij3['id'] . '">' . $ergebnis_live . '</a>';
         $spiele[$rundenarray][$wrij3['kennung']] = array('team1' => $wrij3['team1'], 'team2' => $wrij3['team2'], 'ergebnis1' => $ergebnis_string, 'ergebnis2' => '');
     } else {
         // LIVE ODER ERGEBNIS ANFANG
         if ($wrij3['typ'] == $live_scoring_spieltyp_laeuft && date('d', time()) == date('d', $wrij3['datum'])) {
             $ergebnis_live = 'LIVE';
         } else {
             $ergebnis_live = ergebnis_drehen($wrij3['ergebnis']);
         }
         // LIVE ODER ERGEBNIS ENDE
         $ergebnis_string = '<a href="/spielbericht.php?id=' . $wrij3['id'] . '">' . $ergebnis_live . '</a>';
         $spiele[$rundenarray][$wrij3['kennung']]['ergebnis2'] = $ergebnis_string;
     }
 }
 // 5-JAHRES-WERTUNG ANFANG
 $tore_ha = explode(':', $wrij3['ergebnis'], 2);
 if ($tore_ha[0] != '-') {
     // wenn das Ergebnis nicht -:- ist
     if ($tore_ha[0] > $tore_ha[1]) {
         $punkte_der_ligen[$team_ids[$wrij3['team1']][1]] += 2;
     } elseif ($tore_ha[1] > $tore_ha[0]) {
         $punkte_der_ligen[$team_ids[$wrij3['team2']][1]] += 2;
     } else {
예제 #2
0
     echo '<td colspan="3" style="font-weight:bold;">' . __('Spieltag %d', $currentSpieltag) . '</td></tr><tr><td>&nbsp;</td>';
     // Zeile mit Spieltag einschieben
     $counter++;
     // Zeilen-Counter erhöhen
     if (isset($spieltagDescription[$currentSpieltag]) && is_array($spieltagDescription[$currentSpieltag])) {
         // Zeile mit Spieltags-Beschreibung einschieben
         foreach ($spieltagDescription[$currentSpieltag] as $special_date) {
             echo '<td colspan="3" style="font-weight:bold;">' . $special_date . '</td></tr><tr><td>&nbsp;</td>';
             $counter++;
             // Zeilen-Counter erhöhen
         }
     }
 }
 echo '<td>' . __('%s Uhr', date('H:i', getTimestamp('-1 hour', $sql3['datum']))) . '</td><td>' . substr($sql3['typ'], 0, 1) . ': ';
 if ($sql3['team1'] != $chosenTeam) {
     $ergebnis = ergebnis_drehen($sql3['ergebnis']);
     $gegner = $sql3['team1'];
     $zusatz = ' ' . _('(A)');
 } else {
     $ergebnis = $sql3['ergebnis'];
     $gegner = $sql3['team2'];
     $zusatz = ' ' . _('(H)');
 }
 $sql4 = "SELECT ids FROM " . $prefix . "teams WHERE name = '" . $gegner . "'";
 $sql5 = mysql_query($sql4);
 $sql6 = mysql_fetch_assoc($sql5);
 $sql6 = $sql6['ids'];
 // LIVE ODER ERGEBNIS ANFANG
 if ($sql3['typ'] == $live_scoring_spieltyp_laeuft && date('d', time()) == date('d', $sql3['datum'])) {
     $ergebnis_live = 'LIVE';
 } else {
예제 #3
0
 $randomHint = eval($tipps_des_tages[$randomHintIndex]);
 echo $randomHint;
 echo '</p></div>';
 if ($cookie_team != '__' . $cookie_id) {
     $nextGamesHTML = '<h1>' . _('Nächste Spiele') . '</h1><div class="left-box navBlockLinks matchList">';
     $nxt3_zeit = mktime(0, 0, 0, date('m', time()), date('d', time()), date('Y', time()));
     $nxt1 = "SELECT id, team1, team2, ergebnis, typ, datum FROM " . $prefix . "spiele WHERE (team1 = '" . $cookie_teamname . "' OR team2 = '" . $cookie_teamname . "') AND (datum > " . $nxt3_zeit . ") ORDER BY datum ASC LIMIT 0, 5";
     $nxt2 = mysql_query($nxt1);
     while ($nxt3 = mysql_fetch_assoc($nxt2)) {
         if ($nxt3['team1'] == $cookie_teamname) {
             $nxt3_gegner = $nxt3['team2'];
             $nxt3_ergebnis = $nxt3['ergebnis'];
             $homeGuest = '<img width="16" src="/images/house.png" style="vertical-align:middle;">';
         } else {
             $nxt3_gegner = $nxt3['team1'];
             $nxt3_ergebnis = ergebnis_drehen($nxt3['ergebnis']);
             $homeGuest = '<img width="16" src="/images/car.png" style="vertical-align:middle;">';
         }
         // LIVE ODER ERGEBNIS ANFANG
         if ($nxt3['typ'] == $live_scoring_spieltyp_laeuft && date('d', time()) == date('d', $nxt3['datum'])) {
             $ergebnis_live = 'LIVE';
             $lastActionZusatz = '#lastAction';
         } else {
             $ergebnis_live = $nxt3_ergebnis;
             $lastActionZusatz = '';
         }
         // LIVE ODER ERGEBNIS ENDE
         $nxt3_typ = substr($nxt3['typ'], 0, 1);
         $nextGamesHTML .= '<a href="/spielbericht.php?id=' . $nxt3['id'] . $lastActionZusatz . '">' . $homeGuest . ' ' . $nxt3_typ . ': ' . $nxt3_gegner . ' (' . $ergebnis_live . ')</a>';
     }
     $nextGamesHTML .= '</div>';
예제 #4
0
    echo _('Vereinbarte Testspiele');
    ?>
</h1>
<?php 
    $an1 = "SELECT id, team1, team2, datum, ergebnis, typ FROM " . $prefix . "spiele WHERE typ = 'Test' AND (team1 = '" . $cookie_teamname . "' OR team2 = '" . $cookie_teamname . "') ORDER BY datum ASC";
    $an2 = mysql_query($an1);
    $an2a = mysql_num_rows($an2);
    if ($an2a > 0) {
        echo '<p><table><thead><tr class="odd"><th scope="col">' . _('Gegner') . '</th><th scope="col">' . _('Datum') . '</th><th scope="col">' . _('Ergebnis') . '</th></tr></thead><tbody>';
        while ($an3 = mysql_fetch_assoc($an2)) {
            if ($an3['team1'] == $cookie_teamname) {
                $an3_gegner = $an3['team2'];
                $an3_ergebnis = $an3['ergebnis'];
            } else {
                $an3_gegner = $an3['team1'];
                $an3_ergebnis = ergebnis_drehen($an3['ergebnis']);
            }
            // LIVE ODER ERGEBNIS ANFANG
            if ($an3['typ'] == $live_scoring_spieltyp_laeuft && date('d', time()) == date('d', $an3['datum'])) {
                $ergebnis_live = _('LIVE');
            } else {
                $ergebnis_live = $an3_ergebnis;
            }
            // LIVE ODER ERGEBNIS ENDE
            echo '<tr>';
            echo '<td>' . $an3_gegner . '</td>';
            echo '<td>' . date('d.m.Y', $an3['datum']) . '</td>';
            echo '<td class="link"><a href="/spielbericht.php?id=' . $an3['id'] . '">' . $ergebnis_live . '</a></td>';
            echo '</tr>';
        }
        echo '</tbody></table></p>';
예제 #5
0
// HIN-RUCKRUNDEN-ERGEBNIS ANFANG
$hinrueckStr = '';
if ($sql3['typ'] == 'Liga') {
    $hinrueck1 = "SELECT id, datum, ergebnis FROM " . $prefix . "spiele WHERE team1 = '" . $sql3['team2'] . "' AND team2 = '" . $sql3['team1'] . "' AND typ = 'Liga'";
    $hinrueck2 = mysql_query($hinrueck1);
    if (mysql_num_rows($hinrueck2) == 1) {
        $hinrueck3 = mysql_fetch_assoc($hinrueck2);
        if ($live_scoring_spieltyp_laeuft == 'Liga' && date('d.m.Y', time()) == date('d.m.Y', $hinrueck3['datum'])) {
            $hinrueckStr = 'LIVE';
        } else {
            if ($hinrueck3['datum'] > $sql3['datum']) {
                $hinRueckCase = 'Rückrunde';
            } else {
                $hinRueckCase = 'Hinrunde';
            }
            $hinrueckStr = ' (<a href="/spielbericht.php?id=' . $hinrueck3['id'] . '">' . $hinRueckCase . ': ' . ergebnis_drehen($hinrueck3['ergebnis']) . '</a>)';
        }
    }
}
// HIN-RUCKRUNDEN-ERGEBNIS ENDE
?>
<table>
<thead>
<tr class="odd">
<th scope="col"><?php 
echo _('Bereich');
?>
</th>
<th scope="col"><?php 
echo _('Wert');
?>