-
Notifications
You must be signed in to change notification settings - Fork 1
/
localTeamData.php
60 lines (49 loc) · 1.2 KB
/
localTeamData.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
<html>
<?php
include("header.php");
include("navBar.php");?>
<body>
<script src="js/jquery.js"></script>
<script src="Orange-Rind/js/orangePersist.js"></script>
<div id="content">
<div class="container row-offcanvas row-offcanvas-left">
<div class="well column col-lg-112 col-sm-12 col-xs-12" id="content">
<h1>Match Scout Raw Data</h1>
<div style="border:1px solid black;overflow-y:hidden;overflow-x:scroll;">
<table class="sortable table table-hover" id="RawData" border="1">
</table>
</div>
<script>
$(function(){
orangePersist.initializeApp();
var collection = "o";
var regional = orangePersist.collection(collection);
var first = true;
var labels = []
for(var id in regional.getDocumentKeys()){
var match = regional.doc(id).get();
console.log(match);
if(first){
var out = "<tr>";
for(var label in match){
out += "<th>" + label + "</th>";
labels.push(label);
}
out += "</tr>";
$("#RawData").append(out);
}
var out = "<tr>";
for(var label in labels){
out += "<td>" + match[label] + "</td>";
}
out += "</tr>";
$("#RawData").append(out);
}
});
</script>
</div>
</div>
</div>
</body>
</html>
<?php include("footer.php"); ?>