Ejemplo n.º 1
0
                <th>Data</th>
                <th>Server Average (<?php 
echo $amountOfPlayers;
?>
 players)</th>
              </tr>
              </thead>
              <tbody>
              <tr>
                <th>Playtime</th>
                <td><?php 
echo convert_playtime(getPlaytime($mysqli, $mysql_table_prefix, $player_id));
?>
</td>
                <td><?php 
echo convert_playtime(getServerAverage($mysqli, $mysql_table_prefix, "playtime", $required_global_stats_time));
?>
</td>
              </tr>
              <tr>
                <th>Travel</th>
                <td><?php 
echo round(getPlayerStat($mysqli, $mysql_table_prefix, $player_id, "move"), 2);
?>
 Meters</td>
                <td><?php 
echo round(getServerAverage($mysqli, $mysql_table_prefix, "move", $required_global_stats_time), 2);
?>
                  Meters
                </td>
              </tr>
Ejemplo n.º 2
0
                <th>Money</th>
                <?php 
$value = getServerTotal($mysqli, $mysql_table_prefix, "money");
echo "<td>" . $value . "</td>";
echo "<td>" . round($value / $amountOfPlayers, 2) . "</td>";
?>
              </tr>
              </tbody>
            </table>
          </div>
          <!--<em>*Only includes data of players with more than 1 hour of playtime.</em>-->
        </div>
        <div class="panel-footer">
          <p><em>Please note that this only contains players with a time of more
                 than <?php 
echo convert_playtime("{$required_global_stats_time}");
?>
</em></p>
        </div>
      </div>
    </div>
    <!-- /Main Content -->

    <!-- Sidebar -->
    <div class="col-md-3 col-md-offset-1">


      <!-- Server status -->
      <?php 
include APPPATH . 'inc/serverstatusui.php';
include APPPATH . 'inc/quicklinksui.php';