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

84 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_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_group6 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group6').load('includes/getgroup.php', {group:6});
}, 10000);
var auto_group7 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group7').load('includes/getgroup.php', {group:7});
}, 10000);
var auto_group8 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group8').load('includes/getgroup.php', {group:8});
}, 10000);
var auto_group9 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group9').load('includes/getgroup.php', {group:9});
}, 10000);
var auto_group10 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group10').load('includes/getgroup.php', {group:10});
}, 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='20%' align='center' valign='top'><div id='group6' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='20%' align='center' valign='top'><div id='group7' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='20%' align='center' valign='top'><div id='group8' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='20%' align='center' valign='top'><div id='group9' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='20%' align='center' valign='top'><div id='group10' 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>