Update fifo_interactive_inc.php
This commit is contained in:
parent
e5af2e2552
commit
0455859934
|
|
@ -17,22 +17,26 @@
|
|||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Copyright (C) 2010
|
||||
Copyright (C) 2010 - 2019
|
||||
All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('active_queue_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//includes
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//check permissions
|
||||
if (permission_exists('active_queue_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
|
|
@ -175,15 +179,15 @@ else {
|
|||
$fifo_duration_formatted = str_pad(intval(intval($fifo_duration/3600)),2,"0",STR_PAD_LEFT).":" . str_pad(intval(($fifo_duration / 60) % 60),2,"0",STR_PAD_LEFT).":" . str_pad(intval($fifo_duration % 60),2,"0",STR_PAD_LEFT) ;
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>$username </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>$caller_id_name </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>$caller_id_number </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>$default_language </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>$destination_number </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>$fifo_position </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>$fifo_priority </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>$fifo_status </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>$fifo_duration_formatted </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".escape($username)." </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".escape($caller_id_name)." </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".escape($caller_id_number)." </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".escape($default_language)." </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".escape($destination_number)." </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".escape($fifo_position)." </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".escape($fifo_priority)." </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".escape($fifo_status)." </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".escape($fifo_duration_formatted)." </td>\n";
|
||||
echo "</tr>\n";
|
||||
if ($c==0) { $c=1; } else { $c=0; }
|
||||
}
|
||||
|
|
@ -201,22 +205,18 @@ else {
|
|||
echo "</div>\n";
|
||||
echo "<br><br>Logged in agents<br><br>\n";
|
||||
|
||||
|
||||
//show the content
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<th>".$text['label-username']."</th>\n";
|
||||
echo "<th>Total inbound calls</th>\n";
|
||||
echo "<th>Logged on since</th>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
|
||||
//print_r($xml->fifo->outbound->member[0]);
|
||||
//print_r($xml->fifo->outbound->member[1]);
|
||||
|
||||
|
||||
foreach ($xml->fifo->outbound->member as $row) {
|
||||
|
||||
|
||||
|
|
@ -229,9 +229,9 @@ else {
|
|||
$fifo_total_inbound_calls=$row["outbound-call-total-count"];
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>$username </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>$fifo_total_inbound_calls </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>$fifo_duration_formatted </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".escape($username)." </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".escape($fifo_total_inbound_calls)." </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".escape($fifo_duration_formatted)." </td>\n";
|
||||
echo "</tr>\n";
|
||||
if ($c==0) { $c=1; } else { $c=0; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue