diff --git a/supervisao/RelSupOriginadas.php b/supervisao/RelSupOriginadas.php index e872089d..c412337a 100644 --- a/supervisao/RelSupOriginadas.php +++ b/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)) { $ramalAgente $proto "; - //$linhas .= sprintf($linha, FormataDBDataHora($row["hora"]), $row["destino"], SecondToStrTime($row["tmo"]),$row["agente"],$row["ramal_agente"] ); - $duracaoTotal += $row["hora"]; $numrow++; } -$duracaoTotal = SecondToStrTime($duracaoTotal); $linhas .= " Total $numrow "; -//print $linhas; $smarty->assign('linhas', $linhas); GetTemplate($smarty, $nomeTpl); ?> diff --git a/supervisao/RelSupRecebidas.php b/supervisao/RelSupRecebidas.php index 3e58831f..5ff89c76 100644 --- a/supervisao/RelSupRecebidas.php +++ b/supervisao/RelSupRecebidas.php @@ -1,10 +1,7 @@ $ramalAgente $proto "; - - - $duracaoTotal = $row["hora"]; $numrow++; } -$duracaoTotal = SecondToStrTime($duracaoTotal); $linhas .= " Total $numrow "; - $smarty->assign('linhas', $linhas); GetTemplate($smarty, $nomeTpl); ?>