本文整理汇总了PHP中WC_HTML::rankingPageButtons方法的典型用法代码示例。如果您正苦于以下问题:PHP WC_HTML::rankingPageButtons方法的具体用法?PHP WC_HTML::rankingPageButtons怎么用?PHP WC_HTML::rankingPageButtons使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WC_HTML
的用法示例。
在下文中一共展示了WC_HTML::rankingPageButtons方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
echo GWF_Box::box($tLang->lang('pi_csrank'), $tLang->lang('pt_csrank'));
WC_HTML::rankingPageButtons();
$headers = array(array('#', null, null, 2), array('', null, null, 1), array($tLang->lang('th_user_countryid'), 'countryname', 'ASC', 3), array($tLang->lang('th_players'), 'users', 'DESC', 6), array($tLang->lang('th_score'), 'totalscore', 'DESC', 4), array($tLang->lang('th_spc'), 'spc', 'DESC', 7), array($tLang->lang('th_avg'), 'avg', 'DESC', 8), array($tLang->lang('th_sumtop3'), 'top3', 'DESC', 9), array($tLang->lang('th_top_player'), 'topuser', 'ASC', 5));
$rank = 1;
$hlc = $tVars['highlight_country'];
echo GWF_Table::start();
echo GWF_Table::displayHeaders1($headers, $tVars['sort_url']);
$sl = WC_HTML::styleSelected();
foreach ($tVars['data'] as $row) {
$cid = $row['country_id'];
$topuser = $row['topuser'];
$style = $hlc == $cid ? $sl : '';
$href = GWF_WEB_ROOT . 'country_ranking/for/' . $cid . '/' . Common::urlencodeSEO($row['countryname']);
echo GWF_Table::rowStart(true, '', '', $style);
echo sprintf('<td class="gwf_num">%d</td>', $rank++);
echo sprintf('<td>%s</td>', GWF_Country::displayFlagS2($cid, $row['countryname']));
echo sprintf('<td><a href="%s">%s</a></td>', $href, GWF_HTML::display($row['countryname']));
echo sprintf('<td class="gwf_num">%d</td>', $row['users']);
echo sprintf('<td class="gwf_num">%d</td>', $row['totalscore']);
echo sprintf('<td class="gwf_num">%s</td>', $row['spc']);
echo sprintf('<td class="gwf_num">%d</td>', $row['avg']);
echo sprintf('<td class="gwf_num">%d</td>', $row['top3']);
echo sprintf('<td><a href="%s" title="%s">%s</a></td>', GWF_WEB_ROOT . 'profile/' . urlencode($topuser), $tLang->lang('a_title', array($row['topscore'])), GWF_HTML::display($topuser));
echo GWF_Table::rowEnd();
}
echo GWF_Table::end();
echo GWF_Box::box($tLang->lang('scorefaq_box', GWF_WEB_ROOT . 'scoring_faq'));