added callback information display frame for previous ANYONE callbacks within vicidial.php
git-svn-id: svn://192.168.202.10@249 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -108,9 +108,11 @@
|
||||
# 60623-1414 - Fixed variable filter for phone_code and fixed manual dial logic
|
||||
# 60821-1600 - Added ability to omit the phone code on vicidial lead dialing
|
||||
# 60821-1647 - Added ability to not delete sessions at logout
|
||||
# 60906-1124 - Added lookup and sending of callback data for CALLBK calls
|
||||
#
|
||||
|
||||
$version = '2.0.36';
|
||||
$build = '60821-1647';
|
||||
$version = '2.0.37';
|
||||
$build = '60906-1124';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -498,6 +500,27 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
|
||||
$called_count++;
|
||||
|
||||
##### if lead is a callback, grab the callback comments
|
||||
$CBentry_time = '';
|
||||
$CBcallback_time = '';
|
||||
$CBuser = '';
|
||||
$CBcomments = '';
|
||||
if (ereg("CALLBK",$dispo))
|
||||
{
|
||||
$stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$cb_record_ct = mysql_num_rows($rslt);
|
||||
if ($cb_record_ct > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$CBentry_time = trim("$row[0]");
|
||||
$CBcallback_time = trim("$row[1]");
|
||||
$CBuser = trim("$row[2]");
|
||||
$CBcomments = trim("$row[3]");
|
||||
}
|
||||
}
|
||||
|
||||
### flag the lead as called and change it's status to INCALL
|
||||
$stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='Y', called_count='$called_count',user='$user' where lead_id='$lead_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -582,6 +605,10 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$LeaD_InfO .= $security . "\n";
|
||||
$LeaD_InfO .= $comments . "\n";
|
||||
$LeaD_InfO .= $called_count . "\n";
|
||||
$LeaD_InfO .= $CBentry_time . "\n";
|
||||
$LeaD_InfO .= $CBcallback_time . "\n";
|
||||
$LeaD_InfO .= $CBuser . "\n";
|
||||
$LeaD_InfO .= $CBcomments . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
@@ -1076,6 +1103,27 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
##### if lead is a callback, grab the callback comments
|
||||
$CBentry_time = '';
|
||||
$CBcallback_time = '';
|
||||
$CBuser = '';
|
||||
$CBcomments = '';
|
||||
if (ereg("CALLBK",$dispo))
|
||||
{
|
||||
$stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$cb_record_ct = mysql_num_rows($rslt);
|
||||
if ($cb_record_ct > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$CBentry_time = trim("$row[0]");
|
||||
$CBcallback_time = trim("$row[1]");
|
||||
$CBuser = trim("$row[2]");
|
||||
$CBcomments = trim("$row[3]");
|
||||
}
|
||||
}
|
||||
|
||||
### update the lead status to INCALL
|
||||
$stmt = "UPDATE vicidial_list set status='INCALL', user='$user' where lead_id='$lead_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -1215,6 +1263,10 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$LeaD_InfO .= $security . "\n";
|
||||
$LeaD_InfO .= $comments . "\n";
|
||||
$LeaD_InfO .= $called_count . "\n";
|
||||
$LeaD_InfO .= $CBentry_time . "\n";
|
||||
$LeaD_InfO .= $CBcallback_time . "\n";
|
||||
$LeaD_InfO .= $CBuser . "\n";
|
||||
$LeaD_InfO .= $CBcomments . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
|
||||
@@ -124,6 +124,7 @@
|
||||
# 60821-1643 - Added no_delete_sessions option to not delete sessions
|
||||
# 60822-0512 - Changed phone number fields to be maxlength of 12
|
||||
# 60829-1531 - Made compatible with WeBRooTWritablE setting in dbconnect.php
|
||||
# 60906-1152 - Added Previous CallBack info display span
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -169,8 +170,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
|
||||
|
||||
$forever_stop=0;
|
||||
|
||||
$version = '2.0.97';
|
||||
$build = '60829-1531';
|
||||
$version = '2.0.98';
|
||||
$build = '60906-1152';
|
||||
|
||||
if ($force_logout)
|
||||
{
|
||||
@@ -206,7 +207,7 @@ $local_consult_xfers = '1'; # set to 1 to send consultative transfers from origi
|
||||
$clientDST = '1'; # set to 1 to check for DST on server for agent time
|
||||
$no_delete_sessions = '0'; # set to 1 to not delete sessions at logout
|
||||
|
||||
$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
|
||||
$TEST_all_statuses = '1'; # TEST variable allows all statuses in dispo screen
|
||||
|
||||
# options now set in DB:
|
||||
#$alt_phone_dialing = '1'; # allow agents to call alt phone numbers
|
||||
@@ -1386,6 +1387,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var no_delete_sessions = '<? echo $no_delete_sessions ?>';
|
||||
var webform_session = '<? echo $webform_sessionname ?>';
|
||||
var local_consult_xfers = '<? echo $local_consult_xfers ?>';
|
||||
var CBentry_time = '';
|
||||
var CBcallback_time = '';
|
||||
var CBuser = '';
|
||||
var CBcomments = '';
|
||||
var DiaLControl_auto_HTML = "<IMG SRC=\"./images/vdc_LB_pause_OFF.gif\" border=0 alt=\"Pause\"><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><IMG SRC=\"./images/vdc_LB_resume.gif\" border=0 alt=\"Resume\"></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><IMG SRC=\"./images/vdc_LB_pause.gif\" border=0 alt=\"Pause\"></a><IMG SRC=\"./images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Resume\">";
|
||||
var DiaLControl_auto_HTML_OFF = "<IMG SRC=\"./images/vdc_LB_pause_OFF.gif\" border=0 alt=\"Pause\"><IMG SRC=\"./images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Resume\">";
|
||||
@@ -2731,6 +2736,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
document.vicidial_form.called_count.value = MDnextResponse_array[27];
|
||||
previous_called_count = MDnextResponse_array[27];
|
||||
previous_dispo = MDnextResponse_array[2];
|
||||
CBentry_time = MDnextResponse_array[28];
|
||||
CBcallback_time = MDnextResponse_array[29];
|
||||
CBuser = MDnextResponse_array[30];
|
||||
CBcomments = MDnextResponse_array[31];
|
||||
|
||||
lead_dial_number = document.vicidial_form.phone_number.value;
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + document.vicidial_form.phone_number.value + " UID: " + MDnextCID + " " + man_status;
|
||||
@@ -2796,6 +2805,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
document.getElementById("CusTInfOSpaN").innerHTML = " <B> PREVIOUS CALLBACK </B>";
|
||||
document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor;
|
||||
document.getElementById("CBcommentsBoxA").innerHTML = "<b>Last Call: </b>" + CBentry_time;
|
||||
document.getElementById("CBcommentsBoxB").innerHTML = "<b>CallBack: </b>" + CBcallback_time;
|
||||
document.getElementById("CBcommentsBoxC").innerHTML = "<b>Agent: </b>" + CBuser;
|
||||
document.getElementById("CBcommentsBoxD").innerHTML = "<b>Comments: </b><br>" + CBcomments;
|
||||
showDiv('CBcommentsBox');
|
||||
}
|
||||
|
||||
var regWFAvars = new RegExp("\\?","ig");
|
||||
@@ -3294,6 +3308,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
check_VDIC_array[30] = check_VDIC_array[30].replace(REGcommentsNL, "\n");
|
||||
document.vicidial_form.comments.value = check_VDIC_array[30];
|
||||
document.vicidial_form.called_count.value = check_VDIC_array[31];
|
||||
CBentry_time = check_VDIC_array[32];
|
||||
CBcallback_time = check_VDIC_array[33];
|
||||
CBuser = check_VDIC_array[34];
|
||||
CBcomments = check_VDIC_array[35];
|
||||
|
||||
lead_dial_number = document.vicidial_form.phone_number.value;
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Incoming: " + document.vicidial_form.phone_number.value + " UID: " + CIDcheck + " " + VDIC_fronter;
|
||||
@@ -3302,6 +3320,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
document.getElementById("CusTInfOSpaN").innerHTML = " <B> PREVIOUS CALLBACK </B>";
|
||||
document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor;
|
||||
document.getElementById("CBcommentsBoxA").innerHTML = "<b>Last Call: </b>" + CBentry_time;
|
||||
document.getElementById("CBcommentsBoxB").innerHTML = "<b>CallBack: </b>" + CBcallback_time;
|
||||
document.getElementById("CBcommentsBoxC").innerHTML = "<b>Agent: </b>" + CBuser;
|
||||
document.getElementById("CBcommentsBoxD").innerHTML = "<b>Comments: </b><br>" + CBcomments;
|
||||
showDiv('CBcommentsBox');
|
||||
}
|
||||
|
||||
if (VDIC_data_VDIG[1].length > 0)
|
||||
@@ -4045,6 +4068,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
document.getElementById("DispoSelectMaxMin").innerHTML = "<a href=\"#\" onclick=\"DispoMinimize()\">minimize</a>";
|
||||
document.getElementById("DispoSelectHAspan").innerHTML = "<a href=\"#\" onclick=\"DispoHanguPAgaiN()\">Hangup Again</a>";
|
||||
|
||||
CBcommentsBoxhide();
|
||||
|
||||
AgentDispoing = 0;
|
||||
|
||||
if (wrapup_waiting == 0)
|
||||
@@ -4553,6 +4578,22 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
}
|
||||
|
||||
|
||||
// ################################################################################
|
||||
// Hide the CBcommentsBox span upon click
|
||||
function CBcommentsBoxhide()
|
||||
{
|
||||
CBentry_time = '';
|
||||
CBcallback_time = '';
|
||||
CBuser = '';
|
||||
CBcomments = '';
|
||||
document.getElementById("CBcommentsBoxA").innerHTML = "";
|
||||
document.getElementById("CBcommentsBoxB").innerHTML = "";
|
||||
document.getElementById("CBcommentsBoxC").innerHTML = "";
|
||||
document.getElementById("CBcommentsBoxD").innerHTML = "";
|
||||
hideDiv('CBcommentsBox');
|
||||
}
|
||||
|
||||
|
||||
// ################################################################################
|
||||
// Populating the date field in the callback frame prior to submission
|
||||
function CB_date_pick(taskdate)
|
||||
@@ -4638,6 +4679,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
if (VICIDiaL_closer_login_checked==0)
|
||||
{
|
||||
hideDiv('NothingBox');
|
||||
hideDiv('CBcommentsBox');
|
||||
hideDiv('HotKeyActionBox');
|
||||
hideDiv('HotKeyEntriesBox');
|
||||
hideDiv('MainXfeRBox');
|
||||
@@ -5237,7 +5279,7 @@ echo "</head>\n";
|
||||
<span id="CBstatusSpan">X ACTIVE CALLBACKS</span> <BR>
|
||||
</font></span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:35;" id="CallBacKsLisTBox">
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:36;" id="CallBacKsLisTBox">
|
||||
<table border=1 bgcolor="#CCFFCC" width=650 height=460><TR><TD align=center VALIGN=top> CALLBACKS FOR AGENT <? 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.
|
||||
<BR>
|
||||
<div class="scroll_callback" id="CallBacKsLisT"></div>
|
||||
@@ -5248,7 +5290,7 @@ echo "</head>\n";
|
||||
</TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:36;" id="NeWManuaLDiaLBox">
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:37;" id="NeWManuaLDiaLBox">
|
||||
<table border=1 bgcolor="#CCFFCC" width=650 height=460><TR><TD align=center VALIGN=top> NEW MANUAL DIAL LEAD FOR <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Enter information below for the new lead you wish to call.
|
||||
<BR>
|
||||
<?
|
||||
@@ -5344,7 +5386,24 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
|
||||
</TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:12px;z-index:24;" id="NoneInSessionBox">
|
||||
<span style="position:absolute;left:5px;top:310px;z-index:24;" id="CBcommentsBox">
|
||||
<table border=0 bgcolor="#FFFFCC" width=620 height=70>
|
||||
<TR bgcolor="#FFFF66">
|
||||
<TD align=left><font class="sh_text"> Previous Callback Information: </font></td>
|
||||
<TD align=right><font class="sk_text"> <a href="#" onclick="CBcommentsBoxhide();return false;">close</a> </font></td>
|
||||
</tr><tr>
|
||||
<TD><font class="sk_text">
|
||||
<span id="CBcommentsBoxA"></span><BR>
|
||||
<span id="CBcommentsBoxB"></span><BR>
|
||||
<span id="CBcommentsBoxC"></span><BR>
|
||||
</font></TD>
|
||||
<TD width=320><font class="sk_text">
|
||||
<span id="CBcommentsBoxD"></span>
|
||||
</font></TD>
|
||||
</TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:12px;z-index:25;" id="NoneInSessionBox">
|
||||
<table border=1 bgcolor="#CCFFFF" width=600 height=500><TR><TD align=center> Noone is in your session: <span id="NoneInSessionID"></span><BR>
|
||||
<a href="#" onclick="NoneInSessionOK();return false;">Go Back</a>
|
||||
<BR><BR>
|
||||
@@ -5352,7 +5411,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
|
||||
</TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:25;" id="CustomerGoneBox">
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:26;" id="CustomerGoneBox">
|
||||
<table border=1 bgcolor="#CCFFFF" width=650 height=500><TR><TD align=center> Customer has hung up: <span id="CustomerGoneChanneL"></span><BR>
|
||||
<a href="#" onclick="CustomerGoneOK();return false;">Go Back</a>
|
||||
<BR><BR>
|
||||
@@ -5361,7 +5420,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
|
||||
</TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:26;" id="WrapupBox">
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:27;" id="WrapupBox">
|
||||
<table border=1 bgcolor="#CCFFCC" width=650 height=550><TR><TD align=center> Call Wrapup: <span id="WrapupTimer"></span> seconds remaining in wrapup<BR><BR>
|
||||
<span id="WrapupMessage"><?=$wrapup_message ?></span>
|
||||
<BR><BR>
|
||||
@@ -5370,23 +5429,23 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
|
||||
</TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:27;" id="LogouTBox">
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:28;" id="LogouTBox">
|
||||
<table border=1 bgcolor="#FFFFFF" width=650 height=500><TR><TD align=center><BR><span id="LogouTBoxLink">LOGOUT</span></TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:70px;z-index:28;" id="DispoButtonHideA">
|
||||
<span style="position:absolute;left:0px;top:70px;z-index:29;" id="DispoButtonHideA">
|
||||
<table border=0 bgcolor="#CCFFCC" width=165 height=22><TR><TD align=center VALIGN=top></TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:138px;z-index:29;" id="DispoButtonHideB">
|
||||
<span style="position:absolute;left:0px;top:138px;z-index:30;" id="DispoButtonHideB">
|
||||
<table border=0 bgcolor="#CCFFCC" width=165 height=250><TR><TD align=center VALIGN=top> </TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:30;" id="DispoButtonHideC">
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:31;" id="DispoButtonHideC">
|
||||
<table border=0 bgcolor="#CCFFCC" width=650 height=47><TR><TD align=center VALIGN=top>Any changes made to the customer information below at this time will not be comitted, You must change customer information before you Hangup the call. </TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:31;" id="DispoSelectBox">
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:32;" id="DispoSelectBox">
|
||||
<table border=1 bgcolor="#CCFFCC" width=650 height=460><TR><TD align=center VALIGN=top> DISPOSITION CALL :<span id="DispoSelectPhonE"></span> <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Hangup Again</a></span> <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">minimize</a></span><BR>
|
||||
<span id="DispoSelectContent"> End-of-call Disposition Selection </span>
|
||||
<input type=hidden name=DispoSelection><BR>
|
||||
@@ -5400,7 +5459,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
|
||||
</span>
|
||||
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:32;" id="CallBackSelectBox">
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:33;" id="CallBackSelectBox">
|
||||
<table border=1 bgcolor="#CCFFCC" width=650 height=460><TR><TD align=center VALIGN=top> Select a CallBack Date :<span id="CallBackDatE"></span><BR>
|
||||
<input type=hidden name=CallBackDatESelectioN>
|
||||
<input type=hidden name=CallBackTimESelectioN>
|
||||
@@ -5443,7 +5502,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
|
||||
</TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:33;" id="CloserSelectBox">
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:34;" id="CloserSelectBox">
|
||||
<table border=1 bgcolor="#CCFFCC" width=650 height=460><TR><TD align=center VALIGN=top> CLOSER INBOUND GROUP SELECTION <BR>
|
||||
<span id="CloserSelectContent"> Closer Inbound Group Selection </span>
|
||||
<input type=hidden name=CloserSelectList><BR>
|
||||
@@ -5454,7 +5513,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
|
||||
</TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:34;" id="NothingBox">
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:35;" id="NothingBox">
|
||||
<BUTTON Type=button name="inert_button"><img src="./images/blank.gif"></BUTTON>
|
||||
<span id="DiaLLeaDPrevieWHide">Channel</span>
|
||||
<span id="DiaLDiaLAltPhonEHide">Channel</span>
|
||||
|
||||
Reference in New Issue
Block a user