From ab58137840c26a391641c2f4892b1a9f001ea891 Mon Sep 17 00:00:00 2001 From: mattf Date: Tue, 2 Mar 2010 12:18:51 +0000 Subject: [PATCH] update language builds git-svn-id: svn://192.168.202.10@1354 3d104415-ff17-0410-8863-d5cf3c621b8a --- LANG_www/agc_br/vdc_db_query.php | 10 +- LANG_www/agc_br/vicidial.php | 66 +++++++--- LANG_www/agc_de/vdc_db_query.php | 10 +- LANG_www/agc_de/vicidial.php | 66 +++++++--- LANG_www/agc_el/vdc_db_query.php | 10 +- LANG_www/agc_el/vicidial.php | 66 +++++++--- LANG_www/agc_es/vdc_db_query.php | 10 +- LANG_www/agc_es/vicidial.php | 66 +++++++--- LANG_www/agc_fr/vdc_db_query.php | 10 +- LANG_www/agc_fr/vicidial.php | 66 +++++++--- LANG_www/agc_it/vdc_db_query.php | 10 +- LANG_www/agc_it/vicidial.php | 66 +++++++--- LANG_www/agc_nl/vdc_db_query.php | 10 +- LANG_www/agc_nl/vicidial.php | 66 +++++++--- LANG_www/agc_pl/vdc_db_query.php | 10 +- LANG_www/agc_pl/vicidial.php | 66 +++++++--- LANG_www/agc_pt/vdc_db_query.php | 10 +- LANG_www/agc_pt/vicidial.php | 66 +++++++--- LANG_www/agc_ru/vdc_db_query.php | 10 +- LANG_www/agc_ru/vicidial.php | 66 +++++++--- LANG_www/agc_sk/vdc_db_query.php | 10 +- LANG_www/agc_sk/vicidial.php | 66 +++++++--- LANG_www/agc_tw/vdc_db_query.php | 10 +- LANG_www/agc_tw/vicidial.php | 66 +++++++--- LANG_www/vicidial_de/AST_IVRstats.php | 98 +++++++++++---- .../AST_agent_timeclock_detail.php | 80 ++++++++++-- LANG_www/vicidial_de/AST_timeonVDADall.php | 31 ++++- LANG_www/vicidial_de/admin_search_lead.php | 115 +++++++++++++----- LANG_www/vicidial_de/user_stats.php | 2 +- LANG_www/vicidial_el/AST_IVRstats.php | 98 +++++++++++---- .../AST_agent_timeclock_detail.php | 80 ++++++++++-- LANG_www/vicidial_el/AST_timeonVDADall.php | 31 ++++- LANG_www/vicidial_el/admin_search_lead.php | 115 +++++++++++++----- LANG_www/vicidial_el/user_stats.php | 2 +- LANG_www/vicidial_es/AST_IVRstats.php | 98 +++++++++++---- .../AST_agent_timeclock_detail.php | 80 ++++++++++-- LANG_www/vicidial_es/AST_timeonVDADall.php | 31 ++++- LANG_www/vicidial_es/admin_search_lead.php | 115 +++++++++++++----- LANG_www/vicidial_es/user_stats.php | 2 +- LANG_www/vicidial_fr/AST_IVRstats.php | 98 +++++++++++---- .../AST_agent_timeclock_detail.php | 80 ++++++++++-- LANG_www/vicidial_fr/AST_timeonVDADall.php | 31 ++++- LANG_www/vicidial_fr/admin_search_lead.php | 115 +++++++++++++----- LANG_www/vicidial_fr/user_stats.php | 2 +- LANG_www/vicidial_it/AST_IVRstats.php | 98 +++++++++++---- .../AST_agent_timeclock_detail.php | 80 ++++++++++-- LANG_www/vicidial_it/AST_timeonVDADall.php | 31 ++++- LANG_www/vicidial_it/admin_search_lead.php | 115 +++++++++++++----- LANG_www/vicidial_it/user_stats.php | 2 +- www/agc/vicidial.php | 1 + 50 files changed, 1939 insertions(+), 604 deletions(-) diff --git a/LANG_www/agc_br/vdc_db_query.php b/LANG_www/agc_br/vdc_db_query.php index 208fb89b..a291e35f 100644 --- a/LANG_www/agc_br/vdc_db_query.php +++ b/LANG_www/agc_br/vdc_db_query.php @@ -233,10 +233,11 @@ # 100113-1949 - Fixed dispo_choice bug and added dispo_status to dispo URL call # 100202-2306 - Fixed logging issues related to INBOUND_MAN dial_method # 100207-1110 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100301-1342 - Changed Available agents output for AGENTDIRECT selection # -$version = '2.2.0-141'; -$build = '100207-1110'; +$version = '2.2.0-142'; +$build = '100301-1342'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=309; $one_mysql_log=0; @@ -6354,10 +6355,7 @@ if ($ACTION == 'AGENTSview') } echo "
\n"; echo "    -READY      -INCALL      -PAUSED  \n"; - if ($comments=='AgentXferViewSelect') - { - echo "

Close Window "; - } + echo "
\n"; } diff --git a/LANG_www/agc_br/vicidial.php b/LANG_www/agc_br/vicidial.php index 2814f871..e3329e61 100644 --- a/LANG_www/agc_br/vicidial.php +++ b/LANG_www/agc_br/vicidial.php @@ -274,10 +274,12 @@ # 100116-0709 - Added presets to script and web form variables # 100203-0640 - Fixed logging issues related to INBOUND_MAN dial method # 100207-1109 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100228-1257 - Fixed no-selected default transfer group issue on inbound calls +# 100301-1329 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field # -$version = '2.2.0-252'; -$build = '100207-1109'; +$version = '2.2.0-254'; +$build = '100301-1329'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -534,7 +536,7 @@ if ($campaign_login_list > 0) if ($VD_campaign) { if ( (eregi("$VD_campaign",$rowx[0])) and (strlen($VD_campaign) == strlen($rowx[0])) ) - {$camp_form_code .= "\n";} + {$camp_form_code .= "\n";} else { if (!ereg('login_allowable_campaigns',$camp_form_code)) @@ -4740,12 +4742,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; // INSERT VICIDIAL_LOG ENTRY FOR THIS CHAMADA PROCESS DialLog("start"); @@ -6372,7 +6374,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} CalL_XC_a_NuMber = VDIC_data_VDIG[8]; CalL_XC_b_Dtmf = VDIC_data_VDIG[9]; CalL_XC_b_NuMber = VDIC_data_VDIG[10]; - if (VDIC_data_VDIG[11].length > 0) + if ( (VDIC_data_VDIG[11].length > 1) && (VDIC_data_VDIG[11] != '---NONE---') ) {LIVE_default_xfer_group = VDIC_data_VDIG[11];} else {LIVE_default_xfer_group = default_xfer_group;} @@ -6629,12 +6631,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; if (lastcustserverip == server_ip) { @@ -9252,13 +9254,21 @@ function phone_number_format(formatphone) { { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - // alert(xmlhttp.responseText); - document.getElementById(RAlocation).innerHTML = xmlhttp.responseText + "\n"; + var newRAlocationHTML = xmlhttp.responseText; + // alert(newRAlocationHTML); + + if (RAlocation == 'AgentXferViewSelect') + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n

