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