From ae8504c665cad6eadfcde2de4decbfff396dee71 Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 23 Aug 2017 22:48:06 +0000 Subject: [PATCH] Added screen color settings to several admin screens and reports Updated documentation for Agent events HTTP push Fixed issue with custom reports admin git-svn-id: svn://192.168.202.10@2808 3d104415-ff17-0410-8863-d5cf3c621b8a --- docs/AGENT_EVENTS_PUSH.txt | 60 +++- www/vicidial/AST_carrier_log_report.php | 202 ++++++++++--- www/vicidial/AST_dial_log_report.php | 280 +++++++++++------- www/vicidial/AST_hangup_cause_report.php | 4 +- www/vicidial/AST_rt_monitor_log_report.php | 44 ++- www/vicidial/NANPA_running_processes.php | 74 ++++- www/vicidial/admin_NANPA_updater.php | 58 +++- www/vicidial/callbacks_bulk_change.php | 45 ++- .../vicidial_custom_reports_admin.php | 58 +++- 9 files changed, 646 insertions(+), 179 deletions(-) diff --git a/docs/AGENT_EVENTS_PUSH.txt b/docs/AGENT_EVENTS_PUSH.txt index 24043fbb..d0333b50 100644 --- a/docs/AGENT_EVENTS_PUSH.txt +++ b/docs/AGENT_EVENTS_PUSH.txt @@ -1,4 +1,4 @@ -Agent Events Push Started: 2017-05-31 Updated: 2017-07-25 +Agent Events Push Started: 2017-05-31 Updated: 2017-08-23 This feature allows for selected events in the VICIdial agent screen to push out event triggers through HTTP requests sent to a URL as defined in the System Settings. @@ -117,3 +117,61 @@ update_fields - API trigger to update customer information fields, will attach f session_empty - This event triggers when the agent session has no channels in it session_channels - This event triggers when the agent session goes from having no channels to having at least one channel in it + + + + +Due to the nature of AJAX to be "Asynchronous", and also some VICIdial campaign settings, the above events may not always be sent or received in the same order. To help in building your application around these event order fluctuations, here is a list of events that are triggered only after an AJAX transaction has completed, and those that are based only on Javascript/PHP events, like an agent click, javascript timer or other non-AJAX transaction: + + +EVENTS THAT TRIGGER AFTER AJAX PROCESS HAS COMPLETED: +logged_out_complete +call_answered +call_dead +call_script +other_answered +agent_hangup +dispo_set +3way_answered +3way_agent_hangup +blind_monitor_alert +time_sync +customer_gone +update_fields +session_empty +session_channels + + +EVENTS THAT TRIGGER BY JAVASCRIPT/PHP ACTIONS(NON-AJAX) ALONE: +logged_in +logged_out +state_ready +state_paused +call_dialed +dispo_screen_open +3way_start +3way_agent_leave +transfer_local_closer +transfer_blind +park_started +park_retrieved +park_ivr_started +park_ivr_retrieved +login_invalid +manual_dial_open +callback_select_open +transfer_panel_open +transfer_panel_closed +ingroup_screen_open +ingroup_screen_closed +territory_screen_open +territory_screen_closed +contact_search_open +lead_search_open +pause_code_open + + +MULTI-PURPOSE EVENTS THAT HAVE VARIOUS TRIGGERS: +agent_alert +session_disabled +none_in_session diff --git a/www/vicidial/AST_carrier_log_report.php b/www/vicidial/AST_carrier_log_report.php index 919c8d8e..5aeb2968 100644 --- a/www/vicidial/AST_carrier_log_report.php +++ b/www/vicidial/AST_carrier_log_report.php @@ -14,6 +14,7 @@ # 141114-0846 - Finalized adding QXZ translation to all admin files # 141230-1513 - Added code for on-the-fly language translations display # 170409-1534 - Added IP List validation code +# 170821-2219 - Added HTML formatting # $startMS = microtime(); @@ -46,6 +47,8 @@ if (isset($_GET["submit"])) {$submit=$_GET["submit"];} elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];} elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];} +if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_display_type"];} + elseif (isset($_POST["report_display_type"])) {$report_display_type=$_POST["report_display_type"];} ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### @@ -260,6 +263,45 @@ else } if (strlen($server_ip_SQL)<3) {$server_ip_SQL="";} +##### BEGIN Define colors and logo ##### +$SSmenu_background='015B91'; +$SSframe_background='D9E6FE'; +$SSstd_row1_background='9BB9FB'; +$SSstd_row2_background='B9CBFD'; +$SSstd_row3_background='8EBCFD'; +$SSstd_row4_background='B6D3FC'; +$SSstd_row5_background='FFFFFF'; +$SSalt_row1_background='BDFFBD'; +$SSalt_row2_background='99FF99'; +$SSalt_row3_background='CCFFCC'; + +$screen_color_stmt="select admin_screen_colors from system_settings"; +$screen_color_rslt=mysql_to_mysqli($screen_color_stmt, $link); +$screen_color_row=mysqli_fetch_row($screen_color_rslt); +$agent_screen_colors="$screen_color_row[0]"; + +if ($agent_screen_colors != 'default') + { + $asc_stmt = "SELECT menu_background,frame_background,std_row1_background,std_row2_background,std_row3_background,std_row4_background,std_row5_background,alt_row1_background,alt_row2_background,alt_row3_background,web_logo FROM vicidial_screen_colors where colors_id='$agent_screen_colors';"; + $asc_rslt=mysql_to_mysqli($asc_stmt, $link); + $qm_conf_ct = mysqli_num_rows($asc_rslt); + if ($qm_conf_ct > 0) + { + $asc_row=mysqli_fetch_row($asc_rslt); + $SSmenu_background = $asc_row[0]; + $SSframe_background = $asc_row[1]; + $SSstd_row1_background = $asc_row[2]; + $SSstd_row2_background = $asc_row[3]; + $SSstd_row3_background = $asc_row[4]; + $SSstd_row4_background = $asc_row[5]; + $SSstd_row5_background = $asc_row[6]; + $SSalt_row1_background = $asc_row[7]; + $SSalt_row2_background = $asc_row[8]; + $SSalt_row3_background = $asc_row[9]; + $SSweb_logo = $asc_row[10]; + } + } + $HEADER.="\n"; $HEADER.="\n"; $HEADER.="