Close Window "; + } + else + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n"; + } } } delete xmlhttp; } - } } } @@ -9424,6 +9434,7 @@ function phone_number_format(formatphone) { function AgentsXferSelect(AXuser,AXlocation) { xfer_select_agents_active=0; + document.getElementById('AgentXferViewSelect').innerHTML = ''; hideDiv('AgentXferViewSpan'); hideDiv(AXlocation); document.vicidial_form.xfernumber.value = AXuser; @@ -9431,7 +9442,24 @@ function phone_number_format(formatphone) { // ################################################################################ -// OnFocus function for number to dial +// OnChange function for transfer group select list + function XferAgentSelectLink() + { + var XfeRSelecT = document.getElementById("XfeRGrouP"); + var XScheck = XfeRSelecT.value + if (XScheck.match(/AGENTDIRECT/)) + { + showDiv('agentdirectlink'); + } + else + { + hideDiv('agentdirectlink'); + } + } + + +// ################################################################################ +// function for number to dial for AGENTDIRECT in-group transfers function XferAgentSelectLaunch() { var XfeRSelecT = document.getElementById("XfeRGrouP"); @@ -9459,12 +9487,12 @@ function phone_number_format(formatphone) { while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == 'AGENTDIRECT') - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip,'','NO'); @@ -9777,6 +9805,7 @@ else hideDiv('AgentViewSpan'); hideDiv('AgentXferViewSpan'); hideDiv('TimerSpan'); + hideDiv('agentdirectlink'); if (view_calls_in_queue_launch != '1') {hideDiv('callsinqueuedisplay');} if (agentonly_callbacks != '1') @@ -10387,6 +10416,8 @@ else { if (VU_vicidial_transfers == '1') { + XferAgentSelectLink(); + if (showxfervar == 'ON') { var xfer_height = ; @@ -10403,6 +10434,7 @@ else { HKbutton_allowed = 1; hideDiv('TransferMain'); + hideDiv('agentdirectlink'); if (showoffvar == 'YES') { document.getElementById("XferControl").innerHTML = "\"Transferir"; @@ -10542,6 +10574,7 @@ else .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} .body_small {font-size: 11px; font-family: sans-serif;} + .body_small_bold {font-size: 11px; font-family: sans-serif; font-weight: bold;} .body_tiny {font-size: 10px; font-family: sans-serif;} .log_text {font-size: 11px; font-family: monospace;} .log_text_red {font-size: 11px; font-family: monospace; font-weight: bold; background: #FF3333} @@ -10701,7 +10734,7 @@ Your Status:
Calls Dialing: + CLOSER LOCAL     @@ -10728,7 +10761,8 @@ Your Status:
Calls Dialing:   -   +   + AGENTES diff --git a/LANG_www/agc_de/vdc_db_query.php b/LANG_www/agc_de/vdc_db_query.php index e8b7ca2c..aee4834c 100644 --- a/LANG_www/agc_de/vdc_db_query.php +++ b/LANG_www/agc_de/vdc_db_query.php @@ -233,10 +233,11 @@ # 100113-1949 - Fixed dispo_choice bug and added dispo_status to dispo URL call # 100202-2306 - Fixed logging issues related to INBOUND_MAN dial_method # 100207-1110 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100301-1342 - Changed Available agents output for AGENTDIRECT selection # -$version = '2.2.0-141'; -$build = '100207-1110'; +$version = '2.2.0-142'; +$build = '100301-1342'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=309; $one_mysql_log=0; @@ -6354,10 +6355,7 @@ if ($ACTION == 'AGENTSview') } echo "
\n"; echo "    -READY      -INCALL      -PAUSED  \n"; - if ($comments=='AgentXferViewSelect') - { - echo "

Close Window "; - } + echo "
\n"; } diff --git a/LANG_www/agc_de/vicidial.php b/LANG_www/agc_de/vicidial.php index fb7acd4b..c8742bb3 100644 --- a/LANG_www/agc_de/vicidial.php +++ b/LANG_www/agc_de/vicidial.php @@ -274,10 +274,12 @@ # 100116-0709 - Added presets to script and web form variables # 100203-0640 - Fixed logging issues related to INBOUND_MAN dial method # 100207-1109 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100228-1257 - Fixed no-selected default transfer group issue on inbound calls +# 100301-1329 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field # -$version = '2.2.0-252'; -$build = '100207-1109'; +$version = '2.2.0-254'; +$build = '100301-1329'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -534,7 +536,7 @@ if ($campaign_login_list > 0) if ($VD_campaign) { if ( (eregi("$VD_campaign",$rowx[0])) and (strlen($VD_campaign) == strlen($rowx[0])) ) - {$camp_form_code .= "\n";} + {$camp_form_code .= "\n";} else { if (!ereg('login_allowable_campaigns',$camp_form_code)) @@ -4740,12 +4742,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; // INSERT VICIDIAL_LOG ENTRY FOR THIS ANRUF PROCESS DialLog("start"); @@ -6372,7 +6374,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} CalL_XC_a_NuMber = VDIC_data_VDIG[8]; CalL_XC_b_Dtmf = VDIC_data_VDIG[9]; CalL_XC_b_NuMber = VDIC_data_VDIG[10]; - if (VDIC_data_VDIG[11].length > 0) + if ( (VDIC_data_VDIG[11].length > 1) && (VDIC_data_VDIG[11] != '---NONE---') ) {LIVE_default_xfer_group = VDIC_data_VDIG[11];} else {LIVE_default_xfer_group = default_xfer_group;} @@ -6629,12 +6631,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; if (lastcustserverip == server_ip) { @@ -9252,13 +9254,21 @@ function phone_number_format(formatphone) { { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - // alert(xmlhttp.responseText); - document.getElementById(RAlocation).innerHTML = xmlhttp.responseText + "\n"; + var newRAlocationHTML = xmlhttp.responseText; + // alert(newRAlocationHTML); + + if (RAlocation == 'AgentXferViewSelect') + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n

Close Window "; + } + else + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n"; + } } } delete xmlhttp; } - } } } @@ -9424,6 +9434,7 @@ function phone_number_format(formatphone) { function AgentsXferSelect(AXuser,AXlocation) { xfer_select_agents_active=0; + document.getElementById('AgentXferViewSelect').innerHTML = ''; hideDiv('AgentXferViewSpan'); hideDiv(AXlocation); document.vicidial_form.xfernumber.value = AXuser; @@ -9431,7 +9442,24 @@ function phone_number_format(formatphone) { // ################################################################################ -// OnFocus function for number to dial +// OnChange function for transfer group select list + function XferAgentSelectLink() + { + var XfeRSelecT = document.getElementById("XfeRGrouP"); + var XScheck = XfeRSelecT.value + if (XScheck.match(/AGENTDIRECT/)) + { + showDiv('agentdirectlink'); + } + else + { + hideDiv('agentdirectlink'); + } + } + + +// ################################################################################ +// function for number to dial for AGENTDIRECT in-group transfers function XferAgentSelectLaunch() { var XfeRSelecT = document.getElementById("XfeRGrouP"); @@ -9459,12 +9487,12 @@ function phone_number_format(formatphone) { while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == 'AGENTDIRECT') - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip,'','NO'); @@ -9777,6 +9805,7 @@ else hideDiv('AgentViewSpan'); hideDiv('AgentXferViewSpan'); hideDiv('TimerSpan'); + hideDiv('agentdirectlink'); if (view_calls_in_queue_launch != '1') {hideDiv('callsinqueuedisplay');} if (agentonly_callbacks != '1') @@ -10387,6 +10416,8 @@ else { if (VU_vicidial_transfers == '1') { + XferAgentSelectLink(); + if (showxfervar == 'ON') { var xfer_height = ; @@ -10403,6 +10434,7 @@ else { HKbutton_allowed = 1; hideDiv('TransferMain'); + hideDiv('agentdirectlink'); if (showoffvar == 'YES') { document.getElementById("XferControl").innerHTML = "\"Transfer"; @@ -10542,6 +10574,7 @@ else .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} .body_small {font-size: 11px; font-family: sans-serif;} + .body_small_bold {font-size: 11px; font-family: sans-serif; font-weight: bold;} .body_tiny {font-size: 10px; font-family: sans-serif;} .log_text {font-size: 11px; font-family: monospace;} .log_text_red {font-size: 11px; font-family: monospace; font-weight: bold; background: #FF3333} @@ -10701,7 +10734,7 @@ Ihr Status:
Calls Dialing: + LOKALE SUPERVISOR NACHFRAGE     @@ -10728,7 +10761,8 @@ Ihr Status:
Calls Dialing:   -   +   + Agenten diff --git a/LANG_www/agc_el/vdc_db_query.php b/LANG_www/agc_el/vdc_db_query.php index 6ead14d2..14d29e38 100644 --- a/LANG_www/agc_el/vdc_db_query.php +++ b/LANG_www/agc_el/vdc_db_query.php @@ -233,10 +233,11 @@ # 100113-1949 - Fixed dispo_choice bug and added dispo_status to dispo URL call # 100202-2306 - Fixed logging issues related to INBOUND_MAN dial_method # 100207-1110 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100301-1342 - Changed Available agents output for AGENTDIRECT selection # -$version = '2.2.0-141'; -$build = '100207-1110'; +$version = '2.2.0-142'; +$build = '100301-1342'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=309; $one_mysql_log=0; @@ -6354,10 +6355,7 @@ if ($ACTION == 'AGENTSview') } echo "
\n"; echo "    -READY      -INCALL      -PAUSED  \n"; - if ($comments=='AgentXferViewSelect') - { - echo "

Close Window "; - } + echo "
\n"; } diff --git a/LANG_www/agc_el/vicidial.php b/LANG_www/agc_el/vicidial.php index d9b1248a..f70bb02e 100644 --- a/LANG_www/agc_el/vicidial.php +++ b/LANG_www/agc_el/vicidial.php @@ -274,10 +274,12 @@ # 100116-0709 - Added presets to script and web form variables # 100203-0640 - Fixed logging issues related to INBOUND_MAN dial method # 100207-1109 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100228-1257 - Fixed no-selected default transfer group issue on inbound calls +# 100301-1329 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field # -$version = '2.2.0-252'; -$build = '100207-1109'; +$version = '2.2.0-254'; +$build = '100301-1329'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -534,7 +536,7 @@ if ($campaign_login_list > 0) if ($VD_campaign) { if ( (eregi("$VD_campaign",$rowx[0])) and (strlen($VD_campaign) == strlen($rowx[0])) ) - {$camp_form_code .= "\n";} + {$camp_form_code .= "\n";} else { if (!ereg('login_allowable_campaigns',$camp_form_code)) @@ -4740,12 +4742,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; // INSERT VICIDIAL_LOG ENTRY FOR THIS ΚΛΗΣΗ PROCESS DialLog("start"); @@ -6372,7 +6374,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} CalL_XC_a_NuMber = VDIC_data_VDIG[8]; CalL_XC_b_Dtmf = VDIC_data_VDIG[9]; CalL_XC_b_NuMber = VDIC_data_VDIG[10]; - if (VDIC_data_VDIG[11].length > 0) + if ( (VDIC_data_VDIG[11].length > 1) && (VDIC_data_VDIG[11] != '---NONE---') ) {LIVE_default_xfer_group = VDIC_data_VDIG[11];} else {LIVE_default_xfer_group = default_xfer_group;} @@ -6629,12 +6631,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; if (lastcustserverip == server_ip) { @@ -9252,13 +9254,21 @@ function phone_number_format(formatphone) { { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - // alert(xmlhttp.responseText); - document.getElementById(RAlocation).innerHTML = xmlhttp.responseText + "\n"; + var newRAlocationHTML = xmlhttp.responseText; + // alert(newRAlocationHTML); + + if (RAlocation == 'AgentXferViewSelect') + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n

Close Window "; + } + else + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n"; + } } } delete xmlhttp; } - } } } @@ -9424,6 +9434,7 @@ function phone_number_format(formatphone) { function AgentsXferSelect(AXuser,AXlocation) { xfer_select_agents_active=0; + document.getElementById('AgentXferViewSelect').innerHTML = ''; hideDiv('AgentXferViewSpan'); hideDiv(AXlocation); document.vicidial_form.xfernumber.value = AXuser; @@ -9431,7 +9442,24 @@ function phone_number_format(formatphone) { // ################################################################################ -// OnFocus function for number to dial +// OnChange function for transfer group select list + function XferAgentSelectLink() + { + var XfeRSelecT = document.getElementById("XfeRGrouP"); + var XScheck = XfeRSelecT.value + if (XScheck.match(/AGENTDIRECT/)) + { + showDiv('agentdirectlink'); + } + else + { + hideDiv('agentdirectlink'); + } + } + + +// ################################################################################ +// function for number to dial for AGENTDIRECT in-group transfers function XferAgentSelectLaunch() { var XfeRSelecT = document.getElementById("XfeRGrouP"); @@ -9459,12 +9487,12 @@ function phone_number_format(formatphone) { while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == 'AGENTDIRECT') - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip,'','NO'); @@ -9777,6 +9805,7 @@ else hideDiv('AgentViewSpan'); hideDiv('AgentXferViewSpan'); hideDiv('TimerSpan'); + hideDiv('agentdirectlink'); if (view_calls_in_queue_launch != '1') {hideDiv('callsinqueuedisplay');} if (agentonly_callbacks != '1') @@ -10387,6 +10416,8 @@ else { if (VU_vicidial_transfers == '1') { + XferAgentSelectLink(); + if (showxfervar == 'ON') { var xfer_height = ; @@ -10403,6 +10434,7 @@ else { HKbutton_allowed = 1; hideDiv('TransferMain'); + hideDiv('agentdirectlink'); if (showoffvar == 'YES') { document.getElementById("XferControl").innerHTML = "\"Μεταφορά"; @@ -10542,6 +10574,7 @@ else .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} .body_small {font-size: 11px; font-family: sans-serif;} + .body_small_bold {font-size: 11px; font-family: sans-serif; font-weight: bold;} .body_tiny {font-size: 10px; font-family: sans-serif;} .log_text {font-size: 11px; font-family: monospace;} .log_text_red {font-size: 11px; font-family: monospace; font-weight: bold; background: #FF3333} @@ -10701,7 +10734,7 @@ Your Κατάσταση: - + ΤΟΠΙΚΟΣ CLOSER     @@ -10728,7 +10761,8 @@ Your Κατάσταση: Αριθμός για κλήση   -   +   + πράκτορες diff --git a/LANG_www/agc_es/vdc_db_query.php b/LANG_www/agc_es/vdc_db_query.php index e2cbad25..17c70b68 100644 --- a/LANG_www/agc_es/vdc_db_query.php +++ b/LANG_www/agc_es/vdc_db_query.php @@ -233,10 +233,11 @@ # 100113-1949 - Fixed dispo_choice bug and added dispo_status to dispo URL call # 100202-2306 - Fixed logging issues related to INBOUND_MAN dial_method # 100207-1110 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100301-1342 - Changed Available agents output for AGENTDIRECT selection # -$version = '2.2.0-141'; -$build = '100207-1110'; +$version = '2.2.0-142'; +$build = '100301-1342'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=309; $one_mysql_log=0; @@ -6354,10 +6355,7 @@ if ($ACTION == 'AGENTSview') } echo "
\n"; echo "    -READY      -INCALL      -PAUSED  \n"; - if ($comments=='AgentXferViewSelect') - { - echo "

Close Window "; - } + echo "
\n"; } diff --git a/LANG_www/agc_es/vicidial.php b/LANG_www/agc_es/vicidial.php index 7eb768fe..7026bea2 100644 --- a/LANG_www/agc_es/vicidial.php +++ b/LANG_www/agc_es/vicidial.php @@ -274,10 +274,12 @@ # 100116-0709 - Added presets to script and web form variables # 100203-0640 - Fixed logging issues related to INBOUND_MAN dial method # 100207-1109 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100228-1257 - Fixed no-selected default transfer group issue on inbound calls +# 100301-1329 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field # -$version = '2.2.0-252'; -$build = '100207-1109'; +$version = '2.2.0-254'; +$build = '100301-1329'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -534,7 +536,7 @@ if ($campaign_login_list > 0) if ($VD_campaign) { if ( (eregi("$VD_campaign",$rowx[0])) and (strlen($VD_campaign) == strlen($rowx[0])) ) - {$camp_form_code .= "\n";} + {$camp_form_code .= "\n";} else { if (!ereg('login_allowable_campaigns',$camp_form_code)) @@ -4740,12 +4742,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; // INSERT VICIDIAL_LOG ENTRY FOR THIS LLAMADA PROCESS DialLog("start"); @@ -6372,7 +6374,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} CalL_XC_a_NuMber = VDIC_data_VDIG[8]; CalL_XC_b_Dtmf = VDIC_data_VDIG[9]; CalL_XC_b_NuMber = VDIC_data_VDIG[10]; - if (VDIC_data_VDIG[11].length > 0) + if ( (VDIC_data_VDIG[11].length > 1) && (VDIC_data_VDIG[11] != '---NONE---') ) {LIVE_default_xfer_group = VDIC_data_VDIG[11];} else {LIVE_default_xfer_group = default_xfer_group;} @@ -6629,12 +6631,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; if (lastcustserverip == server_ip) { @@ -9252,13 +9254,21 @@ function phone_number_format(formatphone) { { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - // alert(xmlhttp.responseText); - document.getElementById(RAlocation).innerHTML = xmlhttp.responseText + "\n"; + var newRAlocationHTML = xmlhttp.responseText; + // alert(newRAlocationHTML); + + if (RAlocation == 'AgentXferViewSelect') + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n

Close Window "; + } + else + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n"; + } } } delete xmlhttp; } - } } } @@ -9424,6 +9434,7 @@ function phone_number_format(formatphone) { function AgentsXferSelect(AXuser,AXlocation) { xfer_select_agents_active=0; + document.getElementById('AgentXferViewSelect').innerHTML = ''; hideDiv('AgentXferViewSpan'); hideDiv(AXlocation); document.vicidial_form.xfernumber.value = AXuser; @@ -9431,7 +9442,24 @@ function phone_number_format(formatphone) { // ################################################################################ -// OnFocus function for number to dial +// OnChange function for transfer group select list + function XferAgentSelectLink() + { + var XfeRSelecT = document.getElementById("XfeRGrouP"); + var XScheck = XfeRSelecT.value + if (XScheck.match(/AGENTDIRECT/)) + { + showDiv('agentdirectlink'); + } + else + { + hideDiv('agentdirectlink'); + } + } + + +// ################################################################################ +// function for number to dial for AGENTDIRECT in-group transfers function XferAgentSelectLaunch() { var XfeRSelecT = document.getElementById("XfeRGrouP"); @@ -9459,12 +9487,12 @@ function phone_number_format(formatphone) { while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == 'AGENTDIRECT') - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip,'','NO'); @@ -9777,6 +9805,7 @@ else hideDiv('AgentViewSpan'); hideDiv('AgentXferViewSpan'); hideDiv('TimerSpan'); + hideDiv('agentdirectlink'); if (view_calls_in_queue_launch != '1') {hideDiv('callsinqueuedisplay');} if (agentonly_callbacks != '1') @@ -10387,6 +10416,8 @@ else { if (VU_vicidial_transfers == '1') { + XferAgentSelectLink(); + if (showxfervar == 'ON') { var xfer_height = ; @@ -10403,6 +10434,7 @@ else { HKbutton_allowed = 1; hideDiv('TransferMain'); + hideDiv('agentdirectlink'); if (showoffvar == 'YES') { document.getElementById("XferControl").innerHTML = "\"Transferencia"; @@ -10542,6 +10574,7 @@ else .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} .body_small {font-size: 11px; font-family: sans-serif;} + .body_small_bold {font-size: 11px; font-family: sans-serif; font-weight: bold;} .body_tiny {font-size: 10px; font-family: sans-serif;} .log_text {font-size: 11px; font-family: monospace;} .log_text_red {font-size: 11px; font-family: monospace; font-weight: bold; background: #FF3333} @@ -10701,7 +10734,7 @@ Su Estado:
Calls Dialing: + CLOSER LOCAL     @@ -10728,7 +10761,8 @@ Su Estado:
Calls Dialing:   -   +   + AGENTES diff --git a/LANG_www/agc_fr/vdc_db_query.php b/LANG_www/agc_fr/vdc_db_query.php index 03256627..7ad0cb56 100644 --- a/LANG_www/agc_fr/vdc_db_query.php +++ b/LANG_www/agc_fr/vdc_db_query.php @@ -233,10 +233,11 @@ # 100113-1949 - Fixed dispo_choice bug and added dispo_status to dispo URL call # 100202-2306 - Fixed logging issues related to INBOUND_MAN dial_method # 100207-1110 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100301-1342 - Changed Available agents output for AGENTDIRECT selection # -$version = '2.2.0-141'; -$build = '100207-1110'; +$version = '2.2.0-142'; +$build = '100301-1342'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=309; $one_mysql_log=0; @@ -6354,10 +6355,7 @@ if ($ACTION == 'AGENTSview') } echo "
\n"; echo "    -READY      -INCALL      -PAUSED  \n"; - if ($comments=='AgentXferViewSelect') - { - echo "

Close Window "; - } + echo "
\n"; } diff --git a/LANG_www/agc_fr/vicidial.php b/LANG_www/agc_fr/vicidial.php index 5f7f4194..61e9babf 100644 --- a/LANG_www/agc_fr/vicidial.php +++ b/LANG_www/agc_fr/vicidial.php @@ -274,10 +274,12 @@ # 100116-0709 - Added presets to script and web form variables # 100203-0640 - Fixed logging issues related to INBOUND_MAN dial method # 100207-1109 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100228-1257 - Fixed no-selected default transfer group issue on inbound calls +# 100301-1329 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field # -$version = '2.2.0-252'; -$build = '100207-1109'; +$version = '2.2.0-254'; +$build = '100301-1329'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -534,7 +536,7 @@ if ($campaign_login_list > 0) if ($VD_campaign) { if ( (eregi("$VD_campaign",$rowx[0])) and (strlen($VD_campaign) == strlen($rowx[0])) ) - {$camp_form_code .= "\n";} + {$camp_form_code .= "\n";} else { if (!ereg('login_allowable_campaigns',$camp_form_code)) @@ -4740,12 +4742,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; // INSERT VICIDIAL_LOG ENTRY FOR THIS APPEL PROCESS DialLog("start"); @@ -6372,7 +6374,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} CalL_XC_a_NuMber = VDIC_data_VDIG[8]; CalL_XC_b_Dtmf = VDIC_data_VDIG[9]; CalL_XC_b_NuMber = VDIC_data_VDIG[10]; - if (VDIC_data_VDIG[11].length > 0) + if ( (VDIC_data_VDIG[11].length > 1) && (VDIC_data_VDIG[11] != '---NONE---') ) {LIVE_default_xfer_group = VDIC_data_VDIG[11];} else {LIVE_default_xfer_group = default_xfer_group;} @@ -6629,12 +6631,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; if (lastcustserverip == server_ip) { @@ -9252,13 +9254,21 @@ function phone_number_format(formatphone) { { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - // alert(xmlhttp.responseText); - document.getElementById(RAlocation).innerHTML = xmlhttp.responseText + "\n"; + var newRAlocationHTML = xmlhttp.responseText; + // alert(newRAlocationHTML); + + if (RAlocation == 'AgentXferViewSelect') + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n

Close Window "; + } + else + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n"; + } } } delete xmlhttp; } - } } } @@ -9424,6 +9434,7 @@ function phone_number_format(formatphone) { function AgentsXferSelect(AXuser,AXlocation) { xfer_select_agents_active=0; + document.getElementById('AgentXferViewSelect').innerHTML = ''; hideDiv('AgentXferViewSpan'); hideDiv(AXlocation); document.vicidial_form.xfernumber.value = AXuser; @@ -9431,7 +9442,24 @@ function phone_number_format(formatphone) { // ################################################################################ -// OnFocus function for number to dial +// OnChange function for transfer group select list + function XferAgentSelectLink() + { + var XfeRSelecT = document.getElementById("XfeRGrouP"); + var XScheck = XfeRSelecT.value + if (XScheck.match(/AGENTDIRECT/)) + { + showDiv('agentdirectlink'); + } + else + { + hideDiv('agentdirectlink'); + } + } + + +// ################################################################################ +// function for number to dial for AGENTDIRECT in-group transfers function XferAgentSelectLaunch() { var XfeRSelecT = document.getElementById("XfeRGrouP"); @@ -9459,12 +9487,12 @@ function phone_number_format(formatphone) { while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == 'AGENTDIRECT') - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip,'','NO'); @@ -9777,6 +9805,7 @@ else hideDiv('AgentViewSpan'); hideDiv('AgentXferViewSpan'); hideDiv('TimerSpan'); + hideDiv('agentdirectlink'); if (view_calls_in_queue_launch != '1') {hideDiv('callsinqueuedisplay');} if (agentonly_callbacks != '1') @@ -10387,6 +10416,8 @@ else { if (VU_vicidial_transfers == '1') { + XferAgentSelectLink(); + if (showxfervar == 'ON') { var xfer_height = ; @@ -10403,6 +10434,7 @@ else { HKbutton_allowed = 1; hideDiv('TransferMain'); + hideDiv('agentdirectlink'); if (showoffvar == 'YES') { document.getElementById("XferControl").innerHTML = "\"Transfert"; @@ -10542,6 +10574,7 @@ else .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} .body_small {font-size: 11px; font-family: sans-serif;} + .body_small_bold {font-size: 11px; font-family: sans-serif; font-weight: bold;} .body_tiny {font-size: 10px; font-family: sans-serif;} .log_text {font-size: 11px; font-family: monospace;} .log_text_red {font-size: 11px; font-family: monospace; font-weight: bold; background: #FF3333} @@ -10701,7 +10734,7 @@ Votre Statut:
Calls Dialing: + CLOSER LOCAL     @@ -10728,7 +10761,8 @@ Votre Statut:
Calls Dialing:   -   +   + AGENTS diff --git a/LANG_www/agc_it/vdc_db_query.php b/LANG_www/agc_it/vdc_db_query.php index aa0590eb..adf16e32 100644 --- a/LANG_www/agc_it/vdc_db_query.php +++ b/LANG_www/agc_it/vdc_db_query.php @@ -233,10 +233,11 @@ # 100113-1949 - Fixed dispo_choice bug and added dispo_status to dispo URL call # 100202-2306 - Fixed logging issues related to INBOUND_MAN dial_method # 100207-1110 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100301-1342 - Changed Available agents output for AGENTDIRECT selection # -$version = '2.2.0-141'; -$build = '100207-1110'; +$version = '2.2.0-142'; +$build = '100301-1342'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=309; $one_mysql_log=0; @@ -6354,10 +6355,7 @@ if ($ACTION == 'AGENTSview') } echo "
\n"; echo "    -READY      -INCALL      -PAUSED  \n"; - if ($comments=='AgentXferViewSelect') - { - echo "

Close Window "; - } + echo "
\n"; } diff --git a/LANG_www/agc_it/vicidial.php b/LANG_www/agc_it/vicidial.php index b8cb0510..513df0db 100644 --- a/LANG_www/agc_it/vicidial.php +++ b/LANG_www/agc_it/vicidial.php @@ -274,10 +274,12 @@ # 100116-0709 - Added presets to script and web form variables # 100203-0640 - Fixed logging issues related to INBOUND_MAN dial method # 100207-1109 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100228-1257 - Fixed no-selected default transfer group issue on inbound calls +# 100301-1329 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field # -$version = '2.2.0-252'; -$build = '100207-1109'; +$version = '2.2.0-254'; +$build = '100301-1329'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -534,7 +536,7 @@ if ($campaign_login_list > 0) if ($VD_campaign) { if ( (eregi("$VD_campaign",$rowx[0])) and (strlen($VD_campaign) == strlen($rowx[0])) ) - {$camp_form_code .= "\n";} + {$camp_form_code .= "\n";} else { if (!ereg('login_allowable_campaigns',$camp_form_code)) @@ -4740,12 +4742,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELEZIONATO ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; // INSERT VICIDIAL_LOG ENTRY FOR THIS CHIAMATA PROCESS DialLog("start"); @@ -6372,7 +6374,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} CalL_XC_a_NuMber = VDIC_data_VDIG[8]; CalL_XC_b_Dtmf = VDIC_data_VDIG[9]; CalL_XC_b_NuMber = VDIC_data_VDIG[10]; - if (VDIC_data_VDIG[11].length > 0) + if ( (VDIC_data_VDIG[11].length > 1) && (VDIC_data_VDIG[11] != '---NONE---') ) {LIVE_default_xfer_group = VDIC_data_VDIG[11];} else {LIVE_default_xfer_group = default_xfer_group;} @@ -6629,12 +6631,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELEZIONATO ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; if (lastcustserverip == server_ip) { @@ -9252,13 +9254,21 @@ function phone_number_format(formatphone) { { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - // alert(xmlhttp.responseText); - document.getElementById(RAlocation).innerHTML = xmlhttp.responseText + "\n"; + var newRAlocationHTML = xmlhttp.responseText; + // alert(newRAlocationHTML); + + if (RAlocation == 'AgentXferViewSelect') + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n

Close Window "; + } + else + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n"; + } } } delete xmlhttp; } - } } } @@ -9424,6 +9434,7 @@ function phone_number_format(formatphone) { function AgentsXferSelect(AXuser,AXlocation) { xfer_select_agents_active=0; + document.getElementById('AgentXferViewSelect').innerHTML = ''; hideDiv('AgentXferViewSpan'); hideDiv(AXlocation); document.vicidial_form.xfernumber.value = AXuser; @@ -9431,7 +9442,24 @@ function phone_number_format(formatphone) { // ################################################################################ -// OnFocus function for number to dial +// OnChange function for transfer group select list + function XferAgentSelectLink() + { + var XfeRSelecT = document.getElementById("XfeRGrouP"); + var XScheck = XfeRSelecT.value + if (XScheck.match(/AGENTDIRECT/)) + { + showDiv('agentdirectlink'); + } + else + { + hideDiv('agentdirectlink'); + } + } + + +// ################################################################################ +// function for number to dial for AGENTDIRECT in-group transfers function XferAgentSelectLaunch() { var XfeRSelecT = document.getElementById("XfeRGrouP"); @@ -9459,12 +9487,12 @@ function phone_number_format(formatphone) { while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == 'AGENTDIRECT') - {XfeR_SelecT = 'SELEZIONATO ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip,'','NO'); @@ -9777,6 +9805,7 @@ else hideDiv('AgentViewSpan'); hideDiv('AgentXferViewSpan'); hideDiv('TimerSpan'); + hideDiv('agentdirectlink'); if (view_calls_in_queue_launch != '1') {hideDiv('callsinqueuedisplay');} if (agentonly_callbacks != '1') @@ -10387,6 +10416,8 @@ else { if (VU_vicidial_transfers == '1') { + XferAgentSelectLink(); + if (showxfervar == 'ON') { var xfer_height = ; @@ -10403,6 +10434,7 @@ else { HKbutton_allowed = 1; hideDiv('TransferMain'); + hideDiv('agentdirectlink'); if (showoffvar == 'YES') { document.getElementById("XferControl").innerHTML = "\"Trasferimento"; @@ -10542,6 +10574,7 @@ else .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} .body_small {font-size: 11px; font-family: sans-serif;} + .body_small_bold {font-size: 11px; font-family: sans-serif; font-weight: bold;} .body_tiny {font-size: 10px; font-family: sans-serif;} .log_text {font-size: 11px; font-family: monospace;} .log_text_red {font-size: 11px; font-family: monospace; font-weight: bold; background: #FF3333} @@ -10701,7 +10734,7 @@ Il tuo stato:
Calls Dialing: + LOCAL CLOSER     @@ -10728,7 +10761,8 @@ Il tuo stato:
Calls Dialing:   -   +   + OPERATORI diff --git a/LANG_www/agc_nl/vdc_db_query.php b/LANG_www/agc_nl/vdc_db_query.php index 9f922c44..c085beea 100644 --- a/LANG_www/agc_nl/vdc_db_query.php +++ b/LANG_www/agc_nl/vdc_db_query.php @@ -233,10 +233,11 @@ # 100113-1949 - Fixed dispo_choice bug and added dispo_status to dispo URL call # 100202-2306 - Fixed logging issues related to INBOUND_MAN dial_method # 100207-1110 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100301-1342 - Changed Available agents output for AGENTDIRECT selection # -$version = '2.2.0-141'; -$build = '100207-1110'; +$version = '2.2.0-142'; +$build = '100301-1342'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=309; $one_mysql_log=0; @@ -6354,10 +6355,7 @@ if ($ACTION == 'AGENTSview') } echo "
\n"; echo "    -READY      -INCALL      -PAUSED  \n"; - if ($comments=='AgentXferViewSelect') - { - echo "

Close Window "; - } + echo "
\n"; } diff --git a/LANG_www/agc_nl/vicidial.php b/LANG_www/agc_nl/vicidial.php index 2d321d50..6372ffdd 100644 --- a/LANG_www/agc_nl/vicidial.php +++ b/LANG_www/agc_nl/vicidial.php @@ -274,10 +274,12 @@ # 100116-0709 - Added presets to script and web form variables # 100203-0640 - Fixed logging issues related to INBOUND_MAN dial method # 100207-1109 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100228-1257 - Fixed no-selected default transfer group issue on inbound calls +# 100301-1329 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field # -$version = '2.2.0-252'; -$build = '100207-1109'; +$version = '2.2.0-254'; +$build = '100301-1329'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -534,7 +536,7 @@ if ($campaign_login_list > 0) if ($VD_campaign) { if ( (eregi("$VD_campaign",$rowx[0])) and (strlen($VD_campaign) == strlen($rowx[0])) ) - {$camp_form_code .= "\n";} + {$camp_form_code .= "\n";} else { if (!ereg('login_allowable_campaigns',$camp_form_code)) @@ -4740,12 +4742,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; // INSERT VICIDIAL_LOG ENTRY FOR THIS BEL PROCESS DialLog("start"); @@ -6372,7 +6374,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} CalL_XC_a_NuMber = VDIC_data_VDIG[8]; CalL_XC_b_Dtmf = VDIC_data_VDIG[9]; CalL_XC_b_NuMber = VDIC_data_VDIG[10]; - if (VDIC_data_VDIG[11].length > 0) + if ( (VDIC_data_VDIG[11].length > 1) && (VDIC_data_VDIG[11] != '---NONE---') ) {LIVE_default_xfer_group = VDIC_data_VDIG[11];} else {LIVE_default_xfer_group = default_xfer_group;} @@ -6629,12 +6631,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; if (lastcustserverip == server_ip) { @@ -9252,13 +9254,21 @@ function phone_number_format(formatphone) { { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - // alert(xmlhttp.responseText); - document.getElementById(RAlocation).innerHTML = xmlhttp.responseText + "\n"; + var newRAlocationHTML = xmlhttp.responseText; + // alert(newRAlocationHTML); + + if (RAlocation == 'AgentXferViewSelect') + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n

Close Window "; + } + else + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n"; + } } } delete xmlhttp; } - } } } @@ -9424,6 +9434,7 @@ function phone_number_format(formatphone) { function AgentsXferSelect(AXuser,AXlocation) { xfer_select_agents_active=0; + document.getElementById('AgentXferViewSelect').innerHTML = ''; hideDiv('AgentXferViewSpan'); hideDiv(AXlocation); document.vicidial_form.xfernumber.value = AXuser; @@ -9431,7 +9442,24 @@ function phone_number_format(formatphone) { // ################################################################################ -// OnFocus function for number to dial +// OnChange function for transfer group select list + function XferAgentSelectLink() + { + var XfeRSelecT = document.getElementById("XfeRGrouP"); + var XScheck = XfeRSelecT.value + if (XScheck.match(/AGENTDIRECT/)) + { + showDiv('agentdirectlink'); + } + else + { + hideDiv('agentdirectlink'); + } + } + + +// ################################################################################ +// function for number to dial for AGENTDIRECT in-group transfers function XferAgentSelectLaunch() { var XfeRSelecT = document.getElementById("XfeRGrouP"); @@ -9459,12 +9487,12 @@ function phone_number_format(formatphone) { while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == 'AGENTDIRECT') - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip,'','NO'); @@ -9777,6 +9805,7 @@ else hideDiv('AgentViewSpan'); hideDiv('AgentXferViewSpan'); hideDiv('TimerSpan'); + hideDiv('agentdirectlink'); if (view_calls_in_queue_launch != '1') {hideDiv('callsinqueuedisplay');} if (agentonly_callbacks != '1') @@ -10387,6 +10416,8 @@ else { if (VU_vicidial_transfers == '1') { + XferAgentSelectLink(); + if (showxfervar == 'ON') { var xfer_height = ; @@ -10403,6 +10434,7 @@ else { HKbutton_allowed = 1; hideDiv('TransferMain'); + hideDiv('agentdirectlink'); if (showoffvar == 'YES') { document.getElementById("XferControl").innerHTML = "\"Transfer"; @@ -10542,6 +10574,7 @@ else .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} .body_small {font-size: 11px; font-family: sans-serif;} + .body_small_bold {font-size: 11px; font-family: sans-serif; font-weight: bold;} .body_tiny {font-size: 10px; font-family: sans-serif;} .log_text {font-size: 11px; font-family: monospace;} .log_text_red {font-size: 11px; font-family: monospace; font-weight: bold; background: #FF3333} @@ -10701,7 +10734,7 @@ Jouw Status:
Calls Dialing: + LOKALE CLOSER     @@ -10728,7 +10761,8 @@ Jouw Status:
Calls Dialing:   -   +   + agenten diff --git a/LANG_www/agc_pl/vdc_db_query.php b/LANG_www/agc_pl/vdc_db_query.php index 3197c7ef..cb12c077 100644 --- a/LANG_www/agc_pl/vdc_db_query.php +++ b/LANG_www/agc_pl/vdc_db_query.php @@ -233,10 +233,11 @@ # 100113-1949 - Fixed dispo_choice bug and added dispo_status to dispo URL call # 100202-2306 - Fixed logging issues related to INBOUND_MAN dial_method # 100207-1110 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100301-1342 - Changed Available agents output for AGENTDIRECT selection # -$version = '2.2.0-141'; -$build = '100207-1110'; +$version = '2.2.0-142'; +$build = '100301-1342'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=309; $one_mysql_log=0; @@ -6354,10 +6355,7 @@ if ($ACTION == 'AGENTSview') } echo "
\n"; echo "    -READY      -INCALL      -PAUSED  \n"; - if ($comments=='AgentXferViewSelect') - { - echo "

Close Window "; - } + echo "
\n"; } diff --git a/LANG_www/agc_pl/vicidial.php b/LANG_www/agc_pl/vicidial.php index 3e80c2ca..dd01aea8 100644 --- a/LANG_www/agc_pl/vicidial.php +++ b/LANG_www/agc_pl/vicidial.php @@ -274,10 +274,12 @@ # 100116-0709 - Added presets to script and web form variables # 100203-0640 - Fixed logging issues related to INBOUND_MAN dial method # 100207-1109 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100228-1257 - Fixed no-selected default transfer group issue on inbound calls +# 100301-1329 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field # -$version = '2.2.0-252'; -$build = '100207-1109'; +$version = '2.2.0-254'; +$build = '100301-1329'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -534,7 +536,7 @@ if ($campaign_login_list > 0) if ($VD_campaign) { if ( (eregi("$VD_campaign",$rowx[0])) and (strlen($VD_campaign) == strlen($rowx[0])) ) - {$camp_form_code .= "\n";} + {$camp_form_code .= "\n";} else { if (!ereg('login_allowable_campaigns',$camp_form_code)) @@ -4740,12 +4742,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; // INSERT VICIDIAL_LOG ENTRY FOR THIS Rozmowa PROCESS DialLog("start"); @@ -6372,7 +6374,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} CalL_XC_a_NuMber = VDIC_data_VDIG[8]; CalL_XC_b_Dtmf = VDIC_data_VDIG[9]; CalL_XC_b_NuMber = VDIC_data_VDIG[10]; - if (VDIC_data_VDIG[11].length > 0) + if ( (VDIC_data_VDIG[11].length > 1) && (VDIC_data_VDIG[11] != '---NONE---') ) {LIVE_default_xfer_group = VDIC_data_VDIG[11];} else {LIVE_default_xfer_group = default_xfer_group;} @@ -6629,12 +6631,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; if (lastcustserverip == server_ip) { @@ -9252,13 +9254,21 @@ function phone_number_format(formatphone) { { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - // alert(xmlhttp.responseText); - document.getElementById(RAlocation).innerHTML = xmlhttp.responseText + "\n"; + var newRAlocationHTML = xmlhttp.responseText; + // alert(newRAlocationHTML); + + if (RAlocation == 'AgentXferViewSelect') + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n

Close Window "; + } + else + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n"; + } } } delete xmlhttp; } - } } } @@ -9424,6 +9434,7 @@ function phone_number_format(formatphone) { function AgentsXferSelect(AXuser,AXlocation) { xfer_select_agents_active=0; + document.getElementById('AgentXferViewSelect').innerHTML = ''; hideDiv('AgentXferViewSpan'); hideDiv(AXlocation); document.vicidial_form.xfernumber.value = AXuser; @@ -9431,7 +9442,24 @@ function phone_number_format(formatphone) { // ################################################################################ -// OnFocus function for number to dial +// OnChange function for transfer group select list + function XferAgentSelectLink() + { + var XfeRSelecT = document.getElementById("XfeRGrouP"); + var XScheck = XfeRSelecT.value + if (XScheck.match(/AGENTDIRECT/)) + { + showDiv('agentdirectlink'); + } + else + { + hideDiv('agentdirectlink'); + } + } + + +// ################################################################################ +// function for number to dial for AGENTDIRECT in-group transfers function XferAgentSelectLaunch() { var XfeRSelecT = document.getElementById("XfeRGrouP"); @@ -9459,12 +9487,12 @@ function phone_number_format(formatphone) { while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == 'AGENTDIRECT') - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip,'','NO'); @@ -9777,6 +9805,7 @@ else hideDiv('AgentViewSpan'); hideDiv('AgentXferViewSpan'); hideDiv('TimerSpan'); + hideDiv('agentdirectlink'); if (view_calls_in_queue_launch != '1') {hideDiv('callsinqueuedisplay');} if (agentonly_callbacks != '1') @@ -10387,6 +10416,8 @@ else { if (VU_vicidial_transfers == '1') { + XferAgentSelectLink(); + if (showxfervar == 'ON') { var xfer_height = ; @@ -10403,6 +10434,7 @@ else { HKbutton_allowed = 1; hideDiv('TransferMain'); + hideDiv('agentdirectlink'); if (showoffvar == 'YES') { document.getElementById("XferControl").innerHTML = "\"Transfer"; @@ -10542,6 +10574,7 @@ else .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} .body_small {font-size: 11px; font-family: sans-serif;} + .body_small_bold {font-size: 11px; font-family: sans-serif; font-weight: bold;} .body_tiny {font-size: 10px; font-family: sans-serif;} .log_text {font-size: 11px; font-family: monospace;} .log_text_red {font-size: 11px; font-family: monospace; font-weight: bold; background: #FF3333} @@ -10701,7 +10734,7 @@ Twój Status:
Calls Dialing: + LOKALNY FINALIZUJĄCYCH     @@ -10728,7 +10761,8 @@ Twój Status:
Calls Dialing:   -   +   + agentów diff --git a/LANG_www/agc_pt/vdc_db_query.php b/LANG_www/agc_pt/vdc_db_query.php index 9fe64b98..c9c04188 100644 --- a/LANG_www/agc_pt/vdc_db_query.php +++ b/LANG_www/agc_pt/vdc_db_query.php @@ -233,10 +233,11 @@ # 100113-1949 - Fixed dispo_choice bug and added dispo_status to dispo URL call # 100202-2306 - Fixed logging issues related to INBOUND_MAN dial_method # 100207-1110 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100301-1342 - Changed Available agents output for AGENTDIRECT selection # -$version = '2.2.0-141'; -$build = '100207-1110'; +$version = '2.2.0-142'; +$build = '100301-1342'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=309; $one_mysql_log=0; @@ -6354,10 +6355,7 @@ if ($ACTION == 'AGENTSview') } echo "
\n"; echo "    -READY      -INCALL      -PAUSED  \n"; - if ($comments=='AgentXferViewSelect') - { - echo "

Close Window "; - } + echo "
\n"; } diff --git a/LANG_www/agc_pt/vicidial.php b/LANG_www/agc_pt/vicidial.php index 51f5c6a9..5f141e2c 100644 --- a/LANG_www/agc_pt/vicidial.php +++ b/LANG_www/agc_pt/vicidial.php @@ -274,10 +274,12 @@ # 100116-0709 - Added presets to script and web form variables # 100203-0640 - Fixed logging issues related to INBOUND_MAN dial method # 100207-1109 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100228-1257 - Fixed no-selected default transfer group issue on inbound calls +# 100301-1329 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field # -$version = '2.2.0-252'; -$build = '100207-1109'; +$version = '2.2.0-254'; +$build = '100301-1329'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -534,7 +536,7 @@ if ($campaign_login_list > 0) if ($VD_campaign) { if ( (eregi("$VD_campaign",$rowx[0])) and (strlen($VD_campaign) == strlen($rowx[0])) ) - {$camp_form_code .= "\n";} + {$camp_form_code .= "\n";} else { if (!ereg('login_allowable_campaigns',$camp_form_code)) @@ -4740,12 +4742,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; // INSERT VICIDIAL_LOG ENTRY FOR THIS CHAMADA PROCESS DialLog("start"); @@ -6372,7 +6374,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} CalL_XC_a_NuMber = VDIC_data_VDIG[8]; CalL_XC_b_Dtmf = VDIC_data_VDIG[9]; CalL_XC_b_NuMber = VDIC_data_VDIG[10]; - if (VDIC_data_VDIG[11].length > 0) + if ( (VDIC_data_VDIG[11].length > 1) && (VDIC_data_VDIG[11] != '---NONE---') ) {LIVE_default_xfer_group = VDIC_data_VDIG[11];} else {LIVE_default_xfer_group = default_xfer_group;} @@ -6629,12 +6631,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; if (lastcustserverip == server_ip) { @@ -9252,13 +9254,21 @@ function phone_number_format(formatphone) { { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - // alert(xmlhttp.responseText); - document.getElementById(RAlocation).innerHTML = xmlhttp.responseText + "\n"; + var newRAlocationHTML = xmlhttp.responseText; + // alert(newRAlocationHTML); + + if (RAlocation == 'AgentXferViewSelect') + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n

Close Window "; + } + else + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n"; + } } } delete xmlhttp; } - } } } @@ -9424,6 +9434,7 @@ function phone_number_format(formatphone) { function AgentsXferSelect(AXuser,AXlocation) { xfer_select_agents_active=0; + document.getElementById('AgentXferViewSelect').innerHTML = ''; hideDiv('AgentXferViewSpan'); hideDiv(AXlocation); document.vicidial_form.xfernumber.value = AXuser; @@ -9431,7 +9442,24 @@ function phone_number_format(formatphone) { // ################################################################################ -// OnFocus function for number to dial +// OnChange function for transfer group select list + function XferAgentSelectLink() + { + var XfeRSelecT = document.getElementById("XfeRGrouP"); + var XScheck = XfeRSelecT.value + if (XScheck.match(/AGENTDIRECT/)) + { + showDiv('agentdirectlink'); + } + else + { + hideDiv('agentdirectlink'); + } + } + + +// ################################################################################ +// function for number to dial for AGENTDIRECT in-group transfers function XferAgentSelectLaunch() { var XfeRSelecT = document.getElementById("XfeRGrouP"); @@ -9459,12 +9487,12 @@ function phone_number_format(formatphone) { while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == 'AGENTDIRECT') - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip,'','NO'); @@ -9777,6 +9805,7 @@ else hideDiv('AgentViewSpan'); hideDiv('AgentXferViewSpan'); hideDiv('TimerSpan'); + hideDiv('agentdirectlink'); if (view_calls_in_queue_launch != '1') {hideDiv('callsinqueuedisplay');} if (agentonly_callbacks != '1') @@ -10387,6 +10416,8 @@ else { if (VU_vicidial_transfers == '1') { + XferAgentSelectLink(); + if (showxfervar == 'ON') { var xfer_height = ; @@ -10403,6 +10434,7 @@ else { HKbutton_allowed = 1; hideDiv('TransferMain'); + hideDiv('agentdirectlink'); if (showoffvar == 'YES') { document.getElementById("XferControl").innerHTML = "\"Transferência"; @@ -10542,6 +10574,7 @@ else .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} .body_small {font-size: 11px; font-family: sans-serif;} + .body_small_bold {font-size: 11px; font-family: sans-serif; font-weight: bold;} .body_tiny {font-size: 10px; font-family: sans-serif;} .log_text {font-size: 11px; font-family: monospace;} .log_text_red {font-size: 11px; font-family: monospace; font-weight: bold; background: #FF3333} @@ -10701,7 +10734,7 @@ Seu Status:
Calls Dialing: + LOCAL MAIS PRÓXIMO     @@ -10728,7 +10761,8 @@ Seu Status:
Calls Dialing:   -   +   + AGENTES diff --git a/LANG_www/agc_ru/vdc_db_query.php b/LANG_www/agc_ru/vdc_db_query.php index ed2e55a1..9fb9712d 100644 --- a/LANG_www/agc_ru/vdc_db_query.php +++ b/LANG_www/agc_ru/vdc_db_query.php @@ -233,10 +233,11 @@ # 100113-1949 - Fixed dispo_choice bug and added dispo_status to dispo URL call # 100202-2306 - Fixed logging issues related to INBOUND_MAN dial_method # 100207-1110 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100301-1342 - Changed Available agents output for AGENTDIRECT selection # -$version = '2.2.0-141'; -$build = '100207-1110'; +$version = '2.2.0-142'; +$build = '100301-1342'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=309; $one_mysql_log=0; @@ -6354,10 +6355,7 @@ if ($ACTION == 'AGENTSview') } echo "
\n"; echo "    -READY      -INCALL      -PAUSED  \n"; - if ($comments=='AgentXferViewSelect') - { - echo "

Close Window "; - } + echo "
\n"; } diff --git a/LANG_www/agc_ru/vicidial.php b/LANG_www/agc_ru/vicidial.php index b33fa884..5259eeae 100644 --- a/LANG_www/agc_ru/vicidial.php +++ b/LANG_www/agc_ru/vicidial.php @@ -274,10 +274,12 @@ # 100116-0709 - Added presets to script and web form variables # 100203-0640 - Fixed logging issues related to INBOUND_MAN dial method # 100207-1109 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100228-1257 - Fixed no-selected default transfer group issue on inbound calls +# 100301-1329 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field # -$version = '2.2.0-252'; -$build = '100207-1109'; +$version = '2.2.0-254'; +$build = '100301-1329'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -534,7 +536,7 @@ if ($campaign_login_list > 0) if ($VD_campaign) { if ( (eregi("$VD_campaign",$rowx[0])) and (strlen($VD_campaign) == strlen($rowx[0])) ) - {$camp_form_code .= "\n";} + {$camp_form_code .= "\n";} else { if (!ereg('login_allowable_campaigns',$camp_form_code)) @@ -4740,12 +4742,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; // INSERT VICIDIAL_LOG ENTRY FOR THIS ВЫЗОВ PROCESS DialLog("start"); @@ -6372,7 +6374,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} CalL_XC_a_NuMber = VDIC_data_VDIG[8]; CalL_XC_b_Dtmf = VDIC_data_VDIG[9]; CalL_XC_b_NuMber = VDIC_data_VDIG[10]; - if (VDIC_data_VDIG[11].length > 0) + if ( (VDIC_data_VDIG[11].length > 1) && (VDIC_data_VDIG[11] != '---NONE---') ) {LIVE_default_xfer_group = VDIC_data_VDIG[11];} else {LIVE_default_xfer_group = default_xfer_group;} @@ -6629,12 +6631,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; if (lastcustserverip == server_ip) { @@ -9252,13 +9254,21 @@ function phone_number_format(formatphone) { { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - // alert(xmlhttp.responseText); - document.getElementById(RAlocation).innerHTML = xmlhttp.responseText + "\n"; + var newRAlocationHTML = xmlhttp.responseText; + // alert(newRAlocationHTML); + + if (RAlocation == 'AgentXferViewSelect') + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n

Close Window "; + } + else + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n"; + } } } delete xmlhttp; } - } } } @@ -9424,6 +9434,7 @@ function phone_number_format(formatphone) { function AgentsXferSelect(AXuser,AXlocation) { xfer_select_agents_active=0; + document.getElementById('AgentXferViewSelect').innerHTML = ''; hideDiv('AgentXferViewSpan'); hideDiv(AXlocation); document.vicidial_form.xfernumber.value = AXuser; @@ -9431,7 +9442,24 @@ function phone_number_format(formatphone) { // ################################################################################ -// OnFocus function for number to dial +// OnChange function for transfer group select list + function XferAgentSelectLink() + { + var XfeRSelecT = document.getElementById("XfeRGrouP"); + var XScheck = XfeRSelecT.value + if (XScheck.match(/AGENTDIRECT/)) + { + showDiv('agentdirectlink'); + } + else + { + hideDiv('agentdirectlink'); + } + } + + +// ################################################################################ +// function for number to dial for AGENTDIRECT in-group transfers function XferAgentSelectLaunch() { var XfeRSelecT = document.getElementById("XfeRGrouP"); @@ -9459,12 +9487,12 @@ function phone_number_format(formatphone) { while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == 'AGENTDIRECT') - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip,'','NO'); @@ -9777,6 +9805,7 @@ else hideDiv('AgentViewSpan'); hideDiv('AgentXferViewSpan'); hideDiv('TimerSpan'); + hideDiv('agentdirectlink'); if (view_calls_in_queue_launch != '1') {hideDiv('callsinqueuedisplay');} if (agentonly_callbacks != '1') @@ -10387,6 +10416,8 @@ else { if (VU_vicidial_transfers == '1') { + XferAgentSelectLink(); + if (showxfervar == 'ON') { var xfer_height = ; @@ -10403,6 +10434,7 @@ else { HKbutton_allowed = 1; hideDiv('TransferMain'); + hideDiv('agentdirectlink'); if (showoffvar == 'YES') { document.getElementById("XferControl").innerHTML = "\"Перевод"; @@ -10542,6 +10574,7 @@ else .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} .body_small {font-size: 11px; font-family: sans-serif;} + .body_small_bold {font-size: 11px; font-family: sans-serif; font-weight: bold;} .body_tiny {font-size: 10px; font-family: sans-serif;} .log_text {font-size: 11px; font-family: monospace;} .log_text_red {font-size: 11px; font-family: monospace; font-weight: bold; background: #FF3333} @@ -10701,7 +10734,7 @@ echo "\n"; @@ -10728,7 +10761,8 @@ echo "\n";
- + ЛОКАЛЬНЫЙ CLOSER     Номер для вызова   -   +   + агенты diff --git a/LANG_www/agc_sk/vdc_db_query.php b/LANG_www/agc_sk/vdc_db_query.php index 5ce9286c..32bb7fc5 100644 --- a/LANG_www/agc_sk/vdc_db_query.php +++ b/LANG_www/agc_sk/vdc_db_query.php @@ -233,10 +233,11 @@ # 100113-1949 - Fixed dispo_choice bug and added dispo_status to dispo URL call # 100202-2306 - Fixed logging issues related to INBOUND_MAN dial_method # 100207-1110 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100301-1342 - Changed Available agents output for AGENTDIRECT selection # -$version = '2.2.0-141'; -$build = '100207-1110'; +$version = '2.2.0-142'; +$build = '100301-1342'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=309; $one_mysql_log=0; @@ -6354,10 +6355,7 @@ if ($ACTION == 'AGENTSview') } echo "

\n"; echo "    -READY      -INCALL      -PAUSED  \n"; - if ($comments=='AgentXferViewSelect') - { - echo "

Close Window "; - } + echo "
\n"; } diff --git a/LANG_www/agc_sk/vicidial.php b/LANG_www/agc_sk/vicidial.php index 59fb1619..55a6ee0d 100644 --- a/LANG_www/agc_sk/vicidial.php +++ b/LANG_www/agc_sk/vicidial.php @@ -274,10 +274,12 @@ # 100116-0709 - Added presets to script and web form variables # 100203-0640 - Fixed logging issues related to INBOUND_MAN dial method # 100207-1109 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100228-1257 - Fixed no-selected default transfer group issue on inbound calls +# 100301-1329 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field # -$version = '2.2.0-252'; -$build = '100207-1109'; +$version = '2.2.0-254'; +$build = '100301-1329'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -534,7 +536,7 @@ if ($campaign_login_list > 0) if ($VD_campaign) { if ( (eregi("$VD_campaign",$rowx[0])) and (strlen($VD_campaign) == strlen($rowx[0])) ) - {$camp_form_code .= "\n";} + {$camp_form_code .= "\n";} else { if (!ereg('login_allowable_campaigns',$camp_form_code)) @@ -4740,12 +4742,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; // INSERT VICIDIAL_LOG ENTRY FOR THIS HOVOR PROCESS DialLog("start"); @@ -6372,7 +6374,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} CalL_XC_a_NuMber = VDIC_data_VDIG[8]; CalL_XC_b_Dtmf = VDIC_data_VDIG[9]; CalL_XC_b_NuMber = VDIC_data_VDIG[10]; - if (VDIC_data_VDIG[11].length > 0) + if ( (VDIC_data_VDIG[11].length > 1) && (VDIC_data_VDIG[11] != '---NONE---') ) {LIVE_default_xfer_group = VDIC_data_VDIG[11];} else {LIVE_default_xfer_group = default_xfer_group;} @@ -6629,12 +6631,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; if (lastcustserverip == server_ip) { @@ -9252,13 +9254,21 @@ function phone_number_format(formatphone) { { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - // alert(xmlhttp.responseText); - document.getElementById(RAlocation).innerHTML = xmlhttp.responseText + "\n"; + var newRAlocationHTML = xmlhttp.responseText; + // alert(newRAlocationHTML); + + if (RAlocation == 'AgentXferViewSelect') + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n

Close Window "; + } + else + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n"; + } } } delete xmlhttp; } - } } } @@ -9424,6 +9434,7 @@ function phone_number_format(formatphone) { function AgentsXferSelect(AXuser,AXlocation) { xfer_select_agents_active=0; + document.getElementById('AgentXferViewSelect').innerHTML = ''; hideDiv('AgentXferViewSpan'); hideDiv(AXlocation); document.vicidial_form.xfernumber.value = AXuser; @@ -9431,7 +9442,24 @@ function phone_number_format(formatphone) { // ################################################################################ -// OnFocus function for number to dial +// OnChange function for transfer group select list + function XferAgentSelectLink() + { + var XfeRSelecT = document.getElementById("XfeRGrouP"); + var XScheck = XfeRSelecT.value + if (XScheck.match(/AGENTDIRECT/)) + { + showDiv('agentdirectlink'); + } + else + { + hideDiv('agentdirectlink'); + } + } + + +// ################################################################################ +// function for number to dial for AGENTDIRECT in-group transfers function XferAgentSelectLaunch() { var XfeRSelecT = document.getElementById("XfeRGrouP"); @@ -9459,12 +9487,12 @@ function phone_number_format(formatphone) { while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == 'AGENTDIRECT') - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip,'','NO'); @@ -9777,6 +9805,7 @@ else hideDiv('AgentViewSpan'); hideDiv('AgentXferViewSpan'); hideDiv('TimerSpan'); + hideDiv('agentdirectlink'); if (view_calls_in_queue_launch != '1') {hideDiv('callsinqueuedisplay');} if (agentonly_callbacks != '1') @@ -10387,6 +10416,8 @@ else { if (VU_vicidial_transfers == '1') { + XferAgentSelectLink(); + if (showxfervar == 'ON') { var xfer_height = ; @@ -10403,6 +10434,7 @@ else { HKbutton_allowed = 1; hideDiv('TransferMain'); + hideDiv('agentdirectlink'); if (showoffvar == 'YES') { document.getElementById("XferControl").innerHTML = "\"Presmerovanie"; @@ -10542,6 +10574,7 @@ else .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} .body_small {font-size: 11px; font-family: sans-serif;} + .body_small_bold {font-size: 11px; font-family: sans-serif; font-weight: bold;} .body_tiny {font-size: 10px; font-family: sans-serif;} .log_text {font-size: 11px; font-family: monospace;} .log_text_red {font-size: 11px; font-family: monospace; font-weight: bold; background: #FF3333} @@ -10701,7 +10734,7 @@ Váš stav:
Calls Dialing: + LOKALNE ROZSIRENIE     @@ -10728,7 +10761,8 @@ Váš stav:
Calls Dialing:   -   +   + AGENTI diff --git a/LANG_www/agc_tw/vdc_db_query.php b/LANG_www/agc_tw/vdc_db_query.php index 778141a2..32577873 100644 --- a/LANG_www/agc_tw/vdc_db_query.php +++ b/LANG_www/agc_tw/vdc_db_query.php @@ -233,10 +233,11 @@ # 100113-1949 - Fixed dispo_choice bug and added dispo_status to dispo URL call # 100202-2306 - Fixed logging issues related to INBOUND_MAN dial_method # 100207-1110 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100301-1342 - Changed Available agents output for AGENTDIRECT selection # -$version = '2.2.0-141'; -$build = '100207-1110'; +$version = '2.2.0-142'; +$build = '100301-1342'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=309; $one_mysql_log=0; @@ -6354,10 +6355,7 @@ if ($ACTION == 'AGENTSview') } echo "
\n"; echo "    -READY      -INCALL      -PAUSED  \n"; - if ($comments=='AgentXferViewSelect') - { - echo "

Close Window "; - } + echo "
\n"; } diff --git a/LANG_www/agc_tw/vicidial.php b/LANG_www/agc_tw/vicidial.php index b882720c..96a53353 100644 --- a/LANG_www/agc_tw/vicidial.php +++ b/LANG_www/agc_tw/vicidial.php @@ -274,10 +274,12 @@ # 100116-0709 - Added presets to script and web form variables # 100203-0640 - Fixed logging issues related to INBOUND_MAN dial method # 100207-1109 - Changed Pause Codes function to allow for multiple pause codes per pause period +# 100228-1257 - Fixed no-selected default transfer group issue on inbound calls +# 100301-1329 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field # -$version = '2.2.0-252'; -$build = '100207-1109'; +$version = '2.2.0-254'; +$build = '100301-1329'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -534,7 +536,7 @@ if ($campaign_login_list > 0) if ($VD_campaign) { if ( (eregi("$VD_campaign",$rowx[0])) and (strlen($VD_campaign) == strlen($rowx[0])) ) - {$camp_form_code .= "\n";} + {$camp_form_code .= "\n";} else { if (!ereg('login_allowable_campaigns',$camp_form_code)) @@ -4740,12 +4742,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; // INSERT VICIDIAL_LOG ENTRY FOR THIS 撥號 PROCESS DialLog("start"); @@ -6372,7 +6374,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} CalL_XC_a_NuMber = VDIC_data_VDIG[8]; CalL_XC_b_Dtmf = VDIC_data_VDIG[9]; CalL_XC_b_NuMber = VDIC_data_VDIG[10]; - if (VDIC_data_VDIG[11].length > 0) + if ( (VDIC_data_VDIG[11].length > 1) && (VDIC_data_VDIG[11] != '---NONE---') ) {LIVE_default_xfer_group = VDIC_data_VDIG[11];} else {LIVE_default_xfer_group = default_xfer_group;} @@ -6629,12 +6631,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; if (lastcustserverip == server_ip) { @@ -9252,13 +9254,21 @@ function phone_number_format(formatphone) { { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - // alert(xmlhttp.responseText); - document.getElementById(RAlocation).innerHTML = xmlhttp.responseText + "\n"; + var newRAlocationHTML = xmlhttp.responseText; + // alert(newRAlocationHTML); + + if (RAlocation == 'AgentXferViewSelect') + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n

Close Window "; + } + else + { + document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n"; + } } } delete xmlhttp; } - } } } @@ -9424,6 +9434,7 @@ function phone_number_format(formatphone) { function AgentsXferSelect(AXuser,AXlocation) { xfer_select_agents_active=0; + document.getElementById('AgentXferViewSelect').innerHTML = ''; hideDiv('AgentXferViewSpan'); hideDiv(AXlocation); document.vicidial_form.xfernumber.value = AXuser; @@ -9431,7 +9442,24 @@ function phone_number_format(formatphone) { // ################################################################################ -// OnFocus function for number to dial +// OnChange function for transfer group select list + function XferAgentSelectLink() + { + var XfeRSelecT = document.getElementById("XfeRGrouP"); + var XScheck = XfeRSelecT.value + if (XScheck.match(/AGENTDIRECT/)) + { + showDiv('agentdirectlink'); + } + else + { + hideDiv('agentdirectlink'); + } + } + + +// ################################################################################ +// function for number to dial for AGENTDIRECT in-group transfers function XferAgentSelectLaunch() { var XfeRSelecT = document.getElementById("XfeRGrouP"); @@ -9459,12 +9487,12 @@ function phone_number_format(formatphone) { while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == 'AGENTDIRECT') - {XfeR_SelecT = 'SELECTED ';} + {XfeR_SelecT = 'selected ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; } - document.getElementById("XfeRGrouPLisT").innerHTML = ""; + document.getElementById("XfeRGrouPLisT").innerHTML = ""; mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip,'','NO'); @@ -9777,6 +9805,7 @@ else hideDiv('AgentViewSpan'); hideDiv('AgentXferViewSpan'); hideDiv('TimerSpan'); + hideDiv('agentdirectlink'); if (view_calls_in_queue_launch != '1') {hideDiv('callsinqueuedisplay');} if (agentonly_callbacks != '1') @@ -10387,6 +10416,8 @@ else { if (VU_vicidial_transfers == '1') { + XferAgentSelectLink(); + if (showxfervar == 'ON') { var xfer_height = ; @@ -10403,6 +10434,7 @@ else { HKbutton_allowed = 1; hideDiv('TransferMain'); + hideDiv('agentdirectlink'); if (showoffvar == 'YES') { document.getElementById("XferControl").innerHTML = "\"轉接"; @@ -10542,6 +10574,7 @@ else .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} .body_small {font-size: 11px; font-family: sans-serif;} + .body_small_bold {font-size: 11px; font-family: sans-serif; font-weight: bold;} .body_tiny {font-size: 10px; font-family: sans-serif;} .log_text {font-size: 11px; font-family: monospace;} .log_text_red {font-size: 11px; font-family: monospace; font-weight: bold; background: #FF3333} @@ -10701,7 +10734,7 @@ echo "\n"; @@ -10728,7 +10761,8 @@ echo "\n";
- + LOCAL CLOSER     撥打號碼   -   +   + 經營者 diff --git a/LANG_www/vicidial_de/AST_IVRstats.php b/LANG_www/vicidial_de/AST_IVRstats.php index c4bcbe7d..f3564aeb 100644 --- a/LANG_www/vicidial_de/AST_IVRstats.php +++ b/LANG_www/vicidial_de/AST_IVRstats.php @@ -12,6 +12,7 @@ # 90508-0644 - Changed to PHP long tags # 91112-0719 - Added in-group names to select list # 100214-1421 - Sort menu alphabetically +# 100301-1401 - Added popup date selector # require("dbconnect.php"); @@ -180,6 +181,21 @@ else $query_date_END = "$end_date $time_END"; } +$query_dateARRAY = explode(" ",$query_date_BEGIN); +$query_date_D = $query_dateARRAY[0]; +$query_date_T = $query_dateARRAY[1]; +$end_dateARRAY = explode(" ",$query_date_END); +$end_date_D = $end_dateARRAY[0]; +$end_date_T = $end_dateARRAY[1]; + + +?> + + + + +\n"; echo "IVR Stats Report\n"; @@ -198,12 +214,48 @@ if ($DB > 0) echo "
\n"; } -echo "
\n"; +echo "\n"; echo "
\n"; echo "\n"; echo "Zeitraum:
\n"; -echo "\n"; -echo " to \n"; + +echo "\n"; +echo "\n"; +echo ""; + +?> + +"; + +echo "
to
"; + +?> + +"; + + echo "
\n"; echo "Inbound Gruppen: \n"; echo "\n"; @@ -245,7 +297,23 @@ echo "\n"; echo "\n"; echo "\n"; echo "\n"; -echo "   \n"; + +?> + + +   +
\n"; echo "
\n\n"; @@ -260,7 +328,8 @@ if ($groups_to_print < 1) else { - echo "IVR Stats Report: $group_string $NOW_TIME\n"; + echo "IVR Stats Report: $query_date_BEGIN to $query_date_END $NOW_TIME\n"; + echo " $group_string\n"; $TOTALcalls=0; $NOCALLERIDcalls=0; @@ -493,17 +562,6 @@ else echo "+--------+--------+--------+--------+------+------+\n"; - - - - - - - - - - - ############################## ######### TIME STATS @@ -660,14 +718,6 @@ else echo "+------+-------------------------------------------------------------------------------------------------------+-------+\n\n"; - - - - - - - - $ENDtime = date("U"); $RUNtime = ($ENDtime - $STARTtime); echo "\nRun Time: $RUNtime seconds\n"; diff --git a/LANG_www/vicidial_de/AST_agent_timeclock_detail.php b/LANG_www/vicidial_de/AST_agent_timeclock_detail.php index efcc2bad..e8d0b8b8 100644 --- a/LANG_www/vicidial_de/AST_agent_timeclock_detail.php +++ b/LANG_www/vicidial_de/AST_agent_timeclock_detail.php @@ -3,10 +3,11 @@ # # Pulls all timeclock records for an agent # -# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2010 Matt Florell LICENSE: AGPLv2 # # CHANGES # 90602-2244 - First build +# 100301-1401 - Added popup date selector # @@ -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"); @@ -84,6 +83,13 @@ if (!isset($end_date)) {$end_date = "$NOW_DATE 23:59:59";} $query_dateURL = ereg_replace(' ','+',$query_date); $end_dateURL = ereg_replace(' ','+',$end_date); +$query_dateARRAY = explode(" ",$query_date); +$query_date_D = $query_dateARRAY[0]; +$query_date_T = $query_dateARRAY[1]; +$end_dateARRAY = explode(" ",$end_date); +$end_date_D = $end_dateARRAY[0]; +$end_date_T = $end_dateARRAY[1]; + $stmt="select campaign_id from vicidial_campaigns;"; $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} @@ -177,6 +183,9 @@ if ($file_download < 1) --> + + + \n"; echo "User Time-Clock Detail\n"; @@ -470,7 +479,7 @@ else ### BEGIN sort through output to display properly ### - if (ereg("NAME|ID|TCLOCK|GROUP",$stage)) + if ( (ereg("NAME|ID|TCLOCK|GROUP",$stage)) and ($k > 0) ) { if (ereg("ID",$stage)) {sort($TOPsort, SORT_NUMERIC);} @@ -563,11 +572,44 @@ if ($file_download > 0) ############################################################################ ##### BEGIN HTML form section ############################################################################ -echo "
\n"; +echo "\n"; echo "
Dates:
"; echo "\n"; -echo "\n"; -echo "
to
\n"; +echo "\n"; +echo "\n"; +echo ""; + +?> + +"; + +echo "
to
"; + +?> + +"; # echo "
Campaigns:
"; # echo "

\n"; -echo "\n"; + + +?> + + + +
        "; echo "          \n"; diff --git a/LANG_www/vicidial_de/AST_timeonVDADall.php b/LANG_www/vicidial_de/AST_timeonVDADall.php index 368e55f3..ce013332 100644 --- a/LANG_www/vicidial_de/AST_timeonVDADall.php +++ b/LANG_www/vicidial_de/AST_timeonVDADall.php @@ -59,10 +59,11 @@ # 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 +# 100301-1229 - Added 3-WAY status for consultative transfer agents # -$version = '2.2.0-50'; -$build = '100214-1127'; +$version = '2.2.0-51'; +$build = '100301-1229'; header ("Content-type: text/html; charset=utf-8"); @@ -664,6 +665,7 @@ function hide_ingroup_info() .violet {color: black; background-color: #EE82EE} .thistle {color: black; background-color: #D8BFD8} .olive {color: white; background-color: #808000} + .lime {color: white; background-color: #006600} .yellow {color: black; background-color: yellow} .khaki {color: black; background-color: #F0E68C} .orange {color: black; background-color: orange} @@ -1729,6 +1731,20 @@ $talking_to_print = mysql_num_rows($rslt); $Alead_id[$i] = $row[14]; $Astate_change[$i] = $row[15]; + ### 3-WAY Check ### + if ($Alead_id[$i]!=0) + { + $threewaystmt="select UNIX_TIMESTAMP(last_call_time) from vicidial_live_agents where lead_id='$Alead_id[$i]' and status='INCALL' order by UNIX_TIMESTAMP(last_call_time) desc"; + $threewayrslt=mysql_query($threewaystmt, $link); + if (mysql_num_rows($threewayrslt)>1) + { + $Astatus[$i]="3-WAY"; + $srow=mysql_fetch_row($threewayrslt); + $Acall_mostrecent[$i]=$srow[0]; + } + } + ### END 3-WAY Check ### + $i++; } @@ -1946,8 +1962,10 @@ $calls_to_list = mysql_num_rows($rslt); while(mb_strlen($user, 'utf-8')>20) {$user = mb_substr("$user", 0, -1,'utf8');} } } - if (!eregi("INCALL|QUEUE|PARK",$Astatus[$i])) + if (!eregi("INCALL|QUEUE|PARK|3-WAY",$Astatus[$i])) {$call_time_S = ($STARTtime - $Astate_change[$i]);} + else if (eregi("3-WAY",$Astatus[$i])) + {$call_time_S = ($STARTtime - $Acall_mostrecent[$i]);} else {$call_time_S = ($STARTtime - $Acall_time[$i]);} @@ -1961,6 +1979,10 @@ $calls_to_list = mysql_num_rows($rslt); if ($call_time_S >= 300) {$G=''; $EG='';} # if ($call_time_S >= 600) {$G=''; $EG='';} } + if ($Lstatus=='3-WAY') + { + if ($call_time_S >= 10) {$G=''; $EG='';} + } if ($Lstatus=='DEAD') { if ($call_time_S >= 21600) @@ -2012,7 +2034,7 @@ $calls_to_list = mysql_num_rows($rslt); # if ( (strlen($Acall_server_ip[$i])> 4) and ($Acall_server_ip[$i] != "$Aserver_ip[$i]") ) # {$G=''; $EG='';} - if ( (eregi("INCALL",$status)) or (eregi("QUEUE",$status)) or (eregi("PARK",$status)) ) {$agent_incall++; $agent_total++;} + if ( (eregi("INCALL",$status)) or (eregi("QUEUE",$status)) or (eregi("3-WAY",$status)) or (eregi("PARK",$status))) {$agent_incall++; $agent_total++;} if ( (eregi("READY",$status)) or (eregi("CLOSER",$status)) ) {$agent_ready++; $agent_total++;} if ( (eregi("READY",$status)) or (eregi("CLOSER",$status)) ) { @@ -2085,6 +2107,7 @@ $calls_to_list = mysql_num_rows($rslt); $Aecho .= " - Agent Paused > 10 seconds\n"; $Aecho .= " - Agent Paused > 1 minute\n"; $Aecho .= " - Agent Paused > 5 minutes\n"; + $Aecho .= " - Agent in 3-WAY > 10 seconds\n"; $Aecho .= " - Agent on a dead call\n"; if ($agent_ready > 0) {$B=''; $BG='';} diff --git a/LANG_www/vicidial_de/admin_search_lead.php b/LANG_www/vicidial_de/admin_search_lead.php index 9be35610..e4761c5e 100644 --- a/LANG_www/vicidial_de/admin_search_lead.php +++ b/LANG_www/vicidial_de/admin_search_lead.php @@ -1,12 +1,12 @@ LICENSE: AGPLv2 +# Copyright (C) 2010 Matt Florell LICENSE: AGPLv2 # # AST GUI database administration search for lead info # admin_modify_lead.php # -# this is the administration lead information modifier screen, the administrator +# this is the administration lead information search screen, the administrator # just needs to enter the leadID and then they can view and modify the information # in the record for that lead # @@ -21,6 +21,7 @@ # 90508-0644 - Changed to PHP long tags # 90917-2307 - Added alternate phone number searching option # 90921-0713 - Removed SELECT STAR +# 100224-1621 - Added first/last name search and changed format of the page # require("dbconnect.php"); @@ -30,6 +31,10 @@ $PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW']; $PHP_SELF=$_SERVER['PHP_SELF']; if (isset($_GET["vendor_id"])) {$vendor_id=$_GET["vendor_id"];} elseif (isset($_POST["vendor_id"])) {$vendor_id=$_POST["vendor_id"];} +if (isset($_GET["first_name"])) {$first_name=$_GET["first_name"];} + elseif (isset($_POST["first_name"])) {$first_name=$_POST["first_name"];} +if (isset($_GET["last_name"])) {$last_name=$_GET["last_name"];} + elseif (isset($_POST["last_name"])) {$last_name=$_POST["last_name"];} if (isset($_GET["phone"])) {$phone=$_GET["phone"];} elseif (isset($_POST["phone"])) {$phone=$_POST["phone"];} if (isset($_GET["lead_id"])) {$lead_id=$_GET["lead_id"];} @@ -137,22 +142,57 @@ $subcamp_color = '#C6C6C6'; require("admin_header.php"); -echo " Lead search: $vendor_id $phone $lead_id $status $list_id $user
\n"; +echo " Lead search: $vendor_id $phone $lead_id $status $list_id $user\n"; +echo date("l F j, Y G:i:s A"); +echo "
\n"; -if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and (strlen($list_id)<1) and (strlen($user)<1) )) +if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and (strlen($list_id)<1) and (strlen($user)<1) ) and ( (strlen($first_name)<1) and (strlen($last_name)<1) )) { - echo date("l F j, Y G:i:s A"); - echo "\n

\n"; + echo "
\n"; echo "\n"; echo "\n"; - echo "Tragen Sie bitte a ein:
Vendor ID(Verkäuferleitung Code): or \n"; - echo "
eine Haupttelefonnummer: Alt phone search: \n"; - echo " or \n"; - echo "
eine Leitung Identifikation: or\n"; - echo "
status:   \n"; - echo "list ID:   \n"; - echo "user:

\n"; - echo "
\n"; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo "
Leitung Suche Options:
Vendor ID(Verkäuferleitung Code):  
 
Home Telefonnummer:  
Alt phone search:  
 
Lead ID:  
 
Status: 
Liste Identifikation:  
User:  
 
Vorname:  
Letzter Name:  
\n"; echo "\n
\n"; echo "\n"; exit; @@ -160,7 +200,6 @@ if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and else { - if ($vendor_id) { $stmt="SELECT $vicidial_list_fields from vicidial_list where vendor_lead_code='" . mysql_real_escape_string($vendor_id) . "'"; @@ -209,8 +248,26 @@ else } else { - print "ERROR: you must search for something! Go back and search for something"; - exit; + if ( (strlen($first_name)>0) or (strlen($last_name)>0) ) + { + $first_nameSQL = ''; + $last_nameSQL = ''; + if (strlen($first_name)>0) + { + $first_nameSQL = "first_name='" . mysql_real_escape_string($first_name) . "'"; $SQLctA++; + } + if (strlen($last_name)>0) + { + if ($SQLctA > 0) {$andA = 'and';} + $last_nameSQL = "$andA last_name='" . mysql_real_escape_string($last_name) . "'"; + } + $stmt="SELECT $vicidial_list_fields from vicidial_list where $first_nameSQL $last_nameSQL"; + } + else + { + print "ERROR: you must search for something! Go back and search for something"; + exit; + } } } } @@ -259,19 +316,19 @@ else else { echo "RESULTS: $results_to_print

\n"; - echo "\n"; + echo "
\n"; echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; $o=0; while ($results_to_print > $o) diff --git a/LANG_www/vicidial_de/user_stats.php b/LANG_www/vicidial_de/user_stats.php index 60f4f1ce..57619c43 100644 --- a/LANG_www/vicidial_de/user_stats.php +++ b/LANG_www/vicidial_de/user_stats.php @@ -648,7 +648,7 @@ while ($logs_to_print > $u) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; } diff --git a/LANG_www/vicidial_el/AST_IVRstats.php b/LANG_www/vicidial_el/AST_IVRstats.php index 4e821dd0..5d755c81 100644 --- a/LANG_www/vicidial_el/AST_IVRstats.php +++ b/LANG_www/vicidial_el/AST_IVRstats.php @@ -12,6 +12,7 @@ # 90508-0644 - Changed to PHP long tags # 91112-0719 - Added in-group names to select list # 100214-1421 - Sort menu alphabetically +# 100301-1401 - Added popup date selector # require("dbconnect.php"); @@ -180,6 +181,21 @@ else $query_date_END = "$end_date $time_END"; } +$query_dateARRAY = explode(" ",$query_date_BEGIN); +$query_date_D = $query_dateARRAY[0]; +$query_date_T = $query_dateARRAY[1]; +$end_dateARRAY = explode(" ",$query_date_END); +$end_date_D = $end_dateARRAY[0]; +$end_date_T = $end_dateARRAY[1]; + + +?> + + + + +\n"; echo "IVR Stats Report\n"; @@ -198,12 +214,48 @@ if ($DB > 0) echo "
\n"; } -echo "\n"; +echo "\n"; echo "
#LEAD IDSTATUSVENDOR IDLAST AGENTLISTE IDENTIFIKATIONPHONENAMECITYSECURITYLAST CALL#LEAD ID  STATUS  VENDOR ID  LAST AGENT  LISTE IDENTIFIKATION  PHONE  NAME  CITY  SECURITY  LAST CALL
$dead_sec $customer_sec $status $lead_id $lead_id $campaign_id $pause_code
\n"; echo "\n"; echo "Χρονικό διάστημα:
\n"; -echo "\n"; -echo " to \n"; + +echo "\n"; +echo "\n"; +echo ""; + +?> + +"; + +echo "
to
"; + +?> + +"; + + echo "
\n"; echo "Εισερχόμενες Ομάδες: \n"; echo "\n"; @@ -245,7 +297,23 @@ echo "\n"; echo "\n"; echo "\n"; echo "\n"; -echo "   \n"; + +?> + + +   +
\n"; echo "\n\n"; @@ -260,7 +328,8 @@ if ($groups_to_print < 1) else { - echo "IVR Stats Report: $group_string $NOW_TIME\n"; + echo "IVR Stats Report: $query_date_BEGIN to $query_date_END $NOW_TIME\n"; + echo " $group_string\n"; $TOTALcalls=0; $NOCALLERIDcalls=0; @@ -493,17 +562,6 @@ else echo "+--------+--------+--------+--------+------+------+\n"; - - - - - - - - - - - ############################## ######### TIME STATS @@ -660,14 +718,6 @@ else echo "+------+-------------------------------------------------------------------------------------------------------+-------+\n\n"; - - - - - - - - $ENDtime = date("U"); $RUNtime = ($ENDtime - $STARTtime); echo "\nRun Time: $RUNtime seconds\n"; diff --git a/LANG_www/vicidial_el/AST_agent_timeclock_detail.php b/LANG_www/vicidial_el/AST_agent_timeclock_detail.php index efcc2bad..e8d0b8b8 100644 --- a/LANG_www/vicidial_el/AST_agent_timeclock_detail.php +++ b/LANG_www/vicidial_el/AST_agent_timeclock_detail.php @@ -3,10 +3,11 @@ # # Pulls all timeclock records for an agent # -# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2010 Matt Florell LICENSE: AGPLv2 # # CHANGES # 90602-2244 - First build +# 100301-1401 - Added popup date selector # @@ -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"); @@ -84,6 +83,13 @@ if (!isset($end_date)) {$end_date = "$NOW_DATE 23:59:59";} $query_dateURL = ereg_replace(' ','+',$query_date); $end_dateURL = ereg_replace(' ','+',$end_date); +$query_dateARRAY = explode(" ",$query_date); +$query_date_D = $query_dateARRAY[0]; +$query_date_T = $query_dateARRAY[1]; +$end_dateARRAY = explode(" ",$end_date); +$end_date_D = $end_dateARRAY[0]; +$end_date_T = $end_dateARRAY[1]; + $stmt="select campaign_id from vicidial_campaigns;"; $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} @@ -177,6 +183,9 @@ if ($file_download < 1) --> + + + \n"; echo "User Time-Clock Detail\n"; @@ -470,7 +479,7 @@ else ### BEGIN sort through output to display properly ### - if (ereg("NAME|ID|TCLOCK|GROUP",$stage)) + if ( (ereg("NAME|ID|TCLOCK|GROUP",$stage)) and ($k > 0) ) { if (ereg("ID",$stage)) {sort($TOPsort, SORT_NUMERIC);} @@ -563,11 +572,44 @@ if ($file_download > 0) ############################################################################ ##### BEGIN HTML form section ############################################################################ -echo "
\n"; +echo "\n"; echo "
Dates:
"; echo "\n"; -echo "\n"; -echo "
to
\n"; +echo "\n"; +echo "\n"; +echo ""; + +?> + +"; + +echo "
to
"; + +?> + +"; # echo "
Campaigns:
"; # echo "

