forked from Rgghgh/Mute-Pack-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstats.php
59 lines (51 loc) · 1.39 KB
/
stats.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
<?php
$tittle = "Statistics";
$incHead = '<link rel="stylesheet" href="js/morris.css">
<script type="text/javascript" src="js/raphael.js"></script>
<script type="text/javascript" src="js/morris.js"></script>';
?>
<?php include '_header.php'; ?>
<?php include '_stats.php'; ?>
<div class="card">
<h3>Total Packs Generated</h3>
<h1 class="center"><?php echo $total; ?></h1>
<h4>Milestones:</h4>
<?php echo $milestones; ?>
</div>
<div class="card">
<h3>Top 5 Muted Sounds</h3>
<div id="g1" style="height: 300px;"></div>
<a id="showAll" class="right clearfix" onclick="$('#allList').slideToggle();">Show All..</a>
<ol id="allList" class="hidden">
<?php echo $g2; ?>
</ol>
</div>
<div class="card">
<h3>Top 5 Muted Things (by average)</h3>
<div id="g3" style="height: 300px;"></div>
<a id="showAll" class="right clearfix" onclick="$('#allGroupedList').slideToggle();">Show All..</a>
<ol id="allGroupedList" class="hidden">
<?php echo $g4; ?>
</ol>
</div>
<script type="text/javascript">
new Morris.Donut({
element: 'g1',
data: [
<?php echo $g1;?>
],
xkey: 'label',
ykeys: ['value'],
labels: ['count']
});
new Morris.Donut({
element: 'g3',
data: [
<?php echo $g3;?>
],
xkey: 'label',
ykeys: ['value'],
labels: ['count']
});
</script>
<?php include '_footer.php'; ?>