= 0 GROUP BY hlstats_Countries.flag "; $db->query($SQL); if ($db->num_rows() != 1) error("No such countryclan '$flag'."); $clandata = $db->fetch_array(); $db->free_result(); $cl_name = str_replace(' ', ' ', htmlspecialchars($clandata['name'])); $cl_tag = str_replace(' ', ' ', htmlspecialchars($clandata['tag'])); $cl_full = "$cl_tag $cl_name"; $db->query("SELECT name FROM hlstats_Games WHERE code='$game'"); if ($db->num_rows() != 1) { $gamename = ucfirst($game); } else { list($gamename) = $db->fetch_row(); } pageHeader( array($gamename, 'Country Details', $cl_full), array( $gamename=>$g_options['scripturl'] . "?game=$game", 'Country Rankings'=>$g_options['scripturl'] . "?mode=countryclans&game=$game", 'Country Details'=>'' ), $clandata['name'] ); ?>
Statistics Summary | ||
Country: | '; echo '' . $clandata['name'] . ''; ?> | |
40) $bar_type = 6; elseif ($clandata['activity'] > 30) $bar_type = 5; elseif ($clandata['activity'] > 20) $bar_type = 4; elseif ($clandata['activity'] > 10) $bar_type = 3; elseif ($clandata['activity'] > 5) $bar_type = 2; echo ''; ?> | ||
Members: | active members | |
Total Kills: | ||
Total Deaths: | ||
Avg. Kills: | ||
Kills per Death: | ' . '%0.2f', $clandata['kills'] / $clandata['deaths']) . ''; } else { echo '-'; } ?> | |
Kills per Minute: | 0) { echo sprintf('%.2f', ($clandata['kills'] / ($clandata['connection_time'] / 60))); } else { echo '-'; } ?> | |
Avg. Member Points: | ' . number_format($clandata['avgskill']) . ''; ?> | |
Avg. Connection Time: | 0) { echo timestamp_to_str($clandata['connection_time'] / ($clandata['nummembers'])); } else { echo '-'; } ?> | |
Total Connection Time: |