本文整理汇总了PHP中CKunenaLink::GetStatsLink方法的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaLink::GetStatsLink方法的具体用法?PHP CKunenaLink::GetStatsLink怎么用?PHP CKunenaLink::GetStatsLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKunenaLink
的用法示例。
在下文中一共展示了CKunenaLink::GetStatsLink方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
<div class="kblock kfrontstats">
<div class="kheader">
<span class="ktoggler"><a class="ktoggler close" title="<?php echo JText::_('COM_KUNENA_TOGGLER_COLLAPSE') ?>" rel="kfrontstats-tbody"></a></span>
<h2><span><?php echo CKunenaLink::GetStatsLink($this->config->board_title.' '.JText::_('COM_KUNENA_STAT_FORUMSTATS'), ''); ?></span></h2>
</div>
<div class="kcontainer" id="kfrontstats-tbody">
<div class="kbody">
<table class = "kblocktable" id ="kfrontstats">
<tr class="krow1">
<td class = "kcol-first">
<div class="kstatsicon"></div>
</td>
<td class="kcol-mid km">
<ul id="kstatslistright" class="fltrt kright">
<li><?php echo JText::_('COM_KUNENA_STAT_TOTAL_USERS'); ?>: <strong><?php echo CKunenaLink::GetUserlistLink('', $this->memberCount) ?></strong> <span class="divider">|</span> <?php echo JText::_('COM_KUNENA_STAT_LATEST_MEMBERS'); ?>: <strong><?php echo $this->latestMemberLink ?></strong></li>
<li> </li>
<li><?php echo CKunenaLink::GetUserlistLink('', JText::_('COM_KUNENA_STAT_USERLIST').' »') ?></li>
<li><?php if ($this->config->showpopuserstats || $this->config->showpopsubjectstats) echo CKunenaLink::GetStatsLink(JText::_('COM_KUNENA_STAT_MORE_ABOUT_STATS').' »');?></li>
</ul>
<ul id="kstatslistleft" class="fltlft">
<li><?php echo JText::_('COM_KUNENA_STAT_TOTAL_MESSAGES'); ?>: <strong> <?php echo intval($this->messageCount); ?></strong> <span class="divider">|</span> <?php echo JText::_('COM_KUNENA_STAT_TOTAL_SUBJECTS'); ?>: <strong><?php echo intval($this->topicCount); ?></strong></li>
<li><?php echo JText::_('COM_KUNENA_STAT_TOTAL_SECTIONS'); ?>: <strong><?php echo intval($this->sectionCount); ?></strong> <span class="divider">|</span> <?php echo JText::_('COM_KUNENA_STAT_TOTAL_CATEGORIES'); ?>: <strong><?php echo intval($this->categoryCount); ?></strong></li>
<li><?php echo JText::_('COM_KUNENA_STAT_TODAY_OPEN_THREAD'); ?>: <strong><?php echo $this->todayTopicCount; ?></strong> <span class="divider">|</span> <?php echo JText::_('COM_KUNENA_STAT_YESTERDAY_OPEN_THREAD'); ?>: <strong><?php echo intval($this->yesterdayTopicCount); ?></strong></li>
<li><?php echo JText::_('COM_KUNENA_STAT_TODAY_TOTAL_ANSWER'); ?>: <strong><?php echo intval($this->todayReplyCount); ?></strong> <span class="divider">|</span> <?php echo JText::_('COM_KUNENA_STAT_YESTERDAY_TOTAL_ANSWER'); ?>: <strong><?php echo intval($this->yesterdayReplyCount); ?></strong></li>
</ul>
</td>
</tr>
</table>
</div>
</div>
</div>
示例2:
echo $this->getBarWidth($stat->receivedthanks);
?>
%;"><?php
echo CKunenaTools::formatLargeNumber($stat->receivedthanks, 3);
?>
</span></span></td>
</tr>
<?php
}
?>
<?php
}
?>
<?php
}
?>
</table>
<?php
}
?>
<?php
if ($this->params->get('sh_statslink')) {
?>
<div class="kstats-all"><?php
echo CKunenaLink::GetStatsLink(JText::_('MOD_KUNENASTATS_LINK'));
?>
</div>
<?php
}
?>
</div>
示例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: intval
?>
</strong> <span class="divider">|</span> <?php
echo JText::_('COM_KUNENA_STAT_LATEST_MEMBERS');
?>
: <strong><?php
echo $this->latestMemberLink;
?>
</strong></li>
<li> </li>
<li><?php
echo CKunenaLink::GetUserlistLink('', JText::_('COM_KUNENA_STAT_USERLIST') . ' »');
?>
</li>
<li><?php
if ($this->config->showpopuserstats || $this->config->showpopsubjectstats) {
echo CKunenaLink::GetStatsLink(JText::_('COM_KUNENA_STAT_MORE_ABOUT_STATS') . ' »');
}
?>
</li>
</ul>
<ul id="kstatslistleft" class="fltlft">
<li><?php
echo JText::_('COM_KUNENA_STAT_TOTAL_MESSAGES');
?>
: <strong> <?php
echo intval($this->messageCount);
?>
</strong> <span class="divider">|</span> <?php
echo JText::_('COM_KUNENA_STAT_TOTAL_SUBJECTS');
?>
: <strong><?php