本文整理汇总了PHP中CKunenaTools::formatLargeNumber方法的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaTools::formatLargeNumber方法的具体用法?PHP CKunenaTools::formatLargeNumber怎么用?PHP CKunenaTools::formatLargeNumber使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKunenaTools
的用法示例。
在下文中一共展示了CKunenaTools::formatLargeNumber方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo CKunenaTools::formatLargeNumber(intval($leaf->hits));
?>
</span>
<span class="ktopic-views"> <?php
echo JText::_('COM_KUNENA_GEN_HITS');
?>
</span>
<!-- /Views -->
</td>
<?php
if ($this->showposts) {
?>
<td class="kcol-mid kmycount">
<!-- Posts -->
<span class="ktopic-views-number"><?php
echo CKunenaTools::formatLargeNumber(intval($leaf->mycount));
?>
</span>
<span class="ktopic-views"> <?php
echo JText::_('COM_KUNENA_MY_POSTS');
?>
</span>
<!-- /Posts -->
</td>
<?php
}
?>
<td class="kcol-mid kcol-ktopiclastpost">
<div class="klatest-post-info">
<?php
if ($leaf->ordering != 0) {
示例2:
?>
</span>
<span class="ktopic-views"> <?php
echo JText::_('COM_KUNENA_DISCUSSIONS');
?>
</span>
<!-- /Views -->
</td>
<?php
if ($this->showposts) {
?>
<td class="kcol-mid kmycount">
<!-- Posts -->
<span class="ktopic-views-number"><?php
echo CKunenaTools::formatLargeNumber((int) $leaf->numPosts);
?>
</span>
<span class="ktopic-views"> <?php
echo JText::_('COM_KUNENA_MY_POSTS');
?>
</span>
<!-- /Posts -->
</td>
<?php
}
?>
<td class="kcol-mid kcol-ktopiclastpost">
<div class="klatest-post-info">
<!-- Avatar -->
示例3: elseif
<?php elseif ( $this->type == 'posters' ) : ?>
<?php foreach ( $this->stats as $stat) : ?>
<tr class="krow<?php echo ($i^=1)+1;?>">
<td class="kcol-first"><?php echo CKunenaLink::GetProfileLink($stat->userid, JString::substr ( htmlspecialchars ($stat->username), '0', $this->params->get ( 'titlelength' ) )); ?></td>
<td class="kcol-last"><span class="kstats-hits-bg"><span class="kstats-hits" style="width:<?php echo $this->getBarWidth($stat->posts);?>%;"><?php echo CKunenaTools::formatLargeNumber($stat->posts, 3);?></span></span></td>
</tr>
<?php endforeach; ?>
<?php elseif ( $this->type == 'profiles' ) : ?>
<?php foreach ( $this->stats as $stat) : ?>
<tr class="krow<?php echo ($i^=1)+1;?>">
<td class="kcol-first"><?php echo CKunenaLink::GetProfileLink($stat->user_id, JString::substr ( htmlspecialchars ($stat->user), '0', $this->params->get ( 'titlelength' ) )); ?></td>
<td class="kcol-last"><span class="kstats-hits-bg"><span class="kstats-hits" style="width:<?php echo $this->getBarWidth($stat->hits);?>%;"><?php echo CKunenaTools::formatLargeNumber($stat->hits, 3);?></span></span></td>
</tr>
<?php endforeach; ?>
<?php elseif ( $this->type == 'thanks' ) : ?>
<?php foreach ( $this->stats as $stat) : ?>
<tr class="krow<?php echo ($i^=1)+1;?>">
<td class="kcol-first"><?php echo CKunenaLink::GetProfileLink($stat->id, JString::substr ( htmlspecialchars ($stat->username), '0', $this->params->get ( 'titlelength' ) )); ?></td>
<td class="kcol-last"><span class="kstats-hits-bg"><span class="kstats-hits" style="width:<?php echo $this->getBarWidth($stat->receivedthanks);?>%;"><?php echo CKunenaTools::formatLargeNumber($stat->receivedthanks, 3);?></span></span></td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
</table>
<?php endif; ?>
<?php if ($this->params->get( 'sh_statslink' )) : ?>
<div class="kstats-all"><?php echo CKunenaLink::GetStatsLink(JText::_('MOD_KUNENASTATS_LINK')); ?></div>
<?php endif; ?>
</div>
示例4: foreach
<?php
foreach ($this->stats as $stat) {
?>
<tr class="krow<?php
echo ($i ^= 1) + 1;
?>
">
<td class="kcol-first"><?php
echo CKunenaLink::GetProfileLink($stat->id, JString::substr(htmlspecialchars($stat->username), '0', $this->params->get('titlelength')));
?>
</td>
<td class="kcol-last"><span class="kstats-hits-bg"><span class="kstats-hits" style="width:<?php
echo $this->getBarWidth($stat->receivedthanks);
?>
%;"><?php
echo CKunenaTools::formatLargeNumber($stat->receivedthanks, 3);
?>
</span></span></td>
</tr>
<?php
}
?>
<?php
}
?>
<?php
}
?>
</table>
<?php
}
示例5:
<!-- Number of Topics -->
<span class="kcat-topics-number"><?php
echo CKunenaTools::formatLargeNumber(intval($category->numTopics));
?>
</span>
<span class="kcat-topics"><?php
echo JText::_('COM_KUNENA_GEN_TOPICS');
?>
</span>
<!-- /Number of Topics -->
</td>
<td class="kcol-mid kcol-kcatreplies">
<!-- Number of Replies -->
<span class="kcat-replies-number"><?php
echo CKunenaTools::formatLargeNumber(intval($category->numPosts));
?>
</span>
<span class="kcat-replies"><?php
echo JText::_('COM_KUNENA_GEN_REPLIES');
?>
</span>
<!-- /Number of Replies -->
</td>
<?php
if ($category->numTopics != 0) {
?>
<td class="kcol-mid kcol-kcatlastpost">
<?php
if ($this->config->avataroncat > 0) {
示例6:
if ($mes->name) {
?>
<span class="ktopic-by ks"><?php
echo JText::_('COM_KUNENA_GEN_BY') . ' ' . CKunenaLink::GetProfileLink(intval($mes->userid), $this->escape($mes->name));
?>
</span>
<?php
}
?>
<!-- /By -->
</div>
</td>
<td class="kcol-mid kcol-ktopicviews">
<!-- Views -->
<span class="ktopic-views-number"><?php
echo CKunenaTools::formatLargeNumber(intval($mes->hits));
?>
</span>
<span class="ktopic-views"> <?php
echo JText::_('COM_KUNENA_GEN_HITS');
?>
</span>
<!-- /Views -->
</td>
<td class="kcol-mid">
<?php
echo smile::smileReplace($mes->message, 0, $this->config->disemoticons, smile::getEmoticons(""));
?>
</td>
<?php
if (CKunenaTools::isModerator($this->my->id, $this->catid)) {