//$outputrow['Spieler 1'] = $tgamesrow['name1']; $outputrow['Spieler/Team 1'] = $dsp->FetchUserIcon($tgamesrow['leaderid1'], "<b>" . $tgamesrow['name1'] . "</b>") . " </br>" . $seat2->SeatNameLink($tgamesrow['leaderid1'], '', '') . ""; //$outputrow['Spieler 2'] = $tgamesrow['name2']; $outputrow['Spieler/Team 2'] = $dsp->FetchUserIcon($tgamesrow['leaderid2'], "<b>" . $tgamesrow['name2'] . "</b>") . " </br>" . $seat2->SeatNameLink($tgamesrow['leaderid2'], '', '') . ""; $outputrow['Turnier'] = "<a href=\"?mod=tournament2&action=details&tournamentid=" . $tgamesrow['tid'] . "\"><b>" . $tgamesrow['tuname'] . "</b></a>"; //$outputrow['Startzeit'] = $tgamesrow['lastactivity']; $tage = array("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"); $outputrow['Startzeit'] = $tage[date('w', strtotime($tgamesrow['lastactivity']))] . " " . date('H:i', strtotime($tgamesrow['lastactivity'])); $outputrow['Spielzeit+</br>Pause'] = $tgamesrow[game_duration] . "+" . $tgamesrow[break_duration] . "min"; $delay = ($tgamesrow['overtime2'] - $tgamesrow['overtime']) / 60; if ($delay >= 120) { $outputrow['cellstyle'] = "background-color:#FF1000;"; $outputrow['Überfällig'] = floor($delay / 60) . "Std " . floor($delay % 60) . "Min"; } elseif ($delay >= 0 and $delay < 120) { $outputrow['cellstyle'] = "background-color:#BD7C85;"; $outputrow['Überfällig'] = floor($delay / 60) . "Std " . floor($delay % 60) . "Min"; } else { $outputrow['Überfällig'] = ceil($delay / 60) . "Std " . ceil($delay % 60) . "Min"; $outputrow['cellstyle'] = "background-color:#00814A;"; } $outputrow['Akt.'] = "<div style=\"text-align:right;\">" . $dsp->AddIcon('search', 'index.php?mod=tournament2&action=submit_result&step=1&tournamentid=' . $tgamesrow['tid'] . '&gameid1=' . $tgamesrow['gid1'] . '&gameid2=' . $tgamesrow['gid2']) . "</div>"; $tgamestable[] = $outputrow; } } $dsp->NewContent(t('Aktuelle Turnierbegegnungen'), t('Aktuelle Turnierbegegnungen sortiert nach Zeit. Überfällige werden Rot markiert.')); if ($tgamestable == NULL) { $dsp->AddSingleRow("Aktuell keine Paarungen vorhanden."); } else { $dsp->AddSingleRow(array_to_table($tgamestable)); } $db->free_result($tgames);
<td><a href="#browscapproperties">Browscap Properties</a></td> <td><a href="#caniusefeaturelist">CanIUse Feature list</a></td> <td><a href="#browsersupportedfeatures">Browser Supported Features</a></td> </tr> </table> <?php //browscap $browserArray = get_object_vars($browser); echo "<h1><a name='browscapproperties'>Browscap properties</a></h1>"; echo "<table><tr><th>Property</th><th>Value</th></tr>" . array_to_table($browserArray) . "</table>"; //features echo "<h1><a name='caniusefeaturelist'>CanIUse Feature list</a></h1>"; echo "<table><tr><th>Key</th><th>Description</th></tr>" . array_to_table($can->featureList()) . "</table>"; //browser supported features echo "<h1><a name='browsersupportedfeatures'>Browser Supported Features</a></h1>"; echo "<table><tr><th>Feature</th><th>Status</th></tr>" . array_to_table($can->browserCan()) . "</table>"; ?> </body> </html> <?php function array_to_table($arr) { $out = ""; foreach ($arr as $key => $value) { $out .= "<tr><td>{$key}</td><td>{$value}</td></tr>"; } return $out; }