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


PHP CKunenaTools::formatLargeNumber方法代码示例

本文整理汇总了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) {
开发者ID:redigy,项目名称:Kunena-1.6,代码行数:31,代码来源:flat.php

示例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 -->
开发者ID:vuchannguyen,项目名称:hoctap,代码行数:31,代码来源:flat_cats.php

示例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>
开发者ID:rich20,项目名称:mod_kunenastats,代码行数:31,代码来源:default.php

示例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 
}
开发者ID:vuchannguyen,项目名称:hoctap,代码行数:31,代码来源:default.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) {
开发者ID:vuchannguyen,项目名称:hoctap,代码行数:31,代码来源:categories.php

示例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)) {
开发者ID:vuchannguyen,项目名称:hoctap,代码行数:31,代码来源:moderate_messages.php


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