如何实现用户列表搜索,如果战斗值为0,则不会列出用户?在用户上列出的必须是链接。
// If more than one player to show names List
if (count($data) > 1 && !isset($_GET['linkki'])) {
foreach($data as $pelaaja) {
print("<a href=\"".$nykynen_osote_tahan_filuun."?haku=PE&nimi=".$pelaaja->nickname."\">".$pelaaja->nickname."</a>"); // Linkki hakuun print
}
} else {
// Print all the information the player if the value is not 0
$pelaaja_info = $api->get('wot/account/info', array('account_id'=>$data[0]->{'account_id'}));
foreach($pelaaja_info as $pelaaja_i) {
// Does not print anything if the player is just a game 0
if ($pelaaja_i->statistics->all->battles == 0) {
print ($data[0]->nickname);
} else {
print("<span class=\"nick ");
print("\">");
print($data[0]->nickname);
print(" [");
// THIS NAME OF THE CLAN
print("] ");
print("</span>");
print("<br/>");