query(" SELECT hlstats_Awards.awardId, hlstats_Awards.awardType, hlstats_Awards.code, hlstats_Awards.name, hlstats_Awards.verb, hlstats_Awards.d_winner_id, hlstats_Awards.d_winner_count, hlstats_Players.lastName AS d_winner_name, hlstats_Players.flag AS flag, hlstats_Players.country AS country FROM hlstats_Awards LEFT JOIN hlstats_Players ON hlstats_Players.playerId = hlstats_Awards.d_winner_id WHERE hlstats_Awards.game='$game' ORDER BY hlstats_Awards.name "); $result = $db->query(" SELECT IFNULL(value, 1) FROM hlstats_Options WHERE keyname='awards_numdays' "); if ($db->num_rows($result) == 1) list($awards_numdays) = $db->fetch_row($result); else $awards_numdays = 1; $result = $db->query(" SELECT DATE_FORMAT(value, '%W %e %b'), DATE_FORMAT( DATE_SUB( value, INTERVAL $awards_numdays DAY ) , '%W %e %b' ) FROM hlstats_Options WHERE keyname='awards_d_date' "); list($awards_d_date, $awards_s_date) = $db->fetch_row($result); ?>
10) { $cols = 5; } $colwidth = round(100 / $cols); while ($r = $db->fetch_array($resultAwards)) { if ($i == $cols) { echo ''; $i = 0; } if ($i==0) { echo ''; } if ($image = getImage("/games/$game/dawards/".strtolower($r['awardType'].'_'.$r['code']))) { $img = $image['url']; } elseif ($image = getImage("/games/$realgame/dawards/".strtolower($r['awardType'].'_'.$r['code']))) { $img = $image['url']; } else { $img = IMAGE_PATH.'/award.png'; } $weapon = '\"".$r['code'].'"'; if ($r['d_winner_id'] > 0) { if ($g_options['countrydata'] == 1) { $imagestring = ''.$r['flag'].'  '; } else { $imagestring = ''; } $winnerstring = ''.htmlspecialchars($r['d_winner_name'], ENT_COMPAT).''; $achvd = "{$imagestring} {$winnerstring}"; $wincount = $r['d_winner_count']; } else { $achvd = "No Award Winner"; $wincount= "0"; } echo "'; $i++; } if ($i != 0) { for ($i = $i; $i < $cols; $i++) { echo ''; } echo ''; } ?>
".$r['name'].'

' ."$weapon

" ."$achvd
" .''.$wincount. ' ' . htmlspecialchars($r['verb']).'