\n"; -echo "\n"; + + +?> + + + +
        "; echo "          \n"; diff --git a/LANG_www/vicidial_el/AST_timeonVDADall.php b/LANG_www/vicidial_el/AST_timeonVDADall.php index f15533f5..f18d161e 100644 --- a/LANG_www/vicidial_el/AST_timeonVDADall.php +++ b/LANG_www/vicidial_el/AST_timeonVDADall.php @@ -59,10 +59,11 @@ # 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 +# 100301-1229 - Added 3-WAY status for consultative transfer agents # -$version = '2.2.0-50'; -$build = '100214-1127'; +$version = '2.2.0-51'; +$build = '100301-1229'; header ("Content-type: text/html; charset=utf-8"); @@ -664,6 +665,7 @@ function hide_ingroup_info() .violet {color: black; background-color: #EE82EE} .thistle {color: black; background-color: #D8BFD8} .olive {color: white; background-color: #808000} + .lime {color: white; background-color: #006600} .yellow {color: black; background-color: yellow} .khaki {color: black; background-color: #F0E68C} .orange {color: black; background-color: orange} @@ -1729,6 +1731,20 @@ $talking_to_print = mysql_num_rows($rslt); $Alead_id[$i] = $row[14]; $Astate_change[$i] = $row[15]; + ### 3-WAY Check ### + if ($Alead_id[$i]!=0) + { + $threewaystmt="select UNIX_TIMESTAMP(last_call_time) from vicidial_live_agents where lead_id='$Alead_id[$i]' and status='INCALL' order by UNIX_TIMESTAMP(last_call_time) desc"; + $threewayrslt=mysql_query($threewaystmt, $link); + if (mysql_num_rows($threewayrslt)>1) + { + $Astatus[$i]="3-WAY"; + $srow=mysql_fetch_row($threewayrslt); + $Acall_mostrecent[$i]=$srow[0]; + } + } + ### END 3-WAY Check ### + $i++; } @@ -1946,8 +1962,10 @@ $calls_to_list = mysql_num_rows($rslt); while(mb_strlen($user, 'utf-8')>20) {$user = mb_substr("$user", 0, -1,'utf8');} } } - if (!eregi("INCALL|QUEUE|PARK",$Astatus[$i])) + if (!eregi("INCALL|QUEUE|PARK|3-WAY",$Astatus[$i])) {$call_time_S = ($STARTtime - $Astate_change[$i]);} + else if (eregi("3-WAY",$Astatus[$i])) + {$call_time_S = ($STARTtime - $Acall_mostrecent[$i]);} else {$call_time_S = ($STARTtime - $Acall_time[$i]);} @@ -1961,6 +1979,10 @@ $calls_to_list = mysql_num_rows($rslt); if ($call_time_S >= 300) {$G=''; $EG='';} # if ($call_time_S >= 600) {$G=''; $EG='';} } + if ($Lstatus=='3-WAY') + { + if ($call_time_S >= 10) {$G=''; $EG='';} + } if ($Lstatus=='DEAD') { if ($call_time_S >= 21600) @@ -2012,7 +2034,7 @@ $calls_to_list = mysql_num_rows($rslt); # if ( (strlen($Acall_server_ip[$i])> 4) and ($Acall_server_ip[$i] != "$Aserver_ip[$i]") ) # {$G=''; $EG='';} - if ( (eregi("INCALL",$status)) or (eregi("QUEUE",$status)) or (eregi("PARK",$status)) ) {$agent_incall++; $agent_total++;} + if ( (eregi("INCALL",$status)) or (eregi("QUEUE",$status)) or (eregi("3-WAY",$status)) or (eregi("PARK",$status))) {$agent_incall++; $agent_total++;} if ( (eregi("READY",$status)) or (eregi("CLOSER",$status)) ) {$agent_ready++; $agent_total++;} if ( (eregi("READY",$status)) or (eregi("CLOSER",$status)) ) { @@ -2085,6 +2107,7 @@ $calls_to_list = mysql_num_rows($rslt); $Aecho .= " - Agent Paused > 10 seconds\n"; $Aecho .= " - Agent Paused > 1 minute\n"; $Aecho .= " - Agent Paused > 5 minutes\n"; + $Aecho .= " - Agent in 3-WAY > 10 seconds\n"; $Aecho .= " - Agent on a dead call\n"; if ($agent_ready > 0) {$B=''; $BG='';} diff --git a/LANG_www/vicidial_el/admin_search_lead.php b/LANG_www/vicidial_el/admin_search_lead.php index 1d70ae1a..4f61257e 100644 --- a/LANG_www/vicidial_el/admin_search_lead.php +++ b/LANG_www/vicidial_el/admin_search_lead.php @@ -1,12 +1,12 @@ LICENSE: AGPLv2 +# Copyright (C) 2010 Matt Florell LICENSE: AGPLv2 # # AST GUI database administration search for lead info # admin_modify_lead.php # -# this is the administration lead information modifier screen, the administrator +# this is the administration lead information search screen, the administrator # just needs to enter the leadID and then they can view and modify the information # in the record for that lead # @@ -21,6 +21,7 @@ # 90508-0644 - Changed to PHP long tags # 90917-2307 - Added alternate phone number searching option # 90921-0713 - Removed SELECT STAR +# 100224-1621 - Added first/last name search and changed format of the page # require("dbconnect.php"); @@ -30,6 +31,10 @@ $PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW']; $PHP_SELF=$_SERVER['PHP_SELF']; if (isset($_GET["vendor_id"])) {$vendor_id=$_GET["vendor_id"];} elseif (isset($_POST["vendor_id"])) {$vendor_id=$_POST["vendor_id"];} +if (isset($_GET["first_name"])) {$first_name=$_GET["first_name"];} + elseif (isset($_POST["first_name"])) {$first_name=$_POST["first_name"];} +if (isset($_GET["last_name"])) {$last_name=$_GET["last_name"];} + elseif (isset($_POST["last_name"])) {$last_name=$_POST["last_name"];} if (isset($_GET["phone"])) {$phone=$_GET["phone"];} elseif (isset($_POST["phone"])) {$phone=$_POST["phone"];} if (isset($_GET["lead_id"])) {$lead_id=$_GET["lead_id"];} @@ -137,22 +142,57 @@ $subcamp_color = '#C6C6C6'; require("admin_header.php"); -echo " Lead search: $vendor_id $phone $lead_id $status $list_id $user
