forked from rposborne/webstatsx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg_dashboard.php
executable file
·89 lines (80 loc) · 3.16 KB
/
org_dashboard.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
<?php
include('header.php');
?>
<div>
<ul class="breadcrumb">
<li>
<a href="#">Dashboard</a>
</li>
</ul>
</div>
<div class="row-fluid">
<a data-rel="tooltip" title="Take me to the player tables!" class="well span3 top-block ajax-link" href="players.php">
<span class="icon32 icon-color icon-users"></span>
<div>Number of players with stats</div>
<div><?php echo $stats_global->count_players(); ?></div>
</a>
<a data-rel="tooltip" title="Take me to the top travelers!." class="well span3 top-block ajax-link" href="top_distance.php">
<span class="icon32 icon-color icon-sent"></span>
<div>Total distance traveled by players</div>
<div><?php echo number_format($stats_global->get_total_distance_moved(), 2, '.', ''); ?></div>
</a>
<a data-rel="tooltip" title="Take me to the top killers!" class="well span3 top-block ajax-link" href="#">
<span class="icon32 icon-green icon-arrowthick-n"></span>
<div>Total kills by players</div>
<div><?php echo $stats_global->get_total_kills(); ?></div>
</a>
<a data-rel="tooltip" title="Take me to the top dying players list!" class="well span3 top-block ajax-link" href="#">
<span class="icon32 icon-red icon-arrowthick-s"></span>
<div>Total deaths of players</div>
<div><?php echo $stats_global->get_total_deaths(); ?></div>
</a>
</div>
<div class="row-fluid sortable">
<div class="box span6">
<div class="box-header well" data-original-title>
<h2><i class="icon-user"></i> Top 8 players by time</h2>
<!--
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
-->
</div>
<div class="box-content" style="min-height: 350px;">
<table class="table table-striped table-bordered" id="table_top_time">
<thead>
<tr>
<th>Username</th>
<th>Playtime</th>
<th>Joins</th>
</tr>
</thead>
<tbody>
<?php
while ($players = $stats_global->get_players('playtime', 'desc', 8)){
echo '<tr><td><a class="ajax-link" href="single_player.php?p='.$players->players.'">'.$players->players.'</a></td>';
echo '<td>'.$players->time_played.'</td>';
echo '<td>'.$players->joins.'</td>';
}
?>
</tbody>
</table>
</div>
</div><!--/span-->
<div class="box span6">
<div class="box-header well">
<h2><i class="icon-picture"></i> Map</h2>
<div class="box-icon">
<a href="<?php echo $bonus_methods->map_link; ?>" class="btn btn-round"><i class="icon-share"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<?php echo $bonus_methods->get_map(); ?>
</div>
</div>
</div><!--/row-->
<?php echo $bonus_methods->get_motd(); ?>
<?php include('footer.php'); ?>