Nome |
Ramal |
Matrícula |
Login |
Modo Atend. |
Orig/Dest |
Status |
Duração |
Canal |
Logado |
";
while ($agente = pg_fetch_row($result)) {
$linhas .= "
$agente[0] |
$agente[1] |
$agente[2] |
$agente[3] |
$agente[4] |
$agente[6] |
$agente[7] |
$agente[8] |
$agente[9] |
$agente[10] |
";
}
$linhas .= "";
echo $linhas;
function GetQuery($dac) {
return "select nome, ramal, matricula, tempo_login, modo_atendimento, dac, origem_destino,
status, duracao, canal, logado
from pbx_supervisor_agentes
where dac = (select nome from pbx_dacs where id = $dac) order by 1
";
}
?>