\n"; +echo " Lead search: $vendor_id $phone $lead_id $status $list_id $user\n"; +echo date("l F j, Y G:i:s A"); +echo "
\n"; -if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and (strlen($list_id)<1) and (strlen($user)<1) )) +if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and (strlen($list_id)<1) and (strlen($user)<1) ) and ( (strlen($first_name)<1) and (strlen($last_name)<1) )) { - echo date("l F j, Y G:i:s A"); - echo "\n

\n"; + echo "
\n"; echo "\n"; echo "\n"; - echo "Παρακαλώ καταχωρήστε:
Vendor ID(αυτόματος κωδικός καθοδήγησης): or \n"; - echo "
ένας αριθμός τηλεφώνου σπιτιού Alt phone search: \n"; - echo " or \n"; - echo "
ID οδηγού or\n"; - echo "
status:   \n"; - echo "list ID:   \n"; - echo "user:

\n"; - echo "
\n"; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo "
Αναζήτηση Οδηγού Επιλογήs:
Vendor ID(αυτόματος κωδικός καθοδήγησης):  
 
Home Τηλεφωνικός αριθμός:  
Alt phone search:  
 
Lead ID:  
 
Κατάσταση: 
ID Λίστας:  
Χρήστης:  
 
Ονομα:  
Επίθετο:  
\n"; echo "\n
\n"; echo "\n"; exit; @@ -160,7 +200,6 @@ if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and else { - if ($vendor_id) { $stmt="SELECT $vicidial_list_fields from vicidial_list where vendor_lead_code='" . mysql_real_escape_string($vendor_id) . "'"; @@ -209,8 +248,26 @@ else } else { - print "ERROR: you must search for something! Go back and search for something"; - exit; + if ( (strlen($first_name)>0) or (strlen($last_name)>0) ) + { + $first_nameSQL = ''; + $last_nameSQL = ''; + if (strlen($first_name)>0) + { + $first_nameSQL = "first_name='" . mysql_real_escape_string($first_name) . "'"; $SQLctA++; + } + if (strlen($last_name)>0) + { + if ($SQLctA > 0) {$andA = 'and';} + $last_nameSQL = "$andA last_name='" . mysql_real_escape_string($last_name) . "'"; + } + $stmt="SELECT $vicidial_list_fields from vicidial_list where $first_nameSQL $last_nameSQL"; + } + else + { + print "ERROR: you must search for something! Go back and search for something"; + exit; + } } } } @@ -259,19 +316,19 @@ else else { echo "RESULTS: $results_to_print

