Browse Source

remocao de variavel inutilizada que estava gerando erro, e linhas comentadas.

spr_change_address_bd
douglas.strappasson 11 months ago
parent
commit
79ffc5597f
  1. 9
      supervisao/RelSupOriginadas.php
  2. 10
      supervisao/RelSupRecebidas.php

9
supervisao/RelSupOriginadas.php

@ -2,8 +2,6 @@
$tpLayout = 1;
$dac = $_GET["dac"];
$nomeTpl = "supervisao/RelSupOriginadas.tpl";
$query = " select a.calldate::time as hora,
@ -22,18 +20,15 @@ $query = " select a.calldate::time as hora,
and b.fila = '$dac'
order by 1";
//echo $query;
$result = pg_query($dbcon, $query);
$numrow = 0;
$linhas = "";
$duracaoTotal = '';
while ($row = pg_fetch_array($result)) {
$hora = $row["hora"];
$destino = ocultarTelefone($row["destino"]);
$tempo = SecondToStrTime($row["tmo"]);
$agente = $row["agente"];
$ramalAgente = $row["ramal_agente"];
//$proto = $row["protocolo"];
$proto = substr($row["protocolo"], 0, 4) . "-" . substr($row["protocolo"], 4);
@ -45,18 +40,14 @@ while ($row = pg_fetch_array($result)) {
<td nowrap align=\"left\" class=\"headData\">$ramalAgente</td>
<td nowrap align=\"center\" class=\"headData\">$proto</td>
</tr>";
//$linhas .= sprintf($linha, FormataDBDataHora($row["hora"]), $row["destino"], SecondToStrTime($row["tmo"]),$row["agente"],$row["ramal_agente"] );
$duracaoTotal += $row["hora"];
$numrow++;
}
$duracaoTotal = SecondToStrTime($duracaoTotal);
$linhas .= "<tr align=\"center\">
<th nowrap align=\"left\" colspan=\"5\" >Total</th>
<th nowrap class=\"headData\">$numrow</th>
</tr>";
//print $linhas;
$smarty->assign('linhas', $linhas);
GetTemplate($smarty, $nomeTpl);
?>

10
supervisao/RelSupRecebidas.php

@ -1,10 +1,7 @@
<?php
$tpLayout = 1;
$dac = $_GET["dac"];
$nomeTpl = "supervisao/RelSupRecebidas.tpl";
$query = " select a.calldate::time as hora, a.src as origem, a.billsec as tmo, coalesce(c.apelido, '-') as agente,
@ -21,11 +18,9 @@ $query = " select a.calldate::time as hora, a.src as origem, a.billsec as tmo,
and b.fila = '$dac'
order by 1";
//echo $query;
$result = pg_query($dbcon, $query);
$numrow = 0;
$linhas = "";
$duracaoTotal = '';
while ($row = pg_fetch_array($result)) {
$hora = $row["hora"];
$destino = ocultarTelefone($row["origem"]);
@ -44,19 +39,14 @@ while ($row = pg_fetch_array($result)) {
<td nowrap align=\"center\" class=\"headData\">$proto</td>
</tr>";
$duracaoTotal = $row["hora"];
$numrow++;
}
$duracaoTotal = SecondToStrTime($duracaoTotal);
$linhas .= "<tr align=\"center\">
<th nowrap align=\"left\" colspan=\"5\" >Total</th>
<th nowrap class=\"headData\">$numrow</th>
</tr>";
$smarty->assign('linhas', $linhas);
GetTemplate($smarty, $nomeTpl);
?>

Loading…
Cancel
Save