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


PHP CLMText::formatRating方法代码示例

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


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

示例1: CLMcLink

                $link->makeURL();
                echo $link->makeLink($value->wname);
            }
            echo '</td>';
            echo '<td align="center">' . CLMText::formatRating($value->wtwz) . '</td>';
            echo '<td align="center">-</td>';
            echo '<td>';
            if (isset($value->sname)) {
                $link = new CLMcLink();
                $link->view = 'turnier_player';
                $link->more = array('turnier' => $this->turnier->id, 'snr' => $value->gegner, 'Itemid' => $itemid);
                $link->makeURL();
                echo $link->makeLink($value->sname);
            }
            echo '</td>';
            echo '<td align="center">' . CLMText::formatRating($value->stwz) . '</td>';
            if ($value->ergebnis != NULL) {
                echo '<td align="center">';
                if ($value->pgn == '' or !$this->pgnShow) {
                    echo CLMText::getResultString($value->ergebnis);
                } else {
                    echo '<span class="editlinktip hasTip" title="' . JText::_('PGN_SHOWMATCH') . '">';
                    echo '<a onclick="startPgnMatch(' . $value->id . ', \'pgnArea\');" class="pgn">' . CLMText::getResultString($value->ergebnis) . '</a>';
                    echo '</span>';
                    ?>
						<input type='hidden' name='pgn[<?php 
                    echo $value->id;
                    ?>
]' id='pgnhidden<?php 
                    echo $value->id;
                    ?>
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:31,代码来源:default.php

示例2: explode

        echo '<td class="tt_col_7">' . CLMText::formatRating($value->Niveau) . '</td>';
        echo '<td class="tt_col_7">';
        $Pkt = explode(".", $value->Punkte);
        if ($Pkt[1] != "0") {
            if ($Pkt[0] != "0") {
                echo $Pkt[0] . '&frac12;  /  ' . $value->Partien . '</td>';
            } else {
                echo '&frac12;  /  ' . $value->Partien . '</td>';
            }
        } else {
            echo $Pkt[0] . '  /  ' . $value->Partien . '</td>';
        }
        //echo '<td class="tt_col_7">'.CLMText::formatRating($value->Partien).'</td>';
        echo '<td class="tt_col_7">' . CLMText::formatRating($value->DWZ) . '</td>';
        if ($value->DWZ == 0 or $value->start_dwz == 0) {
            echo '<td class="tt_col_7">' . CLMText::formatRating(0) . '</td>';
        } else {
            echo '<td class="tt_col_7">' . ($value->DWZ - $value->start_dwz) . '</td>';
        }
        ?>
		
		</tr>

		<?php 
    }
    echo '</table>';
    if ($dwz_date == "0000-00-00") {
        echo '<div class="hint">' . JText::_('TOURNAMENT_DWZ_DATE_NO') . '</div><br/>';
    } else {
        echo '<div class="hint">' . JText::_('TOURNAMENT_DWZ_DATE') . clm_core::$load->date_to_string($dwz_date, false, false) . '.</div><br/>';
    }
开发者ID:kbaerthel,项目名称:com_clm,代码行数:31,代码来源:default.php

示例3: utf8_decode

    $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('displayPlayerTitle', 1) == 1) {
        $pdf->Cell($br02, $zelle, $this->players[$p]->titel, 1, 0, 'C', 1);
    }
    $pdf->Cell($br03, $zelle, utf8_decode($this->players[$p]->name), 1, 0, 'L', 1);
    if ($turParams->get('displayPlayerClub', 1) == 1) {
        $pdf->Cell($br04, $zelle, utf8_decode($this->players[$p]->verein), 1, 0, 'L', 1);
    }
    $pdf->Cell($br05, $zelle, CLMText::formatRating($this->players[$p]->twz), 1, 0, 'C', 1);
    $pdf->Cell($br06, $zelle, $this->players[$p]->sum_punkte, 1, 0, 'C', 1);
    for ($f = 1; $f <= 3; $f++) {
        $fwFieldName = 'tiebr' . $f;
        $plTiebrField = 'sumTiebr' . $f;
        if ($this->turnier->{$fwFieldName} > 0) {
            $pdf->Cell($br92, $zelle, CLMtext::tiebrFormat($this->turnier->{$fwFieldName}, $this->players[$p]->{$plTiebrField}), 1, 0, 'C', 1);
        }
    }
    $pdf->Cell(1, $zelle, " ", 0, 1, 'C');
}
// Ausgabe
$pdf->Output(utf8_decode(JText::_('TOURNAMENT_TABLE')) . ' ' . utf8_decode($this->turnier->name) . '.pdf', 'D');
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:31,代码来源:tabelle_pdf.php

示例4:

                echo '<td class="tt_col_4">' . $value->verein . '</td>';
            }
        }
        // Federation
        if ($turParams->get('displayPlayerFederation', 0) == 1) {
            echo '<td class="tt_col_5">' . $value->FIDEcco . '</td>';
        }
        // TWZ
        echo '<td class="tt_col_6">' . CLMText::formatRating($value->twz) . '</td>';
        // NATrating
        if ($turParams->get('displayPlayerRating', 0) == 1) {
            echo '<td class="tt_col_7">';
            echo CLMText::formatRating($value->NATrating);
            echo '</td>';
        }
        // FIDEelo
        if ($turParams->get('displayPlayerElo', 0) == 1) {
            echo '<td class="tt_col_8">';
            echo CLMText::formatRating($value->FIDEelo);
            echo '</td>';
        }
        ?>
		
		</tr>

		<?php 
    }
    echo '</table>';
}
require_once JPATH_COMPONENT . DS . 'includes' . DS . 'copy.php';
echo '</div></div>';
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:31,代码来源:default.php