\n"; - echo "\n"; + echo "
\n"; echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; $o=0; while ($results_to_print > $o) diff --git a/LANG_www/vicidial_el/user_stats.php b/LANG_www/vicidial_el/user_stats.php index dda21b03..7a21dc8f 100644 --- a/LANG_www/vicidial_el/user_stats.php +++ b/LANG_www/vicidial_el/user_stats.php @@ -648,7 +648,7 @@ while ($logs_to_print > $u) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; } diff --git a/LANG_www/vicidial_es/AST_IVRstats.php b/LANG_www/vicidial_es/AST_IVRstats.php index 1aa2f3ec..109f02b1 100644 --- a/LANG_www/vicidial_es/AST_IVRstats.php +++ b/LANG_www/vicidial_es/AST_IVRstats.php @@ -12,6 +12,7 @@ # 90508-0644 - Changed to PHP long tags # 91112-0719 - Added in-group names to select list # 100214-1421 - Sort menu alphabetically +# 100301-1401 - Added popup date selector # require("dbconnect.php"); @@ -180,6 +181,21 @@ else $query_date_END = "$end_date $time_END"; } +$query_dateARRAY = explode(" ",$query_date_BEGIN); +$query_date_D = $query_dateARRAY[0]; +$query_date_T = $query_dateARRAY[1]; +$end_dateARRAY = explode(" ",$query_date_END); +$end_date_D = $end_dateARRAY[0]; +$end_date_T = $end_dateARRAY[1]; + + +?> + + + + +\n"; echo "IVR Stats Report\n"; @@ -198,12 +214,48 @@ if ($DB > 0) echo "
\n"; } -echo "\n"; +echo "\n"; echo "
#LEAD IDΚΑΤΑΣΤΑΣΗVENDOR IDLAST AGENTID ΛΙΣΤΑΣPHONEΟΝΟΜΑCITYSECURITYLAST CALL#LEAD ID  ΚΑΤΑΣΤΑΣΗ  VENDOR ID  LAST AGENT  ID ΛΙΣΤΑΣ  PHONE  ΟΝΟΜΑ  CITY  SECURITY  LAST CALL
$dead_sec $customer_sec $status $lead_id $lead_id $campaign_id $pause_code
\n"; echo "\n"; echo "Rango de Fecha:
\n"; -echo "\n"; -echo " to \n"; + +echo "\n"; +echo "\n"; +echo ""; + +?> + +"; + +echo "
to
"; + +?> + +"; + + echo "
\n"; echo "Grupos De entrada: \n"; echo "\n"; @@ -245,7 +297,23 @@ echo "\n"; echo "\n"; echo "\n"; echo "\n"; -echo "   \n"; + +?> + + +   +
\n"; echo "\n\n"; @@ -260,7 +328,8 @@ if ($groups_to_print < 1) else { - echo "IVR Stats Report: $group_string $NOW_TIME\n"; + echo "IVR Stats Report: $query_date_BEGIN to $query_date_END $NOW_TIME\n"; + echo " $group_string\n"; $TOTALcalls=0; $NOCALLERIDcalls=0; @@ -493,17 +562,6 @@ else echo "+--------+--------+--------+--------+------+------+\n"; - - - - - - - - - - - ############################## ######### TIME STATS @@ -660,14 +718,6 @@ else echo "+------+-------------------------------------------------------------------------------------------------------+-------+\n\n"; - - - - - - - - $ENDtime = date("U"); $RUNtime = ($ENDtime - $STARTtime); echo "\nRun Time: $RUNtime seconds\n"; diff --git a/LANG_www/vicidial_es/AST_agent_timeclock_detail.php b/LANG_www/vicidial_es/AST_agent_timeclock_detail.php index efcc2bad..e8d0b8b8 100644 --- a/LANG_www/vicidial_es/AST_agent_timeclock_detail.php +++ b/LANG_www/vicidial_es/AST_agent_timeclock_detail.php @@ -3,10 +3,11 @@ # # Pulls all timeclock records for an agent # -# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2010 Matt Florell LICENSE: AGPLv2 # # CHANGES # 90602-2244 - First build +# 100301-1401 - Added popup date selector # @@ -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"); @@ -84,6 +83,13 @@ if (!isset($end_date)) {$end_date = "$NOW_DATE 23:59:59";} $query_dateURL = ereg_replace(' ','+',$query_date); $end_dateURL = ereg_replace(' ','+',$end_date); +$query_dateARRAY = explode(" ",$query_date); +$query_date_D = $query_dateARRAY[0]; +$query_date_T = $query_dateARRAY[1]; +$end_dateARRAY = explode(" ",$end_date); +$end_date_D = $end_dateARRAY[0]; +$end_date_T = $end_dateARRAY[1]; + $stmt="select campaign_id from vicidial_campaigns;"; $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} @@ -177,6 +183,9 @@ if ($file_download < 1) --> + + + \n"; echo "User Time-Clock Detail\n"; @@ -470,7 +479,7 @@ else ### BEGIN sort through output to display properly ### - if (ereg("NAME|ID|TCLOCK|GROUP",$stage)) + if ( (ereg("NAME|ID|TCLOCK|GROUP",$stage)) and ($k > 0) ) { if (ereg("ID",$stage)) {sort($TOPsort, SORT_NUMERIC);} @@ -563,11 +572,44 @@ if ($file_download > 0) ############################################################################ ##### BEGIN HTML form section ############################################################################ -echo "
\n"; +echo "\n"; echo "
Dates:
"; echo "\n"; -echo "\n"; -echo "
to
\n"; +echo "\n"; +echo "\n"; +echo ""; + +?> + +"; + +echo "
to
"; + +?> + +"; # echo "
Campaigns:
"; # echo "

