You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
41 lines
1.4 KiB
<h1>{$page->title}</h1>
|
|
{if $error == ''}
|
|
{if $page->getSettingValue('apps.sabnzbplus.integrationtype') > 0 || $user.queuetype == 2}
|
|
<p style="text-align:center;">
|
|
The following queue is pulled from
|
|
<a href="{if $user.queuetype == 2}{$user.nzbgeturl}{else}{$sabserver|escape:"htmlall"}{/if}">
|
|
{if $user.queuetype == 2}{$user.nzbgeturl}{else}{$sabserver|escape:"htmlall"}{/if}
|
|
</a>.
|
|
<br />
|
|
{if $page->getSettingValue('apps.sabnzbplus.integrationtype') == 2 || $user.queuetype == 2}Edit your queue settings in <a href="{$smarty.const.WWW_TOP}/profileedit">your profile</a>.{/if}
|
|
</p>
|
|
<div class="sab_queue"></div>
|
|
{literal}
|
|
<script type="text/javascript">
|
|
function getQueue()
|
|
{
|
|
var rand_no = Math.random();
|
|
$.ajax({
|
|
url: "sabqueuedata?id=" + rand_no,
|
|
cache: false,
|
|
success: function(html)
|
|
{
|
|
$(".sab_queue").html(html);
|
|
setTimeout("getQueue()", 2500);
|
|
},
|
|
error: function ()
|
|
{
|
|
$(".sab_queue").html("<p style='text-align:center;'>Could not contact your queue. <a href=\"javascript:location.reload(true)\">Refresh</a></p>");
|
|
},
|
|
timeout:5000
|
|
});
|
|
}
|
|
</script>
|
|
{/literal}
|
|
<body onLoad="getQueue();">
|
|
{else}
|
|
<p style="text-align:center;">The {$queueType} queue has been disabled by the administrator.</p>
|
|
{/if}
|
|
{else}
|
|
<p style="text-align:center;">{$error}</p>
|
|
{/if}
|
|
|