-
Notifications
You must be signed in to change notification settings - Fork 70
/
top100.php
113 lines (95 loc) · 4.72 KB
/
top100.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
require_once("config.php");
require_once("variables.php");
require_once("functions.php");
require_once("factionScores.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="PvPstats, see who is winning!">
<meta name="author" content="ShinDarth">
<title><?= $server_name ?> PvPstats</title>
<link href="css/bootstrap-cyborg.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/top100-style.css" rel="stylesheet">
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="js/ie10-viewport-bug-workaround.js"></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<?php require_once("navbar.php"); ?>
<div class="container">
<div class="main-title">
<p class="text-center h3"><?= $server_name ?> PvP statistics</p>
<div id="logo">
<img id="logo_img" class="img-responsive" alt="PvPstats logo" src="<?= $server_logo ?>">
</div>
</div>
<div class="row text-center">
<div id="stats_info">
<span>Top 100 players and guilds with the biggest amount of victories in BattleGrounds starting from <span style="color: orange;"><strong><?= $online_from ?></strong></span>.</span><br>
<span style="color: #888">The victories of guilds are the amount of victories of each current guild member.</span>
</div>
<div class="col-sm-8" style="padding: 0 10px;">
<p class="h3">Top100 Players</p>
<div class="top100 table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th class="text-center">#</th>
<th class="text-center">Character</th>
<th class="text-center">●</th>
<th class="text-center">Level</th>
<th class="text-center">Guild</th>
<th class="text-center">Victories</th>
</tr>
</thead>
<tbody>
<?php getTop100Players() ?>
</tbody>
</table>
</div>
</div>
<div class="col-sm-4" style="padding: 0 10px;">
<p class="h3">Top100 Guilds</p>
<div class="top100 table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th class="text-center">#</th>
<th class="text-center">Guild</th>
<th class="text-center">Victories</th>
</tr>
</thead>
<tbody>
<?php getGuildsScores("", "", "", true) ?>
</tbody>
</table>
</div>
</div>
</div>
<div id="footer">
<hr>
<?php /* I worked hard to make PvPstats open and free for everyone. Please, do not remove the credits. */ ?>
<p class="h6 text-center">● <a target="_blank" href="https://github.com/FrancescoBorzi/PvPstats"><strong>PvPstats</strong></a> for <a target="_blank" href="<?= $server_url ?>"><?= $server_name ?></a> is free software created by <a target="_blank" href="http://shinworld.altervista.org/"><strong>ShinDarth</strong></a> and released under the <a target="_blank" href="https://github.com/FrancescoBorzi/PvPstats/blob/master/LICENSE">GNU AGPL license</a> ●</p>
<p class="text-center" style="margin-top: 20px"><iframe src="http://ghbtns.com/github-btn.html?user=FrancescoBorzi&repo=PvPstats&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe> <iframe src="http://ghbtns.com/github-btn.html?user=FrancescoBorzi&repo=PvPstats&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe> <iframe src="http://ghbtns.com/github-btn.html?user=FrancescoBorzi&type=follow&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="165" height="20"></iframe></p>
</div>
</div><!-- /.container -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
$(document).ready(function () {
$('#top100').addClass("active");
});
</script>
</body>
</html>
<?php $db->close(); ?>