\n"; -echo "\n"; + + +?> + + + +
        "; echo "          \n"; diff --git a/LANG_www/vicidial_es/AST_timeonVDADall.php b/LANG_www/vicidial_es/AST_timeonVDADall.php index 4ff53fb8..c2c01342 100644 --- a/LANG_www/vicidial_es/AST_timeonVDADall.php +++ b/LANG_www/vicidial_es/AST_timeonVDADall.php @@ -59,10 +59,11 @@ # 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 +# 100301-1229 - Added 3-WAY status for consultative transfer agents # -$version = '2.2.0-50'; -$build = '100214-1127'; +$version = '2.2.0-51'; +$build = '100301-1229'; header ("Content-type: text/html; charset=utf-8"); @@ -664,6 +665,7 @@ function hide_ingroup_info() .violet {color: black; background-color: #EE82EE} .thistle {color: black; background-color: #D8BFD8} .olive {color: white; background-color: #808000} + .lime {color: white; background-color: #006600} .yellow {color: black; background-color: yellow} .khaki {color: black; background-color: #F0E68C} .orange {color: black; background-color: orange} @@ -1729,6 +1731,20 @@ $talking_to_print = mysql_num_rows($rslt); $Alead_id[$i] = $row[14]; $Astate_change[$i] = $row[15]; + ### 3-WAY Check ### + if ($Alead_id[$i]!=0) + { + $threewaystmt="select UNIX_TIMESTAMP(last_call_time) from vicidial_live_agents where lead_id='$Alead_id[$i]' and status='INCALL' order by UNIX_TIMESTAMP(last_call_time) desc"; + $threewayrslt=mysql_query($threewaystmt, $link); + if (mysql_num_rows($threewayrslt)>1) + { + $Astatus[$i]="3-WAY"; + $srow=mysql_fetch_row($threewayrslt); + $Acall_mostrecent[$i]=$srow[0]; + } + } + ### END 3-WAY Check ### + $i++; } @@ -1946,8 +1962,10 @@ $calls_to_list = mysql_num_rows($rslt); while(mb_strlen($user, 'utf-8')>20) {$user = mb_substr("$user", 0, -1,'utf8');} } } - if (!eregi("INCALL|QUEUE|PARK",$Astatus[$i])) + if (!eregi("INCALL|QUEUE|PARK|3-WAY",$Astatus[$i])) {$call_time_S = ($STARTtime - $Astate_change[$i]);} + else if (eregi("3-WAY",$Astatus[$i])) + {$call_time_S = ($STARTtime - $Acall_mostrecent[$i]);} else {$call_time_S = ($STARTtime - $Acall_time[$i]);} @@ -1961,6 +1979,10 @@ $calls_to_list = mysql_num_rows($rslt); if ($call_time_S >= 300) {$G=''; $EG='';} # if ($call_time_S >= 600) {$G=''; $EG='';} } + if ($Lstatus=='3-WAY') + { + if ($call_time_S >= 10) {$G=''; $EG='';} + } if ($Lstatus=='DEAD') { if ($call_time_S >= 21600) @@ -2012,7 +2034,7 @@ $calls_to_list = mysql_num_rows($rslt); # if ( (strlen($Acall_server_ip[$i])> 4) and ($Acall_server_ip[$i] != "$Aserver_ip[$i]") ) # {$G=''; $EG='';} - if ( (eregi("INCALL",$status)) or (eregi("QUEUE",$status)) or (eregi("PARK",$status)) ) {$agent_incall++; $agent_total++;} + if ( (eregi("INCALL",$status)) or (eregi("QUEUE",$status)) or (eregi("3-WAY",$status)) or (eregi("PARK",$status))) {$agent_incall++; $agent_total++;} if ( (eregi("READY",$status)) or (eregi("CLOSER",$status)) ) {$agent_ready++; $agent_total++;} if ( (eregi("READY",$status)) or (eregi("CLOSER",$status)) ) { @@ -2085,6 +2107,7 @@ $calls_to_list = mysql_num_rows($rslt); $Aecho .= " - Agent Paused > 10 seconds\n"; $Aecho .= " - Agent Paused > 1 minute\n"; $Aecho .= " - Agent Paused > 5 minutes\n"; + $Aecho .= " - Agent in 3-WAY > 10 seconds\n"; $Aecho .= " - Agent on a dead call\n"; if ($agent_ready > 0) {$B=''; $BG='';} diff --git a/LANG_www/vicidial_es/admin_search_lead.php b/LANG_www/vicidial_es/admin_search_lead.php index dd9c8df9..c96c1982 100644 --- a/LANG_www/vicidial_es/admin_search_lead.php +++ b/LANG_www/vicidial_es/admin_search_lead.php @@ -1,12 +1,12 @@ LICENSE: AGPLv2 +# Copyright (C) 2010 Matt Florell LICENSE: AGPLv2 # # AST GUI database administration search for lead info # admin_modify_lead.php # -# this is the administration lead information modifier screen, the administrator +# this is the administration lead information search screen, the administrator # just needs to enter the leadID and then they can view and modify the information # in the record for that lead # @@ -21,6 +21,7 @@ # 90508-0644 - Changed to PHP long tags # 90917-2307 - Added alternate phone number searching option # 90921-0713 - Removed SELECT STAR +# 100224-1621 - Added first/last name search and changed format of the page # require("dbconnect.php"); @@ -30,6 +31,10 @@ $PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW']; $PHP_SELF=$_SERVER['PHP_SELF']; if (isset($_GET["vendor_id"])) {$vendor_id=$_GET["vendor_id"];} elseif (isset($_POST["vendor_id"])) {$vendor_id=$_POST["vendor_id"];} +if (isset($_GET["first_name"])) {$first_name=$_GET["first_name"];} + elseif (isset($_POST["first_name"])) {$first_name=$_POST["first_name"];} +if (isset($_GET["last_name"])) {$last_name=$_GET["last_name"];} + elseif (isset($_POST["last_name"])) {$last_name=$_POST["last_name"];} if (isset($_GET["phone"])) {$phone=$_GET["phone"];} elseif (isset($_POST["phone"])) {$phone=$_POST["phone"];} if (isset($_GET["lead_id"])) {$lead_id=$_GET["lead_id"];} @@ -137,22 +142,57 @@ $subcamp_color = '#C6C6C6'; require("admin_header.php"); -echo " Lead search: $vendor_id $phone $lead_id $status $list_id $user
