diff --git a/agi/agi-VDAD_ALL_inbound.agi b/agi/agi-VDAD_ALL_inbound.agi index 1ce8d6d4..1d0b710b 100644 --- a/agi/agi-VDAD_ALL_inbound.agi +++ b/agi/agi-VDAD_ALL_inbound.agi @@ -1906,7 +1906,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) ) {$sthArows=0;} else { - $stmtA = "SELECT vicidial_live_agents.conf_exten,vicidial_live_agents.user,vicidial_live_agents.extension,vicidial_live_agents.server_ip,vicidial_live_inbound_agents.group_weight,ra_user,vicidial_live_agents.campaign_id,on_hook_agent,on_hook_ring_time from vicidial_live_agents vicidial_live_inbound_agents WHERE vicidial_live_agents.user=vicidial_live_inbound_agents.user and status IN('CLOSER','READY') and lead_id<1 $ADUfindSQL and vicidial_live_inbound_agents.group_id='$channel_group' and last_update_time > '$BDtsSQLdate' and vicidial_live_agents.user NOT IN($ring_no_answer_agents$vlia_users) and ring_callerid='' $qp_groupWAIT_camp_SQL $agent_call_order limit 1;"; + $stmtA = "SELECT vicidial_live_agents.conf_exten,vicidial_live_agents.user,vicidial_live_agents.extension,vicidial_live_agents.server_ip,vicidial_live_inbound_agents.group_weight,ra_user,vicidial_live_agents.campaign_id,on_hook_agent,on_hook_ring_time from vicidial_live_agents, vicidial_live_inbound_agents WHERE vicidial_live_agents.user=vicidial_live_inbound_agents.user and status IN('CLOSER','READY') and lead_id<1 $ADUfindSQL and vicidial_live_inbound_agents.group_id='$channel_group' and last_update_time > '$BDtsSQLdate' and vicidial_live_agents.user NOT IN($ring_no_answer_agents$vlia_users) and ring_callerid='' $qp_groupWAIT_camp_SQL $agent_call_order limit 1;"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows; diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index b0ef5380..eff559da 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -7368,10 +7368,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection) 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'); } - if ( (CopY_tO_ClipboarD != 'NONE') && (useIE > 0) ) + if (useIE > 0) { - var tmp_clip = document.getElementById(CopY_tO_ClipboarD); - window.clipboardData.setData('Text', tmp_clip.value) + var regCTC = new RegExp("^NONE","ig"); + if (CopY_tO_ClipboarD.match(regCTC)) + {var nothing=1;} + else + { + var tmp_clip = document.getElementById(CopY_tO_ClipboarD); + // alert_box("Copy to clipboard SETTING: |" + useIE + "|" + CopY_tO_ClipboarD + "|" + tmp_clip.value + "|"); + window.clipboardData.setData('Text', tmp_clip.value) + // alert_box("Copy to clipboard: |" + tmp_clip.value + "|" + CopY_tO_ClipboarD + "|"); + } } if (alert_enabled=='ON') @@ -12075,19 +12083,19 @@ $zi=2; - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -12107,77 +12115,77 @@ $zi=2;
";} + {echo "";} else - {echo "$label_title: ";} + {echo "$label_title: ";} if ($label_first_name == '---HIDE---') - {echo "  ";} + {echo "  ";} else - {echo "  $label_first_name: ";} + {echo "  $label_first_name: ";} if ($label_middle_initial == '---HIDE---') - {echo "  ";} + {echo "  ";} else - {echo "  $label_middle_initial: ";} + {echo "  $label_middle_initial: ";} if ($label_last_name == '---HIDE---') - {echo "  ";} + {echo "  ";} else - {echo "  $label_last_name: ";} + {echo "  $label_last_name: ";} echo "
"; if ($label_address1 == '---HIDE---') - {echo " ";} + {echo " ";} else - {echo "$label_address1: ";} + {echo "$label_address1: ";} echo "
"; if ($label_address2 == '---HIDE---') - {echo " ";} + {echo " ";} else - {echo "$label_address2: ";} + {echo "$label_address2: ";} echo ""; if ($label_address3 == '---HIDE---') - {echo " ";} + {echo " ";} else - {echo "$label_address3: ";} + {echo "$label_address3: ";} echo "
"; if ($label_city == '---HIDE---') - {echo " ";} + {echo " ";} else - {echo "$label_city: ";} + {echo "$label_city: ";} echo ""; if ($label_state == '---HIDE---') - {echo " ";} + {echo " ";} else - {echo "$label_state: ";} + {echo "$label_state: ";} echo ""; if ($label_postal_code == '---HIDE---') - {echo " ";} + {echo " ";} else - {echo "$label_postal_code: ";} + {echo "$label_postal_code: ";} echo "
"; if ($label_province == '---HIDE---') - {echo " ";} + {echo " ";} else - {echo "$label_province: ";} + {echo "$label_province: ";} echo ""; if ($label_vendor_lead_code == '---HIDE---') - {echo " ";} + {echo " ";} else - {echo "$label_vendor_lead_code: ";} + {echo "$label_vendor_lead_code: ";} echo ""; @@ -12190,40 +12198,40 @@ $zi=2; if ( (ereg('Y',$disable_alter_custphone)) or (ereg('HIDE',$disable_alter_custphone)) ) { echo "                     "; - echo ""; + echo ""; } else { - echo ""; + echo ""; } echo ""; if ($label_phone_code == '---HIDE---') - {echo " ";} + {echo " ";} else - {echo "$label_phone_code: ";} + {echo "$label_phone_code: ";} echo ""; if ($label_alt_phone == '---HIDE---') - {echo " ";} + {echo " ";} else - {echo "$label_alt_phone: ";} + {echo "$label_alt_phone: ";} echo "
"; if ($label_security_phrase == '---HIDE---') - {echo " ";} + {echo " ";} else - {echo "$label_security_phrase: ";} + {echo "$label_security_phrase: ";} echo ""; if ($label_email == '---HIDE---') - {echo " ";} + {echo " ";} else - {echo "$label_email: ";} + {echo "$label_email: ";} echo "
"; @@ -12235,7 +12243,7 @@ $zi=2; { echo "$label_comments: "; if ( ($multi_line_comments) ) - {echo "\n";} + {echo "\n";} else {echo "\n";} }