From 3a58cb2802c8be14f78015105afe759b1c7ce692 Mon Sep 17 00:00:00 2001 From: Matthijs Kuiper Date: Tue, 9 Jan 2018 00:43:43 +0100 Subject: Implement design for pages and update includes --- html/pages/players_explain_ranking.php | 66 ++++++++++++++++------------------ 1 file changed, 30 insertions(+), 36 deletions(-) mode change 100755 => 100644 html/pages/players_explain_ranking.php (limited to 'html/pages/players_explain_ranking.php') diff --git a/html/pages/players_explain_ranking.php b/html/pages/players_explain_ranking.php old mode 100755 new mode 100644 index 5930cfb..4648c3c --- a/html/pages/players_explain_ranking.php +++ b/html/pages/players_explain_ranking.php @@ -14,10 +14,10 @@ function row($name = NULL, $amount = 0, $multiplier = 0, $extra_multiplier = tru $d_points = get_dp($points); if ($points % 1 == 0) $d_points = ceil($points); echo ''; - echo ''. htmlentities($name) .''; - echo ''. $amount .''; - echo ''. $multiplier .''; - echo ''. $d_points .''; + echo ''. htmlentities($name) .''; + echo ''. $amount .''; + echo ''. $multiplier .''; + echo ''. $d_points .''; echo ''; return($points); } @@ -69,22 +69,16 @@ $r_cnt = small_query("SELECT -echo' - - - - -
'.FlagImage($r_info['country'], false).' '.htmlentities($playername).'\'s '. htmlentities($r_game['name']) .' ranking explained
'; -echo '

'; - - - echo ' - +
+ + + + @@ -111,7 +105,7 @@ else { $t_points += row('Deaths', $r_cnt['deaths'], -0.25); $t_points += row('Suicides', $r_cnt['suicides'], -0.25 ); $t_points += row('Teamkills', $r_cnt['teamkills'], -2); - row(); +echo ''; $t_points += row('Flag Takes', $r_cnt['flag_taken'], 1); $t_points += row('Flag Pickups', $r_cnt['flag_pickedup'], 1); $t_points += row('Flag Returns', $r_cnt['flag_return'], 1); @@ -120,7 +114,7 @@ else { $t_points += row('Flag Seals', $r_cnt['flag_seal'], 2); $t_points += row('Flag Assists', $r_cnt['flag_assist'], 5); $t_points += row('Flag Kills', $r_cnt['flag_kill'], 2); - row(); +echo ''; $t_points += row('Controlpoint Captures', $r_cnt['dom_cp'], 10); if (strpos($real_gamename, 'Assault') !== false) { $t_points += row('Assault Objectives', $r_cnt['ass_obj'], 10); @@ -132,33 +126,33 @@ else { } else { $t_points += row('Team Releases', 0, 1.5); } - row(); +echo ''; $t_points += row('Double Kills', $r_cnt['spree_double'], 1); $t_points += row('Multi Kills', $r_cnt['spree_multi'], 1); $t_points += row('Ultra Kills', $r_cnt['spree_ultra'], 1); $t_points += row('Monster Kills', $r_cnt['spree_monster'], 2); - row(); +echo ''; $t_points += row('Killing Sprees', $r_cnt['spree_kill'], 1); $t_points += row('Rampages', $r_cnt['spree_rampage'], 1); $t_points += row('Dominatings', $r_cnt['spree_dom'], 1.5); $t_points += row('Unstoppables', $r_cnt['spree_uns'], 2); $t_points += row('Godlikes', $r_cnt['spree_god'], 3); -} - -row(); -row(); -echo ' - - - +}; + +echo ''; + +echo ' + + + '; $gametime = ceil($r_cnt['gametime'] / 60); $t_points = $t_points / $gametime; -echo ' - - - +echo ' + + + '; IF ($gametime < 10) { @@ -180,11 +174,11 @@ IF ($gametime >= 100 && $gametime < 200) { IF ($gametime >= 200 && $gametime < 300) { $t_points += row('Penalty for playing < 300 minutes', get_dp($t_points), -0.15, false); } -row(); -echo ' - - - +echo ''; +echo ' + + + '; echo '
'.FlagImage($r_info['country'], false).' '.htmlentities($playername).'\'s '. htmlentities($r_game['name']) .' ranking explained
Amount Multiplier
Total'. ceil($t_points) .'
Total'. ceil($t_points) .'
Divided by game minutes'.$gametime.''. get_dp($t_points) .'
Divided by game minutes'.$gametime.''. get_dp($t_points) .'
Total'. get_dp($t_points) .'
Ranking points'. get_dp($t_points) .'
'; ?> -- cgit