\n"; +echo " Lead search: $vendor_id $phone $lead_id $status $list_id $user\n"; +echo date("l F j, Y G:i:s A"); +echo "
\n"; -if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and (strlen($list_id)<1) and (strlen($user)<1) )) +if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and (strlen($list_id)<1) and (strlen($user)<1) ) and ( (strlen($first_name)<1) and (strlen($last_name)<1) )) { - echo date("l F j, Y G:i:s A"); - echo "\n

\n"; + echo "
\n"; echo "\n"; echo "\n"; - echo "Por favor, Introduzca un:
Vendor ID(código del vendedor del Lead): or \n"; - echo "
un número de teléfono de casa: Alt phone search: \n"; - echo " or \n"; - echo "
ID del Lead: or\n"; - echo "
status:   \n"; - echo "list ID:   \n"; - echo "user:

\n"; - echo "
\n"; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo "
Buscar Lead Opcións:
Vendor ID(código del vendedor del Lead):  
 
Home Número De Teléfono:  
Alt phone search:  
 
Lead ID:  
 
Estado:  
ID De la Lista:  
Usuario:  
 
Nombre:  
Apellidos:  
\n"; echo "\n
\n"; echo "\n"; exit; @@ -160,7 +200,6 @@ if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and else { - if ($vendor_id) { $stmt="SELECT $vicidial_list_fields from vicidial_list where vendor_lead_code='" . mysql_real_escape_string($vendor_id) . "'"; @@ -209,8 +248,26 @@ else } else { - print "ERROR: you must search for something! Go back and search for something"; - exit; + if ( (strlen($first_name)>0) or (strlen($last_name)>0) ) + { + $first_nameSQL = ''; + $last_nameSQL = ''; + if (strlen($first_name)>0) + { + $first_nameSQL = "first_name='" . mysql_real_escape_string($first_name) . "'"; $SQLctA++; + } + if (strlen($last_name)>0) + { + if ($SQLctA > 0) {$andA = 'and';} + $last_nameSQL = "$andA last_name='" . mysql_real_escape_string($last_name) . "'"; + } + $stmt="SELECT $vicidial_list_fields from vicidial_list where $first_nameSQL $last_nameSQL"; + } + else + { + print "ERROR: you must search for something! Go back and search for something"; + exit; + } } } } @@ -259,19 +316,19 @@ else else { echo "RESULTS: $results_to_print

\n"; - echo "\n"; + echo "
\n"; echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; $o=0; while ($results_to_print > $o) diff --git a/LANG_www/vicidial_es/user_stats.php b/LANG_www/vicidial_es/user_stats.php index f62c2a3f..bc15cbfc 100644 --- a/LANG_www/vicidial_es/user_stats.php +++ b/LANG_www/vicidial_es/user_stats.php @@ -648,7 +648,7 @@ while ($logs_to_print > $u) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; } diff --git a/LANG_www/vicidial_fr/AST_IVRstats.php b/LANG_www/vicidial_fr/AST_IVRstats.php index 93c903e5..de2bb42c 100644 --- a/LANG_www/vicidial_fr/AST_IVRstats.php +++ b/LANG_www/vicidial_fr/AST_IVRstats.php @@ -12,6 +12,7 @@ # 90508-0644 - Changed to PHP long tags # 91112-0719 - Added in-group names to select list # 100214-1421 - Sort menu alphabetically +# 100301-1401 - Added popup date selector # require("dbconnect.php"); @@ -180,6 +181,21 @@ else $query_date_END = "$end_date $time_END"; } +$query_dateARRAY = explode(" ",$query_date_BEGIN); +$query_date_D = $query_dateARRAY[0]; +$query_date_T = $query_dateARRAY[1]; +$end_dateARRAY = explode(" ",$query_date_END); +$end_date_D = $end_dateARRAY[0]; +$end_date_T = $end_dateARRAY[1]; + + +?> + + + + +\n"; echo "IVR Stats Report\n"; @@ -198,12 +214,48 @@ if ($DB > 0) echo "
\n"; } -echo "\n"; +echo "\n"; echo "
#LEAD IDESTADOVENDOR IDLAST AGENTID DE LA LISTAPHONENOMBRECITYSECURITYLAST CALL#LEAD ID  ESTADO  VENDOR ID  LAST AGENT  ID DE LA LISTA  PHONE  NOMBRE  CITY  SECURITY  LAST CALL
$dead_sec $customer_sec $status $lead_id $lead_id $campaign_id $pause_code
\n"; echo "\n"; echo "Date Range:
\n"; -echo "\n"; -echo " to \n"; + +echo "\n"; +echo "\n"; +echo ""; + +?> + +"; + +echo "
to
"; + +?> + +"; + + echo "
\n"; echo "Groupes entrants: \n"; echo "\n"; @@ -245,7 +297,23 @@ echo "\n"; echo "\n"; echo "\n"; echo "\n"; -echo "   \n"; + +?> + + +   +
\n"; echo "\n\n"; @@ -260,7 +328,8 @@ if ($groups_to_print < 1) else { - echo "IVR Stats Report: $group_string $NOW_TIME\n"; + echo "IVR Stats Report: $query_date_BEGIN to $query_date_END $NOW_TIME\n"; + echo " $group_string\n"; $TOTALcalls=0; $NOCALLERIDcalls=0; @@ -493,17 +562,6 @@ else echo "+--------+--------+--------+--------+------+------+\n"; - - - - - - - - - - - ############################## ######### TIME STATS @@ -660,14 +718,6 @@ else echo "+------+-------------------------------------------------------------------------------------------------------+-------+\n\n"; - - - - - - - - $ENDtime = date("U"); $RUNtime = ($ENDtime - $STARTtime); echo "\nRun Time: $RUNtime seconds\n"; diff --git a/LANG_www/vicidial_fr/AST_agent_timeclock_detail.php b/LANG_www/vicidial_fr/AST_agent_timeclock_detail.php index efcc2bad..e8d0b8b8 100644 --- a/LANG_www/vicidial_fr/AST_agent_timeclock_detail.php +++ b/LANG_www/vicidial_fr/AST_agent_timeclock_detail.php @@ -3,10 +3,11 @@ # # Pulls all timeclock records for an agent # -# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2010 Matt Florell LICENSE: AGPLv2 # # CHANGES # 90602-2244 - First build +# 100301-1401 - Added popup date selector # @@ -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"); @@ -84,6 +83,13 @@ if (!isset($end_date)) {$end_date = "$NOW_DATE 23:59:59";} $query_dateURL = ereg_replace(' ','+',$query_date); $end_dateURL = ereg_replace(' ','+',$end_date); +$query_dateARRAY = explode(" ",$query_date); +$query_date_D = $query_dateARRAY[0]; +$query_date_T = $query_dateARRAY[1]; +$end_dateARRAY = explode(" ",$end_date); +$end_date_D = $end_dateARRAY[0]; +$end_date_T = $end_dateARRAY[1]; + $stmt="select campaign_id from vicidial_campaigns;"; $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} @@ -177,6 +183,9 @@ if ($file_download < 1) --> + + + \n"; echo "User Time-Clock Detail\n"; @@ -470,7 +479,7 @@ else ### BEGIN sort through output to display properly ### - if (ereg("NAME|ID|TCLOCK|GROUP",$stage)) + if ( (ereg("NAME|ID|TCLOCK|GROUP",$stage)) and ($k > 0) ) { if (ereg("ID",$stage)) {sort($TOPsort, SORT_NUMERIC);} @@ -563,11 +572,44 @@ if ($file_download > 0) ############################################################################ ##### BEGIN HTML form section ############################################################################ -echo "
\n"; +echo "\n"; echo "
Dates:
"; echo "\n"; -echo "\n"; -echo "
to
\n"; +echo "\n"; +echo "\n"; +echo ""; + +?> + +"; + +echo "
to
"; + +?> + +"; # echo "
Campaigns:
"; # echo "

\n"; -echo "\n"; + + +?> + + + +
        "; echo "          \n"; diff --git a/LANG_www/vicidial_fr/AST_timeonVDADall.php b/LANG_www/vicidial_fr/AST_timeonVDADall.php index 4f82ff5e..6e277ac1 100644 --- a/LANG_www/vicidial_fr/AST_timeonVDADall.php +++ b/LANG_www/vicidial_fr/AST_timeonVDADall.php @@ -59,10 +59,11 @@ # 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 +# 100301-1229 - Added 3-WAY status for consultative transfer agents # -$version = '2.2.0-50'; -$build = '100214-1127'; +$version = '2.2.0-51'; +$build = '100301-1229'; header ("Content-type: text/html; charset=utf-8"); @@ -664,6 +665,7 @@ function hide_ingroup_info() .violet {color: black; background-color: #EE82EE} .thistle {color: black; background-color: #D8BFD8} .olive {color: white; background-color: #808000} + .lime {color: white; background-color: #006600} .yellow {color: black; background-color: yellow} .khaki {color: black; background-color: #F0E68C} .orange {color: black; background-color: orange} @@ -1729,6 +1731,20 @@ $talking_to_print = mysql_num_rows($rslt); $Alead_id[$i] = $row[14]; $Astate_change[$i] = $row[15]; + ### 3-WAY Check ### + if ($Alead_id[$i]!=0) + { + $threewaystmt="select UNIX_TIMESTAMP(last_call_time) from vicidial_live_agents where lead_id='$Alead_id[$i]' and status='INCALL' order by UNIX_TIMESTAMP(last_call_time) desc"; + $threewayrslt=mysql_query($threewaystmt, $link); + if (mysql_num_rows($threewayrslt)>1) + { + $Astatus[$i]="3-WAY"; + $srow=mysql_fetch_row($threewayrslt); + $Acall_mostrecent[$i]=$srow[0]; + } + } + ### END 3-WAY Check ### + $i++; } @@ -1946,8 +1962,10 @@ $calls_to_list = mysql_num_rows($rslt); while(mb_strlen($user, 'utf-8')>20) {$user = mb_substr("$user", 0, -1,'utf8');} } } - if (!eregi("INCALL|QUEUE|PARK",$Astatus[$i])) + if (!eregi("INCALL|QUEUE|PARK|3-WAY",$Astatus[$i])) {$call_time_S = ($STARTtime - $Astate_change[$i]);} + else if (eregi("3-WAY",$Astatus[$i])) + {$call_time_S = ($STARTtime - $Acall_mostrecent[$i]);} else {$call_time_S = ($STARTtime - $Acall_time[$i]);} @@ -1961,6 +1979,10 @@ $calls_to_list = mysql_num_rows($rslt); if ($call_time_S >= 300) {$G=''; $EG='';} # if ($call_time_S >= 600) {$G=''; $EG='';} } + if ($Lstatus=='3-WAY') + { + if ($call_time_S >= 10) {$G=''; $EG='';} + } if ($Lstatus=='DEAD') { if ($call_time_S >= 21600) @@ -2012,7 +2034,7 @@ $calls_to_list = mysql_num_rows($rslt); # if ( (strlen($Acall_server_ip[$i])> 4) and ($Acall_server_ip[$i] != "$Aserver_ip[$i]") ) # {$G=''; $EG='';} - if ( (eregi("INCALL",$status)) or (eregi("QUEUE",$status)) or (eregi("PARK",$status)) ) {$agent_incall++; $agent_total++;} + if ( (eregi("INCALL",$status)) or (eregi("QUEUE",$status)) or (eregi("3-WAY",$status)) or (eregi("PARK",$status))) {$agent_incall++; $agent_total++;} if ( (eregi("READY",$status)) or (eregi("CLOSER",$status)) ) {$agent_ready++; $agent_total++;} if ( (eregi("READY",$status)) or (eregi("CLOSER",$status)) ) { @@ -2085,6 +2107,7 @@ $calls_to_list = mysql_num_rows($rslt); $Aecho .= " - Agent Paused > 10 seconds\n"; $Aecho .= " - Agent Paused > 1 minute\n"; $Aecho .= " - Agent Paused > 5 minutes\n"; + $Aecho .= " - Agent in 3-WAY > 10 seconds\n"; $Aecho .= " - Agent on a dead call\n"; if ($agent_ready > 0) {$B=''; $BG='';} diff --git a/LANG_www/vicidial_fr/admin_search_lead.php b/LANG_www/vicidial_fr/admin_search_lead.php index 6f7be4b6..3e88dfc2 100644 --- a/LANG_www/vicidial_fr/admin_search_lead.php +++ b/LANG_www/vicidial_fr/admin_search_lead.php @@ -1,12 +1,12 @@ LICENSE: AGPLv2 +# Copyright (C) 2010 Matt Florell LICENSE: AGPLv2 # # AST GUI database administration search for lead info # admin_modify_lead.php # -# this is the administration lead information modifier screen, the administrator +# this is the administration lead information search screen, the administrator # just needs to enter the leadID and then they can view and modify the information # in the record for that lead # @@ -21,6 +21,7 @@ # 90508-0644 - Changed to PHP long tags # 90917-2307 - Added alternate phone number searching option # 90921-0713 - Removed SELECT STAR +# 100224-1621 - Added first/last name search and changed format of the page # require("dbconnect.php"); @@ -30,6 +31,10 @@ $PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW']; $PHP_SELF=$_SERVER['PHP_SELF']; if (isset($_GET["vendor_id"])) {$vendor_id=$_GET["vendor_id"];} elseif (isset($_POST["vendor_id"])) {$vendor_id=$_POST["vendor_id"];} +if (isset($_GET["first_name"])) {$first_name=$_GET["first_name"];} + elseif (isset($_POST["first_name"])) {$first_name=$_POST["first_name"];} +if (isset($_GET["last_name"])) {$last_name=$_GET["last_name"];} + elseif (isset($_POST["last_name"])) {$last_name=$_POST["last_name"];} if (isset($_GET["phone"])) {$phone=$_GET["phone"];} elseif (isset($_POST["phone"])) {$phone=$_POST["phone"];} if (isset($_GET["lead_id"])) {$lead_id=$_GET["lead_id"];} @@ -137,22 +142,57 @@ $subcamp_color = '#C6C6C6'; require("admin_header.php"); -echo " Lead search: $vendor_id $phone $lead_id $status $list_id $user
