|
|
|
@@ -558,10 +558,11 @@
|
|
|
|
|
# 170609-1711 - Added 'commit' function to force immediate submission of Customer Information changes to database
|
|
|
|
|
# 170629-1831 - Added some new agent_events entries
|
|
|
|
|
# 170709-1116 - Added Xfer Hung Up notification
|
|
|
|
|
# 170710-1802 - Added logging of clicks on webform buttons
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
$version = '2.14-528c';
|
|
|
|
|
$build = '170709-1116';
|
|
|
|
|
$version = '2.14-529c';
|
|
|
|
|
$build = '170710-1802';
|
|
|
|
|
$mel=1; # Mysql Error Log enabled = 1
|
|
|
|
|
$mysql_log_count=87;
|
|
|
|
|
$one_mysql_log=0;
|
|
|
|
@@ -7929,16 +7930,16 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
TEMP_VDIC_web_form_address_three = URLDecode(VDIC_web_form_address_three,'YES','DEFAULT','3');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform.gif"); ?>\" border=\"0\" alt=\"Web Form\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormRefresH();\" onclick=\"webform_click_log('webform1');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform.gif"); ?>\" border=\"0\" alt=\"Web Form\" /></a>\n";
|
|
|
|
|
|
|
|
|
|
if (enable_second_webform > 0)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_two + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormTwoRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_two.gif"); ?>\" border=\"0\" alt=\"Web Form 2\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_two + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormTwoRefresH();\" onclick=\"webform_click_log('webform2');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_two.gif"); ?>\" border=\"0\" alt=\"Web Form 2\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (enable_third_webform > 0)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpanThree").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpanThree").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\" onclick=\"webform_click_log('webform3');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (CalL_ScripT_color.length > 1)
|
|
|
|
@@ -7979,14 +7980,17 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
if (CalL_AutO_LauncH == 'WEBFORM')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform1');
|
|
|
|
|
}
|
|
|
|
|
if (CalL_AutO_LauncH == 'WEBFORMTWO')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address_two, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform2');
|
|
|
|
|
}
|
|
|
|
|
if (CalL_AutO_LauncH == 'WEBFORMTHREE')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address_three, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform3');
|
|
|
|
|
}
|
|
|
|
|
api_switch_lead_triggered=0;
|
|
|
|
|
|
|
|
|
@@ -8747,14 +8751,14 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
TEMP_VDIC_web_form_address_three = URLDecode(VDIC_web_form_address_three,'YES','DEFAULT','3');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform.gif"); ?>\" border=\"0\" alt=\"Web Form\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormRefresH();\" onclick=\"webform_click_log('webform1');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform.gif"); ?>\" border=\"0\" alt=\"Web Form\" /></a>\n";
|
|
|
|
|
if (enable_second_webform > 0)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_two + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormTwoRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_two.gif"); ?>\" border=\"0\" alt=\"Web Form 2\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_two + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormTwoRefresH();\" onclick=\"webform_click_log('webform2');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_two.gif"); ?>\" border=\"0\" alt=\"Web Form 2\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
if (enable_third_webform > 0)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\" onclick=\"webform_click_log('webform3');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
agent_events('update_fields', event_data);
|
|
|
|
@@ -9276,14 +9280,14 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
TEMP_VDIC_web_form_address_three = URLDecode(VDIC_web_form_address_three,'YES','DEFAULT','3');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform.gif"); ?>\" border=\"0\" alt=\"Web Form\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormRefresH();\" onclick=\"webform_click_log('webform1');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform.gif"); ?>\" border=\"0\" alt=\"Web Form\" /></a>\n";
|
|
|
|
|
if (enable_second_webform > 0)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_two + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormTwoRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_two.gif"); ?>\" border=\"0\" alt=\"Web Form 2\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_two + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormTwoRefresH();\" onclick=\"webform_click_log('webform2');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_two.gif"); ?>\" border=\"0\" alt=\"Web Form 2\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
if (enable_third_webform > 0)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpanThree").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpanThree").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\" onclick=\"webform_click_log('webform3');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (CBentry_time.length > 2)
|
|
|
|
@@ -9377,14 +9381,17 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
if (get_call_launch == 'WEBFORM')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform1');
|
|
|
|
|
}
|
|
|
|
|
if (get_call_launch == 'WEBFORMTWO')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address_two, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform2');
|
|
|
|
|
}
|
|
|
|
|
if (get_call_launch == 'WEBFORMTHREE')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address_three, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform3');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@@ -9810,14 +9817,17 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
if (get_call_launch == 'WEBFORM')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform1');
|
|
|
|
|
}
|
|
|
|
|
if (get_call_launch == 'WEBFORMTWO')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address_two, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform2');
|
|
|
|
|
}
|
|
|
|
|
if (get_call_launch == 'WEBFORMTHREE')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address_three, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform3');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@@ -10758,16 +10768,16 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform.gif"); ?>\" border=\"0\" alt=\"Web Form\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormRefresH();\" onclick=\"webform_click_log('webform1');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform.gif"); ?>\" border=\"0\" alt=\"Web Form\" /></a>\n";
|
|
|
|
|
|
|
|
|
|
if (enable_second_webform > 0)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_two + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormTwoRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_two.gif"); ?>\" border=\"0\" alt=\"Web Form 2\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_two + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormTwoRefresH();\" onclick=\"webform_click_log('webform2');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_two.gif"); ?>\" border=\"0\" alt=\"Web Form 2\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (enable_third_webform > 0)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpanThree").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpanThree").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\" onclick=\"webform_click_log('webform3');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') )
|
|
|
|
@@ -10823,14 +10833,17 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
if (CalL_AutO_LauncH == 'WEBFORM')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform1');
|
|
|
|
|
}
|
|
|
|
|
if (CalL_AutO_LauncH == 'WEBFORMTWO')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address_two, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform2');
|
|
|
|
|
}
|
|
|
|
|
if (CalL_AutO_LauncH == 'WEBFORMTHREE')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address_three, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform3');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (useIE > 0)
|
|
|
|
@@ -11499,15 +11512,15 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform.gif"); ?>\" border=\"0\" alt=\"Web Form\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormRefresH();\" onclick=\"webform_click_log('webform1');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform.gif"); ?>\" border=\"0\" alt=\"Web Form\" /></a>\n";
|
|
|
|
|
|
|
|
|
|
if (enable_second_webform > 0)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_two + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormTwoRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_two.gif"); ?>\" border=\"0\" alt=\"Web Form 2\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_two + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormTwoRefresH();\" onclick=\"webform_click_log('webform2');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_two.gif"); ?>\" border=\"0\" alt=\"Web Form 2\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
if (enable_third_webform > 0)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpanThree").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpanThree").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\" onclick=\"webform_click_log('webform3');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') )
|
|
|
|
@@ -11569,14 +11582,17 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
if (CalL_AutO_LauncH == 'WEBFORM')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform1');
|
|
|
|
|
}
|
|
|
|
|
if (CalL_AutO_LauncH == 'WEBFORMTWO')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address_two, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform2');
|
|
|
|
|
}
|
|
|
|
|
if (CalL_AutO_LauncH == 'WEBFORMTHREE')
|
|
|
|
|
{
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address_three, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Awebform3');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (useIE > 0)
|
|
|
|
@@ -11669,11 +11685,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
|
|
|
|
|
if (taskrefresh == 'OUT')
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormRefresH('IN');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform.gif"); ?>\" border=\"0\" alt=\"Web Form\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormRefresH('IN');\" onclick=\"webform_click_log('webform1');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform.gif"); ?>\" border=\"0\" alt=\"Web Form\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOut=\"WebFormRefresH('OUT');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform.gif"); ?>\" border=\"0\" alt=\"Web Form\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address + "\" target=\"" + web_form_target + "\" onMouseOut=\"WebFormRefresH('OUT');\" onclick=\"webform_click_log('webform1');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform.gif"); ?>\" border=\"0\" alt=\"Web Form\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -11713,11 +11729,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
{
|
|
|
|
|
if (taskrefresh == 'OUT')
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_two + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormTwoRefresH('IN');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_two.gif"); ?>\" border=\"0\" alt=\"Web Form 2\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_two + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormTwoRefresH('IN');\" onclick=\"webform_click_log('webform2');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_two.gif"); ?>\" border=\"0\" alt=\"Web Form 2\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_two + "\" target=\"" + web_form_target + "\" onMouseOut=\"WebFormTwoRefresH('OUT');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_two.gif"); ?>\" border=\"0\" alt=\"Web Form 2\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_two + "\" target=\"" + web_form_target + "\" onMouseOut=\"WebFormTwoRefresH('OUT');\" onclick=\"webform_click_log('webform2');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_two.gif"); ?>\" border=\"0\" alt=\"Web Form 2\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@@ -11758,11 +11774,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
{
|
|
|
|
|
if (taskrefresh == 'OUT')
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpanThree").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH('IN');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpanThree").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH('IN');\" onclick=\"webform_click_log('webform3');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("WebFormSpanThree").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOut=\"WebFormThreeRefresH('OUT');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
|
document.getElementById("WebFormSpanThree").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOut=\"WebFormThreeRefresH('OUT');\" onclick=\"webform_click_log('webform3');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@@ -16160,6 +16176,52 @@ function phone_number_format(formatphone) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ################################################################################
|
|
|
|
|
// Run the logging process for webform clicks
|
|
|
|
|
function webform_click_log(temp_trigger)
|
|
|
|
|
{
|
|
|
|
|
if ( (temp_trigger == 'webform1') || (temp_trigger == 'Awebform1') || (temp_trigger == 'Twebform1') ) {temp_url = TEMP_VDIC_web_form_address;}
|
|
|
|
|
if ( (temp_trigger == 'webform2') || (temp_trigger == 'Awebform2') || (temp_trigger == 'Twebform2') ) {temp_url = TEMP_VDIC_web_form_address_two;}
|
|
|
|
|
if ( (temp_trigger == 'webform3') || (temp_trigger == 'Awebform3') || (temp_trigger == 'Twebform3') ) {temp_url = TEMP_VDIC_web_form_address_three;}
|
|
|
|
|
enc_temp_url = encodeURIComponent(temp_url);
|
|
|
|
|
var xmlhttp=false;
|
|
|
|
|
/*@cc_on @*/
|
|
|
|
|
/*@if (@_jscript_version >= 5)
|
|
|
|
|
// JScript gives us Conditional compilation, we can cope with old IE versions.
|
|
|
|
|
// and security blocked creation of the objects.
|
|
|
|
|
try {
|
|
|
|
|
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
|
|
|
|
|
} catch (e) {
|
|
|
|
|
try {
|
|
|
|
|
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
|
|
} catch (E) {
|
|
|
|
|
xmlhttp = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@end @*/
|
|
|
|
|
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
|
|
|
|
|
{
|
|
|
|
|
xmlhttp = new XMLHttpRequest();
|
|
|
|
|
}
|
|
|
|
|
if (xmlhttp)
|
|
|
|
|
{
|
|
|
|
|
WFCL_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&stage=" + temp_trigger + "&lead_id=" + document.vicidial_form.lead_id.value + "&ACTION=Log_Webform_Click&format=text&user=" + user + "&pass=" + pass + "&url_link=" + enc_temp_url;
|
|
|
|
|
xmlhttp.open('POST', 'vdc_db_query.php');
|
|
|
|
|
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
|
|
|
|
xmlhttp.send(WFCL_query);
|
|
|
|
|
xmlhttp.onreadystatechange = function()
|
|
|
|
|
{
|
|
|
|
|
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
|
|
|
|
{
|
|
|
|
|
// alert(xmlhttp.responseText);
|
|
|
|
|
// document.getElementById("debugbottomspan").innerHTML = "WEBFORM LOG " + xmlhttp.responseText;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
delete xmlhttp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ################################################################################
|
|
|
|
|
// Run the Agent Push Events process
|
|
|
|
|
function agent_events(event_type,event_msg)
|
|
|
|
@@ -16619,16 +16681,19 @@ function phone_number_format(formatphone) {
|
|
|
|
|
{
|
|
|
|
|
WebFormRefresH('NO','YES');
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Twebform1');
|
|
|
|
|
}
|
|
|
|
|
if (timer_action == 'WEBFORM2')
|
|
|
|
|
{
|
|
|
|
|
WebFormTwoRefresH('NO','YES');
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address_two, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Twebform2');
|
|
|
|
|
}
|
|
|
|
|
if (timer_action == 'WEBFORM3')
|
|
|
|
|
{
|
|
|
|
|
WebFormThreeRefresH('NO','YES');
|
|
|
|
|
window.open(TEMP_VDIC_web_form_address_three, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');
|
|
|
|
|
webform_click_log('Twebform3');
|
|
|
|
|
}
|
|
|
|
|
if (timer_action == 'D1_DIAL')
|
|
|
|
|
{
|
|
|
|
|