Ejemplo n.º 1
0
function OS_SortTopPlayers($fieldName = 'sort')
{
    global $lang;
    ?>
    <form action="" method="get">
    <?php 
    echo $lang["sortby"];
    ?>
 <input type="hidden" name="top" />
	<select name="<?php 
    echo $fieldName;
    ?>
">
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "score") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="score"><?php 
    echo $lang["score"];
    ?>
</option>
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "level") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="level">Level</option>
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "games") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="games"><?php 
    echo $lang["games"];
    ?>
</option>
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "wins") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="wins"><?php 
    echo $lang["wins"];
    ?>
</option>
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "losses") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="losses"><?php 
    echo $lang["losses"];
    ?>
</option>
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "draw") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="draw"><?php 
    echo $lang["draw"];
    ?>
</option>
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "kills") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="kills"><?php 
    echo $lang["kills"];
    ?>
</option>
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "deaths") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="deaths"><?php 
    echo $lang["deaths"];
    ?>
</option>
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "assists") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="assists"><?php 
    echo $lang["assists"];
    ?>
</option>
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "ck") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="ck"><?php 
    echo $lang["ck"];
    ?>
</option>
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "cd") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="cd"><?php 
    echo $lang["cd"];
    ?>
</option>
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "nk") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="nk"><?php 
    echo $lang["nk"];
    ?>
</option>
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "player_name") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="player_name"><?php 
    echo $lang["player_name"];
    ?>
</option>
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "leaves") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="leaves"><?php 
    echo $lang["leaves"];
    ?>
</option>
<?php 
    if (isset($_GET["sort"]) and $_GET["sort"] == "streak") {
        $sel = 'selected="selected"';
    } else {
        $sel = '';
    }
    ?>
	  <option <?php 
    echo $sel;
    ?>
 value="streak"><?php 
    echo $lang["streak"];
    ?>
</option>
	</select>
	 <?php 
    echo OS_ComparePlayers('link');
    ?>
  </form>
  <?php 
}
Ejemplo n.º 2
0
    echo $Data["avg_neutrals"];
    ?>
</span>
	
	</td>
    <td width="120" class="font12">
	  <span class="won"><?php 
    echo $Data["avg_towers"];
    ?>
</span>/
	  <span class="assists"><?php 
    echo $Data["avg_rax"];
    ?>
</span>
	</td>-->
  </tr>
   
  <?php 
}
?>
	  
    </table>
	<?php 
echo OS_ComparePlayers('submit');
?>
     </div>
    </div>
   </div>
  </div>
<?php 
include 'inc/pagination.php';