\n"; +echo " Lead search: $vendor_id $phone $lead_id $status $list_id $user\n"; +echo date("l F j, Y G:i:s A"); +echo "
\n"; -if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and (strlen($list_id)<1) and (strlen($user)<1) )) +if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and (strlen($list_id)<1) and (strlen($user)<1) ) and ( (strlen($first_name)<1) and (strlen($last_name)<1) )) { - echo date("l F j, Y G:i:s A"); - echo "\n

\n"; + echo "
\n"; echo "\n"; echo "\n"; - echo "Veuillez entrer un:
Vendor ID(code vendeur de la fiche): or \n"; - echo "
un numéro de téléphone du domicile: Alt phone search: \n"; - echo " or \n"; - echo "
ID de la fiche: or\n"; - echo "
status:   \n"; - echo "list ID:   \n"; - echo "user:

\n"; - echo "
\n"; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo "
Recherche de fiches Options:
Vendor ID(code vendeur de la fiche):  
 
Home Numéro de téléphone:  
Alt phone search:  
 
Lead ID:  
 
Etat:  
ID de la liste:  
Utilisateur:  
 
Nom:  
Prénom:  
\n"; echo "\n
\n"; echo "\n"; exit; @@ -160,7 +200,6 @@ if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and else { - if ($vendor_id) { $stmt="SELECT $vicidial_list_fields from vicidial_list where vendor_lead_code='" . mysql_real_escape_string($vendor_id) . "'"; @@ -209,8 +248,26 @@ else } else { - print "ERROR: you must search for something! Go back and search for something"; - exit; + if ( (strlen($first_name)>0) or (strlen($last_name)>0) ) + { + $first_nameSQL = ''; + $last_nameSQL = ''; + if (strlen($first_name)>0) + { + $first_nameSQL = "first_name='" . mysql_real_escape_string($first_name) . "'"; $SQLctA++; + } + if (strlen($last_name)>0) + { + if ($SQLctA > 0) {$andA = 'and';} + $last_nameSQL = "$andA last_name='" . mysql_real_escape_string($last_name) . "'"; + } + $stmt="SELECT $vicidial_list_fields from vicidial_list where $first_nameSQL $last_nameSQL"; + } + else + { + print "ERROR: you must search for something! Go back and search for something"; + exit; + } } } } @@ -259,19 +316,19 @@ else else { echo "RESULTS: $results_to_print

\n"; - echo "\n"; + echo "
\n"; echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; $o=0; while ($results_to_print > $o) diff --git a/LANG_www/vicidial_fr/user_stats.php b/LANG_www/vicidial_fr/user_stats.php index b679f54a..96647b68 100644 --- a/LANG_www/vicidial_fr/user_stats.php +++ b/LANG_www/vicidial_fr/user_stats.php @@ -648,7 +648,7 @@ while ($logs_to_print > $u) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; } diff --git a/LANG_www/vicidial_it/AST_IVRstats.php b/LANG_www/vicidial_it/AST_IVRstats.php index 14745814..99d5dd79 100644 --- a/LANG_www/vicidial_it/AST_IVRstats.php +++ b/LANG_www/vicidial_it/AST_IVRstats.php @@ -12,6 +12,7 @@ # 90508-0644 - Changed to PHP long tags # 91112-0719 - Added in-group names to select list # 100214-1421 - Sort menu alphabetically +# 100301-1401 - Added popup date selector # require("dbconnect.php"); @@ -180,6 +181,21 @@ else $query_date_END = "$end_date $time_END"; } +$query_dateARRAY = explode(" ",$query_date_BEGIN); +$query_date_D = $query_dateARRAY[0]; +$query_date_T = $query_dateARRAY[1]; +$end_dateARRAY = explode(" ",$query_date_END); +$end_date_D = $end_dateARRAY[0]; +$end_date_T = $end_dateARRAY[1]; + + +?> + + + + +\n"; echo "IVR Stats Report\n"; @@ -198,12 +214,48 @@ if ($DB > 0) echo "
\n"; } -echo "\n"; +echo "\n"; echo "
#LEAD IDETATVENDOR IDLAST AGENTID DE LA LISTEPHONENOMCITYSECURITYLAST CALL#LEAD ID  ETAT  VENDOR ID  LAST AGENT  ID DE LA LISTE  PHONE  NOM  CITY  SECURITY  LAST CALL
$dead_sec $customer_sec $status $lead_id $lead_id $campaign_id $pause_code
\n"; echo "\n"; echo "Date:
\n"; -echo "\n"; -echo " to \n"; + +echo "\n"; +echo "\n"; +echo ""; + +?> + +"; + +echo "
to
"; + +?> + +"; + + echo "
\n"; echo "Gruppi Inbound: \n"; echo "\n"; @@ -245,7 +297,23 @@ echo "\n"; echo "\n"; echo "\n"; echo "\n"; -echo "   \n"; + +?> + + +   +
\n"; echo "\n\n"; @@ -260,7 +328,8 @@ if ($groups_to_print < 1) else { - echo "IVR Stats Report: $group_string $NOW_TIME\n"; + echo "IVR Stats Report: $query_date_BEGIN to $query_date_END $NOW_TIME\n"; + echo " $group_string\n"; $TOTALcalls=0; $NOCALLERIDcalls=0; @@ -493,17 +562,6 @@ else echo "+--------+--------+--------+--------+------+------+\n"; - - - - - - - - - - - ############################## ######### TIME STATS @@ -660,14 +718,6 @@ else echo "+------+-------------------------------------------------------------------------------------------------------+-------+\n\n"; - - - - - - - - $ENDtime = date("U"); $RUNtime = ($ENDtime - $STARTtime); echo "\nRun Time: $RUNtime seconds\n"; diff --git a/LANG_www/vicidial_it/AST_agent_timeclock_detail.php b/LANG_www/vicidial_it/AST_agent_timeclock_detail.php index efcc2bad..e8d0b8b8 100644 --- a/LANG_www/vicidial_it/AST_agent_timeclock_detail.php +++ b/LANG_www/vicidial_it/AST_agent_timeclock_detail.php @@ -3,10 +3,11 @@ # # Pulls all timeclock records for an agent # -# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2010 Matt Florell LICENSE: AGPLv2 # # CHANGES # 90602-2244 - First build +# 100301-1401 - Added popup date selector # @@ -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"); @@ -84,6 +83,13 @@ if (!isset($end_date)) {$end_date = "$NOW_DATE 23:59:59";} $query_dateURL = ereg_replace(' ','+',$query_date); $end_dateURL = ereg_replace(' ','+',$end_date); +$query_dateARRAY = explode(" ",$query_date); +$query_date_D = $query_dateARRAY[0]; +$query_date_T = $query_dateARRAY[1]; +$end_dateARRAY = explode(" ",$end_date); +$end_date_D = $end_dateARRAY[0]; +$end_date_T = $end_dateARRAY[1]; + $stmt="select campaign_id from vicidial_campaigns;"; $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} @@ -177,6 +183,9 @@ if ($file_download < 1) --> + + + \n"; echo "User Time-Clock Detail\n"; @@ -470,7 +479,7 @@ else ### BEGIN sort through output to display properly ### - if (ereg("NAME|ID|TCLOCK|GROUP",$stage)) + if ( (ereg("NAME|ID|TCLOCK|GROUP",$stage)) and ($k > 0) ) { if (ereg("ID",$stage)) {sort($TOPsort, SORT_NUMERIC);} @@ -563,11 +572,44 @@ if ($file_download > 0) ############################################################################ ##### BEGIN HTML form section ############################################################################ -echo "
\n"; +echo "\n"; echo "
Dates:
"; echo "\n"; -echo "\n"; -echo "
to
\n"; +echo "\n"; +echo "\n"; +echo ""; + +?> + +"; + +echo "
to
"; + +?> + +"; # echo "
Campaigns:
"; # echo "

\n"; -echo "\n"; + + +?> + + + +
        "; echo "          \n"; diff --git a/LANG_www/vicidial_it/AST_timeonVDADall.php b/LANG_www/vicidial_it/AST_timeonVDADall.php index bf9f8fe2..45af0097 100644 --- a/LANG_www/vicidial_it/AST_timeonVDADall.php +++ b/LANG_www/vicidial_it/AST_timeonVDADall.php @@ -59,10 +59,11 @@ # 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 +# 100301-1229 - Added 3-WAY status for consultative transfer agents # -$version = '2.2.0-50'; -$build = '100214-1127'; +$version = '2.2.0-51'; +$build = '100301-1229'; header ("Content-type: text/html; charset=utf-8"); @@ -664,6 +665,7 @@ function hide_ingroup_info() .violet {color: black; background-color: #EE82EE} .thistle {color: black; background-color: #D8BFD8} .olive {color: white; background-color: #808000} + .lime {color: white; background-color: #006600} .yellow {color: black; background-color: yellow} .khaki {color: black; background-color: #F0E68C} .orange {color: black; background-color: orange} @@ -1729,6 +1731,20 @@ $talking_to_print = mysql_num_rows($rslt); $Alead_id[$i] = $row[14]; $Astate_change[$i] = $row[15]; + ### 3-WAY Check ### + if ($Alead_id[$i]!=0) + { + $threewaystmt="select UNIX_TIMESTAMP(last_call_time) from vicidial_live_agents where lead_id='$Alead_id[$i]' and status='INCALL' order by UNIX_TIMESTAMP(last_call_time) desc"; + $threewayrslt=mysql_query($threewaystmt, $link); + if (mysql_num_rows($threewayrslt)>1) + { + $Astatus[$i]="3-WAY"; + $srow=mysql_fetch_row($threewayrslt); + $Acall_mostrecent[$i]=$srow[0]; + } + } + ### END 3-WAY Check ### + $i++; } @@ -1946,8 +1962,10 @@ $calls_to_list = mysql_num_rows($rslt); while(mb_strlen($user, 'utf-8')>20) {$user = mb_substr("$user", 0, -1,'utf8');} } } - if (!eregi("INCALL|QUEUE|PARK",$Astatus[$i])) + if (!eregi("INCALL|QUEUE|PARK|3-WAY",$Astatus[$i])) {$call_time_S = ($STARTtime - $Astate_change[$i]);} + else if (eregi("3-WAY",$Astatus[$i])) + {$call_time_S = ($STARTtime - $Acall_mostrecent[$i]);} else {$call_time_S = ($STARTtime - $Acall_time[$i]);} @@ -1961,6 +1979,10 @@ $calls_to_list = mysql_num_rows($rslt); if ($call_time_S >= 300) {$G=''; $EG='';} # if ($call_time_S >= 600) {$G=''; $EG='';} } + if ($Lstatus=='3-WAY') + { + if ($call_time_S >= 10) {$G=''; $EG='';} + } if ($Lstatus=='DEAD') { if ($call_time_S >= 21600) @@ -2012,7 +2034,7 @@ $calls_to_list = mysql_num_rows($rslt); # if ( (strlen($Acall_server_ip[$i])> 4) and ($Acall_server_ip[$i] != "$Aserver_ip[$i]") ) # {$G=''; $EG='';} - if ( (eregi("INCALL",$status)) or (eregi("QUEUE",$status)) or (eregi("PARK",$status)) ) {$agent_incall++; $agent_total++;} + if ( (eregi("INCALL",$status)) or (eregi("QUEUE",$status)) or (eregi("3-WAY",$status)) or (eregi("PARK",$status))) {$agent_incall++; $agent_total++;} if ( (eregi("READY",$status)) or (eregi("CLOSER",$status)) ) {$agent_ready++; $agent_total++;} if ( (eregi("READY",$status)) or (eregi("CLOSER",$status)) ) { @@ -2085,6 +2107,7 @@ $calls_to_list = mysql_num_rows($rslt); $Aecho .= " - Agent Paused > 10 seconds\n"; $Aecho .= " - Agent Paused > 1 minute\n"; $Aecho .= " - Agent Paused > 5 minutes\n"; + $Aecho .= " - Agent in 3-WAY > 10 seconds\n"; $Aecho .= " - Agent on a dead call\n"; if ($agent_ready > 0) {$B=''; $BG='';} diff --git a/LANG_www/vicidial_it/admin_search_lead.php b/LANG_www/vicidial_it/admin_search_lead.php index d2a66b9c..6e3cdc4a 100644 --- a/LANG_www/vicidial_it/admin_search_lead.php +++ b/LANG_www/vicidial_it/admin_search_lead.php @@ -1,12 +1,12 @@ LICENSE: AGPLv2 +# Copyright (C) 2010 Matt Florell LICENSE: AGPLv2 # # AST GUI database administration search for lead info # admin_modify_lead.php # -# this is the administration lead information modifier screen, the administrator +# this is the administration lead information search screen, the administrator # just needs to enter the leadID and then they can view and modify the information # in the record for that lead # @@ -21,6 +21,7 @@ # 90508-0644 - Changed to PHP long tags # 90917-2307 - Added alternate phone number searching option # 90921-0713 - Removed SELECT STAR +# 100224-1621 - Added first/last name search and changed format of the page # require("dbconnect.php"); @@ -30,6 +31,10 @@ $PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW']; $PHP_SELF=$_SERVER['PHP_SELF']; if (isset($_GET["vendor_id"])) {$vendor_id=$_GET["vendor_id"];} elseif (isset($_POST["vendor_id"])) {$vendor_id=$_POST["vendor_id"];} +if (isset($_GET["first_name"])) {$first_name=$_GET["first_name"];} + elseif (isset($_POST["first_name"])) {$first_name=$_POST["first_name"];} +if (isset($_GET["last_name"])) {$last_name=$_GET["last_name"];} + elseif (isset($_POST["last_name"])) {$last_name=$_POST["last_name"];} if (isset($_GET["phone"])) {$phone=$_GET["phone"];} elseif (isset($_POST["phone"])) {$phone=$_POST["phone"];} if (isset($_GET["lead_id"])) {$lead_id=$_GET["lead_id"];} @@ -137,22 +142,57 @@ $subcamp_color = '#C6C6C6'; require("admin_header.php"); -echo " Lead search: $vendor_id $phone $lead_id $status $list_id $user
\n"; +echo " Lead search: $vendor_id $phone $lead_id $status $list_id $user\n"; +echo date("l F j, Y G:i:s A"); +echo "
\n"; -if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and (strlen($list_id)<1) and (strlen($user)<1) )) +if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and (strlen($list_id)<1) and (strlen($user)<1) ) and ( (strlen($first_name)<1) and (strlen($last_name)<1) )) { - echo date("l F j, Y G:i:s A"); - echo "\n

\n"; + echo "
\n"; echo "\n"; echo "\n"; - echo "Per favore, inserisci:
Vendor ID(co`digo del vendedor del Lead): or \n"; - echo "
un numero di telefono: Alt phone search: \n"; - echo " or \n"; - echo "
un ID Contatto: or\n"; - echo "
esito:   \n"; - echo "list ID:   \n"; - echo "user:

\n"; - echo "
\n"; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo "\n"; + echo ""; + echo ""; + echo ""; + + echo "
Ricerca Contatti Opziones:
Vendor ID(co`digo del vendedor del Lead):  
 
Home Numero di Telefono:  
Alt phone search:  
 
Lead ID:  
 
Esito:  
ID Lista:  
Utente:  
 
Nome:  
Cognome:  
\n"; echo "\n
\n"; echo "\n"; exit; @@ -160,7 +200,6 @@ if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and else { - if ($vendor_id) { $stmt="SELECT $vicidial_list_fields from vicidial_list where vendor_lead_code='" . mysql_real_escape_string($vendor_id) . "'"; @@ -209,8 +248,26 @@ else } else { - print "ERROR: you must search for something! Go back and search for something"; - exit; + if ( (strlen($first_name)>0) or (strlen($last_name)>0) ) + { + $first_nameSQL = ''; + $last_nameSQL = ''; + if (strlen($first_name)>0) + { + $first_nameSQL = "first_name='" . mysql_real_escape_string($first_name) . "'"; $SQLctA++; + } + if (strlen($last_name)>0) + { + if ($SQLctA > 0) {$andA = 'and';} + $last_nameSQL = "$andA last_name='" . mysql_real_escape_string($last_name) . "'"; + } + $stmt="SELECT $vicidial_list_fields from vicidial_list where $first_nameSQL $last_nameSQL"; + } + else + { + print "ERROR: you must search for something! Go back and search for something"; + exit; + } } } } @@ -259,19 +316,19 @@ else else { echo "RESULTS: $results_to_print

\n"; - echo "\n"; + echo "
\n"; echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; $o=0; while ($results_to_print > $o) diff --git a/LANG_www/vicidial_it/user_stats.php b/LANG_www/vicidial_it/user_stats.php index c5b9a825..c27a9a86 100644 --- a/LANG_www/vicidial_it/user_stats.php +++ b/LANG_www/vicidial_it/user_stats.php @@ -648,7 +648,7 @@ while ($logs_to_print > $u) echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; } diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 5cae619e..a887b5e1 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -10641,6 +10641,7 @@ else { HKbutton_allowed = 1; hideDiv('TransferMain'); + hideDiv('agentdirectlink'); if (showoffvar == 'YES') { document.getElementById("XferControl").innerHTML = "\"Transfer";
#LEAD IDESITOVENDOR IDLAST AGENTID LISTAPHONENOMECITYSECURITYLAST CALL#LEAD ID  ESITO  VENDOR ID  LAST AGENT  ID LISTA  PHONE  NOME  CITY  SECURITY  LAST CALL
$dead_sec $customer_sec $status $lead_id $lead_id $campaign_id $pause_code