diff --git a/ag/clan/c_ranglist.php b/ag/clan/c_ranglist.php
index 9b946d1..352c0d9 100644
--- a/ag/clan/c_ranglist.php
+++ b/ag/clan/c_ranglist.php
@@ -17,35 +17,48 @@ $char_name = $_GET['char_name'];
$wahl = $_GET['wahl'];
if ($wahl == 'geld') {
- $wahl_x = 'Geld';
-} elseif ($wahl == 'siege' OR $wahl == 'niederlagen' OR $wahl == 'unentschieden') {
+ $wahl_x = 'Geld';
+ $wahl_y = 'Elo';
+} elseif ($wahl == 'siege' OR $wahl == 'niederlagen') {
$wahl_x= 'Siege';
$wahl_y= 'Niederlagen';
- $wahl_z= 'Unentschieden';
+ $wahl_z = 'Elo';
+} elseif ($wahl == 'elo'){
+ $wahl_x= 'Siege';
+ $wahl_y= 'Niederlagen';
+ $wahl_z = 'Elo';
} else {
$wahl = 'siege';
$wahl_x= 'Siege';
$wahl_y= 'Niederlagen';
- $wahl_z= 'Unentschieden';
+ $wahl_z = 'Elo';
}
-$char_s = mysql_query('SELECT i.siege, i.leader, i.niederlagen, i.unentschieden, i.geld, i.clanname, i.id, u.nickname, (Select count(*) from user u1 where clan = i.id) as member, (Select 10 - count(*) from user u2 where clan = i.id and ((i.leader is null || i.leader != u2.id) and (i.co_leader is null ||i.co_leader != u2.id))) as freeslots, (select sum(spende) as summe from user_clan where clanid = i.id) as summe FROM clan i LEFT JOIN user u ON(i.leader=u.id) ORDER BY i.'.$wahl.' DESC LIMIT 50');
+$sql = 'SELECT i.siege, i.leader, i.niederlagen, i.geld, i.clanname, i.id, u.nickname, (Select count(*) from user u1 where clan = i.id) as member, (Select 10 - count(*) from user u2 where clan = i.id and ((i.leader is null || i.leader != u2.id) and (i.co_leader is null ||i.co_leader != u2.id))) as freeslots, (select sum(spende) as summe from user_clan where clanid = i.id) as summe, elo FROM clan i LEFT JOIN user u ON(i.leader=u.id) ORDER BY i.'.$wahl.' DESC LIMIT 50';
+//echo $sql . '
';
+$char_s = mysql_query($sql);
?>
Diese Seite befindet sich gerade im Umbau, daher können ein paar Fehler auftreten! | |||||||||
---|---|---|---|---|---|---|---|---|---|
- @@ -63,13 +76,14 @@ $char_s = mysql_query('SELECT i.siege, i.leader, i.niederlagen, i.unentschieden, '.$wahl_x.''; - echo ' | '.$wahl_z.' | '; echo ''.$wahl_y.' | '; + echo ''.$wahl_z.' | '; } else { echo ''.$wahl_x.' Aktuell | '; - echo ''.$wahl_x.' ∑ | '; + echo ''.$wahl_x.' ∑ | '; + echo ''.$wahl_z.' | '; } - ?> + ?>'.$row['member'].' | '."\n"; echo ''.$row['freeslots'].' | '."\n"; - + if($wahl == "geld"){ echo ''.displayMoney($row[$wahl]).' | '; echo ''.displayMoney($row['summe']).' | '; } else { echo ''.displayCount($row[strtolower($wahl_x)]).' | '; - echo ''.displayCount($row[strtolower($wahl_z)]).' | '; echo ''.displayCount($row[strtolower($wahl_y)]).' | '; - } + echo ''.displayCount($row[strtolower($wahl_z)]).' | '; + } echo ''."\n"; - + ?>