-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
108 lines (95 loc) · 3.29 KB
/
index.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
<?php
include('config.php');
?><html>
<head>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="styles.css" media="screen" />
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script> <link rel="stylesheet" type="text/css" href="drunken_style.css">
<SCRIPT LANGUAGE="JavaScript" SRC="js/core.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="js/JSTweener.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="js/Team.js"></SCRIPT>
</head>
<body>
<div class="overviewMain">
<h1 style="color:#FFF"><?php echo _('Museomix overview'); ?></h1>
<div class='container1'>
<div class="logo"><img src="assets/museilogo.png"></div>
<?php
$counter = 0;
for ($x=1; $x<4; $x++) {
echo "<a href='./view.php?userId=$x'>";
echo "<div class='collumn col$x'>";
$alt=1;
for ($y=1; $y<=8; $y++) {
if($y==1){
$itemValue = file_get_contents("teamData/teamData/team$x/team.txt");
echo "<div class='overviewLine overviewTeamName'>
<div class='overviewValue2'>$itemValue</div></div>
<div class='divider'><img src='assets/divider.png'></div>";
} else {
echo "<div class='rowcontainer'>";
$temp = $y-1;
$itemValue = file_get_contents("teamData/teamData/team$x/item$temp.txt");
if(strlen($itemValue)==0){
$itemValue = "?";
}
echo "<div class='overviewLine'><div class='bullet'><img class='bulletImg' src='assets/hexx$temp.png'></div>
<div class='overviewValue alt$alt'>$itemValue</div></div>";
echo "</div>";
if($alt==1){
$alt=2;
} else {
$alt=1;
}
}
}
echo "</div>";
echo "</a>";
}
?>
</div>
<div class='container2'>
<?php
$counter = 0;
for ($x=4; $x<8; $x++) {
echo "<a href='./view.php?userId=$x'>";
echo "<div class='collumn col$x'>";
$alt=1;
for ($y=1; $y<=8; $y++) {
echo "<div class='rowcontainer'>";
if($y==1){
$itemValue = file_get_contents("teamData/teamData/team$x/team.txt");
echo "<div class='overviewLine overviewTeamName'>
<div class='overviewValue2'>$itemValue</div></div>
<div class='divider'><img src='assets/divider.png'></div>";
} else {
$temp = $y-1;
$itemValue = file_get_contents("teamData/teamData/team$x/item$temp.txt");
if(strlen($itemValue)==0){
$itemValue = "?";
}
echo "<div class='overviewLine'><div class='bullet'><img class='bulletImg' src='assets/hexx$temp.png'></div>
<div class='overviewValue alt$alt'>$itemValue</div></div>";
if($alt==1){
$alt=2;
} else {
$alt=1;
}
}
echo "</div>";
}
echo "</div>";
echo "</a>";
}
?>
</div>
</div>
</body >
<script type="text/javascript">
var funki = function(){
location.reload();
}
setInterval(function(){funki()}, 50000);
</script>
</script>
</html>