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.
git-svn-id: svn://192.168.202.10@1610 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 "<CENTER>\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 "<TABLE CELLPADDING=0 CELLSPACING=1 BORDER=0 WIDTH=500>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>Callback Status: </td><td ALIGN=left><font size=2>$row[0]</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>Callback Lead Status: </td><td ALIGN=left><font size=2>$row[7]</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>Callback Entry Time: </td><td ALIGN=left><font size=2>$row[1]</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>Callback Trigger Time: </td><td ALIGN=left><font size=2>$row[2]</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>Callback Comments: </td><td ALIGN=left><font size=2>$row[6]</td></tr>";
|
||||
echo "</TABLE>";
|
||||
echo "<BR>";
|
||||
$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 "<CENTER>\n";
|
||||
echo "<TABLE CELLPADDING=0 CELLSPACING=1 BORDER=0 WIDTH=500>";
|
||||
|
||||
$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 "<tr bgcolor=white><td ALIGN=right><font size=2>Timezone: </td><td ALIGN=left><font size=2>$row[3]</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>Called Since Last Reset: </td><td ALIGN=left><font size=2>$row[4]</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>$label_phone_code: </td><td ALIGN=left><font size=2>$row[5]</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>$label_phone_number: </td><td ALIGN=left><font size=2>$row[6] - <a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[6], $lead_id);return false;\">DIAL</A></td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>$label_phone_number: </td><td ALIGN=left><font size=2>$row[6] - ";
|
||||
if ($hide_dial_links < 1)
|
||||
{echo "<a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[6], $lead_id);return false;\">DIAL</a>";}
|
||||
echo "</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>$label_title: </td><td ALIGN=left><font size=2>$row[7]</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>$label_first_name: </td><td ALIGN=left><font size=2>$row[8]</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>$label_middle_initial: </td><td ALIGN=left><font size=2>$row[9]</td></tr>";
|
||||
@@ -8466,7 +8495,10 @@ if ($ACTION == 'LEADINFOview')
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>$label_postal_code: </td><td ALIGN=left><font size=2>$row[17]</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>Country: </td><td ALIGN=left><font size=2>$row[18]</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>$label_gender: </td><td ALIGN=left><font size=2>$row[19]</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>$label_alt_phone: </td><td ALIGN=left><font size=2>$row[20] - <a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[20], $lead_id, 'ALT');return false;\">DIAL</A></td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>$label_alt_phone: </td><td ALIGN=left><font size=2>$row[20] - ";
|
||||
if ($hide_dial_links < 1)
|
||||
{echo "<a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[20], $lead_id, 'ALT');return false;\">DIAL</a>";}
|
||||
echo "</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>$label_email: </td><td ALIGN=left><font size=2>$row[21]</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>$label_security_phrase: </td><td ALIGN=left><font size=2>$row[22]</td></tr>";
|
||||
echo "<tr bgcolor=white><td ALIGN=right><font size=2>$label_comments: </td><td ALIGN=left><font size=2>$row[23]</td></tr>";
|
||||
|
||||
@@ -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 = "<table width=\"<?php echo $HCwidth ?>px\"><tr bgcolor=\"<?php echo $SCRIPT_COLOR ?>\"><td><font class=\"log_title\">#</font></td><td><font class=\"log_title\"> CALLBACK DATE/TIME</font></td><td><font class=\"log_title\">NUMBER</font></td><td><font class=\"log_title\">NAME</font></td><td><font class=\"log_title\"> STATUS</font></td><td align=\"right\"><font class=\"log_title\">CAMPAIGN</font></td><td><font class=\"log_title\">LAST CALL DATE/TIME</font></td><td align=\"left\"><font class=\"log_title\"> COMMENTS</font></td></tr>"
|
||||
var CB_HTML = "<table width=\"<?php echo $HCwidth ?>px\"><tr bgcolor=\"<?php echo $SCRIPT_COLOR ?>\"><td><font class=\"log_title\">#</font></td><td align=\"center\"><font class=\"log_title\"> CALLBACK DATE/TIME</font></td><td align=\"center\"><font class=\"log_title\">NUMBER</font></td><td align=\"center\"><font class=\"log_title\">NAME</font></td><td align=\"center\"><font class=\"log_title\"> STATUS</font></td><td align=\"center\"><font class=\"log_title\">CAMPAIGN</font></td><td align=\"center\"><font class=\"log_title\">LAST CALL DATE/TIME</font></td><td align=\"center\"><font class=\"log_title\"> DIAL</font></td></tr>"
|
||||
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 + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</font></td><td><font class=\"log_text\">" + CB_callback_time + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"new_callback_call('" + CB_id + "','" + CB_lead_id + "');return false;\">" + CB_phone + "</a></font></td><td><font class=\"log_text\">" + CB_name + "</font></td><td><font class=\"log_text\">" + CB_status + "</font></td><td><font class=\"log_text\">" + CB_campaign + "</font></td><td align=\"right\"><font class=\"log_text\">" + CB_lastcall_time + " </font></td><td align=\"right\"><font class=\"log_text\">" + CB_comments + " </font></td></tr>";
|
||||
|
||||
CB_HTML = CB_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</font></td><td align=\"right\"><font class=\"log_text\">" + CB_callback_time + "</td><td align=\"right\"><font class=\"log_text\">" + CB_phone + " - <a href=\"#\" onclick=\"VieWLeaDInfO('" + CB_lead_id + "','" + CB_id + "');return false;\">INFO</a></font></td><td align=\"right\"><font class=\"log_text\">" + CB_name + "</font></td><td align=\"right\"><font class=\"log_text\">" + CB_status + "</font></td><td align=\"right\"><font class=\"log_text\">" + CB_campaign + "</font></td><td align=\"right\"><font class=\"log_text\">" + CB_lastcall_time + " </font></td><td align=\"right\"><font class=\"log_text\"><a href=\"#\" onclick=\"new_callback_call('" + CB_id + "','" + CB_lead_id + "');return false;\">DIAL</a> </font></td></tr>";
|
||||
}
|
||||
CB_HTML = CB_HTML + "</table>";
|
||||
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=<?php echo $HCwidth ?>";
|
||||
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=<?php echo $HCwidth ?>";
|
||||
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: <span id="AgentXferViewSelect"></span></center></font
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:<?php $zi++; echo $zi ?>;" id="CallBacKsLisTBox">
|
||||
<table border="1" bgcolor="#CCFFCC" width="<?php echo $CAwidth ?>px" height="<?php echo $WRheight ?>px"><tr><td align="center" valign="top"> CALLBACKS FOR AGENT <?php echo $VD_login ?>:<br />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.
|
||||
<table border="1" bgcolor="#CCFFCC" width="<?php echo $CAwidth ?>px" height="<?php echo $WRheight ?>px"><tr><td align="center" valign="top"> CALLBACKS FOR AGENT <?php echo $VD_login ?>:<br />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.
|
||||
<br />
|
||||
<?php
|
||||
if ($webphone_location == 'bar')
|
||||
|
||||
Reference in New Issue
Block a user