Files
PQS/combinedqueue.php
2026-07-01 10:59:51 -05:00

81 lines
2.7 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});
}, 10000);
var auto_currgroup = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#currqueuediv').load('includes/getcurrent.php');
}, 10000);
var auto_currgroup = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#timequeue').load('includes/now.php');
}, 10000);
var auto_group2 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group2').load('includes/getgroup.php', {group:2});
}, 10000);
var auto_group3 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group3').load('includes/getgroup.php', {group:3});
}, 10000);
var auto_group4 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group4').load('includes/getgroup.php', {group:4});
}, 10000);
var auto_group5 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group5').load('includes/getgroup.php', {group:5});
}, 10000);
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/infopanel.php');
}
}
});
}, 10000);
</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='queuediv16'>&nbsp;</div></td>";
echo "<td width='19%' align='center' valign='top'><div id='group2' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='19%' align='center' valign='top'><div id='group3' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='19%' align='center' valign='top'><div id='group4' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='18%' align='center' valign='top'><div id='group5' class='queuediv16'>&nbsp;</div></td>";
echo "</tr></table>";
echo "<table width='94%' align='center'><tr>";
echo "<td width='25%' align='center' valign='top'><div id='currqueuediv' class='queuediv4'>&nbsp;</div></td>";
echo "<td width='25%' align='center' valign='top'><div id='timequeue' class='queuediv4'>";
?>
<?php
echo "&nbsp;</div></td>";
echo "<td width='50%' align='center' valign='middle'><div class='infopanel'>&nbsp;</div></td>";
echo "</tr></table></body></html>";
?>
<script type="text/javascript">
$('.infopanel').load('includes/infopanel.php');
</script>