diff --git a/app/fifo_list/fifo_interactive_inc.php b/app/fifo_list/fifo_interactive_inc.php index 114140ea6d..0761c53436 100644 --- a/app/fifo_list/fifo_interactive_inc.php +++ b/app/fifo_list/fifo_interactive_inc.php @@ -188,5 +188,53 @@ else { if ($c==0) { $c=1; } else { $c=0; } } echo "\n"; + + + //Current logged members + //set the alternating row styles + $c = 0; + $row_style["0"] = "row_style0"; + $row_style["1"] = "row_style1"; + + //response div tag + echo "
\n"; + echo "
\n"; + echo "

Logged in agents

\n"; + + + //show the content + echo "\n"; + + + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + + + //print_r($xml->fifo->outbound->member[0]); + //print_r($xml->fifo->outbound->member[1]); + + + foreach ($xml->fifo->outbound->member as $row) { + + + + $username=explode("@",$row); + $username=explode("/",$username[0]); + $username=$username[1]; + + $fifo_duration_formatted=$row["logged-on-since"]; + $fifo_total_inbound_calls=$row["outbound-call-total-count"]; + + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + if ($c==0) { $c=1; } else { $c=0; } + } + echo "
".$text['label-username']."Total inbound callsLogged on since
$username  $fifo_total_inbound_calls  $fifo_duration_formatted  
\n"; } ?>