Added ingroup and drop ingroup displays to Real-time report
changed several reports to list menu items in alphabetical order Added AGENTVMAIL option to all ingroup drop methods in trunk git-svn-id: svn://192.168.202.10@1336 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -120,6 +120,7 @@
|
||||
# 91230-0911 - Reset to original callerID when sending the call to VMAIL/CALLMENU/PHONE/etc...
|
||||
# 100121-1954 - Added TIMEOT/AFTHRS/NANQUE dropping event statuses
|
||||
# 100123-1015 - Added voicemail_id lookup for user from AGENTDIRECT drop
|
||||
# 100212-0653 - Added AGENTVMAIL AGENTDIRECT option for no-queue, hold time and after hours features
|
||||
#
|
||||
|
||||
$script = 'agi-VDAD_ALL_inbound.agi';
|
||||
@@ -809,6 +810,21 @@ if ( ($hm < $ct_default_start) || ($hm > $ct_default_stop) )
|
||||
}
|
||||
if ($after_hours_action =~ /VOICEMAIL/)
|
||||
{
|
||||
if ( ($channel_group =~ /AGENTDIRECT/) && (length($agent_only) > 1) && ($after_hours_voicemail =~ /AGENTVMAIL/) )
|
||||
{
|
||||
### Grab user's voicemail ID from the database
|
||||
$stmtA = "SELECT voicemail_id FROM vicidial_users where user='$agent_only';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
$dbhP=$dbhA; $mysql_count='02XXX'; $MEL_aff_rows=$sthArows; &mysql_error_logging;
|
||||
if ($sthArows > 0)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$after_hours_voicemail = $aryA[0];
|
||||
}
|
||||
$sthA->finish();
|
||||
}
|
||||
$newcallerid = "\"$VCcallerid <$originalCID>\"";
|
||||
$AGI->set_callerid($newcallerid);
|
||||
print STDERR "Setting CID \"$newcallerid\"\n";
|
||||
@@ -996,6 +1012,21 @@ if ($no_agent_no_queue =~ /Y|NO_PAUSED/)
|
||||
}
|
||||
if ($no_agent_action =~ /VOICEMAIL/)
|
||||
{
|
||||
if ( ($channel_group =~ /AGENTDIRECT/) && (length($agent_only) > 1) && ($no_agent_action_value =~ /AGENTVMAIL/) )
|
||||
{
|
||||
### Grab user's voicemail ID from the database
|
||||
$stmtA = "SELECT voicemail_id FROM vicidial_users where user='$agent_only';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
$dbhP=$dbhA; $mysql_count='02XXX'; $MEL_aff_rows=$sthArows; &mysql_error_logging;
|
||||
if ($sthArows > 0)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$no_agent_action_value = $aryA[0];
|
||||
}
|
||||
$sthA->finish();
|
||||
}
|
||||
$newcallerid = "\"$VCcallerid <$originalCID>\"";
|
||||
$AGI->set_callerid($newcallerid);
|
||||
print STDERR "Setting CID \"$newcallerid\"\n";
|
||||
@@ -2288,7 +2319,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) )
|
||||
}
|
||||
}
|
||||
|
||||
if ($hold_recall_xfer_group !~ /NONE/)
|
||||
if ( ($hold_recall_xfer_group !~ /NONE/) && (length($hold_recall_xfer_group) > 1) )
|
||||
{
|
||||
$now_date_epoch = time();
|
||||
$FDtarget = ($now_date_epoch - 86400);
|
||||
@@ -2732,6 +2763,21 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) )
|
||||
}
|
||||
if ($hold_time_option =~ /VOICEMAIL/)
|
||||
{
|
||||
if ( ($channel_group =~ /AGENTDIRECT/) && (length($agent_only) > 1) && ($hold_time_option_voicemail =~ /AGENTVMAIL/) )
|
||||
{
|
||||
### Grab user's voicemail ID from the database
|
||||
$stmtA = "SELECT voicemail_id FROM vicidial_users where user='$agent_only';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
$dbhP=$dbhA; $mysql_count='02XXX'; $MEL_aff_rows=$sthArows; &mysql_error_logging;
|
||||
if ($sthArows > 0)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$hold_time_option_voicemail = $aryA[0];
|
||||
}
|
||||
$sthA->finish();
|
||||
}
|
||||
$newcallerid = "\"$VCcallerid <$originalCID>\"";
|
||||
$AGI->set_callerid($newcallerid);
|
||||
print STDERR "Setting CID \"$newcallerid\"\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_CLOSER_service_level.php
|
||||
#
|
||||
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -12,6 +12,7 @@
|
||||
# 90310-2117 - Added admin header
|
||||
# 90508-0644 - Changed to PHP long tags
|
||||
# 90801-0923 - Added in-group name to pulldown
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -43,12 +44,10 @@ $stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysql_num_rows($rslt);
|
||||
$i=0;
|
||||
while ($i < $qm_conf_ct)
|
||||
if ($qm_conf_ct > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$non_latin = $row[0];
|
||||
$i++;
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
@@ -76,7 +75,7 @@ if (!isset($group)) {$group = '';}
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
if (!isset($end_date)) {$end_date = $NOW_DATE;}
|
||||
|
||||
$stmt="select group_id,group_name from vicidial_inbound_groups;";
|
||||
$stmt="select group_id,group_name from vicidial_inbound_groups order by group_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$groups_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
# 90801-0921 - Added in-group name to pulldown
|
||||
# 91214-0955 - Added INITIAL QUEUE POSITION BREAKDOWN
|
||||
# 100206-1454 - Fixed TMR(service level) calculation
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -105,7 +106,7 @@ if (!isset($group)) {$group = '';}
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
if (!isset($end_date)) {$end_date = $NOW_DATE;}
|
||||
|
||||
$stmt="select group_id,group_name from vicidial_inbound_groups;";
|
||||
$stmt="select group_id,group_name from vicidial_inbound_groups order by group_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$groups_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<?php
|
||||
# AST_CLOSERsummary_hourly.php
|
||||
#
|
||||
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
# 90801-0910 - First build
|
||||
# 90809-0216 - Added Exclude Outbound Drop Group option
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -56,12 +57,10 @@ $stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysql_num_rows($rslt);
|
||||
$i=0;
|
||||
while ($i < $qm_conf_ct)
|
||||
if ($qm_conf_ct > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$non_latin = $row[0];
|
||||
$i++;
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
@@ -103,7 +102,7 @@ if (!isset($end_date)) {$end_date = $NOW_DATE;}
|
||||
$exclude_rolloverSQL='';
|
||||
if (eregi("YES",$exclude_rollover))
|
||||
{$exclude_rolloverSQL = " where group_id NOT IN(SELECT drop_inbound_group from vicidial_campaigns)";}
|
||||
$stmt="select group_id,group_name from vicidial_inbound_groups $exclude_rolloverSQL;";
|
||||
$stmt="select group_id,group_name from vicidial_inbound_groups $exclude_rolloverSQL order by group_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$groups_to_print = mysql_num_rows($rslt);
|
||||
@@ -155,7 +154,7 @@ while ($i < $statcats_to_print)
|
||||
$i++;
|
||||
}
|
||||
|
||||
$stmt="select call_time_id,call_time_name from vicidial_call_times;";
|
||||
$stmt="select call_time_id,call_time_name from vicidial_call_times order by call_time_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$times_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#
|
||||
# 90601-1443 - First build
|
||||
# 100116-0620 - Bug fixes
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -72,7 +73,7 @@ if (!isset($group)) {$group = '';}
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
if (!isset($end_date)) {$end_date = $NOW_DATE;}
|
||||
|
||||
$stmt="select did_id,did_pattern,did_description from vicidial_inbound_dids;";
|
||||
$stmt="select did_id,did_pattern,did_description from vicidial_inbound_dids order by did_pattern;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$groups_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -39,12 +39,10 @@ $stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysql_num_rows($rslt);
|
||||
$i=0;
|
||||
while ($i < $qm_conf_ct)
|
||||
if ($qm_conf_ct > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$non_latin = $row[0];
|
||||
$i++;
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
@@ -57,7 +55,7 @@ $row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
{
|
||||
Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
|
||||
Header("HTTP/1.0 401 Unauthorized");
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_IVRstats.php
|
||||
#
|
||||
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
# 81026-2026 - First build
|
||||
@@ -11,6 +11,7 @@
|
||||
# 90310-2056 - Admin header
|
||||
# 90508-0644 - Changed to PHP long tags
|
||||
# 91112-0719 - Added in-group names to select list
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -44,12 +45,10 @@ $stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysql_num_rows($rslt);
|
||||
$i=0;
|
||||
while ($i < $qm_conf_ct)
|
||||
if ($qm_conf_ct > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$non_latin = $row[0];
|
||||
$i++;
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
@@ -77,7 +76,7 @@ if (!isset($group)) {$group = '';}
|
||||
if (!isset($query_date)) {$query_date = "$NOW_DATE 00:00:00";}
|
||||
if (!isset($end_date)) {$end_date = "$NOW_DATE 23:23:59";}
|
||||
|
||||
$stmt="select group_id,group_name from vicidial_inbound_groups;";
|
||||
$stmt="select group_id,group_name from vicidial_inbound_groups order by group_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$groups_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<?php
|
||||
# AST_OUTBOUNDsummary_interval.php
|
||||
#
|
||||
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
# 091128-0311 - First build
|
||||
# 091129-0017 - Added Sales-type and DNC-type tallies
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -54,12 +55,10 @@ $stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysql_num_rows($rslt);
|
||||
$i=0;
|
||||
while ($i < $qm_conf_ct)
|
||||
if ($qm_conf_ct > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$non_latin = $row[0];
|
||||
$i++;
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
@@ -140,7 +139,7 @@ while($i < $group_ct)
|
||||
$i++;
|
||||
}
|
||||
|
||||
$stmt="select campaign_id,campaign_name from vicidial_campaigns $whereLOGallowed_campaignsSQL;";
|
||||
$stmt="select campaign_id,campaign_name from vicidial_campaigns $whereLOGallowed_campaignsSQL order by campaign_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$campaigns_to_print = mysql_num_rows($rslt);
|
||||
@@ -224,7 +223,7 @@ while ($i < $statcats_to_print)
|
||||
$i++;
|
||||
}
|
||||
|
||||
$stmt="select call_time_id,call_time_name from vicidial_call_times;";
|
||||
$stmt="select call_time_id,call_time_name from vicidial_call_times order by call_time_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$times_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
# 90827-1154 - Added List ID breakdown of calls
|
||||
# 91222-0843 - Fixed ALL-CAMPAIGNS inbound rollover issue(bug #262), and some other bugs
|
||||
# 100202-1034 - Added statuses to no-answer section
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -128,7 +129,7 @@ while($i < $group_ct)
|
||||
$i++;
|
||||
}
|
||||
|
||||
$stmt="select campaign_id,campaign_name from vicidial_campaigns;";
|
||||
$stmt="select campaign_id,campaign_name from vicidial_campaigns order by campaign_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$campaigns_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -29,13 +29,13 @@ if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
|
||||
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 6 and view_reports='1' and modify_campaigns='1';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 6 and view_reports='1' and modify_campaigns='1';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
{
|
||||
Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
|
||||
Header("HTTP/1.0 401 Unauthorized");
|
||||
@@ -129,7 +129,7 @@ else
|
||||
echo "|ORDER |PRIORITY| LEAD ID | LIST ID | PHONE NUM | STATE | STATUS | COUNT | GMT | ALT |\n";
|
||||
echo "+------+--------+-----------+------------+------------+-------+--------+-------+--------+-------+\n";
|
||||
|
||||
$stmt="select vicidial_hopper.lead_id,phone_number,vicidial_hopper.state,vicidial_list.status,called_count,vicidial_hopper.gmt_offset_now,hopper_id,alt_dial,vicidial_hopper.list_id,vicidial_hopper.priority from vicidial_hopper,vicidial_list where vicidial_hopper.campaign_id='" . mysql_real_escape_string($group) . "' and vicidial_hopper.status='READY' and vicidial_hopper.lead_id=vicidial_list.lead_id order by priority desc,hopper_id limit 2000;";
|
||||
$stmt="select vicidial_hopper.lead_id,phone_number,vicidial_hopper.state,vicidial_list.status,called_count,vicidial_hopper.gmt_offset_now,hopper_id,alt_dial,vicidial_hopper.list_id,vicidial_hopper.priority from vicidial_hopper,vicidial_list where vicidial_hopper.campaign_id='" . mysql_real_escape_string($group) . "' and vicidial_hopper.status='READY' and vicidial_hopper.lead_id=vicidial_list.lead_id order by priority desc,hopper_id limit 5000;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$users_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_agent_days_detail.php
|
||||
#
|
||||
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -9,6 +9,7 @@
|
||||
# 90225-1051 - Added CSV download option
|
||||
# 90310-0752 - Added admin header
|
||||
# 90508-0644 - Changed to PHP long tags
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
|
||||
@@ -46,12 +47,10 @@ $stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysql_num_rows($rslt);
|
||||
$i=0;
|
||||
while ($i < $qm_conf_ct)
|
||||
if ($qm_conf_ct > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$non_latin = $row[0];
|
||||
$i++;
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
@@ -66,7 +65,7 @@ $rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
{
|
||||
Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
|
||||
Header("HTTP/1.0 401 Unauthorized");
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
# 90717-1500 - Changed to be multi-campaign, multi-user-group select
|
||||
# 90908-1058 - Added DEAD time statistics
|
||||
# 100203-1131 - Added CUSTOMER time statistics
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -93,7 +94,7 @@ if (!isset($group)) {$group = '';}
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
if (!isset($end_date)) {$end_date = $NOW_DATE;}
|
||||
|
||||
$stmt="select campaign_id from vicidial_campaigns;";
|
||||
$stmt="select campaign_id from vicidial_campaigns order by campaign_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$campaigns_to_print = mysql_num_rows($rslt);
|
||||
@@ -104,7 +105,7 @@ while ($i < $campaigns_to_print)
|
||||
$groups[$i] =$row[0];
|
||||
$i++;
|
||||
}
|
||||
$stmt="select user_group from vicidial_user_groups;";
|
||||
$stmt="select user_group from vicidial_user_groups order by user_group;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$user_groups_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
# 90310-2030 - Admin header
|
||||
# 90508-0644 - Changed to PHP long tags
|
||||
# 100119-0935 - Fixed bug 291
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
|
||||
@@ -47,12 +48,10 @@ $stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysql_num_rows($rslt);
|
||||
$i=0;
|
||||
while ($i < $qm_conf_ct)
|
||||
if ($qm_conf_ct > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$non_latin = $row[0];
|
||||
$i++;
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
@@ -67,7 +66,7 @@ $rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
{
|
||||
Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
|
||||
Header("HTTP/1.0 401 Unauthorized");
|
||||
@@ -83,7 +82,7 @@ if (!isset($group)) {$group = '';}
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
if (!isset($end_date)) {$end_date = $NOW_DATE;}
|
||||
|
||||
$stmt="select campaign_id from vicidial_campaigns;";
|
||||
$stmt="select campaign_id from vicidial_campaigns order by campaign_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$campaigns_to_print = mysql_num_rows($rslt);
|
||||
@@ -94,7 +93,7 @@ while ($i < $campaigns_to_print)
|
||||
$groups[$i] =$row[0];
|
||||
$i++;
|
||||
}
|
||||
$stmt="select user_group from vicidial_user_groups;";
|
||||
$stmt="select user_group from vicidial_user_groups order by user_group;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$user_groups_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
# 90522-0723 - First build
|
||||
# 90908-1103 - Added DEAD time stats
|
||||
# 100203-1147 - Added CUSTOMER time statistics
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -82,7 +83,7 @@ if (!isset($group)) {$group = '';}
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
if (!isset($end_date)) {$end_date = $NOW_DATE;}
|
||||
|
||||
$stmt="select campaign_id from vicidial_campaigns;";
|
||||
$stmt="select campaign_id from vicidial_campaigns order by campaign_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$campaigns_to_print = mysql_num_rows($rslt);
|
||||
@@ -93,7 +94,7 @@ while ($i < $campaigns_to_print)
|
||||
$groups[$i] =$row[0];
|
||||
$i++;
|
||||
}
|
||||
$stmt="select user_group from vicidial_user_groups;";
|
||||
$stmt="select user_group from vicidial_user_groups order by user_group;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$user_groups_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_server_performance.php
|
||||
#
|
||||
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -12,6 +12,7 @@
|
||||
# 80118-1508 - Fixed horizontal scale marking issues
|
||||
# 90310-2151 - Added admin header
|
||||
# 90508-0644 - Changed to PHP long tags
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -35,13 +36,13 @@ if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
|
||||
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 6 and view_reports='1' and modify_servers='1';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 6 and view_reports='1' and modify_servers='1';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
{
|
||||
Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
|
||||
Header("HTTP/1.0 401 Unauthorized");
|
||||
@@ -61,7 +62,7 @@ if (!isset($begin_query_time)) {$begin_query_time = "$NOW_DATE 09:00:00";}
|
||||
if (!isset($end_query_time)) {$end_query_time = "$NOW_DATE 15:30:00";}
|
||||
if (!isset($group)) {$group = '';}
|
||||
|
||||
$stmt="select server_ip from servers;";
|
||||
$stmt="select server_ip from servers order by server_ip;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$servers_to_print = mysql_num_rows($rslt);
|
||||
|
||||
+288
-153
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_timeonVDADall.php
|
||||
#
|
||||
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# live real-time stats for the VICIDIAL Auto-Dialer all servers
|
||||
#
|
||||
@@ -58,11 +58,11 @@
|
||||
# 90914-1154 - Added AgentOnly display column to waiting calls section
|
||||
# 91102-2013 - Changed in-group color styles for incoming calls waiting
|
||||
# 91204-1548 - Added ability to change agent in-groups and blended
|
||||
# 100214-1127 - Added no-dialable-leads alert and in-groups stats option
|
||||
#
|
||||
|
||||
|
||||
$version = '2.2.0-49';
|
||||
$build = '91204-1548';
|
||||
$version = '2.2.0-50';
|
||||
$build = '100214-1127';
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -110,6 +110,12 @@ if (isset($_GET["PHONEdisplay"])) {$PHONEdisplay=$_GET["PHONEdisplay"];}
|
||||
elseif (isset($_POST["PHONEdisplay"])) {$PHONEdisplay=$_POST["PHONEdisplay"];}
|
||||
if (isset($_GET["CUSTPHONEdisplay"])) {$CUSTPHONEdisplay=$_GET["CUSTPHONEdisplay"];}
|
||||
elseif (isset($_POST["CUSTPHONEdisplay"])) {$CUSTPHONEdisplay=$_POST["CUSTPHONEdisplay"];}
|
||||
if (isset($_GET["NOLEADSalert"])) {$NOLEADSalert=$_GET["NOLEADSalert"];}
|
||||
elseif (isset($_POST["NOLEADSalert"])) {$NOLEADSalert=$_POST["NOLEADSalert"];}
|
||||
if (isset($_GET["DROPINGROUPstats"])) {$DROPINGROUPstats=$_GET["DROPINGROUPstats"];}
|
||||
elseif (isset($_POST["DROPINGROUPstats"])) {$DROPINGROUPstats=$_POST["DROPINGROUPstats"];}
|
||||
if (isset($_GET["ALLINGROUPstats"])) {$ALLINGROUPstats=$_GET["ALLINGROUPstats"];}
|
||||
elseif (isset($_POST["ALLINGROUPstats"])) {$ALLINGROUPstats=$_POST["ALLINGROUPstats"];}
|
||||
if (isset($_GET["with_inbound"])) {$with_inbound=$_GET["with_inbound"];}
|
||||
elseif (isset($_POST["with_inbound"])) {$with_inbound=$_POST["with_inbound"];}
|
||||
if (isset($_GET["monitor_active"])) {$monitor_active=$_GET["monitor_active"];}
|
||||
@@ -240,14 +246,14 @@ if ( (!isset($monitor_phone)) or (strlen($monitor_phone)<1) )
|
||||
$monitor_phone = $row[0];
|
||||
}
|
||||
|
||||
$stmt="select campaign_id,campaign_name from vicidial_campaigns where active='Y';";
|
||||
$stmt="select campaign_id,campaign_name from vicidial_campaigns where active='Y' order by campaign_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$groups_to_print = mysql_num_rows($rslt);
|
||||
$i=0;
|
||||
$LISTgroups[$i]='ALL-ACTIVE';
|
||||
$i++;
|
||||
$groups_to_print++;
|
||||
$LISTgroups[$i]='ALL-ACTIVE';
|
||||
$i++;
|
||||
$groups_to_print++;
|
||||
while ($i < $groups_to_print)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
@@ -268,6 +274,14 @@ while($i < $group_ct)
|
||||
}
|
||||
$group_SQL = eregi_replace(",$",'',$group_SQL);
|
||||
|
||||
### if no campaigns selected, display all
|
||||
if ($group_ct < 1)
|
||||
{
|
||||
$groups[0] = 'ALL-ACTIVE';
|
||||
$group_string = 'ALL-ACTIVE';
|
||||
$group = 'ALL-ACTIVE';
|
||||
$groupQS .= "&groups[]=ALL-ACTIVE";
|
||||
}
|
||||
|
||||
if ( (ereg("--NONE--",$group_string) ) or ($group_ct < 1) )
|
||||
{
|
||||
@@ -311,7 +325,7 @@ $NFE = '</font></b>';
|
||||
$F=''; $FG=''; $B=''; $BG='';
|
||||
|
||||
$select_list = "<TABLE WIDTH=200 CELLPADDING=5 BGCOLOR=\"#D9E6FE\"><TR><TD>Select Campaigns: <BR>";
|
||||
$select_list .= "<SELECT SIZE=10 NAME=groups[] multiple>";
|
||||
$select_list .= "<SELECT SIZE=15 NAME=groups[] multiple>";
|
||||
$o=0;
|
||||
while ($groups_to_print > $o)
|
||||
{
|
||||
@@ -335,7 +349,7 @@ if ($UGdisplay > 0)
|
||||
while ($usergroups_to_print > $o)
|
||||
{
|
||||
if ($usergroups[$o] == $usergroup) {$select_list .= "<option selected value=\"$usergroups[$o]\">$usergroups[$o]</option>";}
|
||||
else {$select_list .= "<option value=\"$usergroups[$o]\">$usergroups[$o]</option>";}
|
||||
else {$select_list .= "<option value=\"$usergroups[$o]\">$usergroups[$o]</option>";}
|
||||
$o++;
|
||||
}
|
||||
$select_list .= "</SELECT><BR><BR>";
|
||||
@@ -372,6 +386,24 @@ $select_list .= "Phone: ";
|
||||
$select_list .= "<INPUT type=text size=10 maxlength=20 NAME=monitor_phone VALUE=\"$monitor_phone\">";
|
||||
$select_list .= "<BR><BR>";
|
||||
|
||||
$select_list .= " Dialable Leads Alert:<BR><SELECT SIZE=1 NAME=NOLEADSalert>";
|
||||
$select_list .= "<option value=\"\"";
|
||||
if (strlen($NOLEADSalert) < 2) {$select_list .= " selected";}
|
||||
$select_list .= ">NO</option>";
|
||||
$select_list .= "<option value=\"YES\"";
|
||||
if ($NOLEADSalert=='YES') {$select_list .= " selected";}
|
||||
$select_list .= ">YES</option>";
|
||||
$select_list .= "</SELECT><BR><BR>";
|
||||
|
||||
$select_list .= " Show Drop In-Group Row:<BR><SELECT SIZE=1 NAME=DROPINGROUPstats>";
|
||||
$select_list .= "<option value=\"0\"";
|
||||
if ($DROPINGROUPstats < 1) {$select_list .= " selected";}
|
||||
$select_list .= ">NO</option>";
|
||||
$select_list .= "<option value=\"1\"";
|
||||
if ($DROPINGROUPstats=='1') {$select_list .= " selected";}
|
||||
$select_list .= ">YES</option>";
|
||||
$select_list .= "</SELECT><BR><BR>";
|
||||
|
||||
|
||||
$select_list .= "<INPUT type=submit NAME=SUBMIT VALUE=SUBMIT><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2> ";
|
||||
$select_list .= "</TD></TR>";
|
||||
@@ -420,10 +452,16 @@ var pass = '<?php echo $PHP_AUTH_PW ?>';
|
||||
function openDiv(divvar)
|
||||
{
|
||||
document.getElementById(divvar).innerHTML = select_list;
|
||||
document.getElementById(divvar).style.left = 0;
|
||||
}
|
||||
function closeDiv(divvar)
|
||||
{
|
||||
document.getElementById(divvar).innerHTML = open_list;
|
||||
document.getElementById(divvar).style.left = 160;
|
||||
}
|
||||
function closeAlert(divvar)
|
||||
{
|
||||
document.getElementById(divvar).innerHTML = '';
|
||||
}
|
||||
// function to launch monitoring calls
|
||||
|
||||
@@ -667,7 +705,7 @@ $rslt=mysql_query($stmt, $link);
|
||||
$campaign_allow_inbound = $row[0];
|
||||
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo"<META HTTP-EQUIV=Refresh CONTENT=\"$RR; URL=$PHP_SELF?RR=$RR&DB=$DB$groupQS&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\">\n";
|
||||
echo"<META HTTP-EQUIV=Refresh CONTENT=\"$RR; URL=$PHP_SELF?RR=$RR&DB=$DB$groupQS&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\">\n";
|
||||
echo "<TITLE>Real-Time Report: $group</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
$short_header=1;
|
||||
@@ -692,6 +730,8 @@ echo "<INPUT TYPE=HIDDEN NAME=SERVdisplay VALUE=\"$SERVdisplay\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=CALLSdisplay VALUE=\"$CALLSdisplay\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=PHONEdisplay VALUE=\"$PHONEdisplay\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=CUSTPHONEdisplay VALUE=\"$CUSTPHONEdisplay\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=DROPINGROUPstats VALUE=\"$DROPINGROUPstats\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=ALLINGROUPstats VALUE=\"$ALLINGROUPstats\">\n";
|
||||
echo "Real-Time Report \n";
|
||||
echo "<span style=\"position:absolute;left:160px;top:27px;z-index:19;\" id=campaign_select_list>\n";
|
||||
echo "<TABLE WIDTH=250 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#D9E6FE\"><TR><TD ALIGN=CENTER>\n";
|
||||
@@ -701,9 +741,9 @@ echo "</span>\n";
|
||||
echo "<span style=\"position:absolute;left:10px;top:120px;z-index:18;\" id=agent_ingroup_display>\n";
|
||||
echo " ";
|
||||
echo "</span>\n";
|
||||
echo "<a href=\"$PHP_SELF?RR=4000$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\">STOP</a> | ";
|
||||
echo "<a href=\"$PHP_SELF?RR=40$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\">SLOW</a> | ";
|
||||
echo "<a href=\"$PHP_SELF?RR=4$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\">GO</a>";
|
||||
echo "<a href=\"$PHP_SELF?RR=4000$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\">STOP</a> | ";
|
||||
echo "<a href=\"$PHP_SELF?RR=40$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\">SLOW</a> | ";
|
||||
echo "<a href=\"$PHP_SELF?RR=4$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\">GO</a>";
|
||||
if (eregi('ALL-ACTIVE',$group_string))
|
||||
{
|
||||
echo " <a href=\"./admin.php?ADD=10\">MODIFY</a> | \n";
|
||||
@@ -716,7 +756,8 @@ echo "<a href=\"./AST_timeonVDADallSUMMARY.php?RR=$RR&DB=$DB&adastats=$adastats\
|
||||
echo "\n\n";
|
||||
|
||||
|
||||
if (!$group) {echo "<BR><BR>please select a campaign from the pulldown above</FORM>\n"; exit;}
|
||||
if (!$group)
|
||||
{echo "<BR><BR>please select a campaign from the pulldown above</FORM>\n"; exit;}
|
||||
else
|
||||
{
|
||||
$multi_drop=0;
|
||||
@@ -762,124 +803,169 @@ else
|
||||
if ($DB > 0) {echo "\n|$closer_campaigns|$closer_campaignsSQL|$stmt|\n";}
|
||||
|
||||
|
||||
##### SHOW IN-GROUP STATS OR INBOUND ONLY WITH VIEW-MORE ###
|
||||
if ( ($ALLINGROUPstats > 0) or ( (ereg('O',$with_inbound)) and ($adastats > 1) ) )
|
||||
{
|
||||
$stmtB="select calls_today,drops_today,answers_today,status_category_1,status_category_count_1,status_category_2,status_category_count_2,status_category_3,status_category_count_3,status_category_4,status_category_count_4,hold_sec_stat_one,hold_sec_stat_two,hold_sec_answer_calls,hold_sec_drop_calls,hold_sec_queue_calls,campaign_id from vicidial_campaign_stats where campaign_id IN ($closer_campaignsSQL) order by campaign_id;";
|
||||
|
||||
if ($DB > 0) {echo "\n|$stmtB|\n";}
|
||||
|
||||
$r=0;
|
||||
$rslt=mysql_query($stmtB, $link);
|
||||
$ingroups_to_print = mysql_num_rows($rslt);
|
||||
if ($ingroups_to_print > 0)
|
||||
{$ingroup_detail .= "<table cellpadding=0 cellspacing=0>";}
|
||||
while ($ingroups_to_print > $r)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$callsTODAY = $row[0];
|
||||
$dropsTODAY = $row[1];
|
||||
$answersTODAY = $row[2];
|
||||
$VSCcat1 = $row[3];
|
||||
$VSCcat1tally = $row[4];
|
||||
$VSCcat2 = $row[5];
|
||||
$VSCcat2tally = $row[6];
|
||||
$VSCcat3 = $row[7];
|
||||
$VSCcat3tally = $row[8];
|
||||
$VSCcat4 = $row[9];
|
||||
$VSCcat4tally = $row[10];
|
||||
$hold_sec_stat_one = $row[11];
|
||||
$hold_sec_stat_two = $row[12];
|
||||
$hold_sec_answer_calls = $row[13];
|
||||
$hold_sec_drop_calls = $row[14];
|
||||
$hold_sec_queue_calls = $row[15];
|
||||
$ingroupdetail = $row[16];
|
||||
if ( ($dropsTODAY > 0) and ($answersTODAY > 0) )
|
||||
{
|
||||
$drpctTODAY = ( ($dropsTODAY / $answersTODAY) * 100);
|
||||
$drpctTODAY = round($drpctTODAY, 2);
|
||||
$drpctTODAY = sprintf("%01.2f", $drpctTODAY);
|
||||
}
|
||||
else
|
||||
{$drpctTODAY=0;}
|
||||
|
||||
if ($callsTODAY > 0)
|
||||
{
|
||||
$AVGhold_sec_queue_calls = ($hold_sec_queue_calls / $callsTODAY);
|
||||
$AVGhold_sec_queue_calls = round($AVGhold_sec_queue_calls, 0);
|
||||
}
|
||||
else
|
||||
{$AVGhold_sec_queue_calls=0;}
|
||||
|
||||
if ($dropsTODAY > 0)
|
||||
{
|
||||
$AVGhold_sec_drop_calls = ($hold_sec_drop_calls / $dropsTODAY);
|
||||
$AVGhold_sec_drop_calls = round($AVGhold_sec_drop_calls, 0);
|
||||
}
|
||||
else
|
||||
{$AVGhold_sec_drop_calls=0;}
|
||||
|
||||
if ($answersTODAY > 0)
|
||||
{
|
||||
$PCThold_sec_stat_one = ( ($hold_sec_stat_one / $answersTODAY) * 100);
|
||||
$PCThold_sec_stat_one = round($PCThold_sec_stat_one, 2);
|
||||
$PCThold_sec_stat_one = sprintf("%01.2f", $PCThold_sec_stat_one);
|
||||
$PCThold_sec_stat_two = ( ($hold_sec_stat_two / $answersTODAY) * 100);
|
||||
$PCThold_sec_stat_two = round($PCThold_sec_stat_two, 2);
|
||||
$PCThold_sec_stat_two = sprintf("%01.2f", $PCThold_sec_stat_two);
|
||||
$AVGhold_sec_answer_calls = ($hold_sec_answer_calls / $answersTODAY);
|
||||
$AVGhold_sec_answer_calls = round($AVGhold_sec_answer_calls, 0);
|
||||
if ($agent_non_pause_sec > 0)
|
||||
{
|
||||
$AVG_ANSWERagent_non_pause_sec = (($answersTODAY / $agent_non_pause_sec) * 60);
|
||||
$AVG_ANSWERagent_non_pause_sec = round($AVG_ANSWERagent_non_pause_sec, 2);
|
||||
$AVG_ANSWERagent_non_pause_sec = sprintf("%01.2f", $AVG_ANSWERagent_non_pause_sec);
|
||||
}
|
||||
else
|
||||
{$AVG_ANSWERagent_non_pause_sec=0;}
|
||||
}
|
||||
else
|
||||
{
|
||||
$PCThold_sec_stat_one=0;
|
||||
$PCThold_sec_stat_two=0;
|
||||
$AVGhold_sec_answer_calls=0;
|
||||
$AVG_ANSWERagent_non_pause_sec=0;
|
||||
}
|
||||
|
||||
if (ereg("0$|2$|4$|6$|8$",$r)) {$bgcolor='#E6E6E6';}
|
||||
else {$bgcolor='white';}
|
||||
$ingroup_detail .= "<TR bgcolor=\"$bgcolor\">";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT bgcolor=white><font size=2> </TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>$ingroupdetail </B></TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>CALLS TODAY:</B></TD><TD ALIGN=LEFT><font size=2> $callsTODAY </TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>TMA 1:</B></TD><TD ALIGN=LEFT><font size=2> $PCThold_sec_stat_one% </TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>Average Hold time for Answered Calls:</B></TD><TD ALIGN=LEFT><font size=2> $AVGhold_sec_answer_calls </TD>";
|
||||
$ingroup_detail .= "</TR>";
|
||||
$ingroup_detail .= "<TR bgcolor=\"$bgcolor\">";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT bgcolor=white><font size=2></TD><TD ALIGN=LEFT><font size=2></TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>DROPS TODAY:</B></TD><TD ALIGN=LEFT><font size=2> $dropsTODAY </TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>TMA 2:</B></TD><TD ALIGN=LEFT><font size=2> $PCThold_sec_stat_two% </TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>Average Hold time for Dropped Calls:</B></TD><TD ALIGN=LEFT><font size=2> $AVGhold_sec_drop_calls </TD>";
|
||||
$ingroup_detail .= "</TR>";
|
||||
$ingroup_detail .= "<TR bgcolor=\"$bgcolor\">";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT bgcolor=white><font size=2></TD><TD ALIGN=LEFT><font size=2></TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>ANSWERS TODAY:</B></TD><TD ALIGN=LEFT><font size=2> $answersTODAY </TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>DROP PERCENT:</B></TD><TD ALIGN=LEFT><font size=2> $drpctTODAY% </TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>Average Hold time for All Calls:</B></TD><TD ALIGN=LEFT><font size=2> $AVGhold_sec_queue_calls </TD>";
|
||||
$ingroup_detail .= "</TR>";
|
||||
|
||||
$r++;
|
||||
}
|
||||
|
||||
if ($ingroups_to_print > 0)
|
||||
{$ingroup_detail .= "</table>";}
|
||||
}
|
||||
|
||||
|
||||
##### DROP IN-GROUP ONLY TOTALS ROW ###
|
||||
$DROPINGROUPstatsHTML='';
|
||||
if ( ($DROPINGROUPstats > 0) and (!preg_match("/ALL-ACTIVE/",$group_string)) )
|
||||
{
|
||||
$DIGcampaigns='';
|
||||
$stmtB="select drop_inbound_group from vicidial_campaigns where campaign_id IN($group_SQL) and drop_inbound_group NOT IN('---NONE---','');";
|
||||
if ($DB > 0) {echo "\n|$stmtB|\n";}
|
||||
$rslt=mysql_query($stmtB, $link);
|
||||
$dig_to_print = mysql_num_rows($rslt);
|
||||
$dtp=0;
|
||||
while ($dig_to_print > $dtp)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$DIGcampaigns .= "'$row[0]',";
|
||||
$dtp++;
|
||||
}
|
||||
$DIGcampaigns = preg_replace("/,$/",'',$DIGcampaigns);
|
||||
|
||||
$stmtB="select sum(calls_today),sum(drops_today),sum(answers_today) from vicidial_campaign_stats where campaign_id IN($DIGcampaigns);";
|
||||
if ($DB > 0) {echo "\n|$stmtB|\n";}
|
||||
|
||||
$rslt=mysql_query($stmtB, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$callsTODAY = $row[0];
|
||||
$dropsTODAY = $row[1];
|
||||
$answersTODAY = $row[2];
|
||||
if ( ($dropsTODAY > 0) and ($callsTODAY > 0) )
|
||||
{
|
||||
$drpctTODAY = ( ($dropsTODAY / $callsTODAY) * 100);
|
||||
$drpctTODAY = round($drpctTODAY, 2);
|
||||
$drpctTODAY = sprintf("%01.2f", $drpctTODAY);
|
||||
}
|
||||
else
|
||||
{$drpctTODAY=0;}
|
||||
|
||||
$DROPINGROUPstatsHTML .= "<TR BGCOLOR=\"#E6E6E6\">";
|
||||
$DROPINGROUPstatsHTML .= "<TD ALIGN=RIGHT COLSPAN=2><font size=2><B>DROP IN-GROUP STATS -</B></TD>";
|
||||
$DROPINGROUPstatsHTML .= "<TD ALIGN=RIGHT><font size=2><B>DROP PERCENT:</B></TD><TD ALIGN=LEFT><font size=2> $drpctTODAY% </TD>";
|
||||
$DROPINGROUPstatsHTML .= "<TD ALIGN=RIGHT><font size=2><B>CALLS:</B></TD><TD ALIGN=LEFT><font size=2> $callsTODAY </TD>";
|
||||
$DROPINGROUPstatsHTML .= "<TD ALIGN=RIGHT><font size=2><B>DROPS/ANSWERS:</B></TD><TD ALIGN=LEFT><font size=2> $dropsTODAY / $answersTODAY </TD>";
|
||||
$DROPINGROUPstatsHTML .= "</TR>";
|
||||
}
|
||||
|
||||
|
||||
##### INBOUND ONLY ###
|
||||
if (ereg('O',$with_inbound))
|
||||
{
|
||||
$multi_drop++;
|
||||
|
||||
if ($adastats>1)
|
||||
{
|
||||
$stmtB="select calls_today,drops_today,answers_today,status_category_1,status_category_count_1,status_category_2,status_category_count_2,status_category_3,status_category_count_3,status_category_4,status_category_count_4,hold_sec_stat_one,hold_sec_stat_two,hold_sec_answer_calls,hold_sec_drop_calls,hold_sec_queue_calls,campaign_id from vicidial_campaign_stats where campaign_id IN ($closer_campaignsSQL);";
|
||||
|
||||
if ($DB > 0) {echo "\n|$stmtB|\n";}
|
||||
|
||||
$r=0;
|
||||
$rslt=mysql_query($stmtB, $link);
|
||||
$ingroups_to_print = mysql_num_rows($rslt);
|
||||
if ($ingroups_to_print > 0)
|
||||
{$ingroup_detail .= "<table cellpadding=0 cellspacing=0>";}
|
||||
while ($ingroups_to_print > $r)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$callsTODAY = $row[0];
|
||||
$dropsTODAY = $row[1];
|
||||
$answersTODAY = $row[2];
|
||||
$VSCcat1 = $row[3];
|
||||
$VSCcat1tally = $row[4];
|
||||
$VSCcat2 = $row[5];
|
||||
$VSCcat2tally = $row[6];
|
||||
$VSCcat3 = $row[7];
|
||||
$VSCcat3tally = $row[8];
|
||||
$VSCcat4 = $row[9];
|
||||
$VSCcat4tally = $row[10];
|
||||
$hold_sec_stat_one = $row[11];
|
||||
$hold_sec_stat_two = $row[12];
|
||||
$hold_sec_answer_calls = $row[13];
|
||||
$hold_sec_drop_calls = $row[14];
|
||||
$hold_sec_queue_calls = $row[15];
|
||||
$ingroupdetail = $row[16];
|
||||
if ( ($dropsTODAY > 0) and ($answersTODAY > 0) )
|
||||
{
|
||||
$drpctTODAY = ( ($dropsTODAY / $answersTODAY) * 100);
|
||||
$drpctTODAY = round($drpctTODAY, 2);
|
||||
$drpctTODAY = sprintf("%01.2f", $drpctTODAY);
|
||||
}
|
||||
else
|
||||
{$drpctTODAY=0;}
|
||||
|
||||
if ($callsTODAY > 0)
|
||||
{
|
||||
$AVGhold_sec_queue_calls = ($hold_sec_queue_calls / $callsTODAY);
|
||||
$AVGhold_sec_queue_calls = round($AVGhold_sec_queue_calls, 0);
|
||||
}
|
||||
else
|
||||
{$AVGhold_sec_queue_calls=0;}
|
||||
|
||||
if ($dropsTODAY > 0)
|
||||
{
|
||||
$AVGhold_sec_drop_calls = ($hold_sec_drop_calls / $dropsTODAY);
|
||||
$AVGhold_sec_drop_calls = round($AVGhold_sec_drop_calls, 0);
|
||||
}
|
||||
else
|
||||
{$AVGhold_sec_drop_calls=0;}
|
||||
|
||||
if ($answersTODAY > 0)
|
||||
{
|
||||
$PCThold_sec_stat_one = ( ($hold_sec_stat_one / $answersTODAY) * 100);
|
||||
$PCThold_sec_stat_one = round($PCThold_sec_stat_one, 2);
|
||||
$PCThold_sec_stat_one = sprintf("%01.2f", $PCThold_sec_stat_one);
|
||||
$PCThold_sec_stat_two = ( ($hold_sec_stat_two / $answersTODAY) * 100);
|
||||
$PCThold_sec_stat_two = round($PCThold_sec_stat_two, 2);
|
||||
$PCThold_sec_stat_two = sprintf("%01.2f", $PCThold_sec_stat_two);
|
||||
$AVGhold_sec_answer_calls = ($hold_sec_answer_calls / $answersTODAY);
|
||||
$AVGhold_sec_answer_calls = round($AVGhold_sec_answer_calls, 0);
|
||||
if ($agent_non_pause_sec > 0)
|
||||
{
|
||||
$AVG_ANSWERagent_non_pause_sec = (($answersTODAY / $agent_non_pause_sec) * 60);
|
||||
$AVG_ANSWERagent_non_pause_sec = round($AVG_ANSWERagent_non_pause_sec, 2);
|
||||
$AVG_ANSWERagent_non_pause_sec = sprintf("%01.2f", $AVG_ANSWERagent_non_pause_sec);
|
||||
}
|
||||
else
|
||||
{$AVG_ANSWERagent_non_pause_sec=0;}
|
||||
}
|
||||
else
|
||||
{
|
||||
$PCThold_sec_stat_one=0;
|
||||
$PCThold_sec_stat_two=0;
|
||||
$AVGhold_sec_answer_calls=0;
|
||||
$AVG_ANSWERagent_non_pause_sec=0;
|
||||
}
|
||||
|
||||
if (ereg("0$|2$|4$|6$|8$",$r)) {$bgcolor='#E6E6E6';}
|
||||
else {$bgcolor='white';}
|
||||
$ingroup_detail .= "<TR bgcolor=\"$bgcolor\">";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT bgcolor=white><font size=2> </TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>$ingroupdetail </B></TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>CALLS TODAY:</B></TD><TD ALIGN=LEFT><font size=2> $callsTODAY </TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>TMA 1:</B></TD><TD ALIGN=LEFT><font size=2> $PCThold_sec_stat_one% </TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>Average Hold time for Answered Calls:</B></TD><TD ALIGN=LEFT><font size=2> $AVGhold_sec_answer_calls </TD>";
|
||||
$ingroup_detail .= "</TR>";
|
||||
$ingroup_detail .= "<TR bgcolor=\"$bgcolor\">";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT bgcolor=white><font size=2></TD><TD ALIGN=LEFT><font size=2></TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>DROPS TODAY:</B></TD><TD ALIGN=LEFT><font size=2> $dropsTODAY </TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>TMA 2:</B></TD><TD ALIGN=LEFT><font size=2> $PCThold_sec_stat_two% </TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>Average Hold time for Dropped Calls:</B></TD><TD ALIGN=LEFT><font size=2> $AVGhold_sec_drop_calls </TD>";
|
||||
$ingroup_detail .= "</TR>";
|
||||
$ingroup_detail .= "<TR bgcolor=\"$bgcolor\">";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT bgcolor=white><font size=2></TD><TD ALIGN=LEFT><font size=2></TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>ANSWERS TODAY:</B></TD><TD ALIGN=LEFT><font size=2> $answersTODAY </TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>DROP PERCENT:</B></TD><TD ALIGN=LEFT><font size=2> $drpctTODAY% </TD>";
|
||||
$ingroup_detail .= "<TD ALIGN=RIGHT><font size=2><B>Average Hold time for All Calls:</B></TD><TD ALIGN=LEFT><font size=2> $AVGhold_sec_queue_calls </TD>";
|
||||
$ingroup_detail .= "</TR>";
|
||||
|
||||
$r++;
|
||||
}
|
||||
|
||||
if ($ingroups_to_print > 0)
|
||||
{$ingroup_detail .= "</table>";}
|
||||
|
||||
}
|
||||
|
||||
$stmt="select agent_pause_codes_active from vicidial_campaigns $group_SQLwhere;";
|
||||
|
||||
$stmtB="select sum(calls_today),sum(drops_today),sum(answers_today),max(status_category_1),sum(status_category_count_1),max(status_category_2),sum(status_category_count_2),max(status_category_3),sum(status_category_count_3),max(status_category_4),sum(status_category_count_4),sum(hold_sec_stat_one),sum(hold_sec_stat_two),sum(hold_sec_answer_calls),sum(hold_sec_drop_calls),sum(hold_sec_queue_calls) from vicidial_campaign_stats where campaign_id IN ($closer_campaignsSQL);";
|
||||
@@ -1182,6 +1268,8 @@ else
|
||||
echo "<TD ALIGN=RIGHT><font size=2><B>DIFF:</B></TD><TD ALIGN=LEFT><font size=2> $diffpctONEMIN% </TD>";
|
||||
echo "<TD ALIGN=RIGHT><font size=2><B>ORDER:</B></TD><TD ALIGN=LEFT><font size=2> $DIALorder </TD>";
|
||||
echo "</TR>";
|
||||
|
||||
echo "$DROPINGROUPstatsHTML\n";
|
||||
}
|
||||
|
||||
echo "<TR>";
|
||||
@@ -1202,66 +1290,99 @@ echo "$ingroup_detail";
|
||||
|
||||
if ($adastats<2)
|
||||
{
|
||||
echo "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=2&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\"><font size=1>+ VIEW MORE</font></a>";
|
||||
echo "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=2&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\"><font size=1>+ VIEW MORE</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=1&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\"><font size=1>+ VIEW LESS</font></a>";
|
||||
echo "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=1&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\"><font size=1>+ VIEW LESS</font></a>";
|
||||
}
|
||||
if ($UGdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=0&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\"><font size=1>HIDE USER GROUP</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=0&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\"><font size=1>HIDE USER GROUP</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=1&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\"><font size=1>VIEW USER GROUP</font></a>";
|
||||
}
|
||||
if ($UidORname>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=0&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\"><font size=1>SHOW AGENT ID</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=1&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\"><font size=1>SHOW AGENT NAME</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=1&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\"><font size=1>VIEW USER GROUP</font></a>";
|
||||
}
|
||||
if ($SERVdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=0&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\"><font size=1>HIDE SERVER INFO</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=0&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\"><font size=1>HIDE SERVER INFO</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=1&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\"><font size=1>SHOW SERVER INFO</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=1&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\"><font size=1>SHOW SERVER INFO</font></a>";
|
||||
}
|
||||
if ($CALLSdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=0&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\"><font size=1>HIDE WAITING CALLS</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=0&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\"><font size=1>HIDE WAITING CALLS</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=1&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\"><font size=1>SHOW WAITING CALLS</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=1&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\"><font size=1>SHOW WAITING CALLS</font></a>";
|
||||
}
|
||||
|
||||
if ($ALLINGROUPstats>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=0&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\"><font size=1>HIDE IN-GROUP STATS</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=1&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\"><font size=1>SHOW IN-GROUP STATS</font></a>";
|
||||
}
|
||||
if ($PHONEdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=0&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\"><font size=1>HIDE PHONES</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=0&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\"><font size=1>HIDE PHONES</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=1&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\"><font size=1>SHOW PHONES</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=1&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\"><font size=1>SHOW PHONES</font></a>";
|
||||
}
|
||||
if ($CUSTPHONEdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=0&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\"><font size=1>HIDE CUSTPHONES</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=0&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\"><font size=1>HIDE CUSTPHONES</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=1&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\"><font size=1>SHOW CUSTPHONES</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=1&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\"><font size=1>SHOW CUSTPHONES</font></a>";
|
||||
}
|
||||
echo "</TD>";
|
||||
echo "</TR>";
|
||||
echo "</TABLE>";
|
||||
|
||||
echo "</FORM>\n\n";
|
||||
|
||||
##### check for campaigns with no dialable leads if enabled #####
|
||||
if ( ($with_inbound != 'O') and ($NOLEADSalert == 'YES') )
|
||||
{
|
||||
$NDLcampaigns='';
|
||||
$stmtB="select campaign_id from vicidial_campaign_stats where campaign_id IN($group_SQL) and dialable_leads < 1 order by campaign_id;";
|
||||
if ($DB > 0) {echo "\n|$stmt|$stmtB|\n";}
|
||||
$rslt=mysql_query($stmtB, $link);
|
||||
$campaigns_to_print = mysql_num_rows($rslt);
|
||||
$ctp=0;
|
||||
while ($campaigns_to_print > $ctp)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$NDLcampaigns .= " <a href=\"./admin.php?ADD=34&campaign_id=$row[0]\">$row[0]</a> ";
|
||||
$ctp++;
|
||||
if (preg_match("/0$|5$/",$ctp))
|
||||
{$NDLcampaigns .= "<BR>";}
|
||||
}
|
||||
if ($ctp > 0)
|
||||
{
|
||||
echo "<span style=\"position:absolute;left:0px;top:47px;z-index:15;\" id=no_dialable_leads_span>\n";
|
||||
echo "<TABLE WIDTH=700 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#E9E6EE\"><TR><TD ALIGN=CENTER>\n";
|
||||
echo "<BR><BR><BR><BR><a href=\"#\" onclick=\"closeAlert('no_dialable_leads_span');\">Close Alert</a>";
|
||||
echo "<BR><BR><BR><BR><BR><b>Campaigns with no dialable leads:<BR><BR>$NDLcampaigns<b><BR>";
|
||||
echo "<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR> ";
|
||||
echo "</TD></TR></TABLE>\n";
|
||||
echo "</span>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
###################################################################################
|
||||
###### INBOUND/OUTBOUND CALLS
|
||||
###################################################################################
|
||||
@@ -1466,11 +1587,25 @@ $HTbegin = "|";
|
||||
$HDstation = "----------------+";
|
||||
$HTstation = " STATION |";
|
||||
$HDphone = "-------------+";
|
||||
$HTphone = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$phoneord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\">PHONE</a> |";
|
||||
$HTphone = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$phoneord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\">PHONE</a> |";
|
||||
$HDuser = "------------------------+";
|
||||
$HTuser = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$userord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\">USER</a> INFO |";
|
||||
|
||||
|
||||
$HTuser = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$userord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\">USER</a> ";
|
||||
if ($UidORname>0)
|
||||
{
|
||||
$HTuser .= "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=0&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\">SHOW ID</a> ";
|
||||
}
|
||||
else
|
||||
{
|
||||
$HTuser .= "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=1&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\">SHOW NAME</a>";
|
||||
}
|
||||
|
||||
$HTuser .= " INFO |";
|
||||
|
||||
|
||||
$HDusergroup = "--------------+";
|
||||
$HTusergroup = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$groupord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\">USER GROUP</a> |";
|
||||
$HTusergroup = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$groupord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\">USER GROUP</a> |";
|
||||
$HDsessionid = "------------------+";
|
||||
$HTsessionid = " SESSIONID |";
|
||||
$HDbarge = "-------+";
|
||||
@@ -1484,9 +1619,9 @@ $HTserver_ip = " SERVER IP |";
|
||||
$HDcall_server_ip = "-----------------+";
|
||||
$HTcall_server_ip = " CALL SERVER IP |";
|
||||
$HDtime = "---------+";
|
||||
$HTtime = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$timeord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\">MM:SS</a> |";
|
||||
$HTtime = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$timeord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\">MM:SS</a> |";
|
||||
$HDcampaign = "------------+";
|
||||
$HTcampaign = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$campaignord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone\">CAMPAIGN</a> |";
|
||||
$HTcampaign = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$campaignord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert\">CAMPAIGN</a> |";
|
||||
$HDcalls = "-------+";
|
||||
$HTcalls = " CALLS |";
|
||||
$HDpause = '';
|
||||
|
||||
@@ -4288,7 +4288,7 @@ if ($ADD==99999)
|
||||
<BR>
|
||||
<A NAME="vicidial_inbound_groups-after_hours_voicemail">
|
||||
<BR>
|
||||
<B>After Hours Voicemail -</B> The voicemail box to send the call to if the Action is set to VOICEMAIL.
|
||||
<B>After Hours Voicemail -</B> The voicemail box to send the call to if the Action is set to VOICEMAIL. In an AGENTDIRECT in-group, setting this to AGENTVMAIL will select the User voicemail ID to use.
|
||||
|
||||
<BR>
|
||||
<A NAME="vicidial_inbound_groups-afterhours_xfer_group">
|
||||
@@ -4298,7 +4298,7 @@ if ($ADD==99999)
|
||||
<BR>
|
||||
<A NAME="vicidial_inbound_groups-no_agent_no_queue">
|
||||
<BR>
|
||||
<B>No Agents No Queueing -</B> If this field is set to Y or NO_PAUSED then no calls will be put into the queue for this in-group if there are no agents logged in and the calls will go to the No Agent No Queue Action. The NO_PAUSED option will also not send the callers into the queue if there are only paused agents in the in-group. Default is N.
|
||||
<B>No Agents No Queueing -</B> If this field is set to Y or NO_PAUSED then no calls will be put into the queue for this in-group if there are no agents logged in and the calls will go to the No Agent No Queue Action. The NO_PAUSED option will also not send the callers into the queue if there are only paused agents in the in-group. Default is N. In an AGENTDIRECT in-group, setting this to AGENTVMAIL will select the User voicemail ID to use.
|
||||
|
||||
<BR>
|
||||
<A NAME="vicidial_inbound_groups-no_agent_action">
|
||||
@@ -4363,7 +4363,7 @@ if ($ADD==99999)
|
||||
<BR>
|
||||
<A NAME="vicidial_inbound_groups-hold_time_option_voicemail">
|
||||
<BR>
|
||||
<B>Hold Time Option Voicemail -</B> If Hold Time Option is set to VOICEMAIL, this is the voicemail box that the call will be sent to if the estimated hold time exceeds the Hold Time Option Seconds.
|
||||
<B>Hold Time Option Voicemail -</B> If Hold Time Option is set to VOICEMAIL, this is the voicemail box that the call will be sent to if the estimated hold time exceeds the Hold Time Option Seconds. In an AGENTDIRECT in-group, setting this to AGENTVMAIL will select the User voicemail ID to use.
|
||||
|
||||
<BR>
|
||||
<A NAME="vicidial_inbound_groups-hold_time_option_xfer_group">
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
# 90721-1137 - Added rank and owner as vicidial_list fields
|
||||
# 91121-0253 - Added list name, list description and status name
|
||||
# 100119-1039 - Filtered comments for \n newlines
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -358,7 +359,7 @@ else
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
if (!isset($end_date)) {$end_date = $NOW_DATE;}
|
||||
|
||||
$stmt="select campaign_id from vicidial_campaigns;";
|
||||
$stmt="select campaign_id from vicidial_campaigns order by campaign_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$campaigns_to_print = mysql_num_rows($rslt);
|
||||
@@ -373,7 +374,7 @@ else
|
||||
$i++;
|
||||
}
|
||||
|
||||
$stmt="select group_id from vicidial_inbound_groups;";
|
||||
$stmt="select group_id from vicidial_inbound_groups order by group_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$groups_to_print = mysql_num_rows($rslt);
|
||||
@@ -388,7 +389,7 @@ else
|
||||
$i++;
|
||||
}
|
||||
|
||||
$stmt="select user_group from vicidial_user_groups;";
|
||||
$stmt="select user_group from vicidial_user_groups order by user_group;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$user_groups_to_print = mysql_num_rows($rslt);
|
||||
@@ -403,7 +404,7 @@ else
|
||||
$i++;
|
||||
}
|
||||
|
||||
$stmt="select list_id from vicidial_lists;";
|
||||
$stmt="select list_id from vicidial_lists order by list_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$lists_to_print = mysql_num_rows($rslt);
|
||||
@@ -418,7 +419,7 @@ else
|
||||
$i++;
|
||||
}
|
||||
|
||||
$stmt="select status from vicidial_statuses;";
|
||||
$stmt="select status from vicidial_statuses order by status;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$statuses_to_print = mysql_num_rows($rslt);
|
||||
@@ -433,7 +434,7 @@ else
|
||||
$i++;
|
||||
}
|
||||
|
||||
$stmt="select distinct status from vicidial_campaign_statuses;";
|
||||
$stmt="select distinct status from vicidial_campaign_statuses order by status;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$Cstatuses_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# fcstats.php
|
||||
#
|
||||
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -12,6 +12,7 @@
|
||||
# 80328-1139 - adapted for basic fronter/closer stats
|
||||
# 90310-2132 - Added admin header
|
||||
# 90508-0644 - Changed to PHP long tags
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -37,13 +38,13 @@ $PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
|
||||
|
||||
if (strlen($shift)<2) {$shift='ALL';}
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 6 and view_reports='1';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 6 and view_reports='1';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
{
|
||||
Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
|
||||
Header("HTTP/1.0 401 Unauthorized");
|
||||
@@ -57,7 +58,7 @@ $STARTtime = date("U");
|
||||
if (!isset($group)) {$group = 'CL_TEST_L';}
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
$stmt="select group_id from vicidial_inbound_groups;";
|
||||
$stmt="select group_id from vicidial_inbound_groups order by group_id;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$groups_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# timeclock_report.php
|
||||
#
|
||||
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -10,6 +10,7 @@
|
||||
# 80707-0754 - Fixed groups bug, changed formatting
|
||||
# 90310-2059 - Added admin header
|
||||
# 90508-0644 - Changed to PHP long tags
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -46,14 +47,12 @@ $stmt = "SELECT use_non_latin,webroot_writable,outbound_autodial_active FROM sys
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysql_num_rows($rslt);
|
||||
$i=0;
|
||||
while ($i < $qm_conf_ct)
|
||||
if ($qm_conf_ct > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$non_latin = $row[0];
|
||||
$webroot_writable = $row[1];
|
||||
$SSoutbound_autodial_active = $row[2];
|
||||
$i++;
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
@@ -68,7 +67,7 @@ $rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
{
|
||||
Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
|
||||
Header("HTTP/1.0 401 Unauthorized");
|
||||
@@ -83,7 +82,7 @@ if (!isset($group)) {$group = '';}
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
if (!isset($end_date)) {$end_date = $NOW_DATE;}
|
||||
|
||||
$stmt="select user_group from vicidial_user_groups;";
|
||||
$stmt="select user_group from vicidial_user_groups order by user_group;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$user_groups_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# timeclock_status.php
|
||||
#
|
||||
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -9,6 +9,7 @@
|
||||
# 80603-1500 - formatting changes
|
||||
# 90310-2103 - Added admin header
|
||||
# 90508-0644 - Changed to PHP long tags
|
||||
# 100214-1421 - Sort menu alphabetically
|
||||
#
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -40,16 +41,13 @@ $stmt = "SELECT use_non_latin,webroot_writable,timeclock_end_of_day,outbound_aut
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysql_num_rows($rslt);
|
||||
$i=0;
|
||||
while ($i < $qm_conf_ct)
|
||||
if ($qm_conf_ct > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$non_latin = $row[0];
|
||||
$webroot_writable = $row[1];
|
||||
$timeclock_end_of_day = $row[2];
|
||||
$SSoutbound_autodial_active = $row[3];
|
||||
|
||||
$i++;
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
@@ -70,27 +68,26 @@ else
|
||||
|
||||
$EoDdate = date("Y-m-d H:i:s", $EoD);
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7 and view_reports='1';";
|
||||
if ($non_latin > 0) { $rslt=mysql_query("SET NAMES 'UTF8'");}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7 and view_reports='1';";
|
||||
if ($non_latin > 0) { $rslt=mysql_query("SET NAMES 'UTF8'");}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
$fp = fopen ("./project_auth_entries.txt", "a");
|
||||
$date = date("r");
|
||||
$ip = getenv("REMOTE_ADDR");
|
||||
$browser = getenv("HTTP_USER_AGENT");
|
||||
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
|
||||
{
|
||||
Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
|
||||
Header("HTTP/1.0 401 Unauthorized");
|
||||
echo "Invalid Username/Password: |$PHP_AUTH_USER|$PHP_AUTH_PW|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
|
||||
if($auth>0)
|
||||
{
|
||||
$stmt="SELECT full_name from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW'";
|
||||
@@ -115,7 +112,7 @@ $browser = getenv("HTTP_USER_AGENT");
|
||||
}
|
||||
|
||||
|
||||
$stmt="select user_group from vicidial_user_groups;";
|
||||
$stmt="select user_group from vicidial_user_groups order by user_group;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$user_groups_to_print = mysql_num_rows($rslt);
|
||||
|
||||
Reference in New Issue
Block a user