@@ -1275,7 +1275,7 @@ function displayRankingsEq3() {
12751275
12761276 echo "<div class='table-responsive'> " ;
12771277 echo "<table id='rankingsTable' class='table table-striped'> " ;
1278- echo "<thead><tr><th>Rank</th><th>Player</th><th>Points</th></tr></thead> " ;
1278+ echo "<thead><tr><th>Rank</th><th>Move</th><th> Player</th><th>Points</th></tr></thead> " ;
12791279 echo "<tbody> " ;
12801280
12811281 // Keep track of the previous rank to identify non-unique ranks
@@ -1514,19 +1514,7 @@ function displayRankingsEq5() {
15141514 $ displayRank = '<strong> ' . $ rank . '</strong> ' ;
15151515 }
15161516
1517- // Determine if move is upwards, downwards or the same and calculate the difference between current and previous ranking
1518- if (!$ hasRecordedResults ) {
1519- $ move = "<span class='text-secondary'>-</span> " ;
1520- } elseif ($ row ["lastpos " ] > $ row ["currpos " ]) {
1521- $ diff = $ row ["lastpos " ] - $ row ["currpos " ];
1522- $ move = "<span class='text-success'><i class='bi bi-caret-up-fill'></i> " . $ diff . "</span> " ;
1523- } elseif ($ row ["lastpos " ] < $ row ["currpos " ]) {
1524- $ diff = $ row ["currpos " ] - $ row ["lastpos " ];
1525- $ move = "<span class='text-danger'><i class='bi bi-caret-down-fill'></i> " . $ diff . "</span> " ;
1526- } else {
1527- $ diff = 0 ;
1528- $ move = "<span class='text-secondary'><i class='bi bi-caret-right-fill'></i> " . $ diff . "</span> " ;
1529- }
1517+ $ move = " " ;
15301518
15311519 // Ensure both name variables begin with upper case letters
15321520 $ uppCaseFN = ucfirst ($ row ["firstname " ]);
@@ -1539,6 +1527,7 @@ function displayRankingsEq5() {
15391527 // Display the table complete with all data variables
15401528 echo "<tr " . $ rowClass . "> " ;
15411529 echo "<td><span class=''> " . $ displayRank . "</span></td> " ;
1530+ echo "<td><span class=''> " . $ move . "</span></td> " ;
15421531 $ playerMeta = trim ((string ) ($ row ["location " ] ?? '' ));
15431532 if ($ playerMeta === '' || strcasecmp ($ playerMeta , 'Prefer Not To Say ' ) === 0 ) {
15441533 $ playerMeta = trim ((string ) ($ row ["faveteam " ] ?? '' ));
0 commit comments