From 701165fded99ff9f70a4379444d9bd1432052c63 Mon Sep 17 00:00:00 2001 From: Matthijs Kuiper Date: Fri, 12 Jan 2018 16:42:13 +0100 Subject: Alternative victim image --- html/assets/images/victim.png | Bin 2054 -> 2699 bytes html/pages/match_info_killsmatrix.php | 29 +++++++++++++++-------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/html/assets/images/victim.png b/html/assets/images/victim.png index 920354e..5585715 100644 Binary files a/html/assets/images/victim.png and b/html/assets/images/victim.png differ diff --git a/html/pages/match_info_killsmatrix.php b/html/pages/match_info_killsmatrix.php index 91a9087..3083419 100644 --- a/html/pages/match_info_killsmatrix.php +++ b/html/pages/match_info_killsmatrix.php @@ -9,11 +9,9 @@ function PrintVertical($text) { } // Retrieve the killmatrix -$sql_km = " SELECT killer, - victim, - kills - FROM uts_killsmatrix - WHERE matchid = $mid;"; +$sql_km = "SELECT killer, victim, kills + FROM uts_killsmatrix + WHERE matchid = $mid;"; $q_km = mysql_query($sql_km) or die(mysql_error()); while ($r_km = mysql_fetch_array($q_km)) { @@ -52,13 +50,11 @@ while ($r_players = mysql_fetch_array($q_players)) { 'team' => intval($r_players['team'])); } - // Table header $extra = $teamgame ? 3 : 2; -echo ' +echo ' - @@ -70,15 +66,17 @@ echo ' // Victims foreach($players as $player) { echo ''; + echo ' + '; } -echo ''; +echo ' +'; // Team colors victims if ($teamgame) { @@ -90,7 +88,8 @@ if ($teamgame) { case 3: $teamcolor = 'goldteamb'; break; } echo ''; + + '; } echo ''; } @@ -98,6 +97,7 @@ if ($teamgame) { // Killer rows $first = true; $i = 0; + foreach($players as $kid => $killer) { if ($killer['banned'] == 'Y') continue; $i++; @@ -131,4 +131,5 @@ foreach($players as $kid => $killer) { } echo '
Kills Match Up
-
'; +
'; if (strlen($player['name']) > 10) { - echo substr($player['name'],0,10); + echo substr($player['name'], 0, 10); } else { - echo $player['name'] ; + echo $player['name'] ; }; - '
-

'; + ?> -- cgit