} } $pdf->Cell(1, $zelle, " ", 0, 1, 'C'); } // Anzahl der Teilnehmer durchlaufen $pdf->SetFont('Times', '', $font); $pdf->SetTextColor(0); if ($p1 == false) { $p1 = true; $pdf->SetFillColor(255); } else { $p1 = false; $pdf->SetFillColor(240); } $pdf->Cell($br00, $zelle, " ", 0, 0, 'C'); $pdf->Cell($br01, $zelle, CLMText::getPosString($this->players[$p]->rankingPos), 1, 0, 'C', 1); if ($turParams->get('displayPlayerSnr', 1) == 1) { $pdf->Cell($br02, $zelle, $this->players[$p]->snr, 1, 0, 'C', 1); } $pdf->Cell($br03, $zelle, utf8_decode($this->players[$p]->name), 1, 0, 'L', 1); $pdf->Cell($br04, $zelle, $this->players[$p]->twz, 1, 0, 'C', 1); for ($rnd = 1; $rnd <= $this->turnier->teil; $rnd++) { if ($rnd == $p + 1) { $pdf->Cell($br11, $zelle, "X", 1, 0, 'C', 1); } else { if (isset($this->matrix[$this->players[$p]->snr][$this->posToPlayers[$rnd]][1]->ergebnis)) { if (substr(CLMText::getResultString($this->matrix[$this->players[$p]->snr][$this->posToPlayers[$rnd]][1]->ergebnis), 0, 7) == '½') { $czelle = chr(189); } else { $czelle = CLMText::getResultString($this->matrix[$this->players[$p]->snr][$this->posToPlayers[$rnd]][1]->ergebnis, 0); }
$link->makeURL(); echo $link->makeLink(JText::_('TOURNAMENT_NUMBERABB')); echo '</div></th>'; } echo '<th class="name"><div>' . JText::_('TOURNAMENT_PLAYERNAME') . '</div></th>'; echo '<th class="twz"><div>' . JText::_('TOURNAMENT_TWZ') . '</div></th>'; echo '</tr>'; // alle Spieler durchgehen for ($p = 0; $p < $this->turnier->teil; $p++) { if ($p % 2 != 0) { $zeilenr = "zeile1"; } else { $zeilenr = "zeile2"; } echo '<tr class="' . $zeilenr . '">'; echo '<td class="rang' . $this->players[$p]->quali . '"><div>' . CLMText::getPosString($this->players[$p]->rankingPos) . '</div></td>'; if ($turParams->get('displayPlayerSnr', 1) == 1) { echo '<td class="tln"><div>' . $this->players[$p]->snr . '</div></td>'; } echo '<td class="name"><div>'; $link = new CLMcLink(); $link->view = 'turnier_player'; $link->more = array('turnier' => $this->turnier->id, 'snr' => $this->players[$p]->snr, 'Itemid' => $itemid); $link->makeURL(); echo $link->makeLink($this->players[$p]->name); echo '</div></td>'; echo '<td class="twz"><div>' . CLMText::formatRating($this->players[$p]->twz) . '</div></td>'; echo '</tr>'; } // Ende Spieler echo '</table></div>';
echo '</td>'; // TWZ-Schnitt echo '<td class="tp_col_4">'; if ($this->player->countTWZplayers > 0) { echo 'Ø ' . floor($this->player->sumTWZ / $this->player->countTWZplayers); if ($this->player->countTWZplayersNone > 0) { echo '<br />(' . CLMText::sgpl($this->player->countTWZplayers, JText::_('TOURNAMENT_PLAYER'), JText::_('TOURNAMENT_PLAYERS'), $complete_string = TRUE) . ')'; } } else { echo '-'; } echo '</td>'; // Pkt echo '<td class="tp_col_5">'; echo $this->player->sum_punkte . " / " . $this->player->countMatchesPlayed; echo '<br />' . CLMText::getPosString($this->player->rankingPos, 2); echo '</td>'; echo '</tr>'; ?> </table> <!--Bereich für pgn-Viewer--> <span id="pgnArea"></span> </td> </tr> </table> <?php } ?>
for ($f = 1; $f <= 3; $f++) { $fwFieldName = 'tiebr' . $f; if ($this->turnier->{$fwFieldName} > 0) { echo '<th class="fw_col">' . JText::_('TOURNAMENT_TIEBR_ABB_' . $this->turnier->{$fwFieldName}) . '</th>'; } } echo '<tr />'; // alle Spieler durchgehen for ($p = 0; $p < $this->turnier->playersCount; $p++) { if ($p % 2 != 0) { $zeilenr = "zeile1"; } else { $zeilenr = "zeile2"; } echo '<tr class="' . $zeilenr . '">'; echo '<td class="rang">' . CLMText::getPosString($this->players[$p]->rankingPos) . '</td>'; if ($turParams->get('displayPlayerTitle', 1) == 1) { echo '<td align="center" class="name_float">' . $this->players[$p]->titel . '</td>'; } echo '<td class="verein">'; $link = new CLMcLink(); $link->view = 'turnier_player'; $link->more = array('turnier' => $this->turnier->id, 'snr' => $this->players[$p]->snr, 'Itemid' => $itemid); $link->makeURL(); echo $link->makeLink($this->players[$p]->name); echo '</td>'; if ($turParams->get('displayPlayerClub', 1) == 1) { if ($this->tourn_linkclub == 1) { $link = new CLMcLink(); $link->view = 'verein'; $link->more = array('saison' => $this->players[$p]->sid, 'zps' => $this->players[$p]->zps, 'Itemid' => $itemid);