当前位置: 首页>>代码示例>>PHP>>正文


PHP CLMText::getPosString方法代码示例

本文整理汇总了PHP中CLMText::getPosString方法的典型用法代码示例。如果您正苦于以下问题:PHP CLMText::getPosString方法的具体用法?PHP CLMText::getPosString怎么用?PHP CLMText::getPosString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CLMText的用法示例。


在下文中一共展示了CLMText::getPosString方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: chr

         }
     }
     $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) == '&frac12') {
                 $czelle = chr(189);
             } else {
                 $czelle = CLMText::getResultString($this->matrix[$this->players[$p]->snr][$this->posToPlayers[$rnd]][1]->ergebnis, 0);
             }
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:31,代码来源:rangliste_pdf.php

示例2: CLMcLink

     $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>';
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:31,代码来源:default.php

示例3: floor

        echo '</td>';
        // TWZ-Schnitt
        echo '<td class="tp_col_4">';
        if ($this->player->countTWZplayers > 0) {
            echo '&Oslash;&nbsp;' . 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 
    }
    ?>
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:31,代码来源:default.php

示例4: CLMcLink

 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);
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:31,代码来源:default.php


注:本文中的CLMText::getPosString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。