2006-04-19_snapshot

git-svn-id: svn://192.168.202.10@4 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2006-07-07 15:16:35 +00:00
parent 23592859ca
commit 4862328b6e
13 changed files with 1289 additions and 252 deletions
+11 -2
View File
@@ -95,10 +95,11 @@
# 60413-1541 Added USERONLY Callback listings output - CalLBacKLisT
# Added USERONLY Callback count output - CalLBacKCounT
# 60414-1140 Added Callback lead lookup for manual dialing
# 60419-1517 After CALLBK is sent to agent, update callback record to INACTIVE
#
$version = '0.0.28';
$build = '60414-1140';
$version = '0.0.29';
$build = '60419-1517';
require("dbconnect.php");
@@ -1065,6 +1066,14 @@ if ($ACTION == 'VDADcheckINCOMING')
$stmt="UPDATE vicidial_agent_log set wait_sec='$wait_sec',talk_epoch='$StarTtime',lead_id='$lead_id' where agent_log_id='$agent_log_id';";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
### If CALLBK, change vicidial_callback record to INACTIVE
if ($dispo == 'CALLBK')
{
$stmt="UPDATE vicidial_callbacks set status='INACTIVE' where lead_id='$lead_id' order by callback_id desc LIMIT 1;";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
}
}
else
{
+145 -61
View File
@@ -95,6 +95,10 @@
### 60414-1039 - Changed manual dial preview and alt dial checkboxes to spans
### - Added beta-level USERONLY callback functionality
### - Added beta-level manual dialing with lead insertion functionality
### 60415-1534 - Fixed manual dial lead preview and fixed manuald dial override bug
### 60417-1108 - Added capability to do alt-number-dialing in auto-dial mode
### - Changed several permissions to database-defined
### 60419-1529 - Prevent manual dial or callbacks when alt-dial lead not finished
###
require("dbconnect.php");
@@ -113,8 +117,8 @@ $relogin=$_GET['relogin']; if (!$relogin) {$relogin=$_POST["relogin"];}
$forever_stop=0;
$version = '1.1.71';
$build = '60414-1039';
$version = '1.1.74';
$build = '60419-1529';
if ($force_logout)
{
@@ -136,19 +140,21 @@ $conf_silent_prefix = '7'; # vicidial_conferences prefix to enter silently
$HKuser_level = '5'; # minimum vicidial user_level for HotKeys
$campaign_login_list = '1'; # show drop-down list of campaigns at login
$manual_dial_preview = '1'; # allow preview lead option when manual dial
$manual_dial_alt_phone = '1'; # allow manual dial users to call alt phone number
$multi_line_comments = '1'; # set to 1 to allow multi-line comment box
$user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login
$view_scripts = '1'; # set to 1 to show the SCRIPTS tab
$scheduled_callbacks = '1'; # set to 1 to allow agent to choose scheduled callbacks
$agentonly_callbacks = '1'; # set to 1 to allow agent to choose agent-only scheduled callbacks
$agentcall_manual = '1'; # set to 1 to allow agent to make manual calls during autodial session
$dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo
$agentcallsstatus = '1'; # set to 1 to show agent status and call count
$campagentstatctmax = '0'; # Number of seconds for campaign call and agent stats
$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
# options now set in DB:
#$alt_phone_dialing = '1'; # allow agents to call alt phone numbers
#$scheduled_callbacks = '1'; # set to 1 to allow agent to choose scheduled callbacks
# $agentonly_callbacks = '1'; # set to 1 to allow agent to choose agent-only scheduled callbacks
#$agentcall_manual = '1'; # set to 1 to allow agent to make manual calls during autodial session
$US='_';
$CL=':';
$AT='@';
@@ -368,13 +374,18 @@ $VDloginDISPLAY=0;
$login=strtoupper($VD_login);
$password=strtoupper($VD_pass);
##### grab the full name of the agent
$stmt="SELECT full_name,user_level,hotkeys_active,agent_choose_ingroups from vicidial_users where user='$VD_login' and pass='$VD_pass'";
$stmt="SELECT full_name,user_level,hotkeys_active,agent_choose_ingroups,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers from vicidial_users where user='$VD_login' and pass='$VD_pass'";
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$LOGfullname=$row[0];
$user_level=$row[1];
$VU_hotkeys_active=$row[2];
$VU_agent_choose_ingroups=$row[3];
$VU_scheduled_callbacks=$row[4];
$agentonly_callbacks=$row[5];
$agentcall_manual=$row[6];
$VU_vicidial_recording=$row[7];
$VU_vicidial_transfers=$row[8];
fwrite ($fp, "vdweb|GOOD|$date|$VD_login|$VD_pass|$ip|$browser|$LOGfullname|\n");
fclose($fp);
@@ -481,7 +492,7 @@ $VDloginDISPLAY=0;
}
##### grab the statuses to be dialed for your campaign as well as other campaign settings
$stmt="SELECT dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
$stmt="SELECT dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
@@ -509,6 +520,17 @@ $VDloginDISPLAY=0;
$xferconf_a_number = $row[21];
$xferconf_b_dtmf = $row[22];
$xferconf_b_number = $row[23];
$alt_number_dialing=$row[24];
$VC_scheduled_callbacks=$row[25];
if ( ($VC_scheduled_callbacks=='Y') and ($VU_scheduled_callbacks=='1') )
{$scheduled_callbacks='1';}
if ($VU_vicidial_recording=='0')
{$campaign_recording='NEVER';}
if ($alt_number_dialing=='Y')
{$alt_phone_dialing='1';}
else
{$alt_phone_dialing='0';}
##### grab the number of leads in the hopper for this campaign
$stmt="SELECT count(*) FROM vicidial_hopper where campaign_id = '$VD_campaign' and status='READY';";
@@ -1252,16 +1274,21 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var agentcallsstatus = '<? echo $agentcallsstatus ?>'
var campagentstatctmax = '<? echo $campagentstatctmax ?>'
var campagentstatct = '0'
var callback_in_progress = 0;
var manual_dial_in_progress = 0;
var auto_dial_alt_dial = 0;
var reselect_preview_dial = 0;
var reselect_alt_dial = 0;
var alt_dial_active = 0;
var mdnLisT_id = '999';
var VU_vicidial_transfers = '<? echo $VU_vicidial_transfers ?>'
var agentonly_callbacks = '<? echo $agentonly_callbacks ?>'
var agentcall_manual = '<? echo $agentcall_manual ?>'
var manual_dial_preview = '<? echo $manual_dial_preview ?>'
var manual_dial_alt_phone = '<? echo $manual_dial_alt_phone ?>'
var alt_phone_dialing = '<? echo $alt_phone_dialing ?>'
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\">";
var DiaLControl_manual_HTML = "<a href=\"#\" onclick=\"ManualDialNext();\"><IMG SRC=\"./images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Dial Next Number\"></a>";
var DiaLControl_manual_HTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','');\"><IMG SRC=\"./images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Dial Next Number\"></a>";
var image_blank = new Image();
image_blank.src="./images/blank.gif";
var image_livecall_OFF = new Image();
@@ -1423,7 +1450,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// ################################################################################
// Send Originate command to manager to place a phone call
function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue)
function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait)
{
var xmlhttp=false;
/*@cc_on @*/
@@ -1484,7 +1511,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
{
alert(xmlhttp.responseText);
if (taskdialvalue.length > 0)
if ((taskdialvalue.length > 0) && (tasknowait != 'YES'))
{
XDnextCID = queryCID;
MD_channel_look=1;
@@ -1973,6 +2000,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// Finish the alternate dialing and move on to disposition the call
function ManualDialAltDonE()
{
alt_dial_active = 0;
open_dispo_screen=1;
document.getElementById("MainStatuSSpan").innerHTML = "Dial Next Number";
}
@@ -1983,10 +2011,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
if (taskMDstage == "start") {var MDlogEPOCH = 0;}
else
{
if (auto_dial_level == 0)
if (alt_phone_dialing == 1)
{
if (document.vicidial_form.DiaLAltPhonE.checked==true)
{
reselect_alt_dial = 1;
alt_dial_active = 1;
var man_status = "Dial Alt Phone Number: <a href=\"#\" onclick=\"ManualDialOnly('MaiNPhonE')\"><font class=\"preview_text\">MAIN PHONE</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('ALTPhoneE')\"><font class=\"preview_text\">ALT PHONE</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('AddresS3')\"><font class=\"preview_text\">ADDRESS3</font></a> or <a href=\"#\" onclick=\"ManualDialAltDonE()\"><font class=\"preview_text_red\">FINISH LEAD</font></a>";
document.getElementById("MainStatuSSpan").innerHTML = man_status;
}
@@ -2117,7 +2147,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// Request list of USERONLY callbacks for this agent
function CalLBacKsLisTCheck()
{
if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) )
if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) )
{
alert("YOU MUST BE PAUSED TO CHECK CALLBACKS IN AUTO-DIAL MODE");
}
@@ -2199,25 +2229,25 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
function new_callback_call(taskCBid,taskLEADid)
{
auto_dial_level=0;
callback_in_progress=1;
manual_dial_in_progress=1;
MainPanelToFront();
buildDiv('DiaLLeaDPrevieW');
buildDiv('DiaLDiaLAltPhonE');
document.vicidial_form.LeadPreview.checked=true;
document.vicidial_form.DiaLAltPhonE.checked=true;
hideDiv('CallBacKsLisTBox');
ManualDialNext(taskCBid,taskLEADid);
ManualDialNext(taskCBid,taskLEADid,'','');
}
// ################################################################################
// Finish Callback and go back to original screen
function callback_finished()
function manual_dial_finished()
{
auto_dial_level=starting_dial_level;
MainPanelToFront();
CalLBacKsCounTCheck();
callback_in_progress=0;
manual_dial_in_progress=0;
}
@@ -2225,7 +2255,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// Open page to enter details for a new manual dial lead
function NeWManuaLDiaLCalL()
{
if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) )
if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) )
{
alert("YOU MUST BE PAUSED TO MANUAL DIAL A NEW LEAD IN AUTO-DIAL MODE");
}
@@ -2247,12 +2277,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
if (MDDiaLOverridEform.length > 0)
{
basic_originate_call(session_id,'NO','YES',MDDiaLOverridEform);
basic_originate_call(session_id,'NO','YES',MDDiaLOverridEform,'YES');
}
else
{
auto_dial_level=0;
callback_in_progress=1;
manual_dial_in_progress=1;
MainPanelToFront();
buildDiv('DiaLLeaDPrevieW');
buildDiv('DiaLDiaLAltPhonE');
@@ -2426,11 +2456,13 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
document.getElementById("DiaLControl").innerHTML = "<IMG SRC=\"./images/vdc_LB_dialnextnumber_OFF.gif\" border=0 alt=\"Dial Next Number\">";
if (document.vicidial_form.LeadPreview.checked==true)
{
reselect_preview_dial = 1;
var man_preview = 'YES';
var man_status = "Preview the Lead then <a href=\"#\" onclick=\"ManualDialOnly()\"><font class=\"preview_text\">DIAL LEAD</font></a> or <a href=\"#\" onclick=\"ManualDialSkip()\"><font class=\"preview_text\">SKIP LEAD</font></a>";
}
else
{
reselect_preview_dial = 0;
var man_preview = 'NO';
var man_status = "Waiting for Ring...";
}
@@ -2583,6 +2615,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
if (document.vicidial_form.LeadPreview.checked==false)
{
reselect_preview_dial = 0;
MD_channel_look=1;
custchannellive=1;
@@ -2613,12 +2646,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
}
}
// else
// {alert(document.vicidial_form.lead_id.value);}
else
{
reselect_preview_dial = 1;
}
}
}
}
@@ -2631,7 +2662,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// Send the Manual Dial Skip
function ManualDialSkip()
{
if (callback_in_progress==1)
if (manual_dial_in_progress==1)
{
alert('YOU CANNOT SKIP A CALLBACK OR MANUAL DIAL, YOU MUST DIAL THE LEAD');
}
@@ -2714,7 +2745,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
document.getElementById("MainStatuSSpan").innerHTML = " Lead skipped, go on to next lead";
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext();\"><IMG SRC=\"./images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Dial Next Number\"></a>";
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','');\"><IMG SRC=\"./images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Dial Next Number\"></a>";
}
}
}
@@ -3337,16 +3368,33 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
{
if (document.vicidial_form.DiaLAltPhonE.checked==true)
{
reselect_alt_dial = 1;
open_dispo_screen=0;
}
else
{open_dispo_screen=1;}
{
reselect_alt_dial = 0;
open_dispo_screen=1;
}
}
else
{open_dispo_screen=1;}
{
if (document.vicidial_form.DiaLAltPhonE.checked==true)
{
reselect_alt_dial = 1;
open_dispo_screen=0;
auto_dial_level=0;
manual_dial_in_progress=1;
auto_dial_alt_dial=1;
}
else
{
reselect_alt_dial = 0;
open_dispo_screen=1;
}
}
}
// DEACTIVATE CHANNEL-DEPENDANT BUTTONS AND VARIABLES
document.vicidial_form.callchannel.value = '';
document.vicidial_form.callserverip.value = '';
@@ -3369,17 +3417,26 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
{
if (document.vicidial_form.DiaLAltPhonE.checked==true)
{
// do nothing
reselect_alt_dial = 1;
}
else
{
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext();\"><IMG SRC=\"./images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Dial Next Number\"></a>";
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','');\"><IMG SRC=\"./images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Dial Next Number\"></a>";
reselect_alt_dial = 0;
}
}
else
{
document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML_OFF;
if (document.vicidial_form.DiaLAltPhonE.checked==true)
{
reselect_alt_dial = 1;
}
else
{
document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML_OFF;
reselect_alt_dial = 0;
}
}
ShoWTransferMain('OFF');
@@ -3387,6 +3444,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
}
}
// ################################################################################
// Send Hangup command for 3rd party call connected to the conference now to Manager
function xfercall_send_hangup()
@@ -3715,9 +3773,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
VDCL_group_id = '';
fronter = '';
if (callback_in_progress==1)
if (manual_dial_in_progress==1)
{
callback_finished();
manual_dial_finished();
}
hideDiv('DispoSelectBox');
hideDiv('DispoButtonHideA');
@@ -4332,7 +4390,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
{hideDiv('AgentStatusSpan');}
if ( (auto_dial_level != 0) || (manual_dial_preview != 1) )
{clearDiv('DiaLLeaDPrevieW');}
if ( (auto_dial_level != 0) || (manual_dial_alt_phone != 1) )
if (alt_phone_dialing != 1)
{clearDiv('DiaLDiaLAltPhonE');}
document.getElementById("sessionIDspan").innerHTML = session_id;
@@ -4371,10 +4429,15 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
{
if (document.vicidial_form.DiaLAltPhonE.checked==true)
{
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext();\"><IMG SRC=\"./images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Dial Next Number\"></a>";
reselect_alt_dial = 1;
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','');\"><IMG SRC=\"./images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Dial Next Number\"></a>";
document.getElementById("MainStatuSSpan").innerHTML = "Dial Next Call";
}
else
{
reselect_alt_dial = 0;
}
}
}
if (AgentDispoing==1)
@@ -4626,15 +4689,21 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
if (divvar == 'DiaLLeaDPrevieW')
{
var buildDivHTML = "<font class=\"preview_text\"> <input type=checkbox name=LeadPreview size=1 value=\"0\"> LEAD PREVIEW<BR></font>";
document.getElementById(divvar).innerHTML = buildDivHTML;
if (reselect_preview_dial==1)
{document.vicidial_form.LeadPreview.checked=true}
}
if (divvar == 'DiaLDiaLAltPhonE')
{
var buildDivHTML = "<font class=\"preview_text\"> <input type=checkbox name=DiaLAltPhonE size=1 value=\"0\"> ALT PHONE DIAL<BR></font>";
document.getElementById(divvar).innerHTML = buildDivHTML;
if (reselect_alt_dial==1)
{document.vicidial_form.DiaLAltPhonE.checked=true}
}
document.getElementById(divvar).innerHTML = buildDivHTML;
}
}
function showMainXfeR(divvar,taskxferchan,taskxferchanmain)
{
document.getElementById("MainXfeRBox").style.visibility = 'visible';
@@ -4690,22 +4759,28 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
function ShoWTransferMain(showxfervar,showoffvar)
{
if (showxfervar == 'ON')
if (VU_vicidial_transfers == '1')
{
HKbutton_allowed = 0;
showDiv('TransferMain');
document.getElementById("XferControl").innerHTML = "<a href=\"#\" onclick=\"ShoWTransferMain('OFF','YES');\"><IMG SRC=\"./images/vdc_LB_transferconf.gif\" border=0 alt=\"Transfer - Conference\"></a>";
if (showxfervar == 'ON')
{
HKbutton_allowed = 0;
showDiv('TransferMain');
document.getElementById("XferControl").innerHTML = "<a href=\"#\" onclick=\"ShoWTransferMain('OFF','YES');\"><IMG SRC=\"./images/vdc_LB_transferconf.gif\" border=0 alt=\"Transfer - Conference\"></a>";
}
else
{
HKbutton_allowed = 1;
hideDiv('TransferMain');
if (showoffvar == 'YES')
{
document.getElementById("XferControl").innerHTML = "<a href=\"#\" onclick=\"ShoWTransferMain('ON');\"><IMG SRC=\"./images/vdc_LB_transferconf.gif\" border=0 alt=\"Transfer - Conference\"></a>";
}
}
}
else
{
HKbutton_allowed = 1;
hideDiv('TransferMain');
if (showoffvar == 'YES')
{
document.getElementById("XferControl").innerHTML = "<a href=\"#\" onclick=\"ShoWTransferMain('ON');\"><IMG SRC=\"./images/vdc_LB_transferconf.gif\" border=0 alt=\"Transfer - Conference\"></a>";
}
alert('YOU DO NOT HAVE PERMISSIONS TO TRANSFER CALLS');
}
}
function MainPanelToFront(resumevar)
@@ -4715,19 +4790,28 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
showDiv('MainPanel');
if (resumevar != 'NO')
{
if (alt_phone_dialing == 1)
{buildDiv('DiaLDiaLAltPhonE');}
else
{clearDiv('DiaLDiaLAltPhonE');}
if (auto_dial_level == 0)
{
document.getElementById("DiaLControl").innerHTML = DiaLControl_manual_HTML;
if (manual_dial_preview == 1)
{buildDiv('DiaLLeaDPrevieW');}
if (manual_dial_alt_phone != 1)
{buildDiv('DiaLDiaLAltPhonE');}
if (auto_dial_alt_dial==1)
{
auto_dial_alt_dial=0;
document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML_OFF;
}
else
{
document.getElementById("DiaLControl").innerHTML = DiaLControl_manual_HTML;
if (manual_dial_preview == 1)
{buildDiv('DiaLLeaDPrevieW');}
}
}
else
{
document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML;
clearDiv('DiaLLeaDPrevieW');
clearDiv('DiaLDiaLAltPhonE');
}
}
panel_bgcolor='#E0C2D6';
@@ -5056,7 +5140,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
<tr><td colspan=3><span id="busycallsdebug"></span></td></tr>
<tr><td width=150 align=left valign=top>
<font class="body_text"><center>
<span STYLE="background-color: #CCFFCC" id="DiaLControl"><a href="#" onclick="ManualDialNext();"><IMG SRC="./images/vdc_LB_dialnextnumber_OFF.gif" border=0 alt="Dial Next Number"></a></span><BR>
<span STYLE="background-color: #CCFFCC" id="DiaLControl"><a href="#" onclick="ManualDialNext('','','','');"><IMG SRC="./images/vdc_LB_dialnextnumber_OFF.gif" border=0 alt="Dial Next Number"></a></span><BR>
<span id="DiaLLeaDPrevieW"><font class="preview_text"> <input type=checkbox name=LeadPreview size=1 value="0"> LEAD PREVIEW<BR></font></span>
<span id="DiaLDiaLAltPhonE"><font class="preview_text"> <input type=checkbox name=DiaLAltPhonE size=1 value="0"> ALT PHONE DIAL<BR></font></span>
@@ -5064,7 +5148,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
<?
if ( ($manual_dial_preview) and ($auto_dial_level==0) )
{echo "<font class=\"preview_text\"> <input type=checkbox name=LeadPreview size=1 value=\"0\"> LEAD PREVIEW<BR></font>";}
if ( ($manual_dial_alt_phone) and ($auto_dial_level==0) )
if ( ($alt_phone_dialing) and ($auto_dial_level==0) )
{echo "<font class=\"preview_text\"> <input type=checkbox name=DiaLAltPhonE size=1 value=\"0\"> ALT PHONE DIAL<BR></font>";}