示例5: CLMcLink

                        $link->makeURL();
                        echo $link->makeLink($this->players[$matches->spieler]->name);
                    }
                    echo '</td>';
                    echo '<td align="center">' . CLMText::formatRating($this->players[$matches->spieler]->twz) . '</td>';
                    echo '<td align="center">-</td>';
                    echo '<td>';
                    if (isset($this->players[$matches->gegner]->name)) {
                        $link = new CLMcLink();
                        $link->view = 'turnier_player';
                        $link->more = array('turnier' => $this->turnier->id, 'snr' => $matches->gegner, 'Itemid' => $itemid);
                        $link->makeURL();
                        echo $link->makeLink($this->players[$matches->gegner]->name);
                    }
                    echo '</td>';
                    echo '<td align="center">' . CLMText::formatRating($this->players[$matches->gegner]->twz) . '</td>';
                    if ($matches->ergebnis != NULL) {
                        echo '<td align="center">';
                        if ($matches->pgn == '' or !$this->pgnShow) {
                            echo CLMText::getResultString($matches->ergebnis);
                        } else {
                            echo '<span class="editlinktip hasTip" title="' . JText::_('PGN_SHOWMATCH') . '">';
                            echo '<a onclick="startPgnMatch(' . $matches->id . ', \'pgnArea' . $value->nr . '\');" class="pgn">' . CLMText::getResultString($matches->ergebnis) . '</a>';
                            echo '</span>';
                            ?>
								<input type='hidden' name='pgn[<?php 
                            echo $matches->id;
                            ?>
]' id='pgnhidden<?php 
                            echo $matches->id;
                            ?>
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:31,代码来源:default.php

示例6: CLMcLink

                if ($value->heim == 1) {
                    echo JText::_('TOURNAMENT_WHITE_ABB');
                } else {
                    echo JText::_('TOURNAMENT_BLACK_ABB');
                }
                echo "</td>";
                // Gegner
                echo '<td class="tp_col_3">';
                $link = new CLMcLink();
                $link->view = 'turnier_player';
                $link->more = array('turnier' => $this->turnier->id, 'snr' => $value->gegner, 'Itemid' => $itemid);
                $link->makeURL();
                echo $link->makeLink($value->oppName);
                echo "</td>";
                // TWZ
                echo '<td class="tp_col_4">' . CLMText::formatRating($value->oppTWZ) . "</td>";
                // Ergebnis
                if ($value->ergebnis != '') {
                    echo '<td class="tp_col_5">';
                    if ($value->pgn == '' or !$this->pgnShow) {
                        echo CLMText::getResultString($value->ergebnis, 0);
                    } else {
                        echo '<span class="editlinktip hasTip" title="' . JText::_('PGN_SHOWMATCH') . '">';
                        echo '<a onclick="startPgnMatch(' . $value->id . ', \'pgnArea\');" class="pgn">' . CLMText::getResultString($value->ergebnis, 0) . '</a>';
                        echo '</span>';
                        ?>
							<input type='hidden' name='pgn[<?php 
                        echo $value->id;
                        ?>
]' id='pgnhidden<?php 
                        echo $value->id;
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:31,代码来源:default.php

示例7: CLMcLink

     } 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>';
 // Rechte Spalte
 echo '<div class="righttable' . $rightcol . '">';
 echo '<table cellpadding="0" cellspacing="0" id="righttabletable' . $rightcol . '"';
 if ($fixth_tkreuz == "1") {
     echo 'class="tableWithFloatingHeader"';
 }
 echo '<tr>';
 echo '<th class="fw_col"><div>' . JText::_('TOURNAMENT_POINTS_ABB') . '</div></th>';
 // mgl. Feinwertungen
 for ($f = 1; $f <= 3; $f++) {
     $fwFieldName = 'tiebr' . $f;
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:31,代码来源:default.php

示例8: CLMcLink

                }
                echo "</td>";
                // Club Gegner
                echo '<td class="tp_col_3c">';
                if (isset($value->gegner) and $value->gegner > 0) {
                    $link = new CLMcLink();
                    $link->view = 'verein';
                    $link->more = array('saison' => $this->turnier->sid, 'zps' => $value->oppZPS, 'Itemid' => $itemid);
                    $link->makeURL();
                    echo $link->makeLink($value->oppVerein);
                }
                echo "</td>";
                // TWZ
                echo '<td class="tp_col_4">';
                if (isset($value->oppTWZ) and $value->oppTWZ > 0) {
                    echo CLMText::formatRating($value->oppTWZ);
                }
                echo "</td>";
                // Ergebnis
                if ($value->ergebnis != '') {
                    echo '<td class="tp_col_5">';
                    if ($value->pgn == '' or !$this->pgnShow) {
                        echo CLMText::getResultString($value->ergebnis, 0);
                    } else {
                        echo '<span class="editlinktip hasTip" title="' . JText::_('PGN_SHOWMATCH') . '">';
                        echo '<a onclick="startPgnMatch(' . $value->id . ', \'pgnArea\');" class="pgn">' . CLMText::getResultString($value->ergebnis, 0) . '</a>';
                        echo '</span>';
                        ?>
							<input type='hidden' name='pgn[<?php 
                        echo $value->id;
                        ?>
开发者ID:kbaerthel,项目名称:com_clm,代码行数:31,代码来源:default.php


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