|
|
|
@ -3,10 +3,10 @@
|
|
|
|
|
<input name="pgn" type="hidden" value="{$pgn}" /> |
|
|
|
|
<input name="bloco" type="hidden" value="{$bloco}" /> |
|
|
|
|
<input name="pg" type="hidden" value="{$pg}" /> |
|
|
|
|
<table width="99%" align="center" border="0" cellspacing="0" cellpadding="2" > |
|
|
|
|
<table width="99%" align="center" border="0" cellspacing="0" cellpadding="2"> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
<table width="100%" cellspacing="0" border="0" cellpadding="2"> |
|
|
|
|
<table width="100%" cellspacing="0" border="0" cellpadding="2"> |
|
|
|
|
<tr> |
|
|
|
|
<td align="left" width="150" nowrap="nowrap"> |
|
|
|
|
<select name="listCampanha"> |
|
|
|
@ -14,7 +14,7 @@
|
|
|
|
|
</select> |
|
|
|
|
</td> |
|
|
|
|
<td align="left" width="150" nowrap="nowrap"> |
|
|
|
|
<input name="pesquisarCampanha" id="pesquisarCampanha"/> |
|
|
|
|
<input name="pesquisarCampanha" id="pesquisarCampanha" /> |
|
|
|
|
</td> |
|
|
|
|
<td> |
|
|
|
|
<input name="locaRamal" type="submit" id="locaRamal" value="Localizar" title=""> |
|
|
|
@ -40,16 +40,18 @@
|
|
|
|
|
<th align="center">Sucesso</th> |
|
|
|
|
<th align="center">Sem Sucesso</th> |
|
|
|
|
<th align="center">Total</th> |
|
|
|
|
<th align="center">A??o</th> |
|
|
|
|
<th align="center">Ação</th> |
|
|
|
|
</tr> |
|
|
|
|
{if $linhas} |
|
|
|
|
{$linhas} |
|
|
|
|
{else} |
|
|
|
|
<tr><td width="50" align="center" colspan="7"><b>Não foi possivel encontrar nenhuma lista</b></td></tr> |
|
|
|
|
<tr> |
|
|
|
|
<td width="50" align="center" colspan="7"><b>Não foi possivel encontrar nenhuma lista</b></td> |
|
|
|
|
</tr> |
|
|
|
|
{/if} |
|
|
|
|
<tr> |
|
|
|
|
<tr> |
|
|
|
|
<th align="center" colspan="11"> |
|
|
|
|
<table width="100%" class="grid" border="0" cellspacing="0" cellpadding="2"> |
|
|
|
|
<table width="100%" class="grid" border="0" cellspacing="0" cellpadding="2"> |
|
|
|
|
<tr> |
|
|
|
|
<th align="center" style="width: 90%; border:0;">{$links}</th> |
|
|
|
|
<th align="right" style="width: 10%; border:0;">{$pagMostra}/{$totalReg}</th> |
|
|
|
@ -88,7 +90,7 @@
|
|
|
|
|
let dadosinput = 0; |
|
|
|
|
|
|
|
|
|
const viewPause = () => { |
|
|
|
|
$('.pause_camp').each(function (i, element, array) { |
|
|
|
|
$('.pause_camp').each(function(i, element, array) { |
|
|
|
|
let id_king = $(this).find('img').attr('id') |
|
|
|
|
id_king = id_king.replace('img_king_', '') |
|
|
|
|
statusCampanha(id_king) |
|
|
|
@ -116,17 +118,17 @@
|
|
|
|
|
}) |
|
|
|
|
setTimeout(getData, 1000) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
viewPause() |
|
|
|
|
callersKing() |
|
|
|
|
getData() |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const pausaCampanha = function (id) { |
|
|
|
|
const pausaCampanha = function(id) { |
|
|
|
|
$.ajax({ |
|
|
|
|
url: "index.php?idProg=331&ajax=1&action=king_pausa¶m=" + id, |
|
|
|
|
type: 'GET', |
|
|
|
|
success: function (data) { |
|
|
|
|
success: function(data) { |
|
|
|
|
if (data.trim().split("|")[0] == 'ERROR') { |
|
|
|
|
alert(data.trim().split("|")[1]) |
|
|
|
|
} else { |
|
|
|
@ -137,13 +139,13 @@
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const callersKing = function () { |
|
|
|
|
const callersKing = function() { |
|
|
|
|
$.ajax({ |
|
|
|
|
url: "index.php?idProg=331&ajax=1&action=king_callers", |
|
|
|
|
type: 'GET', |
|
|
|
|
success: function (data) { |
|
|
|
|
success: function(data) { |
|
|
|
|
if (!(data.trim())) { |
|
|
|
|
$('#rows').html("<tr><td align='center' colspan='10'><b>Nenhuma liga??o em curso!</b></td></tr>") |
|
|
|
|
$('#rows').html("<tr><td align='center' colspan='10'><b>Nenhuma ligação em curso!</b></td></tr>") |
|
|
|
|
} else { |
|
|
|
|
$('#rows').html(data.trim()) |
|
|
|
|
} |
|
|
|
@ -159,11 +161,11 @@
|
|
|
|
|
setTimeout(callersKing, 1000) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const statusCampanha = function (id) { |
|
|
|
|
const statusCampanha = function(id) { |
|
|
|
|
$.ajax({ |
|
|
|
|
url: "index.php?idProg=331&ajax=1&action=king_status¶m=" + id, |
|
|
|
|
type: 'GET', |
|
|
|
|
success: function (data) { |
|
|
|
|
success: function(data) { |
|
|
|
|
if (data.trim().split("|")[0] == 'ERROR') { |
|
|
|
|
alert(data.trim().split("|")[1]) |
|
|
|
|
} else { |
|
|
|
@ -176,16 +178,16 @@
|
|
|
|
|
</script> |
|
|
|
|
{/literal} |
|
|
|
|
|
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
{if $erro} |
|
|
|
|
<table> |
|
|
|
|
|
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<td>{$erro}</td> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
{/if} |
|
|
|
|
{if $erro} |
|
|
|
|
<table> |
|
|
|
|
|
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<td>{$erro}</td> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
{/if} |
|
|
|
|
{/capture} |