From eb8e577dca79e1a7da6e4ed5663e8dba536cdea3 Mon Sep 17 00:00:00 2001 From: mattf Date: Sat, 3 Feb 2007 06:04:48 +0000 Subject: [PATCH] finished pause codes feature git-svn-id: svn://192.168.202.10@494 3d104415-ff17-0410-8863-d5cf3c621b8a --- .../TO_BE_TRANSLATED_2.0.3.txt | 2 + www/agc/vicidial.php | 63 ++++++++++--------- 2 files changed, 37 insertions(+), 28 deletions(-) diff --git a/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt b/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt index 59f0dfc0..d24eca94 100644 --- a/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt +++ b/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt @@ -108,6 +108,8 @@ CAMPAIGN PAUSE CODE NOT DELETED|| FAST DIAL|| YOU MUST BE ENTER A PHONE NUMBER AND DIAL CODE TO USE FAST DIAL|| SELECT A PAUSE CODE :|| +ENTER A PAUSE CODE|| +YOU MUST BE PAUSED TO ENTER A PAUSE CODE IN AUTO-DIAL MODE|| ############################################################ MANAGER Manual diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 6bfff016..aeb0e38d 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -223,7 +223,7 @@ $clientDST = '1'; # set to 1 to check for DST on server for agent time $no_delete_sessions = '0'; # set to 1 to not delete sessions at logout $volumecontrol_active = '1'; # set to 1 to allow agents to alter volume of channels -$TEST_all_statuses = '1'; # TEST variable allows all statuses in dispo screen +$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen # options now set in DB: #$alt_phone_dialing = '1'; # allow agents to call alt phone numbers @@ -1287,7 +1287,6 @@ $CCAL_OUT .= ""; var CallBackCommenTs = ''; var scheduled_callbacks = ''; var dispo_check_all_pause = ''; - var pause_code_select_display = 0; var agent_pause_codes_active = ''; VARpause_codes = new Array(); VARpause_code_names = new Array(); @@ -3297,10 +3296,6 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} AutoDialReady = 0; AutoDialWaiting = 0; document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML; - if (agent_pause_codes_active=='Y') - { - pause_code_select_display=1; - } } var xmlhttp=false; @@ -4213,22 +4208,31 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // Generate the Pause Code Chooser panel - function PauseCodeSelectContent_create(taskDSgrp,taskDSstage) + function PauseCodeSelectContent_create() { - pause_code_HTML = ''; - document.vicidial_form.PauseCodeSelection.value = ''; - var VD_pause_codes_ct_half = parseInt(VD_pause_codes_ct / 2); - pause_code_HTML = "
PAUSE CODE
"; - var loop_ct = 0; - while (loop_ct < VD_pause_codes_ct) + if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) ) { - PauseCode_HTML = PauseCode_HTML + "" + VARpause_codes[loop_ct] + " - " + VARpause_code_names[loop_ct] + "

"; - if (loop_ct == VD_pause_codes_ct_half) - {PauseCode_HTML = PauseCode_HTML + "
";} - loop_ct++; + alert("YOU MUST BE PAUSED TO ENTER A PAUSE CODE IN AUTO-DIAL MODE"); + } + else + { + showDiv('PauseCodeSelectBox'); + WaitingForNextStep=1; + PauseCode_HTML = ''; + document.vicidial_form.PauseCodeSelection.value = ''; + var VD_pause_codes_ct_half = parseInt(VD_pause_codes_ct / 2); + PauseCode_HTML = "
PAUSE CODE
"; + var loop_ct = 0; + while (loop_ct < VD_pause_codes_ct) + { + PauseCode_HTML = PauseCode_HTML + "" + VARpause_codes[loop_ct] + " - " + VARpause_code_names[loop_ct] + "

"; + loop_ct++; + if (loop_ct == VD_pause_codes_ct_half) + {PauseCode_HTML = PauseCode_HTML + "
";} + } + PauseCode_HTML = PauseCode_HTML + "


Go Back"; + document.getElementById("PauseCodeSelectContent").innerHTML = PauseCode_HTML; } - PauseCode_HTML = PauseCode_HTML + "
"; - document.getElementById("PauseCodeSelectContent").innerHTML = PauseCode_HTML; } // ################################################################################ @@ -4425,7 +4429,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (xmlhttp) { VMCpausecode_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=PauseCodeSubmit&format=text&status=" + newpausecode + "&agent_log_id=" + agent_log_id; - xmlhttp.open('POST', 'manager_send.php'); + xmlhttp.open('POST', 'vdc_db_query.php'); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp.send(VMCpausecode_query); xmlhttp.onreadystatechange = function() @@ -5172,6 +5176,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} {hideDiv('VolumeControlSpan');} document.vicidial_form.LeadLookuP.checked=true; + if (agent_pause_codes_active=='Y') + { + document.getElementById("PauseCodeLinkSpan").innerHTML = "ENTER A PAUSE CODE"; + } + document.getElementById("sessionIDspan").innerHTML = session_id; if ( (campaign_recording == 'NEVER') || (campaign_recording == 'ALLFORCE') ) { @@ -5233,12 +5242,6 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} WaitingForNextStep=1; check_for_conf_calls(session_id, '0'); } - if (pause_code_select_display==1) - { - PauseCodeSelectContent_create('','ReSET'); - showDiv('PauseCodeSelectBox'); - WaitingForNextStep=1; - } if (logout_stop_timeouts==1) {WaitingForNextStep=1;} if ( (custchannellive < -30) && (lastcustchannel.length > 3) ) {CustomerChanneLGone();} if ( (custchannellive < -10) && (lastcustchannel.length > 3) ) {ReChecKCustoMerChaN();} @@ -5716,14 +5719,18 @@ echo "\n";

VICIDIAL
- + MANUAL DIAL       FAST DIAL
- + X ACTIVE CALLBACKS
+ +
+
+
CALLBACKS FOR AGENT :
Click on a callback below to call the customer back now. If you click on a record below to call it, it will be removed from the list.