diff --git a/agc_2-X/trunk/UPGRADE b/agc_2-X/trunk/UPGRADE index fd9408b2..c88cb3d9 100644 --- a/agc_2-X/trunk/UPGRADE +++ b/agc_2-X/trunk/UPGRADE @@ -475,6 +475,10 @@ OTHER CHANGES: 112. Added option for phone load balanced logins server twin checking on systems that have servers installed in pairs +113. Changed scheduled callbacks display in the agent interface to show all + callback and lead information, including call history and call notes, + without having to dial the lead. + diff --git a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt index 26b9b8df..ba41c732 100644 --- a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt +++ b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt @@ -579,6 +579,12 @@ No results found|| Results Found:|| No calls found|| reset form|| +Callback Status|| +Callback Lead Status|| +Callback Entry Time|| +Callback Trigger Time|| +Callback Comments|| +To see information on one of the callbacks below, click on the INFO link. To call the customer back now, click on the DIAL link. If you click on a record below to dial it, it will be removed from the list|| ############################################################ MANAGER Manual diff --git a/agc_2-X/trunk/www/agc/vdc_db_query.php b/agc_2-X/trunk/www/agc/vdc_db_query.php index 4ea46c47..7bc346a5 100644 --- a/agc_2-X/trunk/www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/www/agc/vdc_db_query.php @@ -275,12 +275,13 @@ # 110218-1519 - Added support for agent lead search # 110222-2228 - Added owner restriction to agent lead search # 110224-1712 - Added compatibility with QM phone environment logging and QM pause code last call logging +# 110225-1237 - Added scheduled callback lead info display to the lead info view function # -$version = '2.4-180'; -$build = '110224-1712'; +$version = '2.4-181'; +$build = '110225-1237'; $mel=1; # Mysql Error Log enabled = 1 -$mysql_log_count=396; +$mysql_log_count=398; $one_mysql_log=0; require("dbconnect.php"); @@ -8390,6 +8391,31 @@ if ($ACTION == 'LEADINFOview') {echo "ERROR: no Lead ID";} else { + $hide_dial_links=0; + echo "
\n"; + + $callback_id = preg_replace('/\D/','',$callback_id); + if (strlen($callback_id) > 0) + { + $stmt="select status,entry_time,callback_time,modify_date,user,recipient,comments,lead_status from vicidial_callbacks where lead_id='$lead_id' and callback_id='$callback_id' limit 1;"; + $rslt=mysql_query($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00397',$user,$server_ip,$session_name,$one_mysql_log);} + $cb_to_print = mysql_num_rows($rslt); + if ($format=='debug') {echo "|$cb_to_print|$stmt|";} + if ($cb_to_print > 0) + { + $row=mysql_fetch_row($rslt); + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo "
Callback Status:   $row[0]
Callback Lead Status:   $row[7]
Callback Entry Time:   $row[1]
Callback Trigger Time:   $row[2]
Callback Comments:   $row[6]
"; + echo "
"; + $hide_dial_links++; + } + } ### BEGIN find any custom field labels ### $label_title = 'Title'; $label_first_name = 'First'; @@ -8435,11 +8461,11 @@ if ($ACTION == 'LEADINFOview') if (strlen($row[18])>0) {$label_comments = $row[18];} ### END find any custom field labels ### - echo "
\n"; echo ""; $stmt="select status,vendor_lead_code,list_id,gmt_offset_now,called_since_last_reset,phone_code,phone_number,title,first_name,middle_initial,last_name,address1,address2,address3,city,state,province,postal_code,country_code,gender,alt_phone,email,security_phrase,comments,called_count,last_local_call_time,rank,owner,entry_list_id from vicidial_list where lead_id='$lead_id' limit 1;"; $rslt=mysql_query($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00398',$user,$server_ip,$session_name,$one_mysql_log);} $info_to_print = mysql_num_rows($rslt); if ($format=='debug') {echo "|$out_logs_to_print|$stmt|";} @@ -8452,7 +8478,10 @@ if ($ACTION == 'LEADINFOview') echo ""; echo ""; echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; @@ -8466,7 +8495,10 @@ if ($ACTION == 'LEADINFOview') echo ""; echo ""; echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index 1bce601e..932bb749 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -337,10 +337,11 @@ # 110218-1522 - Added agent_lead_search feature # 110221-1251 - Changed statuses display to keep track of non-selectable statuses # 110224-1713 - Added compatibility with QM phone environment logging, QM pause code last call logging and active server twin check +# 110225-1231 - Changed scheduled callbacks list to allow clicking to see lead info without dialing, and separate dial link # -$version = '2.4-314c'; -$build = '110224-1713'; +$version = '2.4-315c'; +$build = '110225-1231'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=71; $one_mysql_log=0; @@ -5214,7 +5215,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var CB_calls = all_CBs_array[0]; var loop_ct=0; var conv_start=0; - var CB_HTML = "
Timezone:   $row[3]
Called Since Last Reset:   $row[4]
$label_phone_code:   $row[5]
$label_phone_number:   $row[6] -         DIAL
$label_phone_number:   $row[6] -         "; + if ($hide_dial_links < 1) + {echo "DIAL";} + echo "
$label_title:   $row[7]
$label_first_name:   $row[8]
$label_middle_initial:   $row[9]
$label_postal_code:   $row[17]
Country:   $row[18]
$label_gender:   $row[19]
$label_alt_phone:   $row[20] -         DIAL
$label_alt_phone:   $row[20] -         "; + if ($hide_dial_links < 1) + {echo "DIAL";} + echo "
$label_email:   $row[21]
$label_security_phrase:   $row[22]
$label_comments:   $row[23]
px\">\">" + var CB_HTML = "
# CALLBACK DATE/TIMENUMBERNAME STATUSCAMPAIGNLAST CALL DATE/TIME COMMENTS
px\">\">" while (loop_ct < CB_calls) { loop_ct++; @@ -5234,8 +5235,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var CB_lastcall_time = call_array[7]; var CB_callback_time = call_array[8]; var CB_comments = call_array[9]; - CB_HTML = CB_HTML + ""; - + CB_HTML = CB_HTML + ""; } CB_HTML = CB_HTML + "
# CALLBACK DATE/TIMENUMBERNAME STATUSCAMPAIGNLAST CALL DATE/TIME DIAL
" + loop_ct + "" + CB_callback_time + "" + CB_phone + "" + CB_name + "" + CB_status + "" + CB_campaign + "" + CB_lastcall_time + " " + CB_comments + " 
" + loop_ct + "" + CB_callback_time + "" + CB_phone + " - INFO" + CB_name + "" + CB_status + "" + CB_campaign + "" + CB_lastcall_time + " DIAL 
"; document.getElementById("CallBacKsLisT").innerHTML = CB_HTML; @@ -10210,7 +10210,7 @@ function phone_number_format(formatphone) { // ################################################################################ // View Customer lead information - function VieWLeaDInfO(VLI_lead_id) + function VieWLeaDInfO(VLI_lead_id,VLI_cb_id) { showDiv('LeaDInfOBox'); @@ -10235,7 +10235,7 @@ function phone_number_format(formatphone) { } if (xmlhttp) { - RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=LEADINFOview&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&lead_id=" + VLI_lead_id + "&campaign=" + campaign + "&stage="; + RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=LEADINFOview&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&lead_id=" + VLI_lead_id + "&campaign=" + campaign + "&callback_id=" + VLI_cb_id + "&stage="; xmlhttp.open('POST', 'vdc_db_query.php'); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp.send(RAview_query); @@ -12534,7 +12534,7 @@ Available Agents Transfer:
-
CALLBACKS FOR AGENT :
Click on a callback below to call the customer back now. If you click on a record below to call it, it will be removed from the list. +
CALLBACKS FOR AGENT :
To see information on one of the callbacks below, click on the INFO link. To call the customer back now, click on the DIAL link. If you click on a record below to dial it, it will be removed from the list.