76 lines
2.6 KiB
PHP
76 lines
2.6 KiB
PHP
<html>
|
|
<head>
|
|
<title>PQS - Player Queue</title>
|
|
<link href="css/main.css" rel="stylesheet" type="text/css">
|
|
<script type="text/javascript" src="js/jquery.js"></script>
|
|
<script type="text/javascript">
|
|
var auto_refreshqueue = setInterval(function() {
|
|
$.ajaxSetup({ cache: false });
|
|
$('#queuediv').load('includes/getqueue.php', {combined:1});
|
|
}, 5000);
|
|
|
|
var auto_refreshtimer = setInterval(function() {
|
|
$.ajaxSetup({ cache: false });
|
|
$('#mechpods').load('includes/mechpods.php');
|
|
}, 5000);
|
|
|
|
var auto_currgroup = setInterval(function() {
|
|
$.ajaxSetup({ cache: false });
|
|
$('#currqueuediv').load('includes/getcurrent.php');
|
|
}, 5000);
|
|
|
|
var auto_group2 = setInterval(function() {
|
|
$.ajaxSetup({ cache: false });
|
|
$('#group2').load('includes/getgroup.php', {group:2});
|
|
}, 5000);
|
|
|
|
var auto_group3 = setInterval(function() {
|
|
$.ajaxSetup({ cache: false });
|
|
$('#group3').load('includes/getgroup.php', {group:3});
|
|
}, 5000);
|
|
|
|
var auto_group4 = setInterval(function() {
|
|
$.ajaxSetup({ cache: false });
|
|
$('#group4').load('includes/getgroup.php', {group:4});
|
|
}, 5000);
|
|
|
|
var auto_group5 = setInterval(function() {
|
|
$.ajaxSetup({ cache: false });
|
|
$('#group5').load('includes/getgroup.php', {group:5});
|
|
}, 5000);
|
|
|
|
var auto_infopanel = setInterval(function() {
|
|
$.ajaxSetup({ cache: false });
|
|
$.ajax({
|
|
url: 'includes/api.php',
|
|
data: { call: "updateinfo" },
|
|
dataType: 'json',
|
|
success: function(data) {
|
|
var updated = data[0];
|
|
if (updated==1) {
|
|
$.ajaxSetup({ cache: false });
|
|
$('.infopanel').load('includes/smallinfopanel.php');
|
|
}
|
|
}
|
|
});
|
|
}, 5000);
|
|
</script>
|
|
</head>
|
|
<body style='background: #000;'>
|
|
<?php
|
|
echo "<br><table width='94%' align='center'><tr>";
|
|
echo "<td width='25%' align='center' valign='top'><div id='queuediv' class='smallqueuediv3'> </div></td>";
|
|
echo "<td width='19%' align='center' valign='top'><div id='group2' class='smallqueuediv3'> </div></td>";
|
|
echo "<td width='19%' align='center' valign='top'><div id='group3' class='smallqueuediv3'> </div></td>";
|
|
echo "<td width='19%' align='center' valign='top'><div id='group4' class='smallqueuediv3'> </div></td>";
|
|
echo "<td width='18%' align='center' valign='top'><div id='group5' class='smallqueuediv3'> </div></td>";
|
|
echo "</tr></table>";
|
|
echo "<table width='94%' align='center'><tr>";
|
|
echo "<td width='25%' align='center' valign='top'><div id='currqueuediv' class='smallqueuediv4'> </div></td>";
|
|
echo "<td width='55%' align='center' valign='middle'><div class='infopanel'> </div></td>";
|
|
echo "</tr></table></body></html>";
|
|
?>
|
|
<script type="text/javascript">
|
|
$('.infopanel').load('includes/infopanel.php');
|
|
</script>
|