forked from crazyman10123/mapveto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewveto.php
80 lines (80 loc) · 2.09 KB
/
viewveto.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
<?php
include 'dbConn.php';
?>
<html !doctype="html">
<head>
<title>KCMLCUP - Map Veto</title>
<link rel="stylesheet" type="text/css" href="spectate.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
teamID = 0;
$(function(){ updateFeed(); });
function updateFeed(){
$.ajax({
url: 'specPicks.php',
data: {matchID: matchID},
type: 'POST',
success: function(response){
eval(response);
setTimeout(updateFeed,1000);
}
});
}
</script>
</head>
<body>
<div id="wrapper">
<?php
$thisCon = createDBConn();
$id = $_GET['id'];
echo '<script>var matchID = "'.$id.'";</script>';
$matchInfo = $thisCon->query('SELECT `TeamOne`, `TeamTwo` FROM `Matches` WHERE `MatchID`="'.$id.'"');
$matchInfo = $matchInfo->fetch_assoc();
?>
<table>
<tr id="maps">
<td id="one"></td>
<td id="three"></td>
<td id="five"></td>
</tr>
<tr id="none">
<td id="none">⠀</td>
</tr>
<tr id="teams">
<?php
for($i=0; $i < 3; $i++) {
echo '<td>'.$matchInfo['TeamOne'].'</td>';
}?>
</tr>
<tr id="none">
<td id="none">⠀</td>
</tr>
<tr id="maps">
<td id="none"></td>
<td id="seven"></td>
<td id="none"></td>
</tr>
<tr id="none">
<td id="none">⠀</td>
</tr>
<tr id="none">
<td id="none">⠀</td>
</tr>
<tr id="maps">
<td id="two"></td>
<td id="four"></td>
<td id="six"></td>
</tr>
<tr id="none">
<td id="none">⠀</td>
</tr>
<tr id="teams">
<?php
for($i=0; $i < 3; $i++) {
echo '<td>'.$matchInfo['TeamTwo'].'</td>';
}?>
</tr>
</table>
</div>
</body>
</html>