예제 #1
0
            <?php 
    if ($key % 2 === 0) {
        ?>
              <div class="row">
            <?php 
    }
    ?>
            <div class="table-responsive col-lg-6">
              <table class="table table-hover table-striped table-bordered">
                <!-- TODO: Unit conversions + Plural wording & words. -->
                <thead>
                <tr>
                  <th>Rank</th>
                  <th>Player</th>
                  <th><?php 
    echo getHumanFriendlyStatName($stat);
    ?>
                </tr>
                </thead>

                <tbody>
                <?php 
    $page = 1;
    $result = getTopPlayers($mysqli, $mysql_table_prefix, $stat, $page, $player_on_top);
    $i = 1 * $page;
    if (!$result) {
        echo $mysqli->error;
    }
    $lastVal = 0;
    while (($arr = $result->fetch_array()) != null) {
        echo "<tr>";
예제 #2
0
      <div class="panel panel-primary">
        <div class="panel-heading">
          <h3 class="panel-title"><i class="fa fa-bar-chart-o"></i> Top Players</h3>
        </div>
        <div class="panel-body">
          <p>These are users with current top rankings on the server.</p>

          <div class="table-responsive">
            <table class="table table-hover table-striped table-bordered">
              <!-- TODO: Unit conversions + Plural wording & words. -->
              <thead>
              <tr>
                <th>Rank</th>
                <th>Player</th>
                <th><?php 
echo getHumanFriendlyStatName($player_top_calc_stat);
?>
              </tr>
              </thead>
              <tbody>
              <?php 
$page = 1;
$result = getTopPlayers($mysqli, $mysql_table_prefix, $player_top_calc_stat, $page, $player_on_top);
$i = 1 * $page;
if (!$result) {
    echo $mysqli->error;
}
while (($arr = $result->fetch_array()) != null) {
    echo "<tr>";
    echo "<th>&num;" . $i++ . "</th>";
    $playerName = getPlayerName($mysqli, $mysql_table_prefix, $arr['player_id']);