Exemple #1
0
<?php

$headers = array(array('Rank'), array(''), array('Points'), array('Username'), array('Solved'), array('Last Activity'));
$box = $tVars['box'];
$box instanceof WC_Warbox;
$site = $box->getSite();
echo $tVars['site_quickjump'];
echo $tVars['pagemenu'];
$vars = array($tVars['playercount'], $box->displayName(), $site->displayName());
echo GWF_Box::box($tLang->lang('info_warbox_players', $vars), $tLang->lang('title_warbox_players', $vars));
echo GWF_Table::start();
echo GWF_Table::displayHeaders1($headers);
$rank = $tVars['rank'];
foreach ($tVars['data'] as $row) {
    echo GWF_Table::rowStart();
    echo GWF_Table::column($rank++, 'gwf_num');
    echo GWF_Table::column(GWF_Country::displayFlagS($row['country']));
    echo GWF_Table::column($row['score'], 'gwf_num');
    echo GWF_Table::column(GWF_User::displayProfileLinkS($row['user_name']));
    echo GWF_Table::column(sprintf('%s (%.02f%%)', $row['solved'], $row['percent']), 'gwf_num');
    echo GWF_Table::column(GWF_Time::displayDate($row['solvedate']), 'gwf_date');
    echo GWF_Table::rowEnd();
}
echo GWF_Table::end();
echo $tVars['pagemenu'];
Exemple #2
0
 public static function imgCountryByIP()
 {
     return GWF_Country::displayFlagS(self::getCountryIDbyIP());
 }
Exemple #3
0
<?php

$headers = array(array('#'), array($tLang->lang('th_user_name')), array($tLang->lang('th_score')));
echo GWF_Box::box($tLang->lang('pi_crank', array($tVars['cname'])), GWF_Country::displayFlagS($tVars['cid']) . ' ' . $tLang->lang('pt_crank', array($tVars['cname'], $tVars['page'])));
WC_HTML::rankingPageButtons();
echo $tVars['page_menu'];
echo GWF_Table::start();
echo GWF_Table::displayHeaders2($headers);
$rank = $tVars['rank'];
$hlrank = $tVars['hl_rank'];
foreach ($tVars['data'] as $user) {
    //	$user instanceof GWF_User;
    $style = $hlrank == $rank ? WC_HTML::styleSelected() : '';
    echo GWF_Table::rowStart(true, '', '', $style);
    echo sprintf('<td class="gwf_num"><a name="rank_%s">%s</a></td>', $rank, $rank);
    echo sprintf('<td>%s</td>', $user->displayProfileLink());
    echo sprintf('<td class="gwf_num">%s</td>', $user->getVar('user_level'));
    echo GWF_Table::rowEnd();
    $rank++;
}
echo GWF_Table::end();
echo $tVars['page_menu'];
echo GWF_Box::box($tLang->lang('scorefaq_box', array(GWF_WEB_ROOT . 'scoring_faq')));
Exemple #4
0
 public function displayCountryFlag($unknown = true)
 {
     if ('0' === ($cid = $this->getCountryID()) && $unknown === false) {
         return '';
     }
     return GWF_Country::displayFlagS($cid);
 }
Exemple #5
0
<?php

$headers = array(array('Rank'), array(), array('Username', 'user_name'), array('SolvedAt', 'wf_solved_at'));
$flag = $tVars['flag'];
$flag instanceof WC_Warflag;
$box = $flag->getWarbox();
$site = $box->getSite();
echo $tVars['site_quickjump'];
echo $tVars['pagemenu'];
$vars = array($tVars['solvercount'], $flag->displayName(), $box->displayName(), $site->displayName());
echo GWF_Box::box($tLang->lang('info_warflag_solvers', $vars), $tLang->lang('title_warflag_solvers', $vars));
$pos = $tVars['rank'];
echo GWF_Table::start();
echo GWF_Table::displayHeaders1($headers, $tVars['sort_url']);
foreach ($tVars['solvers'] as $row) {
    echo GWF_Table::rowStart();
    echo GWF_Table::column($pos, 'gwf_num');
    echo GWF_Table::column(GWF_Country::displayFlagS($row['user_countryid']));
    echo GWF_Table::column(GWF_User::displayProfileLinkS($row['user_name']));
    echo GWF_Table::column(GWF_Time::displayDate($row['wf_solved_at']), 'gwf_date');
    echo GWF_Table::rowEnd();
    $pos++;
}
echo GWF_Table::end();
echo $tVars['pagemenu'];