build of other language web interfaces

git-svn-id: svn://192.168.202.10@445 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2006-12-22 19:35:22 +00:00
parent 002f05a96b
commit cfe4312965
79 changed files with 2999 additions and 1434 deletions
+6 -4
View File
@@ -62,6 +62,8 @@
# 60619-1158 - Added variable filters to close security holes for login form
# 60809-1544 - Added direct transfers to leave-3ways in consultative transfers
# 61004-1526 - Added parsing of volume control command and lookup or number
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61201-1115 - Added user to MonitorConf for recording_log
#
require("dbconnect.php");
@@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";}
if (!isset($format)) {$format="alert";}
if (!isset($ext_priority)) {$ext_priority="1";}
$version = '0.0.26';
$build = '61004-1526';
$version = '2.0.27';
$build = '61130-1617';
$StarTtime = date("U");
$NOW_DATE = date("Y-m-d");
$NOW_TIME = date("Y-m-d H:i:s");
@@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
if ($ACTION=="Monitor")
{
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
@@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
+163 -75
View File
@@ -130,6 +130,8 @@
# 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions
# 61122-1523 - Added more SCRIPT variables
# 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT
#
require("dbconnect.php");
@@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
$forever_stop=0;
$version = '2.0.103';
$build = '61128-2229';
$version = '2.0.105';
$build = '61221-1212';
if ($force_logout)
{
@@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
document.getElementById("RecorDControl").innerHTML = conf_rec_start_html;
}
}
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1";
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1";
xmlhttp.open('POST', 'manager_send.php');
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
xmlhttp.send(confmonitor_query);
@@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// decode the scripttext and scriptname so that it can be didsplayed
function URLDecode(encodedvar,scriptformat)
{
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
var RGnl = new RegExp("\n","g");
var RGplus = new RegExp(" ","g");
var RGiframe = new RegExp("iframe","gi");
if (scriptformat == 'YES')
{
var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value;
var SCsource_id = "";
var SClist_id = document.vicidial_form.list_id.value;
var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value;
var SCcalled_since_last_reset = "";
var SCphone_code = document.vicidial_form.phone_code.value;
var SCphone_number = document.vicidial_form.phone_number.value;
var SCtitle = document.vicidial_form.title.value;
var SCfirst_name = document.vicidial_form.first_name.value;
var SCmiddle_initial = document.vicidial_form.middle_initial.value;
var SClast_name = document.vicidial_form.last_name.value;
var SCaddress1 = document.vicidial_form.address1.value;
var SCaddress2 = document.vicidial_form.address2.value;
var SCaddress3 = document.vicidial_form.address3.value;
var SCcity = document.vicidial_form.city.value;
var SCstate = document.vicidial_form.state.value;
var SCprovince = document.vicidial_form.province.value;
var SCpostal_code = document.vicidial_form.postal_code.value;
var SCcountry_code = document.vicidial_form.country_code.value;
var SCgender = document.vicidial_form.gender.value;
var SCdate_of_birth = document.vicidial_form.date_of_birth.value;
var SCalt_phone = document.vicidial_form.alt_phone.value;
var SCemail = document.vicidial_form.email.value;
var SCsecurity_phrase = document.vicidial_form.security_phrase.value;
var SCcomments = document.vicidial_form.comments.value;
var SCfullname = LOGfullname;
var SCfronter = fronter;
var SCuser = user;
var SClead_id = document.vicidial_form.lead_id.value;
var SCcampaign = campaign;
var SCphone_login = phone_login;
var SCgroup = group;
var SCchannel_group = group;
var SCSQLdate = SQLdate;
var SCepoch = UnixTime;
var SCuniqueid = document.vicidial_form.uniqueid.value;
var SCcustomer_zap_channel = lastcustchannel;
var SCserver_ip = server_ip;
var SCSIPexten = extension;
var SCsession_id = session_id;
if (encoded.match(RGiframe))
{
SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+');
SCsource_id = SCsource_id.replace(RGplus,'+');
SClist_id = SClist_id.replace(RGplus,'+');
SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+');
SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+');
SCphone_code = SCphone_code.replace(RGplus,'+');
SCphone_number = SCphone_number.replace(RGplus,'+');
SCtitle = SCtitle.replace(RGplus,'+');
SCfirst_name = SCfirst_name.replace(RGplus,'+');
SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+');
SClast_name = SClast_name.replace(RGplus,'+');
SCaddress1 = SCaddress1.replace(RGplus,'+');
SCaddress2 = SCaddress2.replace(RGplus,'+');
SCaddress3 = SCaddress3.replace(RGplus,'+');
SCcity = SCcity.replace(RGplus,'+');
SCstate = SCstate.replace(RGplus,'+');
SCprovince = SCprovince.replace(RGplus,'+');
SCpostal_code = SCpostal_code.replace(RGplus,'+');
SCcountry_code = SCcountry_code.replace(RGplus,'+');
SCgender = SCgender.replace(RGplus,'+');
SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+');
SCalt_phone = SCalt_phone.replace(RGplus,'+');
SCemail = SCemail.replace(RGplus,'+');
SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+');
SCcomments = SCcomments.replace(RGplus,'+');
SCfullname = SCfullname.replace(RGplus,'+');
SCfronter = SCfronter.replace(RGplus,'+');
SCuser = SCuser.replace(RGplus,'+');
SClead_id = SClead_id.replace(RGplus,'+');
SCcampaign = SCcampaign.replace(RGplus,'+');
SCphone_login = SCphone_login.replace(RGplus,'+');
SCgroup = SCgroup.replace(RGplus,'+');
SCchannel_group = SCchannel_group.replace(RGplus,'+');
SCSQLdate = SCSQLdate.replace(RGplus,'+');
SCuniqueid = SCuniqueid.replace(RGplus,'+');
SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+');
SCserver_ip = SCserver_ip.replace(RGplus,'+');
SCSIPexten = SCSIPexten.replace(RGplus,'+');
}
var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g");
var RGsource_id = new RegExp("--A--source_id--B--","g");
var RGlist_id = new RegExp("--A--list_id--B--","g");
@@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var RGserver_ip = new RegExp("--A--server_ip--B--","g");
var RGSIPexten = new RegExp("--A--SIPexten--B--","g");
var RGsession_id = new RegExp("--A--session_id--B--","g");
var RGnl = new RegExp("\n","g");
encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value);
encoded = encoded.replace(RGsource_id, "");
encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value);
encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value);
encoded = encoded.replace(RGcalled_since_last_reset, "");
encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value);
encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value);
encoded = encoded.replace(RGtitle, document.vicidial_form.title.value);
encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value);
encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value);
encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value);
encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value);
encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value);
encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value);
encoded = encoded.replace(RGcity, document.vicidial_form.city.value);
encoded = encoded.replace(RGstate, document.vicidial_form.state.value);
encoded = encoded.replace(RGprovince, document.vicidial_form.province.value);
encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value);
encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value);
encoded = encoded.replace(RGgender, document.vicidial_form.gender.value);
encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value);
encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value);
encoded = encoded.replace(RGemail, document.vicidial_form.email.value);
encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value);
encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value);
encoded = encoded.replace(RGfullname, LOGfullname);
encoded = encoded.replace(RGfronter, fronter);
encoded = encoded.replace(RGuser, user);
encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value);
encoded = encoded.replace(RGcampaign, campaign);
encoded = encoded.replace(RGphone_login, phone_login);
encoded = encoded.replace(RGgroup, group);
encoded = encoded.replace(RGchannel_group, group);
encoded = encoded.replace(RGSQLdate, SQLdate);
encoded = encoded.replace(RGepoch, UnixTime);
encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value);
encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel);
encoded = encoded.replace(RGserver_ip, server_ip);
encoded = encoded.replace(RGSIPexten, extension);
encoded = encoded.replace(RGsession_id, session_id);
encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code);
encoded = encoded.replace(RGsource_id, SCsource_id);
encoded = encoded.replace(RGlist_id, SClist_id);
encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now);
encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset);
encoded = encoded.replace(RGphone_code, SCphone_code);
encoded = encoded.replace(RGphone_number, SCphone_number);
encoded = encoded.replace(RGtitle, SCtitle);
encoded = encoded.replace(RGfirst_name, SCfirst_name);
encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial);
encoded = encoded.replace(RGlast_name, SClast_name);
encoded = encoded.replace(RGaddress1, SCaddress1);
encoded = encoded.replace(RGaddress2, SCaddress2);
encoded = encoded.replace(RGaddress3, SCaddress3);
encoded = encoded.replace(RGcity, SCcity);
encoded = encoded.replace(RGstate, SCstate);
encoded = encoded.replace(RGprovince, SCprovince);
encoded = encoded.replace(RGpostal_code, SCpostal_code);
encoded = encoded.replace(RGcountry_code, SCcountry_code);
encoded = encoded.replace(RGgender, SCgender);
encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth);
encoded = encoded.replace(RGalt_phone, SCalt_phone);
encoded = encoded.replace(RGemail, SCemail);
encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase);
encoded = encoded.replace(RGcomments, SCcomments);
encoded = encoded.replace(RGfullname, SCfullname);
encoded = encoded.replace(RGfronter, SCfronter);
encoded = encoded.replace(RGuser, SCuser);
encoded = encoded.replace(RGlead_id, SClead_id);
encoded = encoded.replace(RGcampaign, SCcampaign);
encoded = encoded.replace(RGphone_login, SCphone_login);
encoded = encoded.replace(RGgroup, SCgroup);
encoded = encoded.replace(RGchannel_group, SCchannel_group);
encoded = encoded.replace(RGSQLdate, SCSQLdate);
encoded = encoded.replace(RGepoch, SCepoch);
encoded = encoded.replace(RGuniqueid, SCuniqueid);
encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel);
encoded = encoded.replace(RGserver_ip, SCserver_ip);
encoded = encoded.replace(RGSIPexten, SCSIPexten);
encoded = encoded.replace(RGsession_id, SCsession_id);
}
while (i < encoded.length) {
var ch = encoded.charAt(i);
@@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
div.scroll_callback {height: 300px; width: 620px; overflow: scroll;}
div.scroll_park {height: 400px; width: 620px; overflow: scroll;}
div.scroll_list {height: 400px; width: 140px; overflow: scroll;}
div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
.body_text {font-size: 13px; font-family: sans-serif;}
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
@@ -5377,7 +5465,7 @@ echo "</head>\n";
<BODY onload="begin_all_refresh();">
<FORM name=vicidial_form>
<span style="position:absolute;left:0px;top:0px;z-index:2;" id="Header">
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=640 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=760 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TR VALIGN=TOP ALIGN=LEFT><TD COLSPAN=3 VALIGN=TOP ALIGN=LEFT>
<INPUT TYPE=HIDDEN NAME=extension>
<font class="body_text">
@@ -5387,11 +5475,11 @@ echo "</head>\n";
</SPAN>
<span style="position:absolute;left:0px;top:13px;z-index:1;" id="Tabs">
<table border=0 bgcolor="#FFFFFF" width=640 height=30>
<table border=0 bgcolor="#FFFFFF" width=760 height=30>
<TR VALIGN=TOP ALIGN=LEFT>
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="./images/vdc_tab_vicidial.gif" ALT="VICIDIAL" WIDTH=115 HEIGHT=30 BORDER=0></A></TD>
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="./images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 BORDER=0></A></TD>
<TD WIDTH=309 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; session ID: <span id=sessionIDspan></span></TD>
<TD WIDTH=431 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; session ID: <span id=sessionIDspan></span></TD>
<TD WIDTH=109><IMG SRC="./images/agc_live_call_OFF.gif" NAME=livecall ALT="Live Call" WIDTH=109 HEIGHT=30 BORDER=0></TD>
</TR></TABLE>
</span>
@@ -5399,7 +5487,7 @@ echo "</head>\n";
<span style="position:absolute;left:0px;top:0px;z-index:3;" id="WelcomeBoxA">
<table border=0 bgcolor="#FFFFFF" width=650 height=500><TR><TD align=center><BR><span id="WelcomeBoxAt">VICIDIAL</span></TD></TR></TABLE>
<table border=0 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="WelcomeBoxAt">VICIDIAL</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:300px;top:365px;z-index:13;" id="ManuaLDiaLButtons"><font class="body_text">
@@ -5411,7 +5499,7 @@ echo "</head>\n";
</font></span>
<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.
<table border=1 bgcolor="#CCFFCC" width=770 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>
<BR> &nbsp;
@@ -5422,7 +5510,7 @@ echo "</head>\n";
</span>
<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.
<table border=1 bgcolor="#CCFFCC" width=770 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>
<?
if (eregi("X",dial_prefix))
@@ -5456,18 +5544,18 @@ echo "</head>\n";
<span style="position:absolute;left:250px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="./images/vdc_volume_up_off.gif" BORDER=0></span><BR><span id="VolumeDownSpan"><IMG SRC="./images/vdc_volume_down_off.gif" BORDER=0></span>
<span style="position:absolute;left:5px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="./images/vdc_volume_up_off.gif" BORDER=0></span><BR><span id="VolumeDownSpan"><IMG SRC="./images/vdc_volume_down_off.gif" BORDER=0></span>
</font></span>
<span style="position:absolute;left:5px;top:350px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
<span style="position:absolute;left:35px;top:350px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusCalls"></span>
</font></span>
<span style="position:absolute;left:5px;top:310px;z-index:21;" id="TransferMain">
<table bgcolor="#CCCCFF" width=630><tr>
<table bgcolor="#CCCCFF" width=750><tr>
<td align=left>
<font class="body_text">
<IMG SRC="./images/vdc_XB_header.gif" border=0 alt="Transfer - Conference"><BR>
@@ -5499,7 +5587,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<span style="position:absolute;left:5px;top:310px;z-index:22;" id="HotKeyActionBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD height=70><font class="sh_text"> Lead Dispositioned As: </font><BR><BR><CENTER>
<font class="sd_text"><span id="HotKeyDispo"> - </span></font></CENTER>
</TD>
@@ -5507,7 +5595,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<span style="position:absolute;left:5px;top:310px;z-index:23;" id="HotKeyEntriesBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD width=200><font class="sh_text"> Disposition Hot Keys: </font></td><td colspan=2>
<font class="body_small">When active, simply press the keyboard key for the desired disposition for this call. The call will then be hungup and dispositioned automatically:</font></td></tr><tr>
<TD width=200><font class="sk_text">
@@ -5523,7 +5611,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<span style="position:absolute;left:5px;top:310px;z-index:24;" id="CBcommentsBox">
<table border=0 bgcolor="#FFFFCC" width=620 height=70>
<table border=0 bgcolor="#FFFFCC" width=740 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>
@@ -5540,7 +5628,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</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>
<table border=1 bgcolor="#CCFFFF" width=720 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>
<a href="#" onclick="NoneInSessionCalL();return false;">Call Agent Again</a>
@@ -5548,7 +5636,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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>
<table border=1 bgcolor="#CCFFFF" width=770 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>
<a href="#" onclick="CustomerGoneHangup();return false;">Finish and Disposition Call</a>
@@ -5557,7 +5645,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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>
<table border=1 bgcolor="#CCFFCC" width=770 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>
<a href="#" onclick="WrapupFinish();return false;">Finish Wrapup and Move On</a>
@@ -5566,7 +5654,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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>
<table border=1 bgcolor="#FFFFFF" width=770 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:29;" id="DispoButtonHideA">
@@ -5578,11 +5666,11 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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>
<table border=0 bgcolor="#CCFFCC" width=770 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:32;" id="DispoSelectBox">
<table border=1 bgcolor="#CCFFCC" width=650 height=460><TR><TD align=center VALIGN=top> DISPOSITION CALL :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Hangup Again</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">minimize</a></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> DISPOSITION CALL :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Hangup Again</a></span> &nbsp; &nbsp; &nbsp; <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>
<input type=checkbox name=DispoSelectStop size=1 value="0"> PAUSE AGENT DIALING <BR>
@@ -5596,7 +5684,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
<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>
<table border=1 bgcolor="#CCFFCC" width=770 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>
<span id="CallBackDatEPrinT">Select a Date Below</span> &nbsp;
@@ -5639,7 +5727,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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>
<table border=1 bgcolor="#CCFFCC" width=770 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>
<input type=checkbox name=CloserSelectBlended size=1 value="0"> BLENDED CALLING(outbound activated) <BR>
@@ -5662,7 +5750,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
<span style="position:absolute;left:80px;top:12px;z-index:42;" id="MainXfeRBox">
<input type=hidden name=H_XfeR_channel>
<input type=hidden name=M_XfeR_channel>
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> LIVE CALL TRANSFER</b> <BR>Channel to be transferred: <span id="MainXfeRChanneL">Channel</span><BR></tr>
<table border=0 bgcolor="#FFFFCC" width=720 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> LIVE CALL TRANSFER</b> <BR>Channel to be transferred: <span id="MainXfeRChanneL">Channel</span><BR></tr>
<tr><td>Extensions:<BR><span id="MainXfeRContent"> Extensions Menu </span></td>
<td>
<BR>
@@ -5678,7 +5766,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
<span style="position:absolute;left:154px;top:65px;z-index:15;" id="ScriptPanel">
<table border=0 bgcolor="#FFE7D0" width=486 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIDIAL SCRIPT</div></font></TD></TR></TABLE>
<table border=0 bgcolor="#FFE7D0" width=606 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIDIAL SCRIPT</div></font></TD></TR></TABLE>
</span>
@@ -5688,7 +5776,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
<!-- BEGIN ********* Here is the main VICIDIAL display panel -->
<span style="position:absolute;left:0px;top:46px;z-index:10;" id="MainPanel">
<TABLE border=0 BGCOLOR="#E0C2D6" width=640 id="MainTable">
<TABLE border=0 BGCOLOR="#E0C2D6" width=760 id="MainTable">
<TR><TD colspan=3><font class="body_text"> STATUS: <span id="MainStatuSSpan"></span></font></TD></TR>
<tr><td colspan=3><span id="busycallsdebug"></span></td></tr>
<tr><td width=150 align=left valign=top>
@@ -5725,7 +5813,7 @@ RECORD ID: <font class="body_small"><span id="RecorDID"></span></font><BR>
</center>
</font>
</td>
<td width=480 align=left valign=top>
<td width=600 align=left valign=top>
<input type=hidden name=lead_id value="">
<input type=hidden name=list_id value="">
<input type=hidden name=called_count value="">
@@ -62,6 +62,8 @@
# 60619-1158 - Added variable filters to close security holes for login form
# 60809-1544 - Added direct transfers to leave-3ways in consultative transfers
# 61004-1526 - Added parsing of volume control command and lookup or number
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61201-1115 - Added user to MonitorConf for recording_log
#
require("dbconnect.php");
@@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";}
if (!isset($format)) {$format="alert";}
if (!isset($ext_priority)) {$ext_priority="1";}
$version = '0.0.26';
$build = '61004-1526';
$version = '2.0.27';
$build = '61130-1617';
$StarTtime = date("U");
$NOW_DATE = date("Y-m-d");
$NOW_TIME = date("Y-m-d H:i:s");
@@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
if ($ACTION=="Monitor")
{
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
@@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
+163 -75
View File
@@ -130,6 +130,8 @@
# 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions
# 61122-1523 - Added more SCRIPT variables
# 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT
#
require("dbconnect.php");
@@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
$forever_stop=0;
$version = '2.0.103';
$build = '61128-2229';
$version = '2.0.105';
$build = '61221-1212';
if ($force_logout)
{
@@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
document.getElementById("RecorDControl").innerHTML = conf_rec_start_html;
}
}
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1";
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1";
xmlhttp.open('POST', 'manager_send.php');
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
xmlhttp.send(confmonitor_query);
@@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// decode the scripttext and scriptname so that it can be didsplayed
function URLDecode(encodedvar,scriptformat)
{
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
var RGnl = new RegExp("\n","g");
var RGplus = new RegExp(" ","g");
var RGiframe = new RegExp("iframe","gi");
if (scriptformat == 'YES')
{
var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value;
var SCsource_id = "";
var SClist_id = document.vicidial_form.list_id.value;
var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value;
var SCcalled_since_last_reset = "";
var SCphone_code = document.vicidial_form.phone_code.value;
var SCphone_number = document.vicidial_form.phone_number.value;
var SCtitle = document.vicidial_form.title.value;
var SCfirst_name = document.vicidial_form.first_name.value;
var SCmiddle_initial = document.vicidial_form.middle_initial.value;
var SClast_name = document.vicidial_form.last_name.value;
var SCaddress1 = document.vicidial_form.address1.value;
var SCaddress2 = document.vicidial_form.address2.value;
var SCaddress3 = document.vicidial_form.address3.value;
var SCcity = document.vicidial_form.city.value;
var SCstate = document.vicidial_form.state.value;
var SCprovince = document.vicidial_form.province.value;
var SCpostal_code = document.vicidial_form.postal_code.value;
var SCcountry_code = document.vicidial_form.country_code.value;
var SCgender = document.vicidial_form.gender.value;
var SCdate_of_birth = document.vicidial_form.date_of_birth.value;
var SCalt_phone = document.vicidial_form.alt_phone.value;
var SCemail = document.vicidial_form.email.value;
var SCsecurity_phrase = document.vicidial_form.security_phrase.value;
var SCcomments = document.vicidial_form.comments.value;
var SCfullname = LOGfullname;
var SCfronter = fronter;
var SCuser = user;
var SClead_id = document.vicidial_form.lead_id.value;
var SCcampaign = campaign;
var SCphone_login = phone_login;
var SCgroup = group;
var SCchannel_group = group;
var SCSQLdate = SQLdate;
var SCepoch = UnixTime;
var SCuniqueid = document.vicidial_form.uniqueid.value;
var SCcustomer_zap_channel = lastcustchannel;
var SCserver_ip = server_ip;
var SCSIPexten = extension;
var SCsession_id = session_id;
if (encoded.match(RGiframe))
{
SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+');
SCsource_id = SCsource_id.replace(RGplus,'+');
SClist_id = SClist_id.replace(RGplus,'+');
SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+');
SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+');
SCphone_code = SCphone_code.replace(RGplus,'+');
SCphone_number = SCphone_number.replace(RGplus,'+');
SCtitle = SCtitle.replace(RGplus,'+');
SCfirst_name = SCfirst_name.replace(RGplus,'+');
SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+');
SClast_name = SClast_name.replace(RGplus,'+');
SCaddress1 = SCaddress1.replace(RGplus,'+');
SCaddress2 = SCaddress2.replace(RGplus,'+');
SCaddress3 = SCaddress3.replace(RGplus,'+');
SCcity = SCcity.replace(RGplus,'+');
SCstate = SCstate.replace(RGplus,'+');
SCprovince = SCprovince.replace(RGplus,'+');
SCpostal_code = SCpostal_code.replace(RGplus,'+');
SCcountry_code = SCcountry_code.replace(RGplus,'+');
SCgender = SCgender.replace(RGplus,'+');
SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+');
SCalt_phone = SCalt_phone.replace(RGplus,'+');
SCemail = SCemail.replace(RGplus,'+');
SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+');
SCcomments = SCcomments.replace(RGplus,'+');
SCfullname = SCfullname.replace(RGplus,'+');
SCfronter = SCfronter.replace(RGplus,'+');
SCuser = SCuser.replace(RGplus,'+');
SClead_id = SClead_id.replace(RGplus,'+');
SCcampaign = SCcampaign.replace(RGplus,'+');
SCphone_login = SCphone_login.replace(RGplus,'+');
SCgroup = SCgroup.replace(RGplus,'+');
SCchannel_group = SCchannel_group.replace(RGplus,'+');
SCSQLdate = SCSQLdate.replace(RGplus,'+');
SCuniqueid = SCuniqueid.replace(RGplus,'+');
SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+');
SCserver_ip = SCserver_ip.replace(RGplus,'+');
SCSIPexten = SCSIPexten.replace(RGplus,'+');
}
var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g");
var RGsource_id = new RegExp("--A--source_id--B--","g");
var RGlist_id = new RegExp("--A--list_id--B--","g");
@@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var RGserver_ip = new RegExp("--A--server_ip--B--","g");
var RGSIPexten = new RegExp("--A--SIPexten--B--","g");
var RGsession_id = new RegExp("--A--session_id--B--","g");
var RGnl = new RegExp("\n","g");
encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value);
encoded = encoded.replace(RGsource_id, "");
encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value);
encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value);
encoded = encoded.replace(RGcalled_since_last_reset, "");
encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value);
encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value);
encoded = encoded.replace(RGtitle, document.vicidial_form.title.value);
encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value);
encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value);
encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value);
encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value);
encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value);
encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value);
encoded = encoded.replace(RGcity, document.vicidial_form.city.value);
encoded = encoded.replace(RGstate, document.vicidial_form.state.value);
encoded = encoded.replace(RGprovince, document.vicidial_form.province.value);
encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value);
encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value);
encoded = encoded.replace(RGgender, document.vicidial_form.gender.value);
encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value);
encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value);
encoded = encoded.replace(RGemail, document.vicidial_form.email.value);
encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value);
encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value);
encoded = encoded.replace(RGfullname, LOGfullname);
encoded = encoded.replace(RGfronter, fronter);
encoded = encoded.replace(RGuser, user);
encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value);
encoded = encoded.replace(RGcampaign, campaign);
encoded = encoded.replace(RGphone_login, phone_login);
encoded = encoded.replace(RGgroup, group);
encoded = encoded.replace(RGchannel_group, group);
encoded = encoded.replace(RGSQLdate, SQLdate);
encoded = encoded.replace(RGepoch, UnixTime);
encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value);
encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel);
encoded = encoded.replace(RGserver_ip, server_ip);
encoded = encoded.replace(RGSIPexten, extension);
encoded = encoded.replace(RGsession_id, session_id);
encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code);
encoded = encoded.replace(RGsource_id, SCsource_id);
encoded = encoded.replace(RGlist_id, SClist_id);
encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now);
encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset);
encoded = encoded.replace(RGphone_code, SCphone_code);
encoded = encoded.replace(RGphone_number, SCphone_number);
encoded = encoded.replace(RGtitle, SCtitle);
encoded = encoded.replace(RGfirst_name, SCfirst_name);
encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial);
encoded = encoded.replace(RGlast_name, SClast_name);
encoded = encoded.replace(RGaddress1, SCaddress1);
encoded = encoded.replace(RGaddress2, SCaddress2);
encoded = encoded.replace(RGaddress3, SCaddress3);
encoded = encoded.replace(RGcity, SCcity);
encoded = encoded.replace(RGstate, SCstate);
encoded = encoded.replace(RGprovince, SCprovince);
encoded = encoded.replace(RGpostal_code, SCpostal_code);
encoded = encoded.replace(RGcountry_code, SCcountry_code);
encoded = encoded.replace(RGgender, SCgender);
encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth);
encoded = encoded.replace(RGalt_phone, SCalt_phone);
encoded = encoded.replace(RGemail, SCemail);
encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase);
encoded = encoded.replace(RGcomments, SCcomments);
encoded = encoded.replace(RGfullname, SCfullname);
encoded = encoded.replace(RGfronter, SCfronter);
encoded = encoded.replace(RGuser, SCuser);
encoded = encoded.replace(RGlead_id, SClead_id);
encoded = encoded.replace(RGcampaign, SCcampaign);
encoded = encoded.replace(RGphone_login, SCphone_login);
encoded = encoded.replace(RGgroup, SCgroup);
encoded = encoded.replace(RGchannel_group, SCchannel_group);
encoded = encoded.replace(RGSQLdate, SCSQLdate);
encoded = encoded.replace(RGepoch, SCepoch);
encoded = encoded.replace(RGuniqueid, SCuniqueid);
encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel);
encoded = encoded.replace(RGserver_ip, SCserver_ip);
encoded = encoded.replace(RGSIPexten, SCSIPexten);
encoded = encoded.replace(RGsession_id, SCsession_id);
}
while (i < encoded.length) {
var ch = encoded.charAt(i);
@@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
div.scroll_callback {height: 300px; width: 620px; overflow: scroll;}
div.scroll_park {height: 400px; width: 620px; overflow: scroll;}
div.scroll_list {height: 400px; width: 140px; overflow: scroll;}
div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
.body_text {font-size: 13px; font-family: sans-serif;}
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
@@ -5377,7 +5465,7 @@ echo "</head>\n";
<BODY onload="begin_all_refresh();">
<FORM name=vicidial_form>
<span style="position:absolute;left:0px;top:0px;z-index:2;" id="Header">
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=640 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=760 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TR VALIGN=TOP ALIGN=LEFT><TD COLSPAN=3 VALIGN=TOP ALIGN=LEFT>
<INPUT TYPE=HIDDEN NAME=extension>
<font class="body_text">
@@ -5387,11 +5475,11 @@ echo "</head>\n";
</SPAN>
<span style="position:absolute;left:0px;top:13px;z-index:1;" id="Tabs">
<table border=0 bgcolor="#FFFFFF" width=640 height=30>
<table border=0 bgcolor="#FFFFFF" width=760 height=30>
<TR VALIGN=TOP ALIGN=LEFT>
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICIDISCAR" WIDTH=115 HEIGHT=30 Border=0></A></TD>
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 Border=0></A></TD>
<TD WIDTH=309 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp;ID da sessão: <span id=sessionIDspan></span></TD>
<TD WIDTH=431 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp;ID da sessão: <span id=sessionIDspan></span></TD>
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF_ptbr.gif" NAME=livecall ALT="Chamadas Ativas" WIDTH=109 HEIGHT=30 Border=0></TD>
</TR></TABLE>
</span>
@@ -5399,7 +5487,7 @@ echo "</head>\n";
<span style="position:absolute;left:0px;top:0px;z-index:3;" id="Bem vindoBoxA">
<table border=0 bgcolor="#FFFFFF" width=650 height=500><TR><TD align=center><BR><span id="Bem vindoBoxAt">VICIDISCAR</span></TD></TR></TABLE>
<table border=0 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="Bem vindoBoxAt">VICIDISCAR</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:300px;top:365px;z-index:13;" id="ManuaLDiaLButtons"><font class="body_text">
@@ -5411,7 +5499,7 @@ echo "</head>\n";
</font></span>
<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> AGENDAMENTOS POR AGENTE <? echo $VD_login ?>:<BR>Clique em um dos contatos abaixo para ligar. Se você clicar em um contatos abaixo o mesmo será removido da lista de Agendamentos.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> AGENDAMENTOS POR AGENTE <? echo $VD_login ?>:<BR>Clique em um dos contatos abaixo para ligar. Se você clicar em um contatos abaixo o mesmo será removido da lista de Agendamentos.
<BR>
<div class="scroll_callback" id="CallBacKsLisT"></div>
<BR> &nbsp;
@@ -5422,7 +5510,7 @@ echo "</head>\n";
</span>
<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> NOVA DISCAGEM MANUAL PARA <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Digite abaixo a informação do novo contato que você deseja ligar.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> NOVA DISCAGEM MANUAL PARA <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Digite abaixo a informação do novo contato que você deseja ligar.
<BR>
<?
if (eregi("X",dial_prefix))
@@ -5456,18 +5544,18 @@ echo "</head>\n";
<span style="position:absolute;left:250px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
<span style="position:absolute;left:5px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
</font></span>
<span style="position:absolute;left:5px;top:350px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
<span style="position:absolute;left:35px;top:350px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusCalls"></span>
</font></span>
<span style="position:absolute;left:5px;top:310px;z-index:21;" id="TransferMain">
<table bgcolor="#CCCCFF" width=630><tr>
<table bgcolor="#CCCCFF" width=750><tr>
<td align=left>
<font class="body_text">
<IMG SRC="../agc/images/vdc_XB_header_ptbr.gif" border=0 alt="Transferir a conferência"><BR>
@@ -5499,7 +5587,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<span style="position:absolute;left:5px;top:310px;z-index:22;" id="HotKeyActionBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD height=70><font class="sh_text"> Status da ligação definida como: </font><BR><BR><CENTER>
<font class="sd_text"><span id="HotKeyDispo"> - </span></font></CENTER>
</TD>
@@ -5507,7 +5595,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<span style="position:absolute;left:5px;top:310px;z-index:23;" id="HotKeyEntriesBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD width=200><font class="sh_text"> Atalhos para os status: </font></td><td colspan=2>
<font class="body_small">Quanto ativo apenas pressione a tecla do teclado referente ao status desejado. A ligação será desligada e salva com o status definido automaticamemente:</font></td></tr><tr>
<TD width=200><font class="sk_text">
@@ -5523,7 +5611,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<span style="position:absolute;left:5px;top:310px;z-index:24;" id="CBcommentsBox">
<table border=0 bgcolor="#FFFFCC" width=620 height=70>
<table border=0 bgcolor="#FFFFCC" width=740 height=70>
<TR bgcolor="#FFFF66">
<TD align=left><font class="sh_text"> Informação Precedente Da Rechamada: </font></td>
<TD align=right><font class="sk_text"> <a href="#" onclick="CBcommentsBoxhide();return false;">close</a> </font></td>
@@ -5540,7 +5628,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</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> Não existe ninguem na sua sessão: <span id="NoneInSessionID"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=720 height=500><TR><TD align=center> Não existe ninguem na sua sessão: <span id="NoneInSessionID"></span><BR>
<a href="#" onclick="NoneInSessionOK();return false;">Voltar</a>
<BR><BR>
<a href="#" onclick="NoneInSessionCalL();return false;">Ligar novamente para o agente</a>
@@ -5548,7 +5636,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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> O cliente desligou: <span id="CustomerGoneChanneL"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=770 height=500><TR><TD align=center> O cliente desligou: <span id="CustomerGoneChanneL"></span><BR>
<a href="#" onclick="CustomerGoneOK();return false;">Voltar</a>
<BR><BR>
<a href="#" onclick="CustomerGoneHangup();return false;">Finalize e coloque o status da ligação</a>
@@ -5557,7 +5645,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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> Chamada Wrapup: <span id="WrapupTimer"></span> segundos restantes no wrapup<BR><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=550><TR><TD align=center> Chamada Wrapup: <span id="WrapupTimer"></span> segundos restantes no wrapup<BR><BR>
<span id="WrapupMessage"><?=$wrapup_message ?></span>
<BR><BR>
<a href="#" onclick="WrapupFinish();return false;">Revestimento Wrapup e movimento sobre</a>
@@ -5566,7 +5654,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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">SAIR</span></TD></TR></TABLE>
<table border=1 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="LogouTBoxLink">SAIR</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:0px;top:70px;z-index:29;" id="DispoButtonHideA">
@@ -5578,11 +5666,11 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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>Qualquer alteração feita nesta página não será salva. Você deve mudar as informações do cliente antes de desligar a ligação. </TD></TR></TABLE>
<table border=0 bgcolor="#CCFFCC" width=770 height=47><TR><TD align=center VALIGN=top>Qualquer alteração feita nesta página não será salva. Você deve mudar as informações do cliente antes de desligar a ligação. </TD></TR></TABLE>
</span>
<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> SELEÇÃO DE STATUS :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Desligue novamente</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">minimizar</a></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> SELEÇÃO DE STATUS :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Desligue novamente</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">minimizar</a></span><BR>
<span id="DispoSelectContent"> Fim da seleção de status </span>
<input type=hidden name=DispoSelection><BR>
<input type=checkbox name=DispoSelectStop size=1 value="0"> PAUSAR DISCAGEM DO AGENTE <BR>
@@ -5596,7 +5684,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
<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> Selecione uma data para o retorno :<span id="CallBackDatE"></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> Selecione uma data para o retorno :<span id="CallBackDatE"></span><BR>
<input type=hidden name=CallBackDatESelectioN>
<input type=hidden name=CallBackTimESelectioN>
<span id="CallBackDatEPrinT">Selecione uma data abaixo</span> &nbsp;
@@ -5639,7 +5727,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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> SELECAO DO GRUPO DE ENTRADA DO CLOSER <BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> SELECAO DO GRUPO DE ENTRADA DO CLOSER <BR>
<span id="CloserSelectContent"> Seleção do grupo de entrada do closer </span>
<input type=hidden name=CloserSelectList><BR>
<input type=checkbox name=CloserSelectBlended size=1 value="0"> LIGACAO MISTURADA(ligações externas ativadas) <BR>
@@ -5662,7 +5750,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
<span style="position:absolute;left:80px;top:12px;z-index:42;" id="MainXfeRBox">
<input type=hidden name=H_XfeR_channel>
<input type=hidden name=M_XfeR_channel>
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> TRANSFERIR CHAMADAS ATIVAS</b> <BR>Canal a ser transferido: <span id="MainXfeRChanneL">Canal</span><BR></tr>
<table border=0 bgcolor="#FFFFCC" width=720 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> TRANSFERIR CHAMADAS ATIVAS</b> <BR>Canal a ser transferido: <span id="MainXfeRChanneL">Canal</span><BR></tr>
<tr><td>Extensões:<BR><span id="MainXfeRContent"> Extensões do Menu </span></td>
<td>
<BR>
@@ -5678,7 +5766,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
<span style="position:absolute;left:154px;top:65px;z-index:15;" id="ScriptPanel">
<table border=0 bgcolor="#FFE7D0" width=486 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIDISCAR SCRIPT</div></font></TD></TR></TABLE>
<table border=0 bgcolor="#FFE7D0" width=606 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIDISCAR SCRIPT</div></font></TD></TR></TABLE>
</span>
@@ -5688,7 +5776,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
<!-- BEGIN ********* Here is the main VICIDISCAR display panel -->
<span style="position:absolute;left:0px;top:46px;z-index:10;" id="MainPanel">
<TABLE border=0 BGCOLOR="#E0C2D6" width=640 id="MainTable">
<TABLE border=0 BGCOLOR="#E0C2D6" width=760 id="MainTable">
<TR><TD colspan=3><font class="body_text"> STATUS: <span id="MainStatuSSpan"></span></font></TD></TR>
<tr><td colspan=3><span id="busycallsdebug"></span></td></tr>
<tr><td width=150 align=left valign=top>
@@ -5725,7 +5813,7 @@ ID da gravação: <font class="body_small"><span id="RecorDID"></span></font><BR
</center>
</font>
</td>
<td width=480 align=left valign=top>
<td width=600 align=left valign=top>
<input type=hidden name=lead_id value="">
<input type=hidden name=list_id value="">
<input type=hidden name=called_count value="">
@@ -62,6 +62,8 @@
# 60619-1158 - Added variable filters to close security holes for login form
# 60809-1544 - Added direct transfers to leave-3ways in consultative transfers
# 61004-1526 - Added parsing of volume control command and lookup or number
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61201-1115 - Added user to MonitorConf for recording_log
#
require("dbconnect.php");
@@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";}
if (!isset($format)) {$format="alert";}
if (!isset($ext_priority)) {$ext_priority="1";}
$version = '0.0.26';
$build = '61004-1526';
$version = '2.0.27';
$build = '61130-1617';
$StarTtime = date("U");
$NOW_DATE = date("Y-m-d");
$NOW_TIME = date("Y-m-d H:i:s");
@@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
if ($ACTION=="Monitor")
{
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
@@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
+163 -75
View File
@@ -130,6 +130,8 @@
# 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions
# 61122-1523 - Added more SCRIPT variables
# 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT
#
require("dbconnect.php");
@@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
$forever_stop=0;
$version = '2.0.103';
$build = '61128-2229';
$version = '2.0.105';
$build = '61221-1212';
if ($force_logout)
{
@@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
document.getElementById("RecorDControl").innerHTML = conf_rec_start_html;
}
}
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1";
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1";
xmlhttp.open('POST', 'manager_send.php');
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
xmlhttp.send(confmonitor_query);
@@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// decode the scripttext and scriptname so that it can be didsplayed
function URLDecode(encodedvar,scriptformat)
{
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
var RGnl = new RegExp("\n","g");
var RGplus = new RegExp(" ","g");
var RGiframe = new RegExp("iframe","gi");
if (scriptformat == 'YES')
{
var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value;
var SCsource_id = "";
var SClist_id = document.vicidial_form.list_id.value;
var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value;
var SCcalled_since_last_reset = "";
var SCphone_code = document.vicidial_form.phone_code.value;
var SCphone_number = document.vicidial_form.phone_number.value;
var SCtitle = document.vicidial_form.title.value;
var SCfirst_name = document.vicidial_form.first_name.value;
var SCmiddle_initial = document.vicidial_form.middle_initial.value;
var SClast_name = document.vicidial_form.last_name.value;
var SCaddress1 = document.vicidial_form.address1.value;
var SCaddress2 = document.vicidial_form.address2.value;
var SCaddress3 = document.vicidial_form.address3.value;
var SCcity = document.vicidial_form.city.value;
var SCstate = document.vicidial_form.state.value;
var SCprovince = document.vicidial_form.province.value;
var SCpostal_code = document.vicidial_form.postal_code.value;
var SCcountry_code = document.vicidial_form.country_code.value;
var SCgender = document.vicidial_form.gender.value;
var SCdate_of_birth = document.vicidial_form.date_of_birth.value;
var SCalt_phone = document.vicidial_form.alt_phone.value;
var SCemail = document.vicidial_form.email.value;
var SCsecurity_phrase = document.vicidial_form.security_phrase.value;
var SCcomments = document.vicidial_form.comments.value;
var SCfullname = LOGfullname;
var SCfronter = fronter;
var SCuser = user;
var SClead_id = document.vicidial_form.lead_id.value;
var SCcampaign = campaign;
var SCphone_login = phone_login;
var SCgroup = group;
var SCchannel_group = group;
var SCSQLdate = SQLdate;
var SCepoch = UnixTime;
var SCuniqueid = document.vicidial_form.uniqueid.value;
var SCcustomer_zap_channel = lastcustchannel;
var SCserver_ip = server_ip;
var SCSIPexten = extension;
var SCsession_id = session_id;
if (encoded.match(RGiframe))
{
SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+');
SCsource_id = SCsource_id.replace(RGplus,'+');
SClist_id = SClist_id.replace(RGplus,'+');
SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+');
SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+');
SCphone_code = SCphone_code.replace(RGplus,'+');
SCphone_number = SCphone_number.replace(RGplus,'+');
SCtitle = SCtitle.replace(RGplus,'+');
SCfirst_name = SCfirst_name.replace(RGplus,'+');
SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+');
SClast_name = SClast_name.replace(RGplus,'+');
SCaddress1 = SCaddress1.replace(RGplus,'+');
SCaddress2 = SCaddress2.replace(RGplus,'+');
SCaddress3 = SCaddress3.replace(RGplus,'+');
SCcity = SCcity.replace(RGplus,'+');
SCstate = SCstate.replace(RGplus,'+');
SCprovince = SCprovince.replace(RGplus,'+');
SCpostal_code = SCpostal_code.replace(RGplus,'+');
SCcountry_code = SCcountry_code.replace(RGplus,'+');
SCgender = SCgender.replace(RGplus,'+');
SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+');
SCalt_phone = SCalt_phone.replace(RGplus,'+');
SCemail = SCemail.replace(RGplus,'+');
SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+');
SCcomments = SCcomments.replace(RGplus,'+');
SCfullname = SCfullname.replace(RGplus,'+');
SCfronter = SCfronter.replace(RGplus,'+');
SCuser = SCuser.replace(RGplus,'+');
SClead_id = SClead_id.replace(RGplus,'+');
SCcampaign = SCcampaign.replace(RGplus,'+');
SCphone_login = SCphone_login.replace(RGplus,'+');
SCgroup = SCgroup.replace(RGplus,'+');
SCchannel_group = SCchannel_group.replace(RGplus,'+');
SCSQLdate = SCSQLdate.replace(RGplus,'+');
SCuniqueid = SCuniqueid.replace(RGplus,'+');
SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+');
SCserver_ip = SCserver_ip.replace(RGplus,'+');
SCSIPexten = SCSIPexten.replace(RGplus,'+');
}
var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g");
var RGsource_id = new RegExp("--A--source_id--B--","g");
var RGlist_id = new RegExp("--A--list_id--B--","g");
@@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var RGserver_ip = new RegExp("--A--server_ip--B--","g");
var RGSIPexten = new RegExp("--A--SIPexten--B--","g");
var RGsession_id = new RegExp("--A--session_id--B--","g");
var RGnl = new RegExp("\n","g");
encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value);
encoded = encoded.replace(RGsource_id, "");
encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value);
encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value);
encoded = encoded.replace(RGcalled_since_last_reset, "");
encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value);
encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value);
encoded = encoded.replace(RGtitle, document.vicidial_form.title.value);
encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value);
encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value);
encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value);
encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value);
encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value);
encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value);
encoded = encoded.replace(RGcity, document.vicidial_form.city.value);
encoded = encoded.replace(RGstate, document.vicidial_form.state.value);
encoded = encoded.replace(RGprovince, document.vicidial_form.province.value);
encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value);
encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value);
encoded = encoded.replace(RGgender, document.vicidial_form.gender.value);
encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value);
encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value);
encoded = encoded.replace(RGemail, document.vicidial_form.email.value);
encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value);
encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value);
encoded = encoded.replace(RGfullname, LOGfullname);
encoded = encoded.replace(RGfronter, fronter);
encoded = encoded.replace(RGuser, user);
encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value);
encoded = encoded.replace(RGcampaign, campaign);
encoded = encoded.replace(RGphone_login, phone_login);
encoded = encoded.replace(RGgroup, group);
encoded = encoded.replace(RGchannel_group, group);
encoded = encoded.replace(RGSQLdate, SQLdate);
encoded = encoded.replace(RGepoch, UnixTime);
encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value);
encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel);
encoded = encoded.replace(RGserver_ip, server_ip);
encoded = encoded.replace(RGSIPexten, extension);
encoded = encoded.replace(RGsession_id, session_id);
encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code);
encoded = encoded.replace(RGsource_id, SCsource_id);
encoded = encoded.replace(RGlist_id, SClist_id);
encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now);
encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset);
encoded = encoded.replace(RGphone_code, SCphone_code);
encoded = encoded.replace(RGphone_number, SCphone_number);
encoded = encoded.replace(RGtitle, SCtitle);
encoded = encoded.replace(RGfirst_name, SCfirst_name);
encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial);
encoded = encoded.replace(RGlast_name, SClast_name);
encoded = encoded.replace(RGaddress1, SCaddress1);
encoded = encoded.replace(RGaddress2, SCaddress2);
encoded = encoded.replace(RGaddress3, SCaddress3);
encoded = encoded.replace(RGcity, SCcity);
encoded = encoded.replace(RGstate, SCstate);
encoded = encoded.replace(RGprovince, SCprovince);
encoded = encoded.replace(RGpostal_code, SCpostal_code);
encoded = encoded.replace(RGcountry_code, SCcountry_code);
encoded = encoded.replace(RGgender, SCgender);
encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth);
encoded = encoded.replace(RGalt_phone, SCalt_phone);
encoded = encoded.replace(RGemail, SCemail);
encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase);
encoded = encoded.replace(RGcomments, SCcomments);
encoded = encoded.replace(RGfullname, SCfullname);
encoded = encoded.replace(RGfronter, SCfronter);
encoded = encoded.replace(RGuser, SCuser);
encoded = encoded.replace(RGlead_id, SClead_id);
encoded = encoded.replace(RGcampaign, SCcampaign);
encoded = encoded.replace(RGphone_login, SCphone_login);
encoded = encoded.replace(RGgroup, SCgroup);
encoded = encoded.replace(RGchannel_group, SCchannel_group);
encoded = encoded.replace(RGSQLdate, SCSQLdate);
encoded = encoded.replace(RGepoch, SCepoch);
encoded = encoded.replace(RGuniqueid, SCuniqueid);
encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel);
encoded = encoded.replace(RGserver_ip, SCserver_ip);
encoded = encoded.replace(RGSIPexten, SCSIPexten);
encoded = encoded.replace(RGsession_id, SCsession_id);
}
while (i < encoded.length) {
var ch = encoded.charAt(i);
@@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
div.scroll_callback {height: 300px; width: 620px; overflow: scroll;}
div.scroll_park {height: 400px; width: 620px; overflow: scroll;}
div.scroll_list {height: 400px; width: 140px; overflow: scroll;}
div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
.body_text {font-size: 13px; font-family: sans-serif;}
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
@@ -5377,7 +5465,7 @@ echo "</head>\n";
<BODY onload="begin_all_refresh();">
<FORM name=vicidial_form>
<span style="position:absolute;left:0px;top:0px;z-index:2;" id="Header">
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=640 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=760 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TR VALIGN=TOP ALIGN=LEFT><TD COLSPAN=3 VALIGN=TOP ALIGN=LEFT>
<INPUT TYPE=HIDDEN NAME=extension>
<font class="body_text">
@@ -5387,11 +5475,11 @@ echo "</head>\n";
</SPAN>
<span style="position:absolute;left:0px;top:13px;z-index:1;" id="Tabs">
<table border=0 bgcolor="#FFFFFF" width=640 height=30>
<table border=0 bgcolor="#FFFFFF" width=760 height=30>
<TR VALIGN=TOP ALIGN=LEFT>
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICIWÄHLEN" WIDTH=115 HEIGHT=30 Border=0></A></TD>
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 Border=0></A></TD>
<TD WIDTH=309 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; SESSION ID: <span id=sessionIDspan></span></TD>
<TD WIDTH=431 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; SESSION ID: <span id=sessionIDspan></span></TD>
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF.gif" NAME=livecall ALT="Live Anruf" WIDTH=109 HEIGHT=30 Border=0></TD>
</TR></TABLE>
</span>
@@ -5399,7 +5487,7 @@ echo "</head>\n";
<span style="position:absolute;left:0px;top:0px;z-index:3;" id="WillkommenBoxA">
<table border=0 bgcolor="#FFFFFF" width=650 height=500><TR><TD align=center><BR><span id="WillkommenBoxAt">VICIWÄHLEN</span></TD></TR></TABLE>
<table border=0 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="WillkommenBoxAt">VICIWÄHLEN</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:300px;top:365px;z-index:13;" id="ManuaLDiaLButtons"><font class="body_text">
@@ -5411,7 +5499,7 @@ echo "</head>\n";
</font></span>
<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> RÜCKRUFE FÜR AGENT <? echo $VD_login ?>:<BR>Klicken Sie jetzt unten auf einen Rückruf, um den Kunden zurückzurufen. Danach wird der Rückruf aus der Liste gelöscht..
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> RÜCKRUFE FÜR AGENT <? echo $VD_login ?>:<BR>Klicken Sie jetzt unten auf einen Rückruf, um den Kunden zurückzurufen. Danach wird der Rückruf aus der Liste gelöscht..
<BR>
<div class="scroll_callback" id="CallBacKsLisT"></div>
<BR> &nbsp;
@@ -5422,7 +5510,7 @@ echo "</head>\n";
</span>
<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> NEUE MANUELLE WÄHLADRESSE FÜR <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>TRAGEN SIE UNTEN DIE INFORMATIONEN ZU DER NEUEN ADRESSE EIN, DIE SIE WÄHLEN MÖCHTEN.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> NEUE MANUELLE WÄHLADRESSE FÜR <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>TRAGEN SIE UNTEN DIE INFORMATIONEN ZU DER NEUEN ADRESSE EIN, DIE SIE WÄHLEN MÖCHTEN.
<BR>
<?
if (eregi("X",dial_prefix))
@@ -5456,18 +5544,18 @@ echo "</head>\n";
<span style="position:absolute;left:250px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
<span style="position:absolute;left:5px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
</font></span>
<span style="position:absolute;left:5px;top:350px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
<span style="position:absolute;left:35px;top:350px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusCalls"></span>
</font></span>
<span style="position:absolute;left:5px;top:310px;z-index:21;" id="TransferMain">
<table bgcolor="#CCCCFF" width=630><tr>
<table bgcolor="#CCCCFF" width=750><tr>
<td align=left>
<font class="body_text">
<IMG SRC="../agc/images/vdc_XB_header.gif" border=0 alt="Transfer - Konferenz"><BR>
@@ -5499,7 +5587,7 @@ Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<span style="position:absolute;left:5px;top:310px;z-index:22;" id="HotKeyActionBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD height=70><font class="sh_text"> Anrufergebnis: </font><BR><BR><CENTER>
<font class="sd_text"><span id="HotKeyDispo"> - </span></font></CENTER>
</TD>
@@ -5507,7 +5595,7 @@ Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<span style="position:absolute;left:5px;top:310px;z-index:23;" id="HotKeyEntriesBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD width=200><font class="sh_text"> Einteilung der Tastaturkürzel: </font></td><td colspan=2>
<font class="body_small">Wenn aktiviert, drücken sie einfach die entsprechende Taste, um das Anrufergebnis zu speichern. Der Anruf wird dann automatisch aufgehängt.:</font></td></tr><tr>
<TD width=200><font class="sk_text">
@@ -5523,7 +5611,7 @@ Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<span style="position:absolute;left:5px;top:310px;z-index:24;" id="CBcommentsBox">
<table border=0 bgcolor="#FFFFCC" width=620 height=70>
<table border=0 bgcolor="#FFFFCC" width=740 height=70>
<TR bgcolor="#FFFF66">
<TD align=left><font class="sh_text"> Vorhergehende Rückrufinformationen: </font></td>
<TD align=right><font class="sk_text"> <a href="#" onclick="CBcommentsBoxhide();return false;">close</a> </font></td>
@@ -5540,7 +5628,7 @@ Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</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> Niemand ist in ihrer Leitung. Wählen sie sich in ihre Konferenz ein!: <span id="NoneInSessionID"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=720 height=500><TR><TD align=center> Niemand ist in ihrer Leitung. Wählen sie sich in ihre Konferenz ein!: <span id="NoneInSessionID"></span><BR>
<a href="#" onclick="NoneInSessionOK();return false;">Zurück</a>
<BR><BR>
<a href="#" onclick="NoneInSessionCalL();return false;">Agent wieder anrufen</a>
@@ -5548,7 +5636,7 @@ Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<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> Kunde hat aufgelegt: <span id="CustomerGoneChanneL"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=770 height=500><TR><TD align=center> Kunde hat aufgelegt: <span id="CustomerGoneChanneL"></span><BR>
<a href="#" onclick="CustomerGoneOK();return false;">Zurück</a>
<BR><BR>
<a href="#" onclick="CustomerGoneHangup();return false;">Ende und Abschluss für Anruf</a>
@@ -5557,7 +5645,7 @@ Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<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> Anruf Nachbereitung <span id="WrapupTimer"></span> Verbleibende Sekunden der Nachbereitung<BR><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=550><TR><TD align=center> Anruf Nachbereitung <span id="WrapupTimer"></span> Verbleibende Sekunden der Nachbereitung<BR><BR>
<span id="WrapupMessage"><?=$wrapup_message ?></span>
<BR><BR>
<a href="#" onclick="WrapupFinish();return false;">Beende Nachbereitung und mache weiter</a>
@@ -5566,7 +5654,7 @@ Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<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>
<table border=1 bgcolor="#FFFFFF" width=770 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:29;" id="DispoButtonHideA">
@@ -5578,11 +5666,11 @@ Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<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>Die Änderungen an den Kundendaten wurden nicht übernommen. Sie müssen die Kundendaten ändern bevor Sie aufgelegt haben.. </TD></TR></TABLE>
<table border=0 bgcolor="#CCFFCC" width=770 height=47><TR><TD align=center VALIGN=top>Die Änderungen an den Kundendaten wurden nicht übernommen. Sie müssen die Kundendaten ändern bevor Sie aufgelegt haben.. </TD></TR></TABLE>
</span>
<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> ABSCHLUSS ANRUF :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Wieder Auflegen</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">minimieren</a></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> ABSCHLUSS ANRUF :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Wieder Auflegen</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">minimieren</a></span><BR>
<span id="DispoSelectContent"> Ende-von-Call Gesprächsergebnis auswählen </span>
<input type=hidden name=DispoSelection><BR>
<input type=checkbox name=DispoSelectStop size=1 value="0"> WÄHLPAUSE <BR>
@@ -5596,7 +5684,7 @@ Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
<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> Wählen Sie ein Rückrufadatum :<span id="CallBackDatE"></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> Wählen Sie ein Rückrufadatum :<span id="CallBackDatE"></span><BR>
<input type=hidden name=CallBackDatESelectioN>
<input type=hidden name=CallBackTimESelectioN>
<span id="CallBackDatEPrinT">Wählen Sie unten ein Datum</span> &nbsp;
@@ -5639,7 +5727,7 @@ Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<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> GENAUERE INBOUND GRUPPENWAHL <BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> GENAUERE INBOUND GRUPPENWAHL <BR>
<span id="CloserSelectContent"> Genauere Inbound Gruppenwahl </span>
<input type=hidden name=CloserSelectList><BR>
<input type=checkbox name=CloserSelectBlended size=1 value="0"> GEMISCHTES ANRUFEN(Outbound aktiviert) <BR>
@@ -5662,7 +5750,7 @@ Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
<span style="position:absolute;left:80px;top:12px;z-index:42;" id="MainXfeRBox">
<input type=hidden name=H_XfeR_channel>
<input type=hidden name=M_XfeR_channel>
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> LIVE ANRUF WEITERLEITEN</b> <BR>Leitung, die übergeben werden soll: <span id="MainXfeRChanneL">Kanal</span><BR></tr>
<table border=0 bgcolor="#FFFFCC" width=720 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> LIVE ANRUF WEITERLEITEN</b> <BR>Leitung, die übergeben werden soll: <span id="MainXfeRChanneL">Kanal</span><BR></tr>
<tr><td>Erweiterungen:<BR><span id="MainXfeRContent"> Erweiterungen Menü </span></td>
<td>
<BR>
@@ -5678,7 +5766,7 @@ Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
<span style="position:absolute;left:154px;top:65px;z-index:15;" id="ScriptPanel">
<table border=0 bgcolor="#FFE7D0" width=486 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIWÄHLEN SCRIPT</div></font></TD></TR></TABLE>
<table border=0 bgcolor="#FFE7D0" width=606 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIWÄHLEN SCRIPT</div></font></TD></TR></TABLE>
</span>
@@ -5688,7 +5776,7 @@ Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
<!-- BEGIN ********* Here is the main VICIWÄHLEN display panel -->
<span style="position:absolute;left:0px;top:46px;z-index:10;" id="MainPanel">
<TABLE border=0 BGCOLOR="#E0C2D6" width=640 id="MainTable">
<TABLE border=0 BGCOLOR="#E0C2D6" width=760 id="MainTable">
<TR><TD colspan=3><font class="body_text"> STATUS: <span id="MainStatuSSpan"></span></font></TD></TR>
<tr><td colspan=3><span id="busycallsdebug"></span></td></tr>
<tr><td width=150 align=left valign=top>
@@ -5725,7 +5813,7 @@ Aufzeichnugs ID: <font class="body_small"><span id="RecorDID"></span></font><BR>
</center>
</font>
</td>
<td width=480 align=left valign=top>
<td width=600 align=left valign=top>
<input type=hidden name=lead_id value="">
<input type=hidden name=list_id value="">
<input type=hidden name=called_count value="">
+161 -74
View File
@@ -131,6 +131,7 @@
# 61122-1523 - Added more SCRIPT variables
# 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT
#
require("dbconnect.php");
@@ -176,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
$forever_stop=0;
$version = '2.0.104';
$build = '61130-1617';
$version = '2.0.105';
$build = '61221-1212';
if ($force_logout)
{
@@ -4568,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// decode the scripttext and scriptname so that it can be didsplayed
function URLDecode(encodedvar,scriptformat)
{
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
var RGnl = new RegExp("\n","g");
var RGplus = new RegExp(" ","g");
var RGiframe = new RegExp("iframe","gi");
if (scriptformat == 'YES')
{
var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value;
var SCsource_id = "";
var SClist_id = document.vicidial_form.list_id.value;
var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value;
var SCcalled_since_last_reset = "";
var SCphone_code = document.vicidial_form.phone_code.value;
var SCphone_number = document.vicidial_form.phone_number.value;
var SCtitle = document.vicidial_form.title.value;
var SCfirst_name = document.vicidial_form.first_name.value;
var SCmiddle_initial = document.vicidial_form.middle_initial.value;
var SClast_name = document.vicidial_form.last_name.value;
var SCaddress1 = document.vicidial_form.address1.value;
var SCaddress2 = document.vicidial_form.address2.value;
var SCaddress3 = document.vicidial_form.address3.value;
var SCcity = document.vicidial_form.city.value;
var SCstate = document.vicidial_form.state.value;
var SCprovince = document.vicidial_form.province.value;
var SCpostal_code = document.vicidial_form.postal_code.value;
var SCcountry_code = document.vicidial_form.country_code.value;
var SCgender = document.vicidial_form.gender.value;
var SCdate_of_birth = document.vicidial_form.date_of_birth.value;
var SCalt_phone = document.vicidial_form.alt_phone.value;
var SCemail = document.vicidial_form.email.value;
var SCsecurity_phrase = document.vicidial_form.security_phrase.value;
var SCcomments = document.vicidial_form.comments.value;
var SCfullname = LOGfullname;
var SCfronter = fronter;
var SCuser = user;
var SClead_id = document.vicidial_form.lead_id.value;
var SCcampaign = campaign;
var SCphone_login = phone_login;
var SCgroup = group;
var SCchannel_group = group;
var SCSQLdate = SQLdate;
var SCepoch = UnixTime;
var SCuniqueid = document.vicidial_form.uniqueid.value;
var SCcustomer_zap_channel = lastcustchannel;
var SCserver_ip = server_ip;
var SCSIPexten = extension;
var SCsession_id = session_id;
if (encoded.match(RGiframe))
{
SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+');
SCsource_id = SCsource_id.replace(RGplus,'+');
SClist_id = SClist_id.replace(RGplus,'+');
SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+');
SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+');
SCphone_code = SCphone_code.replace(RGplus,'+');
SCphone_number = SCphone_number.replace(RGplus,'+');
SCtitle = SCtitle.replace(RGplus,'+');
SCfirst_name = SCfirst_name.replace(RGplus,'+');
SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+');
SClast_name = SClast_name.replace(RGplus,'+');
SCaddress1 = SCaddress1.replace(RGplus,'+');
SCaddress2 = SCaddress2.replace(RGplus,'+');
SCaddress3 = SCaddress3.replace(RGplus,'+');
SCcity = SCcity.replace(RGplus,'+');
SCstate = SCstate.replace(RGplus,'+');
SCprovince = SCprovince.replace(RGplus,'+');
SCpostal_code = SCpostal_code.replace(RGplus,'+');
SCcountry_code = SCcountry_code.replace(RGplus,'+');
SCgender = SCgender.replace(RGplus,'+');
SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+');
SCalt_phone = SCalt_phone.replace(RGplus,'+');
SCemail = SCemail.replace(RGplus,'+');
SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+');
SCcomments = SCcomments.replace(RGplus,'+');
SCfullname = SCfullname.replace(RGplus,'+');
SCfronter = SCfronter.replace(RGplus,'+');
SCuser = SCuser.replace(RGplus,'+');
SClead_id = SClead_id.replace(RGplus,'+');
SCcampaign = SCcampaign.replace(RGplus,'+');
SCphone_login = SCphone_login.replace(RGplus,'+');
SCgroup = SCgroup.replace(RGplus,'+');
SCchannel_group = SCchannel_group.replace(RGplus,'+');
SCSQLdate = SCSQLdate.replace(RGplus,'+');
SCuniqueid = SCuniqueid.replace(RGplus,'+');
SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+');
SCserver_ip = SCserver_ip.replace(RGplus,'+');
SCSIPexten = SCSIPexten.replace(RGplus,'+');
}
var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g");
var RGsource_id = new RegExp("--A--source_id--B--","g");
var RGlist_id = new RegExp("--A--list_id--B--","g");
@@ -4616,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var RGserver_ip = new RegExp("--A--server_ip--B--","g");
var RGSIPexten = new RegExp("--A--SIPexten--B--","g");
var RGsession_id = new RegExp("--A--session_id--B--","g");
var RGnl = new RegExp("\n","g");
encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value);
encoded = encoded.replace(RGsource_id, "");
encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value);
encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value);
encoded = encoded.replace(RGcalled_since_last_reset, "");
encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value);
encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value);
encoded = encoded.replace(RGtitle, document.vicidial_form.title.value);
encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value);
encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value);
encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value);
encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value);
encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value);
encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value);
encoded = encoded.replace(RGcity, document.vicidial_form.city.value);
encoded = encoded.replace(RGstate, document.vicidial_form.state.value);
encoded = encoded.replace(RGprovince, document.vicidial_form.province.value);
encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value);
encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value);
encoded = encoded.replace(RGgender, document.vicidial_form.gender.value);
encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value);
encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value);
encoded = encoded.replace(RGemail, document.vicidial_form.email.value);
encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value);
encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value);
encoded = encoded.replace(RGfullname, LOGfullname);
encoded = encoded.replace(RGfronter, fronter);
encoded = encoded.replace(RGuser, user);
encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value);
encoded = encoded.replace(RGcampaign, campaign);
encoded = encoded.replace(RGphone_login, phone_login);
encoded = encoded.replace(RGgroup, group);
encoded = encoded.replace(RGchannel_group, group);
encoded = encoded.replace(RGSQLdate, SQLdate);
encoded = encoded.replace(RGepoch, UnixTime);
encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value);
encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel);
encoded = encoded.replace(RGserver_ip, server_ip);
encoded = encoded.replace(RGSIPexten, extension);
encoded = encoded.replace(RGsession_id, session_id);
encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code);
encoded = encoded.replace(RGsource_id, SCsource_id);
encoded = encoded.replace(RGlist_id, SClist_id);
encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now);
encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset);
encoded = encoded.replace(RGphone_code, SCphone_code);
encoded = encoded.replace(RGphone_number, SCphone_number);
encoded = encoded.replace(RGtitle, SCtitle);
encoded = encoded.replace(RGfirst_name, SCfirst_name);
encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial);
encoded = encoded.replace(RGlast_name, SClast_name);
encoded = encoded.replace(RGaddress1, SCaddress1);
encoded = encoded.replace(RGaddress2, SCaddress2);
encoded = encoded.replace(RGaddress3, SCaddress3);
encoded = encoded.replace(RGcity, SCcity);
encoded = encoded.replace(RGstate, SCstate);
encoded = encoded.replace(RGprovince, SCprovince);
encoded = encoded.replace(RGpostal_code, SCpostal_code);
encoded = encoded.replace(RGcountry_code, SCcountry_code);
encoded = encoded.replace(RGgender, SCgender);
encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth);
encoded = encoded.replace(RGalt_phone, SCalt_phone);
encoded = encoded.replace(RGemail, SCemail);
encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase);
encoded = encoded.replace(RGcomments, SCcomments);
encoded = encoded.replace(RGfullname, SCfullname);
encoded = encoded.replace(RGfronter, SCfronter);
encoded = encoded.replace(RGuser, SCuser);
encoded = encoded.replace(RGlead_id, SClead_id);
encoded = encoded.replace(RGcampaign, SCcampaign);
encoded = encoded.replace(RGphone_login, SCphone_login);
encoded = encoded.replace(RGgroup, SCgroup);
encoded = encoded.replace(RGchannel_group, SCchannel_group);
encoded = encoded.replace(RGSQLdate, SCSQLdate);
encoded = encoded.replace(RGepoch, SCepoch);
encoded = encoded.replace(RGuniqueid, SCuniqueid);
encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel);
encoded = encoded.replace(RGserver_ip, SCserver_ip);
encoded = encoded.replace(RGSIPexten, SCSIPexten);
encoded = encoded.replace(RGsession_id, SCsession_id);
}
while (i < encoded.length) {
var ch = encoded.charAt(i);
@@ -5351,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
div.scroll_callback {height: 300px; width: 620px; overflow: scroll;}
div.scroll_park {height: 400px; width: 620px; overflow: scroll;}
div.scroll_list {height: 400px; width: 140px; overflow: scroll;}
div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
.body_text {font-size: 13px; font-family: sans-serif;}
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
@@ -5378,7 +5465,7 @@ echo "</head>\n";
<BODY onload="begin_all_refresh();">
<FORM name=vicidial_form>
<span style="position:absolute;left:0px;top:0px;z-index:2;" id="Header">
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=640 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=760 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TR VALIGN=TOP ALIGN=LEFT><TD COLSPAN=3 VALIGN=TOP ALIGN=LEFT>
<INPUT TYPE=HIDDEN NAME=extension>
<font class="body_text">
@@ -5388,11 +5475,11 @@ echo "</head>\n";
</SPAN>
<span style="position:absolute;left:0px;top:13px;z-index:1;" id="Tabs">
<table border=0 bgcolor="#FFFFFF" width=640 height=30>
<table border=0 bgcolor="#FFFFFF" width=760 height=30>
<TR VALIGN=TOP ALIGN=LEFT>
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICIΚΛΗΣΗ" WIDTH=115 HEIGHT=30 Border=0></A></TD>
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 Border=0></A></TD>
<TD WIDTH=309 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; ID εργασίας: <span id=sessionIDspan></span></TD>
<TD WIDTH=431 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; ID εργασίας: <span id=sessionIDspan></span></TD>
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF_el.gif" NAME=livecall ALT="Ενεργή κλήση" WIDTH=109 HEIGHT=30 Border=0></TD>
</TR></TABLE>
</span>
@@ -5400,7 +5487,7 @@ echo "</head>\n";
<span style="position:absolute;left:0px;top:0px;z-index:3;" id="ΧρήστηςBoxA">
<table border=0 bgcolor="#FFFFFF" width=650 height=500><TR><TD align=center><BR><span id="ΧρήστηςBoxAt">VICIΚΛΗΣΗ</span></TD></TR></TABLE>
<table border=0 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="ΧρήστηςBoxAt">VICIΚΛΗΣΗ</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:300px;top:365px;z-index:13;" id="ManuaLDiaLButtons"><font class="body_text">
@@ -5412,7 +5499,7 @@ echo "</head>\n";
</font></span>
<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> ΕΠΑΝΑΚΛΗΣΕΙΣ ΓΙΑ ΤΟΝ ΧΕΙΡΙΣΤΗ <? echo $VD_login ?>:<BR>Επιλέξτε μία επανάκληση παρακάτω για να καλέσετε τον πελάτη τώρα. Εάν επιλέξετε μία εγγραφή παρακάτω, θα διαγραφεί από την λίστα.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> ΕΠΑΝΑΚΛΗΣΕΙΣ ΓΙΑ ΤΟΝ ΧΕΙΡΙΣΤΗ <? echo $VD_login ?>:<BR>Επιλέξτε μία επανάκληση παρακάτω για να καλέσετε τον πελάτη τώρα. Εάν επιλέξετε μία εγγραφή παρακάτω, θα διαγραφεί από την λίστα.
<BR>
<div class="scroll_callback" id="CallBacKsLisT"></div>
<BR> &nbsp;
@@ -5423,7 +5510,7 @@ echo "</head>\n";
</span>
<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> ΝΕΑ ΧΕΙΡΟΚΙΝΗΤΗ ΚΛΗΣΗ ΟΔΗΓΟΥ ΓΙΑ <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Καταχωρήστε τις πληροφορίες παρακάτω για τον νέο οδηγό που επιθυμήτε να καλέσετε.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> ΝΕΑ ΧΕΙΡΟΚΙΝΗΤΗ ΚΛΗΣΗ ΟΔΗΓΟΥ ΓΙΑ <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Καταχωρήστε τις πληροφορίες παρακάτω για τον νέο οδηγό που επιθυμήτε να καλέσετε.
<BR>
<?
if (eregi("X",dial_prefix))
@@ -5457,18 +5544,18 @@ echo "</head>\n";
<span style="position:absolute;left:250px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
<span style="position:absolute;left:5px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
</font></span>
<span style="position:absolute;left:5px;top:350px;z-index:20;" id="AgentΚατάστασηSpan"><font class="body_text">
<span style="position:absolute;left:35px;top:350px;z-index:20;" id="AgentΚατάστασηSpan"><font class="body_text">
Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></span> <BR>Calls Dialing: <span id="AgentΚατάστασηCalls"></span>
</font></span>
<span style="position:absolute;left:5px;top:310px;z-index:21;" id="TransferMain">
<table bgcolor="#CCCCFF" width=630><tr>
<table bgcolor="#CCCCFF" width=750><tr>
<td align=left>
<font class="body_text">
<IMG SRC="../agc/images/vdc_XB_header_el.gif" border=0 alt="Μεταφορά - διάσκεψη"><BR>
@@ -5500,7 +5587,7 @@ Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></
</span>
<span style="position:absolute;left:5px;top:310px;z-index:22;" id="HotKeyActionBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD height=70><font class="sh_text"> Τερματισμό Καθοδήγησης όπως: </font><BR><BR><CENTER>
<font class="sd_text"><span id="HotKeyDispo"> - </span></font></CENTER>
</TD>
@@ -5508,7 +5595,7 @@ Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></
</span>
<span style="position:absolute;left:5px;top:310px;z-index:23;" id="HotKeyEntriesBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD width=200><font class="sh_text"> Πλήκτρα κλειδιά Τερματισμού: </font></td><td colspan=2>
<font class="body_small">Όταν είναι ενεργό, πιέστε απλά το πλήκτρο κλειδί για τον επιθυμητό τερματισμό της κλήσης. Η κλήση θα τρεματίσει αυτόματα:</font></td></tr><tr>
<TD width=200><font class="sk_text">
@@ -5524,7 +5611,7 @@ Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></
</span>
<span style="position:absolute;left:5px;top:310px;z-index:24;" id="CBcommentsBox">
<table border=0 bgcolor="#FFFFCC" width=620 height=70>
<table border=0 bgcolor="#FFFFCC" width=740 height=70>
<TR bgcolor="#FFFF66">
<TD align=left><font class="sh_text"> Προηγούμενες πληροφορίες επανάκλησης: </font></td>
<TD align=right><font class="sk_text"> <a href="#" onclick="CBcommentsBoxhide();return false;">close</a> </font></td>
@@ -5541,7 +5628,7 @@ Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></
</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> Κανένας δεν είναι στη σύνοδό σας: <span id="NoneInSessionID"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=720 height=500><TR><TD align=center> Κανένας δεν είναι στη σύνοδό σας: <span id="NoneInSessionID"></span><BR>
<a href="#" onclick="NoneInSessionOK();return false;">Επιστροφή</a>
<BR><BR>
<a href="#" onclick="NoneInSessionCalL();return false;">Ξανακάλεσε τον Χειριστή</a>
@@ -5549,7 +5636,7 @@ Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></
</span>
<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> Ο πελάτης έχει κλείσει το τηλέφωνο: <span id="CustomerGoneChanneL"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=770 height=500><TR><TD align=center> Ο πελάτης έχει κλείσει το τηλέφωνο: <span id="CustomerGoneChanneL"></span><BR>
<a href="#" onclick="CustomerGoneOK();return false;">Επιστροφή</a>
<BR><BR>
<a href="#" onclick="CustomerGoneHangup();return false;">Τελείωσε και Τερμάτισε την Κλήση</a>
@@ -5558,7 +5645,7 @@ Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></
</span>
<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> Αναδίπλωση Κλήσης: <span id="WrapupTimer"></span> απομύνοντα δευτερόλεπτα σε αναδίπλωση<BR><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=550><TR><TD align=center> Αναδίπλωση Κλήσης: <span id="WrapupTimer"></span> απομύνοντα δευτερόλεπτα σε αναδίπλωση<BR><BR>
<span id="WrapupMessage"><?=$wrapup_message ?></span>
<BR><BR>
<a href="#" onclick="WrapupFinish();return false;">Τελείωμα Αναδίπλωσης και Συνέχεια</a>
@@ -5567,7 +5654,7 @@ Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></
</span>
<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">ΑΠΟΣΥΝΔΕΣΗ</span></TD></TR></TABLE>
<table border=1 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="LogouTBoxLink">ΑΠΟΣΥΝΔΕΣΗ</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:0px;top:70px;z-index:29;" id="DispoButtonHideA">
@@ -5579,11 +5666,11 @@ Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></
</span>
<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>Οποιεσδήποτε αλλαγές που γίνονται στις πληροφορίες πελατών κατωτέρω αυτή τη στιγμή δεν θα είναι, πρέπει να αλλάξετε τις πληροφορίες πελατών ενώπιον σας Hangup η κλήση. </TD></TR></TABLE>
<table border=0 bgcolor="#CCFFCC" width=770 height=47><TR><TD align=center VALIGN=top>Οποιεσδήποτε αλλαγές που γίνονται στις πληροφορίες πελατών κατωτέρω αυτή τη στιγμή δεν θα είναι, πρέπει να αλλάξετε τις πληροφορίες πελατών ενώπιον σας Hangup η κλήση. </TD></TR></TABLE>
</span>
<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> Τερματισμός Κλήσης :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Ξανακλήσε</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">ελαχιστοποιήστε</a></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> Τερματισμός Κλήσης :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Ξανακλήσε</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">ελαχιστοποιήστε</a></span><BR>
<span id="DispoSelectContent"> Επιλογή τερματισμού της κλήσης </span>
<input type=hidden name=DispoSelection><BR>
<input type=checkbox name=DispoSelectStop size=1 value="0"> ΤΕΡΜΑΤΙΣΜΟΣ ΚΛΗΣΗΣ <BR>
@@ -5597,7 +5684,7 @@ Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></
<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> Επιλέξτε μια ημερομηνία CallBack :<span id="CallBackDatE"></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> Επιλέξτε μια ημερομηνία CallBack :<span id="CallBackDatE"></span><BR>
<input type=hidden name=CallBackDatESelectioN>
<input type=hidden name=CallBackTimESelectioN>
<span id="CallBackDatEPrinT">Επιλέξτε μια ημερομηνία κατωτέρω</span> &nbsp;
@@ -5640,7 +5727,7 @@ Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></
</span>
<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 ΕΙΣΕΡΧΟΜΕΝΗ ΕΠΙΛΟΓΗ ΟΜΑΔΑΣ <BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> CLOSER ΕΙΣΕΡΧΟΜΕΝΗ ΕΠΙΛΟΓΗ ΟΜΑΔΑΣ <BR>
<span id="CloserSelectContent"> Επιλογή Closer εισερχόμενης ομάδας </span>
<input type=hidden name=CloserSelectList><BR>
<input type=checkbox name=CloserSelectBlended size=1 value="0"> ΣΥΝΔΥΑΣΜΕΝΗ ΚΛΗΣΗ(εξερχόμενες ενεργοποιημένες) <BR>
@@ -5663,7 +5750,7 @@ Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></
<span style="position:absolute;left:80px;top:12px;z-index:42;" id="MainXfeRBox">
<input type=hidden name=H_XfeR_channel>
<input type=hidden name=M_XfeR_channel>
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> ΜΕΤΑΦΟΡΑ ΕΝΕΡΓΗΣ ΚΛΗΣΗΣ</b> <BR>Κανάλι προς μεταφορά: <span id="MainXfeRChanneL">Κανάλι</span><BR></tr>
<table border=0 bgcolor="#FFFFCC" width=720 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> ΜΕΤΑΦΟΡΑ ΕΝΕΡΓΗΣ ΚΛΗΣΗΣ</b> <BR>Κανάλι προς μεταφορά: <span id="MainXfeRChanneL">Κανάλι</span><BR></tr>
<tr><td>Τηλ.συνδέσεις:<BR><span id="MainXfeRContent"> Επιλογές τηλ. συνδέσεων </span></td>
<td>
<BR>
@@ -5679,7 +5766,7 @@ Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></
<span style="position:absolute;left:154px;top:65px;z-index:15;" id="ScriptPanel">
<table border=0 bgcolor="#FFE7D0" width=486 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIΚΛΗΣΗ SCRIPT</div></font></TD></TR></TABLE>
<table border=0 bgcolor="#FFE7D0" width=606 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIΚΛΗΣΗ SCRIPT</div></font></TD></TR></TABLE>
</span>
@@ -5689,7 +5776,7 @@ Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></
<!-- BEGIN ********* Here is the main VICIΚΛΗΣΗ display panel -->
<span style="position:absolute;left:0px;top:46px;z-index:10;" id="MainPanel">
<TABLE border=0 BGCOLOR="#E0C2D6" width=640 id="MainTable">
<TABLE border=0 BGCOLOR="#E0C2D6" width=760 id="MainTable">
<TR><TD colspan=3><font class="body_text"> ΚΑΤΑΣΤΑΣΗ: <span id="MainStatuSSpan"></span></font></TD></TR>
<tr><td colspan=3><span id="busycallsdebug"></span></td></tr>
<tr><td width=150 align=left valign=top>
@@ -5726,7 +5813,7 @@ if ( ($alt_phone_dialing) and ($auto_dial_level==0) )
</center>
</font>
</td>
<td width=480 align=left valign=top>
<td width=600 align=left valign=top>
<input type=hidden name=lead_id value="">
<input type=hidden name=list_id value="">
<input type=hidden name=called_count value="">
@@ -62,6 +62,8 @@
# 60619-1158 - Added variable filters to close security holes for login form
# 60809-1544 - Added direct transfers to leave-3ways in consultative transfers
# 61004-1526 - Added parsing of volume control command and lookup or number
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61201-1115 - Added user to MonitorConf for recording_log
#
require("dbconnect.php");
@@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";}
if (!isset($format)) {$format="alert";}
if (!isset($ext_priority)) {$ext_priority="1";}
$version = '0.0.26';
$build = '61004-1526';
$version = '2.0.27';
$build = '61130-1617';
$StarTtime = date("U");
$NOW_DATE = date("Y-m-d");
$NOW_TIME = date("Y-m-d H:i:s");
@@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
if ($ACTION=="Monitor")
{
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
@@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
+163 -75
View File
@@ -130,6 +130,8 @@
# 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions
# 61122-1523 - Added more SCRIPT variables
# 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT
#
require("dbconnect.php");
@@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
$forever_stop=0;
$version = '2.0.103';
$build = '61128-2229';
$version = '2.0.105';
$build = '61221-1212';
if ($force_logout)
{
@@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
document.getElementById("RecorDControl").innerHTML = conf_rec_start_html;
}
}
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1";
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1";
xmlhttp.open('POST', 'manager_send.php');
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
xmlhttp.send(confmonitor_query);
@@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// decode the scripttext and scriptname so that it can be didsplayed
function URLDecode(encodedvar,scriptformat)
{
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
var RGnl = new RegExp("\n","g");
var RGplus = new RegExp(" ","g");
var RGiframe = new RegExp("iframe","gi");
if (scriptformat == 'YES')
{
var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value;
var SCsource_id = "";
var SClist_id = document.vicidial_form.list_id.value;
var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value;
var SCcalled_since_last_reset = "";
var SCphone_code = document.vicidial_form.phone_code.value;
var SCphone_number = document.vicidial_form.phone_number.value;
var SCtitle = document.vicidial_form.title.value;
var SCfirst_name = document.vicidial_form.first_name.value;
var SCmiddle_initial = document.vicidial_form.middle_initial.value;
var SClast_name = document.vicidial_form.last_name.value;
var SCaddress1 = document.vicidial_form.address1.value;
var SCaddress2 = document.vicidial_form.address2.value;
var SCaddress3 = document.vicidial_form.address3.value;
var SCcity = document.vicidial_form.city.value;
var SCstate = document.vicidial_form.state.value;
var SCprovince = document.vicidial_form.province.value;
var SCpostal_code = document.vicidial_form.postal_code.value;
var SCcountry_code = document.vicidial_form.country_code.value;
var SCgender = document.vicidial_form.gender.value;
var SCdate_of_birth = document.vicidial_form.date_of_birth.value;
var SCalt_phone = document.vicidial_form.alt_phone.value;
var SCemail = document.vicidial_form.email.value;
var SCsecurity_phrase = document.vicidial_form.security_phrase.value;
var SCcomments = document.vicidial_form.comments.value;
var SCfullname = LOGfullname;
var SCfronter = fronter;
var SCuser = user;
var SClead_id = document.vicidial_form.lead_id.value;
var SCcampaign = campaign;
var SCphone_login = phone_login;
var SCgroup = group;
var SCchannel_group = group;
var SCSQLdate = SQLdate;
var SCepoch = UnixTime;
var SCuniqueid = document.vicidial_form.uniqueid.value;
var SCcustomer_zap_channel = lastcustchannel;
var SCserver_ip = server_ip;
var SCSIPexten = extension;
var SCsession_id = session_id;
if (encoded.match(RGiframe))
{
SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+');
SCsource_id = SCsource_id.replace(RGplus,'+');
SClist_id = SClist_id.replace(RGplus,'+');
SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+');
SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+');
SCphone_code = SCphone_code.replace(RGplus,'+');
SCphone_number = SCphone_number.replace(RGplus,'+');
SCtitle = SCtitle.replace(RGplus,'+');
SCfirst_name = SCfirst_name.replace(RGplus,'+');
SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+');
SClast_name = SClast_name.replace(RGplus,'+');
SCaddress1 = SCaddress1.replace(RGplus,'+');
SCaddress2 = SCaddress2.replace(RGplus,'+');
SCaddress3 = SCaddress3.replace(RGplus,'+');
SCcity = SCcity.replace(RGplus,'+');
SCstate = SCstate.replace(RGplus,'+');
SCprovince = SCprovince.replace(RGplus,'+');
SCpostal_code = SCpostal_code.replace(RGplus,'+');
SCcountry_code = SCcountry_code.replace(RGplus,'+');
SCgender = SCgender.replace(RGplus,'+');
SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+');
SCalt_phone = SCalt_phone.replace(RGplus,'+');
SCemail = SCemail.replace(RGplus,'+');
SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+');
SCcomments = SCcomments.replace(RGplus,'+');
SCfullname = SCfullname.replace(RGplus,'+');
SCfronter = SCfronter.replace(RGplus,'+');
SCuser = SCuser.replace(RGplus,'+');
SClead_id = SClead_id.replace(RGplus,'+');
SCcampaign = SCcampaign.replace(RGplus,'+');
SCphone_login = SCphone_login.replace(RGplus,'+');
SCgroup = SCgroup.replace(RGplus,'+');
SCchannel_group = SCchannel_group.replace(RGplus,'+');
SCSQLdate = SCSQLdate.replace(RGplus,'+');
SCuniqueid = SCuniqueid.replace(RGplus,'+');
SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+');
SCserver_ip = SCserver_ip.replace(RGplus,'+');
SCSIPexten = SCSIPexten.replace(RGplus,'+');
}
var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g");
var RGsource_id = new RegExp("--A--source_id--B--","g");
var RGlist_id = new RegExp("--A--list_id--B--","g");
@@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var RGserver_ip = new RegExp("--A--server_ip--B--","g");
var RGSIPexten = new RegExp("--A--SIPexten--B--","g");
var RGsession_id = new RegExp("--A--session_id--B--","g");
var RGnl = new RegExp("\n","g");
encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value);
encoded = encoded.replace(RGsource_id, "");
encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value);
encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value);
encoded = encoded.replace(RGcalled_since_last_reset, "");
encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value);
encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value);
encoded = encoded.replace(RGtitle, document.vicidial_form.title.value);
encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value);
encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value);
encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value);
encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value);
encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value);
encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value);
encoded = encoded.replace(RGcity, document.vicidial_form.city.value);
encoded = encoded.replace(RGstate, document.vicidial_form.state.value);
encoded = encoded.replace(RGprovince, document.vicidial_form.province.value);
encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value);
encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value);
encoded = encoded.replace(RGgender, document.vicidial_form.gender.value);
encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value);
encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value);
encoded = encoded.replace(RGemail, document.vicidial_form.email.value);
encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value);
encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value);
encoded = encoded.replace(RGfullname, LOGfullname);
encoded = encoded.replace(RGfronter, fronter);
encoded = encoded.replace(RGuser, user);
encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value);
encoded = encoded.replace(RGcampaign, campaign);
encoded = encoded.replace(RGphone_login, phone_login);
encoded = encoded.replace(RGgroup, group);
encoded = encoded.replace(RGchannel_group, group);
encoded = encoded.replace(RGSQLdate, SQLdate);
encoded = encoded.replace(RGepoch, UnixTime);
encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value);
encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel);
encoded = encoded.replace(RGserver_ip, server_ip);
encoded = encoded.replace(RGSIPexten, extension);
encoded = encoded.replace(RGsession_id, session_id);
encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code);
encoded = encoded.replace(RGsource_id, SCsource_id);
encoded = encoded.replace(RGlist_id, SClist_id);
encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now);
encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset);
encoded = encoded.replace(RGphone_code, SCphone_code);
encoded = encoded.replace(RGphone_number, SCphone_number);
encoded = encoded.replace(RGtitle, SCtitle);
encoded = encoded.replace(RGfirst_name, SCfirst_name);
encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial);
encoded = encoded.replace(RGlast_name, SClast_name);
encoded = encoded.replace(RGaddress1, SCaddress1);
encoded = encoded.replace(RGaddress2, SCaddress2);
encoded = encoded.replace(RGaddress3, SCaddress3);
encoded = encoded.replace(RGcity, SCcity);
encoded = encoded.replace(RGstate, SCstate);
encoded = encoded.replace(RGprovince, SCprovince);
encoded = encoded.replace(RGpostal_code, SCpostal_code);
encoded = encoded.replace(RGcountry_code, SCcountry_code);
encoded = encoded.replace(RGgender, SCgender);
encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth);
encoded = encoded.replace(RGalt_phone, SCalt_phone);
encoded = encoded.replace(RGemail, SCemail);
encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase);
encoded = encoded.replace(RGcomments, SCcomments);
encoded = encoded.replace(RGfullname, SCfullname);
encoded = encoded.replace(RGfronter, SCfronter);
encoded = encoded.replace(RGuser, SCuser);
encoded = encoded.replace(RGlead_id, SClead_id);
encoded = encoded.replace(RGcampaign, SCcampaign);
encoded = encoded.replace(RGphone_login, SCphone_login);
encoded = encoded.replace(RGgroup, SCgroup);
encoded = encoded.replace(RGchannel_group, SCchannel_group);
encoded = encoded.replace(RGSQLdate, SCSQLdate);
encoded = encoded.replace(RGepoch, SCepoch);
encoded = encoded.replace(RGuniqueid, SCuniqueid);
encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel);
encoded = encoded.replace(RGserver_ip, SCserver_ip);
encoded = encoded.replace(RGSIPexten, SCSIPexten);
encoded = encoded.replace(RGsession_id, SCsession_id);
}
while (i < encoded.length) {
var ch = encoded.charAt(i);
@@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
div.scroll_callback {height: 300px; width: 620px; overflow: scroll;}
div.scroll_park {height: 400px; width: 620px; overflow: scroll;}
div.scroll_list {height: 400px; width: 140px; overflow: scroll;}
div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
.body_text {font-size: 13px; font-family: sans-serif;}
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
@@ -5377,7 +5465,7 @@ echo "</head>\n";
<BODY onload="begin_all_refresh();">
<FORM name=vicidial_form>
<span style="position:absolute;left:0px;top:0px;z-index:2;" id="Header">
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=640 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=760 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TR VALIGN=TOP ALIGN=LEFT><TD COLSPAN=3 VALIGN=TOP ALIGN=LEFT>
<INPUT TYPE=HIDDEN NAME=extension>
<font class="body_text">
@@ -5387,11 +5475,11 @@ echo "</head>\n";
</SPAN>
<span style="position:absolute;left:0px;top:13px;z-index:1;" id="Tabs">
<table border=0 bgcolor="#FFFFFF" width=640 height=30>
<table border=0 bgcolor="#FFFFFF" width=760 height=30>
<TR VALIGN=TOP ALIGN=LEFT>
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICIDIAL" WIDTH=115 HEIGHT=30 BORDER=0></A></TD>
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 BORDER=0></A></TD>
<TD WIDTH=309 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; session ID: <span id=sessionIDspan></span></TD>
<TD WIDTH=431 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; session ID: <span id=sessionIDspan></span></TD>
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF.gif" NAME=livecall ALT="Live Call" WIDTH=109 HEIGHT=30 BORDER=0></TD>
</TR></TABLE>
</span>
@@ -5399,7 +5487,7 @@ echo "</head>\n";
<span style="position:absolute;left:0px;top:0px;z-index:3;" id="WelcomeBoxA">
<table border=0 bgcolor="#FFFFFF" width=650 height=500><TR><TD align=center><BR><span id="WelcomeBoxAt">VICIDIAL</span></TD></TR></TABLE>
<table border=0 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="WelcomeBoxAt">VICIDIAL</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:300px;top:365px;z-index:13;" id="ManuaLDiaLButtons"><font class="body_text">
@@ -5411,7 +5499,7 @@ echo "</head>\n";
</font></span>
<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.
<table border=1 bgcolor="#CCFFCC" width=770 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>
<BR> &nbsp;
@@ -5422,7 +5510,7 @@ echo "</head>\n";
</span>
<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.
<table border=1 bgcolor="#CCFFCC" width=770 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>
<?
if (eregi("X",dial_prefix))
@@ -5456,18 +5544,18 @@ echo "</head>\n";
<span style="position:absolute;left:250px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" BORDER=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" BORDER=0></span>
<span style="position:absolute;left:5px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" BORDER=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" BORDER=0></span>
</font></span>
<span style="position:absolute;left:5px;top:350px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
<span style="position:absolute;left:35px;top:350px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusCalls"></span>
</font></span>
<span style="position:absolute;left:5px;top:310px;z-index:21;" id="TransferMain">
<table bgcolor="#CCCCFF" width=630><tr>
<table bgcolor="#CCCCFF" width=750><tr>
<td align=left>
<font class="body_text">
<IMG SRC="../agc/images/vdc_XB_header.gif" border=0 alt="Transfer - Conference"><BR>
@@ -5499,7 +5587,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<span style="position:absolute;left:5px;top:310px;z-index:22;" id="HotKeyActionBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD height=70><font class="sh_text"> Lead Dispositioned As: </font><BR><BR><CENTER>
<font class="sd_text"><span id="HotKeyDispo"> - </span></font></CENTER>
</TD>
@@ -5507,7 +5595,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<span style="position:absolute;left:5px;top:310px;z-index:23;" id="HotKeyEntriesBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD width=200><font class="sh_text"> Disposition Hot Keys: </font></td><td colspan=2>
<font class="body_small">When active, simply press the keyboard key for the desired disposition for this call. The call will then be hungup and dispositioned automatically:</font></td></tr><tr>
<TD width=200><font class="sk_text">
@@ -5523,7 +5611,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<span style="position:absolute;left:5px;top:310px;z-index:24;" id="CBcommentsBox">
<table border=0 bgcolor="#FFFFCC" width=620 height=70>
<table border=0 bgcolor="#FFFFCC" width=740 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>
@@ -5540,7 +5628,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</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>
<table border=1 bgcolor="#CCFFFF" width=720 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>
<a href="#" onclick="NoneInSessionCalL();return false;">Call Agent Again</a>
@@ -5548,7 +5636,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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>
<table border=1 bgcolor="#CCFFFF" width=770 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>
<a href="#" onclick="CustomerGoneHangup();return false;">Finish and Disposition Call</a>
@@ -5557,7 +5645,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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>
<table border=1 bgcolor="#CCFFCC" width=770 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>
<a href="#" onclick="WrapupFinish();return false;">Finish Wrapup and Move On</a>
@@ -5566,7 +5654,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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>
<table border=1 bgcolor="#FFFFFF" width=770 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:29;" id="DispoButtonHideA">
@@ -5578,11 +5666,11 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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>
<table border=0 bgcolor="#CCFFCC" width=770 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:32;" id="DispoSelectBox">
<table border=1 bgcolor="#CCFFCC" width=650 height=460><TR><TD align=center VALIGN=top> DISPOSITION CALL :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Hangup Again</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">minimize</a></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> DISPOSITION CALL :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Hangup Again</a></span> &nbsp; &nbsp; &nbsp; <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>
<input type=checkbox name=DispoSelectStop size=1 value="0"> PAUSE AGENT DIALING <BR>
@@ -5596,7 +5684,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
<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>
<table border=1 bgcolor="#CCFFCC" width=770 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>
<span id="CallBackDatEPrinT">Select a Date Below</span> &nbsp;
@@ -5639,7 +5727,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
</span>
<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>
<table border=1 bgcolor="#CCFFCC" width=770 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>
<input type=checkbox name=CloserSelectBlended size=1 value="0"> BLENDED CALLING(outbound activated) <BR>
@@ -5662,7 +5750,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
<span style="position:absolute;left:80px;top:12px;z-index:42;" id="MainXfeRBox">
<input type=hidden name=H_XfeR_channel>
<input type=hidden name=M_XfeR_channel>
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> LIVE CALL TRANSFER</b> <BR>Channel to be transferred: <span id="MainXfeRChanneL">Channel</span><BR></tr>
<table border=0 bgcolor="#FFFFCC" width=720 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> LIVE CALL TRANSFER</b> <BR>Channel to be transferred: <span id="MainXfeRChanneL">Channel</span><BR></tr>
<tr><td>Extensions:<BR><span id="MainXfeRContent"> Extensions Menu </span></td>
<td>
<BR>
@@ -5678,7 +5766,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
<span style="position:absolute;left:154px;top:65px;z-index:15;" id="ScriptPanel">
<table border=0 bgcolor="#FFE7D0" width=486 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIDIAL SCRIPT</div></font></TD></TR></TABLE>
<table border=0 bgcolor="#FFE7D0" width=606 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIDIAL SCRIPT</div></font></TD></TR></TABLE>
</span>
@@ -5688,7 +5776,7 @@ Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="A
<!-- BEGIN ********* Here is the main VICIDIAL display panel -->
<span style="position:absolute;left:0px;top:46px;z-index:10;" id="MainPanel">
<TABLE border=0 BGCOLOR="#E0C2D6" width=640 id="MainTable">
<TABLE border=0 BGCOLOR="#E0C2D6" width=760 id="MainTable">
<TR><TD colspan=3><font class="body_text"> STATUS: <span id="MainStatuSSpan"></span></font></TD></TR>
<tr><td colspan=3><span id="busycallsdebug"></span></td></tr>
<tr><td width=150 align=left valign=top>
@@ -5725,7 +5813,7 @@ RECORD ID: <font class="body_small"><span id="RecorDID"></span></font><BR>
</center>
</font>
</td>
<td width=480 align=left valign=top>
<td width=600 align=left valign=top>
<input type=hidden name=lead_id value="">
<input type=hidden name=list_id value="">
<input type=hidden name=called_count value="">
@@ -62,6 +62,8 @@
# 60619-1158 - Added variable filters to close security holes for login form
# 60809-1544 - Added direct transfers to leave-3ways in consultative transfers
# 61004-1526 - Added parsing of volume control command and lookup or number
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61201-1115 - Added user to MonitorConf for recording_log
#
require("dbconnect.php");
@@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";}
if (!isset($format)) {$format="alert";}
if (!isset($ext_priority)) {$ext_priority="1";}
$version = '0.0.26';
$build = '61004-1526';
$version = '2.0.27';
$build = '61130-1617';
$StarTtime = date("U");
$NOW_DATE = date("Y-m-d");
$NOW_TIME = date("Y-m-d H:i:s");
@@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
if ($ACTION=="Monitor")
{
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
@@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
+163 -75
View File
@@ -130,6 +130,8 @@
# 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions
# 61122-1523 - Added more SCRIPT variables
# 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT
#
require("dbconnect.php");
@@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
$forever_stop=0;
$version = '2.0.103';
$build = '61128-2229';
$version = '2.0.105';
$build = '61221-1212';
if ($force_logout)
{
@@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
document.getElementById("RecorDControl").innerHTML = conf_rec_start_html;
}
}
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1";
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1";
xmlhttp.open('POST', 'manager_send.php');
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
xmlhttp.send(confmonitor_query);
@@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// decode the scripttext and scriptname so that it can be didsplayed
function URLDecode(encodedvar,scriptformat)
{
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
var RGnl = new RegExp("\n","g");
var RGplus = new RegExp(" ","g");
var RGiframe = new RegExp("iframe","gi");
if (scriptformat == 'YES')
{
var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value;
var SCsource_id = "";
var SClist_id = document.vicidial_form.list_id.value;
var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value;
var SCcalled_since_last_reset = "";
var SCphone_code = document.vicidial_form.phone_code.value;
var SCphone_number = document.vicidial_form.phone_number.value;
var SCtitle = document.vicidial_form.title.value;
var SCfirst_name = document.vicidial_form.first_name.value;
var SCmiddle_initial = document.vicidial_form.middle_initial.value;
var SClast_name = document.vicidial_form.last_name.value;
var SCaddress1 = document.vicidial_form.address1.value;
var SCaddress2 = document.vicidial_form.address2.value;
var SCaddress3 = document.vicidial_form.address3.value;
var SCcity = document.vicidial_form.city.value;
var SCstate = document.vicidial_form.state.value;
var SCprovince = document.vicidial_form.province.value;
var SCpostal_code = document.vicidial_form.postal_code.value;
var SCcountry_code = document.vicidial_form.country_code.value;
var SCgender = document.vicidial_form.gender.value;
var SCdate_of_birth = document.vicidial_form.date_of_birth.value;
var SCalt_phone = document.vicidial_form.alt_phone.value;
var SCemail = document.vicidial_form.email.value;
var SCsecurity_phrase = document.vicidial_form.security_phrase.value;
var SCcomments = document.vicidial_form.comments.value;
var SCfullname = LOGfullname;
var SCfronter = fronter;
var SCuser = user;
var SClead_id = document.vicidial_form.lead_id.value;
var SCcampaign = campaign;
var SCphone_login = phone_login;
var SCgroup = group;
var SCchannel_group = group;
var SCSQLdate = SQLdate;
var SCepoch = UnixTime;
var SCuniqueid = document.vicidial_form.uniqueid.value;
var SCcustomer_zap_channel = lastcustchannel;
var SCserver_ip = server_ip;
var SCSIPexten = extension;
var SCsession_id = session_id;
if (encoded.match(RGiframe))
{
SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+');
SCsource_id = SCsource_id.replace(RGplus,'+');
SClist_id = SClist_id.replace(RGplus,'+');
SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+');
SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+');
SCphone_code = SCphone_code.replace(RGplus,'+');
SCphone_number = SCphone_number.replace(RGplus,'+');
SCtitle = SCtitle.replace(RGplus,'+');
SCfirst_name = SCfirst_name.replace(RGplus,'+');
SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+');
SClast_name = SClast_name.replace(RGplus,'+');
SCaddress1 = SCaddress1.replace(RGplus,'+');
SCaddress2 = SCaddress2.replace(RGplus,'+');
SCaddress3 = SCaddress3.replace(RGplus,'+');
SCcity = SCcity.replace(RGplus,'+');
SCstate = SCstate.replace(RGplus,'+');
SCprovince = SCprovince.replace(RGplus,'+');
SCpostal_code = SCpostal_code.replace(RGplus,'+');
SCcountry_code = SCcountry_code.replace(RGplus,'+');
SCgender = SCgender.replace(RGplus,'+');
SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+');
SCalt_phone = SCalt_phone.replace(RGplus,'+');
SCemail = SCemail.replace(RGplus,'+');
SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+');
SCcomments = SCcomments.replace(RGplus,'+');
SCfullname = SCfullname.replace(RGplus,'+');
SCfronter = SCfronter.replace(RGplus,'+');
SCuser = SCuser.replace(RGplus,'+');
SClead_id = SClead_id.replace(RGplus,'+');
SCcampaign = SCcampaign.replace(RGplus,'+');
SCphone_login = SCphone_login.replace(RGplus,'+');
SCgroup = SCgroup.replace(RGplus,'+');
SCchannel_group = SCchannel_group.replace(RGplus,'+');
SCSQLdate = SCSQLdate.replace(RGplus,'+');
SCuniqueid = SCuniqueid.replace(RGplus,'+');
SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+');
SCserver_ip = SCserver_ip.replace(RGplus,'+');
SCSIPexten = SCSIPexten.replace(RGplus,'+');
}
var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g");
var RGsource_id = new RegExp("--A--source_id--B--","g");
var RGlist_id = new RegExp("--A--list_id--B--","g");
@@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var RGserver_ip = new RegExp("--A--server_ip--B--","g");
var RGSIPexten = new RegExp("--A--SIPexten--B--","g");
var RGsession_id = new RegExp("--A--session_id--B--","g");
var RGnl = new RegExp("\n","g");
encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value);
encoded = encoded.replace(RGsource_id, "");
encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value);
encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value);
encoded = encoded.replace(RGcalled_since_last_reset, "");
encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value);
encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value);
encoded = encoded.replace(RGtitle, document.vicidial_form.title.value);
encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value);
encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value);
encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value);
encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value);
encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value);
encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value);
encoded = encoded.replace(RGcity, document.vicidial_form.city.value);
encoded = encoded.replace(RGstate, document.vicidial_form.state.value);
encoded = encoded.replace(RGprovince, document.vicidial_form.province.value);
encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value);
encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value);
encoded = encoded.replace(RGgender, document.vicidial_form.gender.value);
encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value);
encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value);
encoded = encoded.replace(RGemail, document.vicidial_form.email.value);
encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value);
encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value);
encoded = encoded.replace(RGfullname, LOGfullname);
encoded = encoded.replace(RGfronter, fronter);
encoded = encoded.replace(RGuser, user);
encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value);
encoded = encoded.replace(RGcampaign, campaign);
encoded = encoded.replace(RGphone_login, phone_login);
encoded = encoded.replace(RGgroup, group);
encoded = encoded.replace(RGchannel_group, group);
encoded = encoded.replace(RGSQLdate, SQLdate);
encoded = encoded.replace(RGepoch, UnixTime);
encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value);
encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel);
encoded = encoded.replace(RGserver_ip, server_ip);
encoded = encoded.replace(RGSIPexten, extension);
encoded = encoded.replace(RGsession_id, session_id);
encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code);
encoded = encoded.replace(RGsource_id, SCsource_id);
encoded = encoded.replace(RGlist_id, SClist_id);
encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now);
encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset);
encoded = encoded.replace(RGphone_code, SCphone_code);
encoded = encoded.replace(RGphone_number, SCphone_number);
encoded = encoded.replace(RGtitle, SCtitle);
encoded = encoded.replace(RGfirst_name, SCfirst_name);
encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial);
encoded = encoded.replace(RGlast_name, SClast_name);
encoded = encoded.replace(RGaddress1, SCaddress1);
encoded = encoded.replace(RGaddress2, SCaddress2);
encoded = encoded.replace(RGaddress3, SCaddress3);
encoded = encoded.replace(RGcity, SCcity);
encoded = encoded.replace(RGstate, SCstate);
encoded = encoded.replace(RGprovince, SCprovince);
encoded = encoded.replace(RGpostal_code, SCpostal_code);
encoded = encoded.replace(RGcountry_code, SCcountry_code);
encoded = encoded.replace(RGgender, SCgender);
encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth);
encoded = encoded.replace(RGalt_phone, SCalt_phone);
encoded = encoded.replace(RGemail, SCemail);
encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase);
encoded = encoded.replace(RGcomments, SCcomments);
encoded = encoded.replace(RGfullname, SCfullname);
encoded = encoded.replace(RGfronter, SCfronter);
encoded = encoded.replace(RGuser, SCuser);
encoded = encoded.replace(RGlead_id, SClead_id);
encoded = encoded.replace(RGcampaign, SCcampaign);
encoded = encoded.replace(RGphone_login, SCphone_login);
encoded = encoded.replace(RGgroup, SCgroup);
encoded = encoded.replace(RGchannel_group, SCchannel_group);
encoded = encoded.replace(RGSQLdate, SCSQLdate);
encoded = encoded.replace(RGepoch, SCepoch);
encoded = encoded.replace(RGuniqueid, SCuniqueid);
encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel);
encoded = encoded.replace(RGserver_ip, SCserver_ip);
encoded = encoded.replace(RGSIPexten, SCSIPexten);
encoded = encoded.replace(RGsession_id, SCsession_id);
}
while (i < encoded.length) {
var ch = encoded.charAt(i);
@@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
div.scroll_callback {height: 300px; width: 620px; overflow: scroll;}
div.scroll_park {height: 400px; width: 620px; overflow: scroll;}
div.scroll_list {height: 400px; width: 140px; overflow: scroll;}
div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
.body_text {font-size: 13px; font-family: sans-serif;}
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
@@ -5377,7 +5465,7 @@ echo "</head>\n";
<BODY onload="begin_all_refresh();">
<FORM name=vicidial_form>
<span style="position:absolute;left:0px;top:0px;z-index:2;" id="Header">
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=640 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=760 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TR VALIGN=TOP ALIGN=LEFT><TD COLSPAN=3 VALIGN=TOP ALIGN=LEFT>
<INPUT TYPE=HIDDEN NAME=extension>
<font class="body_text">
@@ -5387,11 +5475,11 @@ echo "</head>\n";
</SPAN>
<span style="position:absolute;left:0px;top:13px;z-index:1;" id="Tabs">
<table border=0 bgcolor="#FFFFFF" width=640 height=30>
<table border=0 bgcolor="#FFFFFF" width=760 height=30>
<TR VALIGN=TOP ALIGN=LEFT>
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICIDIAL" WIDTH=115 HEIGHT=30 Border=0></A></TD>
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script_es.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 Border=0></A></TD>
<TD WIDTH=309 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; sesión ID: <span id=sessionIDspan></span></TD>
<TD WIDTH=431 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; sesión ID: <span id=sessionIDspan></span></TD>
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF_es.gif" NAME=livecall ALT="Llamada Activa" WIDTH=109 HEIGHT=30 Border=0></TD>
</TR></TABLE>
</span>
@@ -5399,7 +5487,7 @@ echo "</head>\n";
<span style="position:absolute;left:0px;top:0px;z-index:3;" id="BienvenidoBoxA">
<table border=0 bgcolor="#FFFFFF" width=650 height=500><TR><TD align=center><BR><span id="BienvenidoBoxAt">VICIDIAL</span></TD></TR></TABLE>
<table border=0 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="BienvenidoBoxAt">VICIDIAL</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:300px;top:365px;z-index:13;" id="ManuaLDiaLButtons"><font class="body_text">
@@ -5411,7 +5499,7 @@ echo "</head>\n";
</font></span>
<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> SERVICIOS REPETIDOS PARA EL AGENTE <? echo $VD_login ?>:<BR>Chasque encendido un servicio repetido abajo ahora para llamar la parte posteriora del cliente. Si usted chasca encendido un expediente abajo para llamarlo, será quitado de la lista.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> SERVICIOS REPETIDOS PARA EL AGENTE <? echo $VD_login ?>:<BR>Chasque encendido un servicio repetido abajo ahora para llamar la parte posteriora del cliente. Si usted chasca encendido un expediente abajo para llamarlo, será quitado de la lista.
<BR>
<div class="scroll_callback" id="CallBacKsLisT"></div>
<BR> &nbsp;
@@ -5422,7 +5510,7 @@ echo "</head>\n";
</span>
<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> NUEVO PLOMO MANUAL DEL DIAL PARA <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Incorpore la información abajo para el nuevo plomo que usted desea llamar.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> NUEVO PLOMO MANUAL DEL DIAL PARA <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Incorpore la información abajo para el nuevo plomo que usted desea llamar.
<BR>
<?
if (eregi("X",dial_prefix))
@@ -5456,18 +5544,18 @@ echo "</head>\n";
<span style="position:absolute;left:250px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
<span style="position:absolute;left:5px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
</font></span>
<span style="position:absolute;left:5px;top:350px;z-index:20;" id="AgentEstadoSpan"><font class="body_text">
<span style="position:absolute;left:35px;top:350px;z-index:20;" id="AgentEstadoSpan"><font class="body_text">
Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="AgentEstadoCalls"></span>
</font></span>
<span style="position:absolute;left:5px;top:310px;z-index:21;" id="TransferMain">
<table bgcolor="#CCCCFF" width=630><tr>
<table bgcolor="#CCCCFF" width=750><tr>
<td align=left>
<font class="body_text">
<IMG SRC="../agc/images/vdc_XB_header_es.gif" border=0 alt="Transferencia - Conferencia"><BR>
@@ -5499,7 +5587,7 @@ Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="Age
</span>
<span style="position:absolute;left:5px;top:310px;z-index:22;" id="HotKeyActionBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD height=70><font class="sh_text"> Lead Dispositioned Como: </font><BR><BR><CENTER>
<font class="sd_text"><span id="HotKeyDispo"> - </span></font></CENTER>
</TD>
@@ -5507,7 +5595,7 @@ Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="Age
</span>
<span style="position:absolute;left:5px;top:310px;z-index:23;" id="HotKeyEntriesBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD width=200><font class="sh_text"> Teclas de acceso rápido a la Disposición: </font></td><td colspan=2>
<font class="body_small">Cuando esté activo, presione simplemente la tecla para la disposición deseada para esta llamada. La llamada después será colgada y dispositioned automáticamente:</font></td></tr><tr>
<TD width=200><font class="sk_text">
@@ -5523,7 +5611,7 @@ Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="Age
</span>
<span style="position:absolute;left:5px;top:310px;z-index:24;" id="CBcommentsBox">
<table border=0 bgcolor="#FFFFCC" width=620 height=70>
<table border=0 bgcolor="#FFFFCC" width=740 height=70>
<TR bgcolor="#FFFF66">
<TD align=left><font class="sh_text"> Información Anterior Del Servicio repetido: </font></td>
<TD align=right><font class="sk_text"> <a href="#" onclick="CBcommentsBoxhide();return false;">close</a> </font></td>
@@ -5540,7 +5628,7 @@ Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="Age
</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> Nadie está en su sesión: <span id="NoneInSessionID"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=720 height=500><TR><TD align=center> Nadie está en su sesión: <span id="NoneInSessionID"></span><BR>
<a href="#" onclick="NoneInSessionOK();return false;">Vaya Detrás</a>
<BR><BR>
<a href="#" onclick="NoneInSessionCalL();return false;">Agente De la Llamada Otra vez</a>
@@ -5548,7 +5636,7 @@ Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="Age
</span>
<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> El cliente ha colgado: <span id="CustomerGoneChanneL"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=770 height=500><TR><TD align=center> El cliente ha colgado: <span id="CustomerGoneChanneL"></span><BR>
<a href="#" onclick="CustomerGoneOK();return false;">Vaya Detrás</a>
<BR><BR>
<a href="#" onclick="CustomerGoneHangup();return false;">Final y llamada de la disposición</a>
@@ -5557,7 +5645,7 @@ Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="Age
</span>
<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> Llamada Wrapup: <span id="WrapupTimer"></span> segundos restantes en wrapup<BR><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=550><TR><TD align=center> Llamada Wrapup: <span id="WrapupTimer"></span> segundos restantes en wrapup<BR><BR>
<span id="WrapupMessage"><?=$wrapup_message ?></span>
<BR><BR>
<a href="#" onclick="WrapupFinish();return false;">Final Wrapup y movimiento encendido</a>
@@ -5566,7 +5654,7 @@ Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="Age
</span>
<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">SALIR</span></TD></TR></TABLE>
<table border=1 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="LogouTBoxLink">SALIR</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:0px;top:70px;z-index:29;" id="DispoButtonHideA">
@@ -5578,11 +5666,11 @@ Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="Age
</span>
<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>Cualquier cambio realizado al cliente que no será la información abajo en este tiempo comitted, usted debe cambiar la información del cliente antes de usted retraso la llamada. </TD></TR></TABLE>
<table border=0 bgcolor="#CCFFCC" width=770 height=47><TR><TD align=center VALIGN=top>Cualquier cambio realizado al cliente que no será la información abajo en este tiempo comitted, usted debe cambiar la información del cliente antes de usted retraso la llamada. </TD></TR></TABLE>
</span>
<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 LLAMADA :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Retraso Otra vez</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">reduzca al mínimo</a></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> DISPOSITION LLAMADA :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Retraso Otra vez</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">reduzca al mínimo</a></span><BR>
<span id="DispoSelectContent"> selección de la disposición del End-of-call </span>
<input type=hidden name=DispoSelection><BR>
<input type=checkbox name=DispoSelectStop size=1 value="0"> PARAR LA LLAMADA <BR>
@@ -5596,7 +5684,7 @@ Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="Age
<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> Seleccione una fecha del servicio repetido :<span id="CallBackDatE"></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> Seleccione una fecha del servicio repetido :<span id="CallBackDatE"></span><BR>
<input type=hidden name=CallBackDatESelectioN>
<input type=hidden name=CallBackTimESelectioN>
<span id="CallBackDatEPrinT">Seleccione una fecha abajo</span> &nbsp;
@@ -5639,7 +5727,7 @@ Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="Age
</span>
<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> SELECCIÓN DEL GRUPO DE ENTRANTES CLOSER <BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> SELECCIÓN DEL GRUPO DE ENTRANTES CLOSER <BR>
<span id="CloserSelectContent"> SELECCIÓN DEL GRUPO DE ENTRANTES CLOSER </span>
<input type=hidden name=CloserSelectList><BR>
<input type=checkbox name=CloserSelectBlended size=1 value="0"> BLENDED LLAMADAING(Salientes activdas) <BR>
@@ -5662,7 +5750,7 @@ Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="Age
<span style="position:absolute;left:80px;top:12px;z-index:42;" id="MainXfeRBox">
<input type=hidden name=H_XfeR_channel>
<input type=hidden name=M_XfeR_channel>
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> TRANSFERIR LLAMADA ACTIVA</b> <BR>Canal que va a ser transferido: <span id="MainXfeRChanneL">Canal</span><BR></tr>
<table border=0 bgcolor="#FFFFCC" width=720 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> TRANSFERIR LLAMADA ACTIVA</b> <BR>Canal que va a ser transferido: <span id="MainXfeRChanneL">Canal</span><BR></tr>
<tr><td>Extensiones:<BR><span id="MainXfeRContent"> Menú Extensiones </span></td>
<td>
<BR>
@@ -5678,7 +5766,7 @@ Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="Age
<span style="position:absolute;left:154px;top:65px;z-index:15;" id="ScriptPanel">
<table border=0 bgcolor="#FFE7D0" width=486 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIDIAL SCRIPT</div></font></TD></TR></TABLE>
<table border=0 bgcolor="#FFE7D0" width=606 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIDIAL SCRIPT</div></font></TD></TR></TABLE>
</span>
@@ -5688,7 +5776,7 @@ Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="Age
<!-- BEGIN ********* Here is the main VICIDIAL display panel -->
<span style="position:absolute;left:0px;top:46px;z-index:10;" id="MainPanel">
<TABLE border=0 BGCOLOR="#E0C2D6" width=640 id="MainTable">
<TABLE border=0 BGCOLOR="#E0C2D6" width=760 id="MainTable">
<TR><TD colspan=3><font class="body_text"> ESTADO: <span id="MainStatuSSpan"></span></font></TD></TR>
<tr><td colspan=3><span id="busycallsdebug"></span></td></tr>
<tr><td width=150 align=left valign=top>
@@ -5725,7 +5813,7 @@ GRABACIÓN ID: <font class="body_small"><span id="RecorDID"></span></font><BR>
</center>
</font>
</td>
<td width=480 align=left valign=top>
<td width=600 align=left valign=top>
<input type=hidden name=lead_id value="">
<input type=hidden name=list_id value="">
<input type=hidden name=called_count value="">
+161 -74
View File
@@ -131,6 +131,7 @@
# 61122-1523 - Added more SCRIPT variables
# 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT
#
require("dbconnect.php");
@@ -176,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
$forever_stop=0;
$version = '2.0.104';
$build = '61130-1617';
$version = '2.0.105';
$build = '61221-1212';
if ($force_logout)
{
@@ -4568,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// decode the scripttext and scriptname so that it can be didsplayed
function URLDecode(encodedvar,scriptformat)
{
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
var RGnl = new RegExp("\n","g");
var RGplus = new RegExp(" ","g");
var RGiframe = new RegExp("iframe","gi");
if (scriptformat == 'YES')
{
var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value;
var SCsource_id = "";
var SClist_id = document.vicidial_form.list_id.value;
var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value;
var SCcalled_since_last_reset = "";
var SCphone_code = document.vicidial_form.phone_code.value;
var SCphone_number = document.vicidial_form.phone_number.value;
var SCtitle = document.vicidial_form.title.value;
var SCfirst_name = document.vicidial_form.first_name.value;
var SCmiddle_initial = document.vicidial_form.middle_initial.value;
var SClast_name = document.vicidial_form.last_name.value;
var SCaddress1 = document.vicidial_form.address1.value;
var SCaddress2 = document.vicidial_form.address2.value;
var SCaddress3 = document.vicidial_form.address3.value;
var SCcity = document.vicidial_form.city.value;
var SCstate = document.vicidial_form.state.value;
var SCprovince = document.vicidial_form.province.value;
var SCpostal_code = document.vicidial_form.postal_code.value;
var SCcountry_code = document.vicidial_form.country_code.value;
var SCgender = document.vicidial_form.gender.value;
var SCdate_of_birth = document.vicidial_form.date_of_birth.value;
var SCalt_phone = document.vicidial_form.alt_phone.value;
var SCemail = document.vicidial_form.email.value;
var SCsecurity_phrase = document.vicidial_form.security_phrase.value;
var SCcomments = document.vicidial_form.comments.value;
var SCfullname = LOGfullname;
var SCfronter = fronter;
var SCuser = user;
var SClead_id = document.vicidial_form.lead_id.value;
var SCcampaign = campaign;
var SCphone_login = phone_login;
var SCgroup = group;
var SCchannel_group = group;
var SCSQLdate = SQLdate;
var SCepoch = UnixTime;
var SCuniqueid = document.vicidial_form.uniqueid.value;
var SCcustomer_zap_channel = lastcustchannel;
var SCserver_ip = server_ip;
var SCSIPexten = extension;
var SCsession_id = session_id;
if (encoded.match(RGiframe))
{
SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+');
SCsource_id = SCsource_id.replace(RGplus,'+');
SClist_id = SClist_id.replace(RGplus,'+');
SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+');
SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+');
SCphone_code = SCphone_code.replace(RGplus,'+');
SCphone_number = SCphone_number.replace(RGplus,'+');
SCtitle = SCtitle.replace(RGplus,'+');
SCfirst_name = SCfirst_name.replace(RGplus,'+');
SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+');
SClast_name = SClast_name.replace(RGplus,'+');
SCaddress1 = SCaddress1.replace(RGplus,'+');
SCaddress2 = SCaddress2.replace(RGplus,'+');
SCaddress3 = SCaddress3.replace(RGplus,'+');
SCcity = SCcity.replace(RGplus,'+');
SCstate = SCstate.replace(RGplus,'+');
SCprovince = SCprovince.replace(RGplus,'+');
SCpostal_code = SCpostal_code.replace(RGplus,'+');
SCcountry_code = SCcountry_code.replace(RGplus,'+');
SCgender = SCgender.replace(RGplus,'+');
SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+');
SCalt_phone = SCalt_phone.replace(RGplus,'+');
SCemail = SCemail.replace(RGplus,'+');
SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+');
SCcomments = SCcomments.replace(RGplus,'+');
SCfullname = SCfullname.replace(RGplus,'+');
SCfronter = SCfronter.replace(RGplus,'+');
SCuser = SCuser.replace(RGplus,'+');
SClead_id = SClead_id.replace(RGplus,'+');
SCcampaign = SCcampaign.replace(RGplus,'+');
SCphone_login = SCphone_login.replace(RGplus,'+');
SCgroup = SCgroup.replace(RGplus,'+');
SCchannel_group = SCchannel_group.replace(RGplus,'+');
SCSQLdate = SCSQLdate.replace(RGplus,'+');
SCuniqueid = SCuniqueid.replace(RGplus,'+');
SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+');
SCserver_ip = SCserver_ip.replace(RGplus,'+');
SCSIPexten = SCSIPexten.replace(RGplus,'+');
}
var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g");
var RGsource_id = new RegExp("--A--source_id--B--","g");
var RGlist_id = new RegExp("--A--list_id--B--","g");
@@ -4616,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var RGserver_ip = new RegExp("--A--server_ip--B--","g");
var RGSIPexten = new RegExp("--A--SIPexten--B--","g");
var RGsession_id = new RegExp("--A--session_id--B--","g");
var RGnl = new RegExp("\n","g");
encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value);
encoded = encoded.replace(RGsource_id, "");
encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value);
encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value);
encoded = encoded.replace(RGcalled_since_last_reset, "");
encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value);
encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value);
encoded = encoded.replace(RGtitle, document.vicidial_form.title.value);
encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value);
encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value);
encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value);
encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value);
encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value);
encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value);
encoded = encoded.replace(RGcity, document.vicidial_form.city.value);
encoded = encoded.replace(RGstate, document.vicidial_form.state.value);
encoded = encoded.replace(RGprovince, document.vicidial_form.province.value);
encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value);
encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value);
encoded = encoded.replace(RGgender, document.vicidial_form.gender.value);
encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value);
encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value);
encoded = encoded.replace(RGemail, document.vicidial_form.email.value);
encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value);
encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value);
encoded = encoded.replace(RGfullname, LOGfullname);
encoded = encoded.replace(RGfronter, fronter);
encoded = encoded.replace(RGuser, user);
encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value);
encoded = encoded.replace(RGcampaign, campaign);
encoded = encoded.replace(RGphone_login, phone_login);
encoded = encoded.replace(RGgroup, group);
encoded = encoded.replace(RGchannel_group, group);
encoded = encoded.replace(RGSQLdate, SQLdate);
encoded = encoded.replace(RGepoch, UnixTime);
encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value);
encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel);
encoded = encoded.replace(RGserver_ip, server_ip);
encoded = encoded.replace(RGSIPexten, extension);
encoded = encoded.replace(RGsession_id, session_id);
encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code);
encoded = encoded.replace(RGsource_id, SCsource_id);
encoded = encoded.replace(RGlist_id, SClist_id);
encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now);
encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset);
encoded = encoded.replace(RGphone_code, SCphone_code);
encoded = encoded.replace(RGphone_number, SCphone_number);
encoded = encoded.replace(RGtitle, SCtitle);
encoded = encoded.replace(RGfirst_name, SCfirst_name);
encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial);
encoded = encoded.replace(RGlast_name, SClast_name);
encoded = encoded.replace(RGaddress1, SCaddress1);
encoded = encoded.replace(RGaddress2, SCaddress2);
encoded = encoded.replace(RGaddress3, SCaddress3);
encoded = encoded.replace(RGcity, SCcity);
encoded = encoded.replace(RGstate, SCstate);
encoded = encoded.replace(RGprovince, SCprovince);
encoded = encoded.replace(RGpostal_code, SCpostal_code);
encoded = encoded.replace(RGcountry_code, SCcountry_code);
encoded = encoded.replace(RGgender, SCgender);
encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth);
encoded = encoded.replace(RGalt_phone, SCalt_phone);
encoded = encoded.replace(RGemail, SCemail);
encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase);
encoded = encoded.replace(RGcomments, SCcomments);
encoded = encoded.replace(RGfullname, SCfullname);
encoded = encoded.replace(RGfronter, SCfronter);
encoded = encoded.replace(RGuser, SCuser);
encoded = encoded.replace(RGlead_id, SClead_id);
encoded = encoded.replace(RGcampaign, SCcampaign);
encoded = encoded.replace(RGphone_login, SCphone_login);
encoded = encoded.replace(RGgroup, SCgroup);
encoded = encoded.replace(RGchannel_group, SCchannel_group);
encoded = encoded.replace(RGSQLdate, SCSQLdate);
encoded = encoded.replace(RGepoch, SCepoch);
encoded = encoded.replace(RGuniqueid, SCuniqueid);
encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel);
encoded = encoded.replace(RGserver_ip, SCserver_ip);
encoded = encoded.replace(RGSIPexten, SCSIPexten);
encoded = encoded.replace(RGsession_id, SCsession_id);
}
while (i < encoded.length) {
var ch = encoded.charAt(i);
@@ -5351,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
div.scroll_callback {height: 300px; width: 620px; overflow: scroll;}
div.scroll_park {height: 400px; width: 620px; overflow: scroll;}
div.scroll_list {height: 400px; width: 140px; overflow: scroll;}
div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
.body_text {font-size: 13px; font-family: sans-serif;}
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
@@ -5378,7 +5465,7 @@ echo "</head>\n";
<BODY onload="begin_all_refresh();">
<FORM name=vicidial_form>
<span style="position:absolute;left:0px;top:0px;z-index:2;" id="Header">
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=640 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=760 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TR VALIGN=TOP ALIGN=LEFT><TD COLSPAN=3 VALIGN=TOP ALIGN=LEFT>
<INPUT TYPE=HIDDEN NAME=extension>
<font class="body_text">
@@ -5388,11 +5475,11 @@ echo "</head>\n";
</SPAN>
<span style="position:absolute;left:0px;top:13px;z-index:1;" id="Tabs">
<table border=0 bgcolor="#FFFFFF" width=640 height=30>
<table border=0 bgcolor="#FFFFFF" width=760 height=30>
<TR VALIGN=TOP ALIGN=LEFT>
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICICOMPOSER" WIDTH=115 HEIGHT=30 Border=0></A></TD>
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 Border=0></A></TD>
<TD WIDTH=309 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; Id de session: <span id=sessionIDspan></span></TD>
<TD WIDTH=431 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; Id de session: <span id=sessionIDspan></span></TD>
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF.gif" NAME=livecall ALT="Appel en cours" WIDTH=109 HEIGHT=30 Border=0></TD>
</TR></TABLE>
</span>
@@ -5400,7 +5487,7 @@ echo "</head>\n";
<span style="position:absolute;left:0px;top:0px;z-index:3;" id="BienvenueBoxA">
<table border=0 bgcolor="#FFFFFF" width=650 height=500><TR><TD align=center><BR><span id="BienvenueBoxAt">VICICOMPOSER</span></TD></TR></TABLE>
<table border=0 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="BienvenueBoxAt">VICICOMPOSER</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:300px;top:365px;z-index:13;" id="ManuaLDiaLButtons"><font class="body_text">
@@ -5412,7 +5499,7 @@ echo "</head>\n";
</font></span>
<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> RAPPELS PERSONNELS <? echo $VD_login ?>:<BR>Selectionnez un rappel a éffectuer immédiatement. Une fois éffectué, ce rappel diparaitra de la liste.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> RAPPELS PERSONNELS <? echo $VD_login ?>:<BR>Selectionnez un rappel a éffectuer immédiatement. Une fois éffectué, ce rappel diparaitra de la liste.
<BR>
<div class="scroll_callback" id="CallBacKsLisT"></div>
<BR> &nbsp;
@@ -5423,7 +5510,7 @@ echo "</head>\n";
</span>
<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> NOUVEL APPEL MANUEL VERS <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Nouveau prospect: remplissez le formulaire ci dessous.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> NOUVEL APPEL MANUEL VERS <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Nouveau prospect: remplissez le formulaire ci dessous.
<BR>
<?
if (eregi("X",dial_prefix))
@@ -5457,18 +5544,18 @@ echo "</head>\n";
<span style="position:absolute;left:250px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
<span style="position:absolute;left:5px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
</font></span>
<span style="position:absolute;left:5px;top:350px;z-index:20;" id="AgentStatutSpan"><font class="body_text">
<span style="position:absolute;left:35px;top:350px;z-index:20;" id="AgentStatutSpan"><font class="body_text">
Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="AgentStatutCalls"></span>
</font></span>
<span style="position:absolute;left:5px;top:310px;z-index:21;" id="TransferMain">
<table bgcolor="#CCCCFF" width=630><tr>
<table bgcolor="#CCCCFF" width=750><tr>
<td align=left>
<font class="body_text">
<IMG SRC="../agc/images/vdc_XB_header.gif" border=0 alt="Transfert - Conférence"><BR>
@@ -5500,7 +5587,7 @@ Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="
</span>
<span style="position:absolute;left:5px;top:310px;z-index:22;" id="HotKeyActionBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD height=70><font class="sh_text"> Fiche Prospect Statuée en: </font><BR><BR><CENTER>
<font class="sd_text"><span id="HotKeyDispo"> - </span></font></CENTER>
</TD>
@@ -5508,7 +5595,7 @@ Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="
</span>
<span style="position:absolute;left:5px;top:310px;z-index:23;" id="HotKeyEntriesBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD width=200><font class="sh_text"> Raccourcis clavier des Statut: </font></td><td colspan=2>
<font class="body_small">Si actif, utilisez le raccourci clavier pour statuer et raccrocher un appel:</font></td></tr><tr>
<TD width=200><font class="sk_text">
@@ -5524,7 +5611,7 @@ Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="
</span>
<span style="position:absolute;left:5px;top:310px;z-index:24;" id="CBcommentsBox">
<table border=0 bgcolor="#FFFFCC" width=620 height=70>
<table border=0 bgcolor="#FFFFCC" width=740 height=70>
<TR bgcolor="#FFFF66">
<TD align=left><font class="sh_text"> Information De Rappels: </font></td>
<TD align=right><font class="sk_text"> <a href="#" onclick="CBcommentsBoxhide();return false;">close</a> </font></td>
@@ -5541,7 +5628,7 @@ Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="
</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> Votre session est vide: <span id="NoneInSessionID"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=720 height=500><TR><TD align=center> Votre session est vide: <span id="NoneInSessionID"></span><BR>
<a href="#" onclick="NoneInSessionOK();return false;">Retour</a>
<BR><BR>
<a href="#" onclick="NoneInSessionCalL();return false;">Rappeler l'agent</a>
@@ -5549,7 +5636,7 @@ Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="
</span>
<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> Le client a raccroché: <span id="CustomerGoneChanneL"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=770 height=500><TR><TD align=center> Le client a raccroché: <span id="CustomerGoneChanneL"></span><BR>
<a href="#" onclick="CustomerGoneOK();return false;">Retour</a>
<BR><BR>
<a href="#" onclick="CustomerGoneHangup();return false;">Terminer et Statuer l'Appel</a>
@@ -5558,7 +5645,7 @@ Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="
</span>
<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> Traitement Post Appel : <span id="WrapupTimer"></span> secondes restant pour le traitement post appel<BR><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=550><TR><TD align=center> Traitement Post Appel : <span id="WrapupTimer"></span> secondes restant pour le traitement post appel<BR><BR>
<span id="WrapupMessage"><?=$wrapup_message ?></span>
<BR><BR>
<a href="#" onclick="WrapupFinish();return false;">Terminer le traitement post appel et continuer</a>
@@ -5567,7 +5654,7 @@ Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="
</span>
<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">DÉCONNEXION</span></TD></TR></TABLE>
<table border=1 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="LogouTBoxLink">DÉCONNEXION</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:0px;top:70px;z-index:29;" id="DispoButtonHideA">
@@ -5579,11 +5666,11 @@ Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="
</span>
<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>Aucune modification ne peut être prise en compte, les modifications doivent être validées avant de raccrocher. </TD></TR></TABLE>
<table border=0 bgcolor="#CCFFCC" width=770 height=47><TR><TD align=center VALIGN=top>Aucune modification ne peut être prise en compte, les modifications doivent être validées avant de raccrocher. </TD></TR></TABLE>
</span>
<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> STATUER L'APPEL :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Décrochement Encore</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">réduire</a></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> STATUER L'APPEL :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Décrochement Encore</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">réduire</a></span><BR>
<span id="DispoSelectContent"> Selection du status de fin d'appel </span>
<input type=hidden name=DispoSelection><BR>
<input type=checkbox name=DispoSelectStop size=1 value="0"> PAUSE DE LA NUMEROTATION <BR>
@@ -5597,7 +5684,7 @@ Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="
<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> Choisissez une date de Rappel :<span id="CallBackDatE"></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> Choisissez une date de Rappel :<span id="CallBackDatE"></span><BR>
<input type=hidden name=CallBackDatESelectioN>
<input type=hidden name=CallBackTimESelectioN>
<span id="CallBackDatEPrinT">Choisissez une date ci-dessous</span> &nbsp;
@@ -5640,7 +5727,7 @@ Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="
</span>
<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> UN CHOIX DE GROUPE D'ARRIVÉE PLUS ÉTROIT <BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> UN CHOIX DE GROUPE D'ARRIVÉE PLUS ÉTROIT <BR>
<span id="CloserSelectContent"> Un Choix De Groupe D'arrivée Plus étroit </span>
<input type=hidden name=CloserSelectList><BR>
<input type=checkbox name=CloserSelectBlended size=1 value="0"> APPEL EN MODE BLENDED(Mode "Appels Sortants" Activé) <BR>
@@ -5663,7 +5750,7 @@ Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="
<span style="position:absolute;left:80px;top:12px;z-index:42;" id="MainXfeRBox">
<input type=hidden name=H_XfeR_channel>
<input type=hidden name=M_XfeR_channel>
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> TRANSFERT D'APPEL EN COURS</b> <BR>Canal à transférer: <span id="MainXfeRChanneL">Canal</span><BR></tr>
<table border=0 bgcolor="#FFFFCC" width=720 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> TRANSFERT D'APPEL EN COURS</b> <BR>Canal à transférer: <span id="MainXfeRChanneL">Canal</span><BR></tr>
<tr><td>Extensions:<BR><span id="MainXfeRContent"> Extensions </span></td>
<td>
<BR>
@@ -5679,7 +5766,7 @@ Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="
<span style="position:absolute;left:154px;top:65px;z-index:15;" id="ScriptPanel">
<table border=0 bgcolor="#FFE7D0" width=486 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICICOMPOSER SCRIPT</div></font></TD></TR></TABLE>
<table border=0 bgcolor="#FFE7D0" width=606 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICICOMPOSER SCRIPT</div></font></TD></TR></TABLE>
</span>
@@ -5689,7 +5776,7 @@ Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="
<!-- BEGIN ********* Here is the main VICICOMPOSER display panel -->
<span style="position:absolute;left:0px;top:46px;z-index:10;" id="MainPanel">
<TABLE border=0 BGCOLOR="#E0C2D6" width=640 id="MainTable">
<TABLE border=0 BGCOLOR="#E0C2D6" width=760 id="MainTable">
<TR><TD colspan=3><font class="body_text"> STATUT: <span id="MainStatuSSpan"></span></font></TD></TR>
<tr><td colspan=3><span id="busycallsdebug"></span></td></tr>
<tr><td width=150 align=left valign=top>
@@ -5726,7 +5813,7 @@ IDENTIFIANT: <font class="body_small"><span id="RecorDID"></span></font><BR>
</center>
</font>
</td>
<td width=480 align=left valign=top>
<td width=600 align=left valign=top>
<input type=hidden name=lead_id value="">
<input type=hidden name=list_id value="">
<input type=hidden name=called_count value="">
@@ -62,6 +62,8 @@
# 60619-1158 - Added variable filters to close security holes for login form
# 60809-1544 - Added direct transfers to leave-3ways in consultative transfers
# 61004-1526 - Added parsing of volume control command and lookup or number
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61201-1115 - Added user to MonitorConf for recording_log
#
require("dbconnect.php");
@@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";}
if (!isset($format)) {$format="alert";}
if (!isset($ext_priority)) {$ext_priority="1";}
$version = '0.0.26';
$build = '61004-1526';
$version = '2.0.27';
$build = '61130-1617';
$StarTtime = date("U");
$NOW_DATE = date("Y-m-d");
$NOW_TIME = date("Y-m-d H:i:s");
@@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
if ($ACTION=="Monitor")
{
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
@@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
+163 -75
View File
@@ -130,6 +130,8 @@
# 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions
# 61122-1523 - Added more SCRIPT variables
# 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT
#
require("dbconnect.php");
@@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
$forever_stop=0;
$version = '2.0.103';
$build = '61128-2229';
$version = '2.0.105';
$build = '61221-1212';
if ($force_logout)
{
@@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
document.getElementById("RecorDControl").innerHTML = conf_rec_start_html;
}
}
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1";
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1";
xmlhttp.open('POST', 'manager_send.php');
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
xmlhttp.send(confmonitor_query);
@@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// decode the scripttext and scriptname so that it can be didsplayed
function URLDecode(encodedvar,scriptformat)
{
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
var RGnl = new RegExp("\n","g");
var RGplus = new RegExp(" ","g");
var RGiframe = new RegExp("iframe","gi");
if (scriptformat == 'YES')
{
var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value;
var SCsource_id = "";
var SClist_id = document.vicidial_form.list_id.value;
var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value;
var SCcalled_since_last_reset = "";
var SCphone_code = document.vicidial_form.phone_code.value;
var SCphone_number = document.vicidial_form.phone_number.value;
var SCtitle = document.vicidial_form.title.value;
var SCfirst_name = document.vicidial_form.first_name.value;
var SCmiddle_initial = document.vicidial_form.middle_initial.value;
var SClast_name = document.vicidial_form.last_name.value;
var SCaddress1 = document.vicidial_form.address1.value;
var SCaddress2 = document.vicidial_form.address2.value;
var SCaddress3 = document.vicidial_form.address3.value;
var SCcity = document.vicidial_form.city.value;
var SCstate = document.vicidial_form.state.value;
var SCprovince = document.vicidial_form.province.value;
var SCpostal_code = document.vicidial_form.postal_code.value;
var SCcountry_code = document.vicidial_form.country_code.value;
var SCgender = document.vicidial_form.gender.value;
var SCdate_of_birth = document.vicidial_form.date_of_birth.value;
var SCalt_phone = document.vicidial_form.alt_phone.value;
var SCemail = document.vicidial_form.email.value;
var SCsecurity_phrase = document.vicidial_form.security_phrase.value;
var SCcomments = document.vicidial_form.comments.value;
var SCfullname = LOGfullname;
var SCfronter = fronter;
var SCuser = user;
var SClead_id = document.vicidial_form.lead_id.value;
var SCcampaign = campaign;
var SCphone_login = phone_login;
var SCgroup = group;
var SCchannel_group = group;
var SCSQLdate = SQLdate;
var SCepoch = UnixTime;
var SCuniqueid = document.vicidial_form.uniqueid.value;
var SCcustomer_zap_channel = lastcustchannel;
var SCserver_ip = server_ip;
var SCSIPexten = extension;
var SCsession_id = session_id;
if (encoded.match(RGiframe))
{
SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+');
SCsource_id = SCsource_id.replace(RGplus,'+');
SClist_id = SClist_id.replace(RGplus,'+');
SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+');
SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+');
SCphone_code = SCphone_code.replace(RGplus,'+');
SCphone_number = SCphone_number.replace(RGplus,'+');
SCtitle = SCtitle.replace(RGplus,'+');
SCfirst_name = SCfirst_name.replace(RGplus,'+');
SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+');
SClast_name = SClast_name.replace(RGplus,'+');
SCaddress1 = SCaddress1.replace(RGplus,'+');
SCaddress2 = SCaddress2.replace(RGplus,'+');
SCaddress3 = SCaddress3.replace(RGplus,'+');
SCcity = SCcity.replace(RGplus,'+');
SCstate = SCstate.replace(RGplus,'+');
SCprovince = SCprovince.replace(RGplus,'+');
SCpostal_code = SCpostal_code.replace(RGplus,'+');
SCcountry_code = SCcountry_code.replace(RGplus,'+');
SCgender = SCgender.replace(RGplus,'+');
SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+');
SCalt_phone = SCalt_phone.replace(RGplus,'+');
SCemail = SCemail.replace(RGplus,'+');
SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+');
SCcomments = SCcomments.replace(RGplus,'+');
SCfullname = SCfullname.replace(RGplus,'+');
SCfronter = SCfronter.replace(RGplus,'+');
SCuser = SCuser.replace(RGplus,'+');
SClead_id = SClead_id.replace(RGplus,'+');
SCcampaign = SCcampaign.replace(RGplus,'+');
SCphone_login = SCphone_login.replace(RGplus,'+');
SCgroup = SCgroup.replace(RGplus,'+');
SCchannel_group = SCchannel_group.replace(RGplus,'+');
SCSQLdate = SCSQLdate.replace(RGplus,'+');
SCuniqueid = SCuniqueid.replace(RGplus,'+');
SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+');
SCserver_ip = SCserver_ip.replace(RGplus,'+');
SCSIPexten = SCSIPexten.replace(RGplus,'+');
}
var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g");
var RGsource_id = new RegExp("--A--source_id--B--","g");
var RGlist_id = new RegExp("--A--list_id--B--","g");
@@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var RGserver_ip = new RegExp("--A--server_ip--B--","g");
var RGSIPexten = new RegExp("--A--SIPexten--B--","g");
var RGsession_id = new RegExp("--A--session_id--B--","g");
var RGnl = new RegExp("\n","g");
encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value);
encoded = encoded.replace(RGsource_id, "");
encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value);
encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value);
encoded = encoded.replace(RGcalled_since_last_reset, "");
encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value);
encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value);
encoded = encoded.replace(RGtitle, document.vicidial_form.title.value);
encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value);
encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value);
encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value);
encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value);
encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value);
encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value);
encoded = encoded.replace(RGcity, document.vicidial_form.city.value);
encoded = encoded.replace(RGstate, document.vicidial_form.state.value);
encoded = encoded.replace(RGprovince, document.vicidial_form.province.value);
encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value);
encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value);
encoded = encoded.replace(RGgender, document.vicidial_form.gender.value);
encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value);
encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value);
encoded = encoded.replace(RGemail, document.vicidial_form.email.value);
encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value);
encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value);
encoded = encoded.replace(RGfullname, LOGfullname);
encoded = encoded.replace(RGfronter, fronter);
encoded = encoded.replace(RGuser, user);
encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value);
encoded = encoded.replace(RGcampaign, campaign);
encoded = encoded.replace(RGphone_login, phone_login);
encoded = encoded.replace(RGgroup, group);
encoded = encoded.replace(RGchannel_group, group);
encoded = encoded.replace(RGSQLdate, SQLdate);
encoded = encoded.replace(RGepoch, UnixTime);
encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value);
encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel);
encoded = encoded.replace(RGserver_ip, server_ip);
encoded = encoded.replace(RGSIPexten, extension);
encoded = encoded.replace(RGsession_id, session_id);
encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code);
encoded = encoded.replace(RGsource_id, SCsource_id);
encoded = encoded.replace(RGlist_id, SClist_id);
encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now);
encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset);
encoded = encoded.replace(RGphone_code, SCphone_code);
encoded = encoded.replace(RGphone_number, SCphone_number);
encoded = encoded.replace(RGtitle, SCtitle);
encoded = encoded.replace(RGfirst_name, SCfirst_name);
encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial);
encoded = encoded.replace(RGlast_name, SClast_name);
encoded = encoded.replace(RGaddress1, SCaddress1);
encoded = encoded.replace(RGaddress2, SCaddress2);
encoded = encoded.replace(RGaddress3, SCaddress3);
encoded = encoded.replace(RGcity, SCcity);
encoded = encoded.replace(RGstate, SCstate);
encoded = encoded.replace(RGprovince, SCprovince);
encoded = encoded.replace(RGpostal_code, SCpostal_code);
encoded = encoded.replace(RGcountry_code, SCcountry_code);
encoded = encoded.replace(RGgender, SCgender);
encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth);
encoded = encoded.replace(RGalt_phone, SCalt_phone);
encoded = encoded.replace(RGemail, SCemail);
encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase);
encoded = encoded.replace(RGcomments, SCcomments);
encoded = encoded.replace(RGfullname, SCfullname);
encoded = encoded.replace(RGfronter, SCfronter);
encoded = encoded.replace(RGuser, SCuser);
encoded = encoded.replace(RGlead_id, SClead_id);
encoded = encoded.replace(RGcampaign, SCcampaign);
encoded = encoded.replace(RGphone_login, SCphone_login);
encoded = encoded.replace(RGgroup, SCgroup);
encoded = encoded.replace(RGchannel_group, SCchannel_group);
encoded = encoded.replace(RGSQLdate, SCSQLdate);
encoded = encoded.replace(RGepoch, SCepoch);
encoded = encoded.replace(RGuniqueid, SCuniqueid);
encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel);
encoded = encoded.replace(RGserver_ip, SCserver_ip);
encoded = encoded.replace(RGSIPexten, SCSIPexten);
encoded = encoded.replace(RGsession_id, SCsession_id);
}
while (i < encoded.length) {
var ch = encoded.charAt(i);
@@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
div.scroll_callback {height: 300px; width: 620px; overflow: scroll;}
div.scroll_park {height: 400px; width: 620px; overflow: scroll;}
div.scroll_list {height: 400px; width: 140px; overflow: scroll;}
div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
.body_text {font-size: 13px; font-family: sans-serif;}
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
@@ -5377,7 +5465,7 @@ echo "</head>\n";
<BODY onload="begin_all_refresh();">
<FORM name=vicidial_form>
<span style="position:absolute;left:0px;top:0px;z-index:2;" id="Header">
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=640 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=760 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TR VALIGN=TOP ALIGN=LEFT><TD COLSPAN=3 VALIGN=TOP ALIGN=LEFT>
<INPUT TYPE=HIDDEN NAME=extension>
<font class="body_text">
@@ -5387,11 +5475,11 @@ echo "</head>\n";
</SPAN>
<span style="position:absolute;left:0px;top:13px;z-index:1;" id="Tabs">
<table border=0 bgcolor="#FFFFFF" width=640 height=30>
<table border=0 bgcolor="#FFFFFF" width=760 height=30>
<TR VALIGN=TOP ALIGN=LEFT>
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICICHIAMA" WIDTH=115 HEIGHT=30 Border=0></A></TD>
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 Border=0></A></TD>
<TD WIDTH=309 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; ID di sessione: <span id=sessionIDspan></span></TD>
<TD WIDTH=431 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; ID di sessione: <span id=sessionIDspan></span></TD>
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF.gif" NAME=livecall ALT="Chimate Attive" WIDTH=109 HEIGHT=30 Border=0></TD>
</TR></TABLE>
</span>
@@ -5399,7 +5487,7 @@ echo "</head>\n";
<span style="position:absolute;left:0px;top:0px;z-index:3;" id="BenvenutoBoxA">
<table border=0 bgcolor="#FFFFFF" width=650 height=500><TR><TD align=center><BR><span id="BenvenutoBoxAt">VICICHIAMA</span></TD></TR></TABLE>
<table border=0 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="BenvenutoBoxAt">VICICHIAMA</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:300px;top:365px;z-index:13;" id="ManuaLDiaLButtons"><font class="body_text">
@@ -5411,7 +5499,7 @@ echo "</head>\n";
</font></span>
<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> RICHIAMATE PER OPERATORE <? echo $VD_login ?>:<BR>Click su a callback below to call the customer back now. If you click su a record below to call it, it will be removed from the list.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> RICHIAMATE PER OPERATORE <? echo $VD_login ?>:<BR>Click su a callback below to call the customer back now. If you click su a record below to call it, it will be removed from the list.
<BR>
<div class="scroll_callback" id="CallBacKsLisT"></div>
<BR> &nbsp;
@@ -5422,7 +5510,7 @@ echo "</head>\n";
</span>
<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> NUOVA CHIAMATA MANUALE PER IL CONTATTO <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Inserisci le informazioni sotto per il nuovo contatto da chiamare.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> NUOVA CHIAMATA MANUALE PER IL CONTATTO <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Inserisci le informazioni sotto per il nuovo contatto da chiamare.
<BR>
<?
if (eregi("X",dial_prefix))
@@ -5456,18 +5544,18 @@ echo "</head>\n";
<span style="position:absolute;left:250px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
<span style="position:absolute;left:5px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
</font></span>
<span style="position:absolute;left:5px;top:350px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
<span style="position:absolute;left:35px;top:350px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
Vostro Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusCalls"></span>
</font></span>
<span style="position:absolute;left:5px;top:310px;z-index:21;" id="TransferMain">
<table bgcolor="#CCCCFF" width=630><tr>
<table bgcolor="#CCCCFF" width=750><tr>
<td align=left>
<font class="body_text">
<IMG SRC="../agc/images/vdc_XB_header.gif" border=0 alt="Trasferimento - Conferenza"><BR>
@@ -5499,7 +5587,7 @@ Vostro Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id=
</span>
<span style="position:absolute;left:5px;top:310px;z-index:22;" id="HotKeyActionBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD height=70><font class="sh_text"> Contatto disposto come: </font><BR><BR><CENTER>
<font class="sd_text"><span id="HotKeyDispo"> - </span></font></CENTER>
</TD>
@@ -5507,7 +5595,7 @@ Vostro Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id=
</span>
<span style="position:absolute;left:5px;top:310px;z-index:23;" id="HotKeyEntriesBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD width=200><font class="sh_text"> tasti funzione per la disposizione: </font></td><td colspan=2>
<font class="body_small">Una volta attiva, premi sulla tastiera per la disposizione sulla chiamata sarà attaccata e disposta automaticamente:</font></td></tr><tr>
<TD width=200><font class="sk_text">
@@ -5523,7 +5611,7 @@ Vostro Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id=
</span>
<span style="position:absolute;left:5px;top:310px;z-index:24;" id="CBcommentsBox">
<table border=0 bgcolor="#FFFFCC" width=620 height=70>
<table border=0 bgcolor="#FFFFCC" width=740 height=70>
<TR bgcolor="#FFFF66">
<TD align=left><font class="sh_text"> Le Informazioni Precedenti Di Chiamata ripetuta: </font></td>
<TD align=right><font class="sk_text"> <a href="#" onclick="CBcommentsBoxhide();return false;">close</a> </font></td>
@@ -5540,7 +5628,7 @@ Vostro Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id=
</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> Nessuno è nella vostra sessione: <span id="NoneInSessionID"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=720 height=500><TR><TD align=center> Nessuno è nella vostra sessione: <span id="NoneInSessionID"></span><BR>
<a href="#" onclick="NoneInSessionOK();return false;">Torna Indietro</a>
<BR><BR>
<a href="#" onclick="NoneInSessionCalL();return false;">Ancora Operatore di chiamata</a>
@@ -5548,7 +5636,7 @@ Vostro Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id=
</span>
<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> Il cliente ha attaccato: <span id="CustomerGoneChanneL"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=770 height=500><TR><TD align=center> Il cliente ha attaccato: <span id="CustomerGoneChanneL"></span><BR>
<a href="#" onclick="CustomerGoneOK();return false;">Torna Indietro</a>
<BR><BR>
<a href="#" onclick="CustomerGoneHangup();return false;">Termina e disponi la chiamata</a>
@@ -5557,7 +5645,7 @@ Vostro Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id=
</span>
<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> Chiamata tempo di pausa: <span id="WrapupTimer"></span> secondi restanti prima di nuova chiamata<BR><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=550><TR><TD align=center> Chiamata tempo di pausa: <span id="WrapupTimer"></span> secondi restanti prima di nuova chiamata<BR><BR>
<span id="WrapupMessage"><?=$wrapup_message ?></span>
<BR><BR>
<a href="#" onclick="WrapupFinish();return false;">Tempo scaduto, sbrigarsi </a>
@@ -5566,7 +5654,7 @@ Vostro Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id=
</span>
<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>
<table border=1 bgcolor="#FFFFFF" width=770 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:29;" id="DispoButtonHideA">
@@ -5578,11 +5666,11 @@ Vostro Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id=
</span>
<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>Tutti i cambiamenti fatti sulle informazioni del cliente sotto non saranno effettuate, cambiare le informazioni prima di attaccare. </TD></TR></TABLE>
<table border=0 bgcolor="#CCFFCC" width=770 height=47><TR><TD align=center VALIGN=top>Tutti i cambiamenti fatti sulle informazioni del cliente sotto non saranno effettuate, cambiare le informazioni prima di attaccare. </TD></TR></TABLE>
</span>
<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> DISPOSIZIONE CHIAMATA :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Attacca ancora</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">minimizza</a></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> DISPOSIZIONE CHIAMATA :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Attacca ancora</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">minimizza</a></span><BR>
<span id="DispoSelectContent"> Selezione di fine chiamata </span>
<input type=hidden name=DispoSelection><BR>
<input type=checkbox name=DispoSelectStop size=1 value="0"> PAUSA OPERATORE <BR>
@@ -5596,7 +5684,7 @@ Vostro Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id=
<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> Selezionate una richiamata :<span id="CallBackDatE"></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> Selezionate una richiamata :<span id="CallBackDatE"></span><BR>
<input type=hidden name=CallBackDatESelectioN>
<input type=hidden name=CallBackTimESelectioN>
<span id="CallBackDatEPrinT">Selezioni una data sotto</span> &nbsp;
@@ -5639,7 +5727,7 @@ Vostro Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id=
</span>
<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> SELEZIONE DI GRUPPO INBOUND PIÙ VICINO <BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> SELEZIONE DI GRUPPO INBOUND PIÙ VICINO <BR>
<span id="CloserSelectContent"> Selezione di Gruppo Inbound più vicino </span>
<input type=hidden name=CloserSelectList><BR>
<input type=checkbox name=CloserSelectBlended size=1 value="0"> CHIAMATA MESCOLATA(outbound attivato) <BR>
@@ -5662,7 +5750,7 @@ Vostro Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id=
<span style="position:absolute;left:80px;top:12px;z-index:42;" id="MainXfeRBox">
<input type=hidden name=H_XfeR_channel>
<input type=hidden name=M_XfeR_channel>
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> TRASFERIMENTO CHIAMATA ATTIVA</b> <BR>Canale trasferito: <span id="MainXfeRChanneL">Canale</span><BR></tr>
<table border=0 bgcolor="#FFFFCC" width=720 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> TRASFERIMENTO CHIAMATA ATTIVA</b> <BR>Canale trasferito: <span id="MainXfeRChanneL">Canale</span><BR></tr>
<tr><td>Interni:<BR><span id="MainXfeRContent"> Menu degli Interni </span></td>
<td>
<BR>
@@ -5678,7 +5766,7 @@ Vostro Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id=
<span style="position:absolute;left:154px;top:65px;z-index:15;" id="ScriptPanel">
<table border=0 bgcolor="#FFE7D0" width=486 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICICHIAMA SCRIPT</div></font></TD></TR></TABLE>
<table border=0 bgcolor="#FFE7D0" width=606 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICICHIAMA SCRIPT</div></font></TD></TR></TABLE>
</span>
@@ -5688,7 +5776,7 @@ Vostro Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id=
<!-- BEGIN ********* Here is the main VICICHIAMA display panel -->
<span style="position:absolute;left:0px;top:46px;z-index:10;" id="MainPanel">
<TABLE border=0 BGCOLOR="#E0C2D6" width=640 id="MainTable">
<TABLE border=0 BGCOLOR="#E0C2D6" width=760 id="MainTable">
<TR><TD colspan=3><font class="body_text"> STATUS: <span id="MainStatuSSpan"></span></font></TD></TR>
<tr><td colspan=3><span id="busycallsdebug"></span></td></tr>
<tr><td width=150 align=left valign=top>
@@ -5725,7 +5813,7 @@ IDENTIFICAZIONE Registrazione: <font class="body_small"><span id="RecorDID"></sp
</center>
</font>
</td>
<td width=480 align=left valign=top>
<td width=600 align=left valign=top>
<input type=hidden name=lead_id value="">
<input type=hidden name=list_id value="">
<input type=hidden name=called_count value="">
@@ -62,6 +62,8 @@
# 60619-1158 - Added variable filters to close security holes for login form
# 60809-1544 - Added direct transfers to leave-3ways in consultative transfers
# 61004-1526 - Added parsing of volume control command and lookup or number
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61201-1115 - Added user to MonitorConf for recording_log
#
require("dbconnect.php");
@@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";}
if (!isset($format)) {$format="alert";}
if (!isset($ext_priority)) {$ext_priority="1";}
$version = '0.0.26';
$build = '61004-1526';
$version = '2.0.27';
$build = '61130-1617';
$StarTtime = date("U");
$NOW_DATE = date("Y-m-d");
$NOW_TIME = date("Y-m-d H:i:s");
@@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
if ($ACTION=="Monitor")
{
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
@@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
+163 -75
View File
@@ -130,6 +130,8 @@
# 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions
# 61122-1523 - Added more SCRIPT variables
# 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT
#
require("dbconnect.php");
@@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
$forever_stop=0;
$version = '2.0.103';
$build = '61128-2229';
$version = '2.0.105';
$build = '61221-1212';
if ($force_logout)
{
@@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
document.getElementById("RecorDControl").innerHTML = conf_rec_start_html;
}
}
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1";
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1";
xmlhttp.open('POST', 'manager_send.php');
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
xmlhttp.send(confmonitor_query);
@@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// decode the scripttext and scriptname so that it can be didsplayed
function URLDecode(encodedvar,scriptformat)
{
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
var RGnl = new RegExp("\n","g");
var RGplus = new RegExp(" ","g");
var RGiframe = new RegExp("iframe","gi");
if (scriptformat == 'YES')
{
var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value;
var SCsource_id = "";
var SClist_id = document.vicidial_form.list_id.value;
var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value;
var SCcalled_since_last_reset = "";
var SCphone_code = document.vicidial_form.phone_code.value;
var SCphone_number = document.vicidial_form.phone_number.value;
var SCtitle = document.vicidial_form.title.value;
var SCfirst_name = document.vicidial_form.first_name.value;
var SCmiddle_initial = document.vicidial_form.middle_initial.value;
var SClast_name = document.vicidial_form.last_name.value;
var SCaddress1 = document.vicidial_form.address1.value;
var SCaddress2 = document.vicidial_form.address2.value;
var SCaddress3 = document.vicidial_form.address3.value;
var SCcity = document.vicidial_form.city.value;
var SCstate = document.vicidial_form.state.value;
var SCprovince = document.vicidial_form.province.value;
var SCpostal_code = document.vicidial_form.postal_code.value;
var SCcountry_code = document.vicidial_form.country_code.value;
var SCgender = document.vicidial_form.gender.value;
var SCdate_of_birth = document.vicidial_form.date_of_birth.value;
var SCalt_phone = document.vicidial_form.alt_phone.value;
var SCemail = document.vicidial_form.email.value;
var SCsecurity_phrase = document.vicidial_form.security_phrase.value;
var SCcomments = document.vicidial_form.comments.value;
var SCfullname = LOGfullname;
var SCfronter = fronter;
var SCuser = user;
var SClead_id = document.vicidial_form.lead_id.value;
var SCcampaign = campaign;
var SCphone_login = phone_login;
var SCgroup = group;
var SCchannel_group = group;
var SCSQLdate = SQLdate;
var SCepoch = UnixTime;
var SCuniqueid = document.vicidial_form.uniqueid.value;
var SCcustomer_zap_channel = lastcustchannel;
var SCserver_ip = server_ip;
var SCSIPexten = extension;
var SCsession_id = session_id;
if (encoded.match(RGiframe))
{
SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+');
SCsource_id = SCsource_id.replace(RGplus,'+');
SClist_id = SClist_id.replace(RGplus,'+');
SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+');
SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+');
SCphone_code = SCphone_code.replace(RGplus,'+');
SCphone_number = SCphone_number.replace(RGplus,'+');
SCtitle = SCtitle.replace(RGplus,'+');
SCfirst_name = SCfirst_name.replace(RGplus,'+');
SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+');
SClast_name = SClast_name.replace(RGplus,'+');
SCaddress1 = SCaddress1.replace(RGplus,'+');
SCaddress2 = SCaddress2.replace(RGplus,'+');
SCaddress3 = SCaddress3.replace(RGplus,'+');
SCcity = SCcity.replace(RGplus,'+');
SCstate = SCstate.replace(RGplus,'+');
SCprovince = SCprovince.replace(RGplus,'+');
SCpostal_code = SCpostal_code.replace(RGplus,'+');
SCcountry_code = SCcountry_code.replace(RGplus,'+');
SCgender = SCgender.replace(RGplus,'+');
SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+');
SCalt_phone = SCalt_phone.replace(RGplus,'+');
SCemail = SCemail.replace(RGplus,'+');
SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+');
SCcomments = SCcomments.replace(RGplus,'+');
SCfullname = SCfullname.replace(RGplus,'+');
SCfronter = SCfronter.replace(RGplus,'+');
SCuser = SCuser.replace(RGplus,'+');
SClead_id = SClead_id.replace(RGplus,'+');
SCcampaign = SCcampaign.replace(RGplus,'+');
SCphone_login = SCphone_login.replace(RGplus,'+');
SCgroup = SCgroup.replace(RGplus,'+');
SCchannel_group = SCchannel_group.replace(RGplus,'+');
SCSQLdate = SCSQLdate.replace(RGplus,'+');
SCuniqueid = SCuniqueid.replace(RGplus,'+');
SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+');
SCserver_ip = SCserver_ip.replace(RGplus,'+');
SCSIPexten = SCSIPexten.replace(RGplus,'+');
}
var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g");
var RGsource_id = new RegExp("--A--source_id--B--","g");
var RGlist_id = new RegExp("--A--list_id--B--","g");
@@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var RGserver_ip = new RegExp("--A--server_ip--B--","g");
var RGSIPexten = new RegExp("--A--SIPexten--B--","g");
var RGsession_id = new RegExp("--A--session_id--B--","g");
var RGnl = new RegExp("\n","g");
encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value);
encoded = encoded.replace(RGsource_id, "");
encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value);
encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value);
encoded = encoded.replace(RGcalled_since_last_reset, "");
encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value);
encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value);
encoded = encoded.replace(RGtitle, document.vicidial_form.title.value);
encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value);
encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value);
encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value);
encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value);
encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value);
encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value);
encoded = encoded.replace(RGcity, document.vicidial_form.city.value);
encoded = encoded.replace(RGstate, document.vicidial_form.state.value);
encoded = encoded.replace(RGprovince, document.vicidial_form.province.value);
encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value);
encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value);
encoded = encoded.replace(RGgender, document.vicidial_form.gender.value);
encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value);
encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value);
encoded = encoded.replace(RGemail, document.vicidial_form.email.value);
encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value);
encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value);
encoded = encoded.replace(RGfullname, LOGfullname);
encoded = encoded.replace(RGfronter, fronter);
encoded = encoded.replace(RGuser, user);
encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value);
encoded = encoded.replace(RGcampaign, campaign);
encoded = encoded.replace(RGphone_login, phone_login);
encoded = encoded.replace(RGgroup, group);
encoded = encoded.replace(RGchannel_group, group);
encoded = encoded.replace(RGSQLdate, SQLdate);
encoded = encoded.replace(RGepoch, UnixTime);
encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value);
encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel);
encoded = encoded.replace(RGserver_ip, server_ip);
encoded = encoded.replace(RGSIPexten, extension);
encoded = encoded.replace(RGsession_id, session_id);
encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code);
encoded = encoded.replace(RGsource_id, SCsource_id);
encoded = encoded.replace(RGlist_id, SClist_id);
encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now);
encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset);
encoded = encoded.replace(RGphone_code, SCphone_code);
encoded = encoded.replace(RGphone_number, SCphone_number);
encoded = encoded.replace(RGtitle, SCtitle);
encoded = encoded.replace(RGfirst_name, SCfirst_name);
encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial);
encoded = encoded.replace(RGlast_name, SClast_name);
encoded = encoded.replace(RGaddress1, SCaddress1);
encoded = encoded.replace(RGaddress2, SCaddress2);
encoded = encoded.replace(RGaddress3, SCaddress3);
encoded = encoded.replace(RGcity, SCcity);
encoded = encoded.replace(RGstate, SCstate);
encoded = encoded.replace(RGprovince, SCprovince);
encoded = encoded.replace(RGpostal_code, SCpostal_code);
encoded = encoded.replace(RGcountry_code, SCcountry_code);
encoded = encoded.replace(RGgender, SCgender);
encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth);
encoded = encoded.replace(RGalt_phone, SCalt_phone);
encoded = encoded.replace(RGemail, SCemail);
encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase);
encoded = encoded.replace(RGcomments, SCcomments);
encoded = encoded.replace(RGfullname, SCfullname);
encoded = encoded.replace(RGfronter, SCfronter);
encoded = encoded.replace(RGuser, SCuser);
encoded = encoded.replace(RGlead_id, SClead_id);
encoded = encoded.replace(RGcampaign, SCcampaign);
encoded = encoded.replace(RGphone_login, SCphone_login);
encoded = encoded.replace(RGgroup, SCgroup);
encoded = encoded.replace(RGchannel_group, SCchannel_group);
encoded = encoded.replace(RGSQLdate, SCSQLdate);
encoded = encoded.replace(RGepoch, SCepoch);
encoded = encoded.replace(RGuniqueid, SCuniqueid);
encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel);
encoded = encoded.replace(RGserver_ip, SCserver_ip);
encoded = encoded.replace(RGSIPexten, SCSIPexten);
encoded = encoded.replace(RGsession_id, SCsession_id);
}
while (i < encoded.length) {
var ch = encoded.charAt(i);
@@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
div.scroll_callback {height: 300px; width: 620px; overflow: scroll;}
div.scroll_park {height: 400px; width: 620px; overflow: scroll;}
div.scroll_list {height: 400px; width: 140px; overflow: scroll;}
div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
.body_text {font-size: 13px; font-family: sans-serif;}
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
@@ -5377,7 +5465,7 @@ echo "</head>\n";
<BODY onload="begin_all_refresh();">
<FORM name=vicidial_form>
<span style="position:absolute;left:0px;top:0px;z-index:2;" id="Header">
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=640 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=760 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TR VALIGN=TOP ALIGN=LEFT><TD COLSPAN=3 VALIGN=TOP ALIGN=LEFT>
<INPUT TYPE=HIDDEN NAME=extension>
<font class="body_text">
@@ -5387,11 +5475,11 @@ echo "</head>\n";
</SPAN>
<span style="position:absolute;left:0px;top:13px;z-index:1;" id="Tabs">
<table border=0 bgcolor="#FFFFFF" width=640 height=30>
<table border=0 bgcolor="#FFFFFF" width=760 height=30>
<TR VALIGN=TOP ALIGN=LEFT>
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICIWYBIERZ" WIDTH=115 HEIGHT=30 Border=0></A></TD>
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 Border=0></A></TD>
<TD WIDTH=309 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; ID sesji: <span id=sessionIDspan></span></TD>
<TD WIDTH=431 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; ID sesji: <span id=sessionIDspan></span></TD>
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF_pl.gif" NAME=livecall ALT="Aktywna rozmowa" WIDTH=109 HEIGHT=30 Border=0></TD>
</TR></TABLE>
</span>
@@ -5399,7 +5487,7 @@ echo "</head>\n";
<span style="position:absolute;left:0px;top:0px;z-index:3;" id="WitajBoxA">
<table border=0 bgcolor="#FFFFFF" width=650 height=500><TR><TD align=center><BR><span id="WitajBoxAt">VICIWYBIERZ</span></TD></TR></TABLE>
<table border=0 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="WitajBoxAt">VICIWYBIERZ</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:300px;top:365px;z-index:13;" id="ManuaLDiaLButtons"><font class="body_text">
@@ -5411,7 +5499,7 @@ echo "</head>\n";
</font></span>
<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> INNE TERMINY DLA AGENTA <? echo $VD_login ?>:<BR>Kliknij poniżej na Inne terminy żeby teraz zadzwonić do klienta. Jeżeli klikniesz na rekordzie by zadzwonić, rekord zostanie usunięty z listy.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> INNE TERMINY DLA AGENTA <? echo $VD_login ?>:<BR>Kliknij poniżej na Inne terminy żeby teraz zadzwonić do klienta. Jeżeli klikniesz na rekordzie by zadzwonić, rekord zostanie usunięty z listy.
<BR>
<div class="scroll_callback" id="CallBacKsLisT"></div>
<BR> &nbsp;
@@ -5422,7 +5510,7 @@ echo "</head>\n";
</span>
<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> NOWE RĘCZNE WYBIERANIE NUMERU DLA <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Wpisz poniżej informacje o kontakcie do którego chcesz wykonać połączenie.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> NOWE RĘCZNE WYBIERANIE NUMERU DLA <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Wpisz poniżej informacje o kontakcie do którego chcesz wykonać połączenie.
<BR>
<?
if (eregi("X",dial_prefix))
@@ -5456,18 +5544,18 @@ echo "</head>\n";
<span style="position:absolute;left:250px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
<span style="position:absolute;left:5px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
</font></span>
<span style="position:absolute;left:5px;top:350px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
<span style="position:absolute;left:35px;top:350px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusCalls"></span>
</font></span>
<span style="position:absolute;left:5px;top:310px;z-index:21;" id="TransferMain">
<table bgcolor="#CCCCFF" width=630><tr>
<table bgcolor="#CCCCFF" width=750><tr>
<td align=left>
<font class="body_text">
<IMG SRC="../agc/images/vdc_XB_header.gif" border=0 alt="Transfer - Konferencja"><BR>
@@ -5499,7 +5587,7 @@ Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="
</span>
<span style="position:absolute;left:5px;top:310px;z-index:22;" id="HotKeyActionBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD height=70><font class="sh_text"> Połączenie rozdysponowane jako: </font><BR><BR><CENTER>
<font class="sd_text"><span id="HotKeyDispo"> - </span></font></CENTER>
</TD>
@@ -5507,7 +5595,7 @@ Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="
</span>
<span style="position:absolute;left:5px;top:310px;z-index:23;" id="HotKeyEntriesBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD width=200><font class="sh_text"> Klawisze skrótu dyspozycji: </font></td><td colspan=2>
<font class="body_small">Kiedy aktywne, naciśnij guzik na klawiaturze w celu wybrania opcji dla tej rozmowy. Rozmowa zostanie automatycznie rozłączona a opcja ustawiona:</font></td></tr><tr>
<TD width=200><font class="sk_text">
@@ -5523,7 +5611,7 @@ Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="
</span>
<span style="position:absolute;left:5px;top:310px;z-index:24;" id="CBcommentsBox">
<table border=0 bgcolor="#FFFFCC" width=620 height=70>
<table border=0 bgcolor="#FFFFCC" width=740 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>
@@ -5540,7 +5628,7 @@ Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="
</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> Nikt nie uczestniczy w Twojej sesji: <span id="NoneInSessionID"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=720 height=500><TR><TD align=center> Nikt nie uczestniczy w Twojej sesji: <span id="NoneInSessionID"></span><BR>
<a href="#" onclick="NoneInSessionOK();return false;">Wróć</a>
<BR><BR>
<a href="#" onclick="NoneInSessionCalL();return false;">Ponownie połącz się z telefonem</a>
@@ -5548,7 +5636,7 @@ Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="
</span>
<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> Klient sie rozłączył: <span id="CustomerGoneChanneL"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=770 height=500><TR><TD align=center> Klient sie rozłączył: <span id="CustomerGoneChanneL"></span><BR>
<a href="#" onclick="CustomerGoneOK();return false;">Wróć</a>
<BR><BR>
<a href="#" onclick="CustomerGoneHangup();return false;">Zakończ i wprowadź rezultat rozmowy</a>
@@ -5557,7 +5645,7 @@ Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="
</span>
<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> sekundy remaining in wrapup<BR><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=550><TR><TD align=center> Call Wrapup <span id="WrapupTimer"></span> sekundy remaining in wrapup<BR><BR>
<span id="WrapupMessage"><?=$wrapup_message ?></span>
<BR><BR>
<a href="#" onclick="WrapupFinish();return false;">Finish Wrapup and Move On</a>
@@ -5566,7 +5654,7 @@ Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="
</span>
<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">WYLOGUJ</span></TD></TR></TABLE>
<table border=1 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="LogouTBoxLink">WYLOGUJ</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:0px;top:70px;z-index:29;" id="DispoButtonHideA">
@@ -5578,11 +5666,11 @@ Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="
</span>
<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>Zmiany wprowadzone w informacjach o kliencie będą zapisane tylko podczas trwania połączenia. Nie po rozłączaniu!. </TD></TR></TABLE>
<table border=0 bgcolor="#CCFFCC" width=770 height=47><TR><TD align=center VALIGN=top>Zmiany wprowadzone w informacjach o kliencie będą zapisane tylko podczas trwania połączenia. Nie po rozłączaniu!. </TD></TR></TABLE>
</span>
<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> REZULTAT ROZMOWY :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Rozłącz się ponownie</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">minimalizuj</a></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> REZULTAT ROZMOWY :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Rozłącz się ponownie</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">minimalizuj</a></span><BR>
<span id="DispoSelectContent"> Koniec rozmowy, wybierz rezultat </span>
<input type=hidden name=DispoSelection><BR>
<input type=checkbox name=DispoSelectStop size=1 value="0"> ZATRZYMAJ DZWONIENIE <BR>
@@ -5596,7 +5684,7 @@ Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="
<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> Wybierz datę oddzwonienia :<span id="CallBackDatE"></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> Wybierz datę oddzwonienia :<span id="CallBackDatE"></span><BR>
<input type=hidden name=CallBackDatESelectioN>
<input type=hidden name=CallBackTimESelectioN>
<span id="CallBackDatEPrinT">Wybierz datę poniżej</span> &nbsp;
@@ -5639,7 +5727,7 @@ Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="
</span>
<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> SELEKCJA GRUPY ZAWNĘTRZNYCH FINALIZUJĄCYCH <BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> SELEKCJA GRUPY ZAWNĘTRZNYCH FINALIZUJĄCYCH <BR>
<span id="CloserSelectContent"> Selekcja grupy zawnętrznych finalizujących </span>
<input type=hidden name=CloserSelectList><BR>
<input type=checkbox name=CloserSelectBlended size=1 value="0"> KOMBINOWANE POŁĄCZENIA(wychodzące aktywowane) <BR>
@@ -5662,7 +5750,7 @@ Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="
<span style="position:absolute;left:80px;top:12px;z-index:42;" id="MainXfeRBox">
<input type=hidden name=H_XfeR_channel>
<input type=hidden name=M_XfeR_channel>
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> AKTYWNA ROZMOWA PRZENIESIONA</b> <BR>Kanały do przeniesienia: <span id="MainXfeRChanneL">Kanał</span><BR></tr>
<table border=0 bgcolor="#FFFFCC" width=720 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> AKTYWNA ROZMOWA PRZENIESIONA</b> <BR>Kanały do przeniesienia: <span id="MainXfeRChanneL">Kanał</span><BR></tr>
<tr><td>NumerWenętrzny:<BR><span id="MainXfeRContent"> Menu rozszerzeń </span></td>
<td>
<BR>
@@ -5678,7 +5766,7 @@ Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="
<span style="position:absolute;left:154px;top:65px;z-index:15;" id="ScriptPanel">
<table border=0 bgcolor="#FFE7D0" width=486 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIWYBIERZ SCRIPT</div></font></TD></TR></TABLE>
<table border=0 bgcolor="#FFE7D0" width=606 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICIWYBIERZ SCRIPT</div></font></TD></TR></TABLE>
</span>
@@ -5688,7 +5776,7 @@ Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="
<!-- BEGIN ********* Here is the main VICIWYBIERZ display panel -->
<span style="position:absolute;left:0px;top:46px;z-index:10;" id="MainPanel">
<TABLE border=0 BGCOLOR="#E0C2D6" width=640 id="MainTable">
<TABLE border=0 BGCOLOR="#E0C2D6" width=760 id="MainTable">
<TR><TD colspan=3><font class="body_text"> STATUS: <span id="MainStatuSSpan"></span></font></TD></TR>
<tr><td colspan=3><span id="busycallsdebug"></span></td></tr>
<tr><td width=150 align=left valign=top>
@@ -5725,7 +5813,7 @@ NUMER NAGRANIA: <font class="body_small"><span id="RecorDID"></span></font><BR>
</center>
</font>
</td>
<td width=480 align=left valign=top>
<td width=600 align=left valign=top>
<input type=hidden name=lead_id value="">
<input type=hidden name=list_id value="">
<input type=hidden name=called_count value="">
@@ -62,6 +62,8 @@
# 60619-1158 - Added variable filters to close security holes for login form
# 60809-1544 - Added direct transfers to leave-3ways in consultative transfers
# 61004-1526 - Added parsing of volume control command and lookup or number
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61201-1115 - Added user to MonitorConf for recording_log
#
require("dbconnect.php");
@@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";}
if (!isset($format)) {$format="alert";}
if (!isset($ext_priority)) {$ext_priority="1";}
$version = '0.0.26';
$build = '61004-1526';
$version = '2.0.27';
$build = '61130-1617';
$StarTtime = date("U");
$NOW_DATE = date("Y-m-d");
$NOW_TIME = date("Y-m-d H:i:s");
@@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
if ($ACTION=="Monitor")
{
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
@@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')";
$stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
+163 -75
View File
@@ -130,6 +130,8 @@
# 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions
# 61122-1523 - Added more SCRIPT variables
# 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries
# 61130-1617 - Added lead_id to MonitorConf for recording_log
# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT
#
require("dbconnect.php");
@@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
$forever_stop=0;
$version = '2.0.103';
$build = '61128-2229';
$version = '2.0.105';
$build = '61221-1212';
if ($force_logout)
{
@@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
document.getElementById("RecorDControl").innerHTML = conf_rec_start_html;
}
}
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1";
confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1";
xmlhttp.open('POST', 'manager_send.php');
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
xmlhttp.send(confmonitor_query);
@@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// decode the scripttext and scriptname so that it can be didsplayed
function URLDecode(encodedvar,scriptformat)
{
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
// Replace %ZZ with equivalent character
// Put [ERR] in output if %ZZ is invalid.
var HEXCHAR = "0123456789ABCDEFabcdef";
var encoded = encodedvar;
decoded = '';
var i = 0;
var RGnl = new RegExp("\n","g");
var RGplus = new RegExp(" ","g");
var RGiframe = new RegExp("iframe","gi");
if (scriptformat == 'YES')
{
var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value;
var SCsource_id = "";
var SClist_id = document.vicidial_form.list_id.value;
var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value;
var SCcalled_since_last_reset = "";
var SCphone_code = document.vicidial_form.phone_code.value;
var SCphone_number = document.vicidial_form.phone_number.value;
var SCtitle = document.vicidial_form.title.value;
var SCfirst_name = document.vicidial_form.first_name.value;
var SCmiddle_initial = document.vicidial_form.middle_initial.value;
var SClast_name = document.vicidial_form.last_name.value;
var SCaddress1 = document.vicidial_form.address1.value;
var SCaddress2 = document.vicidial_form.address2.value;
var SCaddress3 = document.vicidial_form.address3.value;
var SCcity = document.vicidial_form.city.value;
var SCstate = document.vicidial_form.state.value;
var SCprovince = document.vicidial_form.province.value;
var SCpostal_code = document.vicidial_form.postal_code.value;
var SCcountry_code = document.vicidial_form.country_code.value;
var SCgender = document.vicidial_form.gender.value;
var SCdate_of_birth = document.vicidial_form.date_of_birth.value;
var SCalt_phone = document.vicidial_form.alt_phone.value;
var SCemail = document.vicidial_form.email.value;
var SCsecurity_phrase = document.vicidial_form.security_phrase.value;
var SCcomments = document.vicidial_form.comments.value;
var SCfullname = LOGfullname;
var SCfronter = fronter;
var SCuser = user;
var SClead_id = document.vicidial_form.lead_id.value;
var SCcampaign = campaign;
var SCphone_login = phone_login;
var SCgroup = group;
var SCchannel_group = group;
var SCSQLdate = SQLdate;
var SCepoch = UnixTime;
var SCuniqueid = document.vicidial_form.uniqueid.value;
var SCcustomer_zap_channel = lastcustchannel;
var SCserver_ip = server_ip;
var SCSIPexten = extension;
var SCsession_id = session_id;
if (encoded.match(RGiframe))
{
SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+');
SCsource_id = SCsource_id.replace(RGplus,'+');
SClist_id = SClist_id.replace(RGplus,'+');
SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+');
SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+');
SCphone_code = SCphone_code.replace(RGplus,'+');
SCphone_number = SCphone_number.replace(RGplus,'+');
SCtitle = SCtitle.replace(RGplus,'+');
SCfirst_name = SCfirst_name.replace(RGplus,'+');
SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+');
SClast_name = SClast_name.replace(RGplus,'+');
SCaddress1 = SCaddress1.replace(RGplus,'+');
SCaddress2 = SCaddress2.replace(RGplus,'+');
SCaddress3 = SCaddress3.replace(RGplus,'+');
SCcity = SCcity.replace(RGplus,'+');
SCstate = SCstate.replace(RGplus,'+');
SCprovince = SCprovince.replace(RGplus,'+');
SCpostal_code = SCpostal_code.replace(RGplus,'+');
SCcountry_code = SCcountry_code.replace(RGplus,'+');
SCgender = SCgender.replace(RGplus,'+');
SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+');
SCalt_phone = SCalt_phone.replace(RGplus,'+');
SCemail = SCemail.replace(RGplus,'+');
SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+');
SCcomments = SCcomments.replace(RGplus,'+');
SCfullname = SCfullname.replace(RGplus,'+');
SCfronter = SCfronter.replace(RGplus,'+');
SCuser = SCuser.replace(RGplus,'+');
SClead_id = SClead_id.replace(RGplus,'+');
SCcampaign = SCcampaign.replace(RGplus,'+');
SCphone_login = SCphone_login.replace(RGplus,'+');
SCgroup = SCgroup.replace(RGplus,'+');
SCchannel_group = SCchannel_group.replace(RGplus,'+');
SCSQLdate = SCSQLdate.replace(RGplus,'+');
SCuniqueid = SCuniqueid.replace(RGplus,'+');
SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+');
SCserver_ip = SCserver_ip.replace(RGplus,'+');
SCSIPexten = SCSIPexten.replace(RGplus,'+');
}
var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g");
var RGsource_id = new RegExp("--A--source_id--B--","g");
var RGlist_id = new RegExp("--A--list_id--B--","g");
@@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var RGserver_ip = new RegExp("--A--server_ip--B--","g");
var RGSIPexten = new RegExp("--A--SIPexten--B--","g");
var RGsession_id = new RegExp("--A--session_id--B--","g");
var RGnl = new RegExp("\n","g");
encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value);
encoded = encoded.replace(RGsource_id, "");
encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value);
encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value);
encoded = encoded.replace(RGcalled_since_last_reset, "");
encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value);
encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value);
encoded = encoded.replace(RGtitle, document.vicidial_form.title.value);
encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value);
encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value);
encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value);
encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value);
encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value);
encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value);
encoded = encoded.replace(RGcity, document.vicidial_form.city.value);
encoded = encoded.replace(RGstate, document.vicidial_form.state.value);
encoded = encoded.replace(RGprovince, document.vicidial_form.province.value);
encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value);
encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value);
encoded = encoded.replace(RGgender, document.vicidial_form.gender.value);
encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value);
encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value);
encoded = encoded.replace(RGemail, document.vicidial_form.email.value);
encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value);
encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value);
encoded = encoded.replace(RGfullname, LOGfullname);
encoded = encoded.replace(RGfronter, fronter);
encoded = encoded.replace(RGuser, user);
encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value);
encoded = encoded.replace(RGcampaign, campaign);
encoded = encoded.replace(RGphone_login, phone_login);
encoded = encoded.replace(RGgroup, group);
encoded = encoded.replace(RGchannel_group, group);
encoded = encoded.replace(RGSQLdate, SQLdate);
encoded = encoded.replace(RGepoch, UnixTime);
encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value);
encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel);
encoded = encoded.replace(RGserver_ip, server_ip);
encoded = encoded.replace(RGSIPexten, extension);
encoded = encoded.replace(RGsession_id, session_id);
encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code);
encoded = encoded.replace(RGsource_id, SCsource_id);
encoded = encoded.replace(RGlist_id, SClist_id);
encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now);
encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset);
encoded = encoded.replace(RGphone_code, SCphone_code);
encoded = encoded.replace(RGphone_number, SCphone_number);
encoded = encoded.replace(RGtitle, SCtitle);
encoded = encoded.replace(RGfirst_name, SCfirst_name);
encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial);
encoded = encoded.replace(RGlast_name, SClast_name);
encoded = encoded.replace(RGaddress1, SCaddress1);
encoded = encoded.replace(RGaddress2, SCaddress2);
encoded = encoded.replace(RGaddress3, SCaddress3);
encoded = encoded.replace(RGcity, SCcity);
encoded = encoded.replace(RGstate, SCstate);
encoded = encoded.replace(RGprovince, SCprovince);
encoded = encoded.replace(RGpostal_code, SCpostal_code);
encoded = encoded.replace(RGcountry_code, SCcountry_code);
encoded = encoded.replace(RGgender, SCgender);
encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth);
encoded = encoded.replace(RGalt_phone, SCalt_phone);
encoded = encoded.replace(RGemail, SCemail);
encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase);
encoded = encoded.replace(RGcomments, SCcomments);
encoded = encoded.replace(RGfullname, SCfullname);
encoded = encoded.replace(RGfronter, SCfronter);
encoded = encoded.replace(RGuser, SCuser);
encoded = encoded.replace(RGlead_id, SClead_id);
encoded = encoded.replace(RGcampaign, SCcampaign);
encoded = encoded.replace(RGphone_login, SCphone_login);
encoded = encoded.replace(RGgroup, SCgroup);
encoded = encoded.replace(RGchannel_group, SCchannel_group);
encoded = encoded.replace(RGSQLdate, SCSQLdate);
encoded = encoded.replace(RGepoch, SCepoch);
encoded = encoded.replace(RGuniqueid, SCuniqueid);
encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel);
encoded = encoded.replace(RGserver_ip, SCserver_ip);
encoded = encoded.replace(RGSIPexten, SCSIPexten);
encoded = encoded.replace(RGsession_id, SCsession_id);
}
while (i < encoded.length) {
var ch = encoded.charAt(i);
@@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
div.scroll_callback {height: 300px; width: 620px; overflow: scroll;}
div.scroll_park {height: 400px; width: 620px; overflow: scroll;}
div.scroll_list {height: 400px; width: 140px; overflow: scroll;}
div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
.body_text {font-size: 13px; font-family: sans-serif;}
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
@@ -5377,7 +5465,7 @@ echo "</head>\n";
<BODY onload="begin_all_refresh();">
<FORM name=vicidial_form>
<span style="position:absolute;left:0px;top:0px;z-index:2;" id="Header">
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=640 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=760 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
<TR VALIGN=TOP ALIGN=LEFT><TD COLSPAN=3 VALIGN=TOP ALIGN=LEFT>
<INPUT TYPE=HIDDEN NAME=extension>
<font class="body_text">
@@ -5387,11 +5475,11 @@ echo "</head>\n";
</SPAN>
<span style="position:absolute;left:0px;top:13px;z-index:1;" id="Tabs">
<table border=0 bgcolor="#FFFFFF" width=640 height=30>
<table border=0 bgcolor="#FFFFFF" width=760 height=30>
<TR VALIGN=TOP ALIGN=LEFT>
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICISELETOR" WIDTH=115 HEIGHT=30 Border=0></A></TD>
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 Border=0></A></TD>
<TD WIDTH=309 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; sessão ID: <span id=sessionIDspan></span></TD>
<TD WIDTH=431 VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> &nbsp; <span id=status>LIVE</span> &nbsp; &nbsp; sessão ID: <span id=sessionIDspan></span></TD>
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF.gif" NAME=livecall ALT="Vive A Chamada" WIDTH=109 HEIGHT=30 Border=0></TD>
</TR></TABLE>
</span>
@@ -5399,7 +5487,7 @@ echo "</head>\n";
<span style="position:absolute;left:0px;top:0px;z-index:3;" id="Boa vindaBoxA">
<table border=0 bgcolor="#FFFFFF" width=650 height=500><TR><TD align=center><BR><span id="Boa vindaBoxAt">VICISELETOR</span></TD></TR></TABLE>
<table border=0 bgcolor="#FFFFFF" width=770 height=500><TR><TD align=center><BR><span id="Boa vindaBoxAt">VICISELETOR</span></TD></TR></TABLE>
</span>
<span style="position:absolute;left:300px;top:365px;z-index:13;" id="ManuaLDiaLButtons"><font class="body_text">
@@ -5411,7 +5499,7 @@ echo "</head>\n";
</font></span>
<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> RECHAMADAS PARA O AGENTE <? echo $VD_login ?>:<BR>Estale sobre uma rechamada abaixo para chamar agora a parte traseira do cliente. Se você estalar sobre um registro abaixo para o chamar, estará removido da lista.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> RECHAMADAS PARA O AGENTE <? echo $VD_login ?>:<BR>Estale sobre uma rechamada abaixo para chamar agora a parte traseira do cliente. Se você estalar sobre um registro abaixo para o chamar, estará removido da lista.
<BR>
<div class="scroll_callback" id="CallBacKsLisT"></div>
<BR> &nbsp;
@@ -5422,7 +5510,7 @@ echo "</head>\n";
</span>
<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> LIGAÇÃO MANUAL NOVA DO SELETOR PARA <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Incorpore a informação abaixo para a ligação que nova você deseja se chamar.
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> LIGAÇÃO MANUAL NOVA DO SELETOR PARA <? echo "$VD_login in campaign $VD_campaign" ?>:<BR><BR>Incorpore a informação abaixo para a ligação que nova você deseja se chamar.
<BR>
<?
if (eregi("X",dial_prefix))
@@ -5456,18 +5544,18 @@ echo "</head>\n";
<span style="position:absolute;left:250px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
<span style="position:absolute;left:5px;top:352px;z-index:19;" id="VolumeControlSpan"><span id="VolumeUpSpan"><IMG SRC="../agc/images/vdc_volume_up_off.gif" Border=0></span><BR><span id="VolumeDownSpan"><IMG SRC="../agc/images/vdc_volume_down_off.gif" Border=0></span>
</font></span>
<span style="position:absolute;left:5px;top:350px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
<span style="position:absolute;left:35px;top:350px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusCalls"></span>
</font></span>
<span style="position:absolute;left:5px;top:310px;z-index:21;" id="TransferMain">
<table bgcolor="#CCCCFF" width=630><tr>
<table bgcolor="#CCCCFF" width=750><tr>
<td align=left>
<font class="body_text">
<IMG SRC="../agc/images/vdc_XB_header.gif" border=0 alt="Transferência - Conferência"><BR>
@@ -5499,7 +5587,7 @@ Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<span style="position:absolute;left:5px;top:310px;z-index:22;" id="HotKeyActionBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD height=70><font class="sh_text"> Ligação Dispositioned Como: </font><BR><BR><CENTER>
<font class="sd_text"><span id="HotKeyDispo"> - </span></font></CENTER>
</TD>
@@ -5507,7 +5595,7 @@ Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<span style="position:absolute;left:5px;top:310px;z-index:23;" id="HotKeyEntriesBox">
<table border=0 bgcolor="#FFDD99" width=620 height=70>
<table border=0 bgcolor="#FFDD99" width=740 height=70>
<TR bgcolor="#FFEEBB"><TD width=200><font class="sh_text"> Chaves Quentes Da Disposição: </font></td><td colspan=2>
<font class="body_small">Quando ativo, pressione simplesmente a chave de teclado para a:</font></td></tr><tr>
<TD width=200><font class="sk_text">
@@ -5523,7 +5611,7 @@ Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<span style="position:absolute;left:5px;top:310px;z-index:24;" id="CBcommentsBox">
<table border=0 bgcolor="#FFFFCC" width=620 height=70>
<table border=0 bgcolor="#FFFFCC" width=740 height=70>
<TR bgcolor="#FFFF66">
<TD align=left><font class="sh_text"> Informação Precedente Da Rechamada: </font></td>
<TD align=right><font class="sk_text"> <a href="#" onclick="CBcommentsBoxhide();return false;">close</a> </font></td>
@@ -5540,7 +5628,7 @@ Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</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 está em sua sessão: <span id="NoneInSessionID"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=720 height=500><TR><TD align=center> Noone está em sua sessão: <span id="NoneInSessionID"></span><BR>
<a href="#" onclick="NoneInSessionOK();return false;">Vá Para trás</a>
<BR><BR>
<a href="#" onclick="NoneInSessionCalL();return false;">Agente Da Chamada Outra vez</a>
@@ -5548,7 +5636,7 @@ Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<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> O cliente pendurou acima: <span id="CustomerGoneChanneL"></span><BR>
<table border=1 bgcolor="#CCFFFF" width=770 height=500><TR><TD align=center> O cliente pendurou acima: <span id="CustomerGoneChanneL"></span><BR>
<a href="#" onclick="CustomerGoneOK();return false;">Vá Para trás</a>
<BR><BR>
<a href="#" onclick="CustomerGoneHangup();return false;">Revestimento e chamada da disposição</a>
@@ -5557,7 +5645,7 @@ Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<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> Chamada Wrapup: <span id="WrapupTimer"></span> segundos restantes no wrapup<BR><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=550><TR><TD align=center> Chamada Wrapup: <span id="WrapupTimer"></span> segundos restantes no wrapup<BR><BR>
<span id="WrapupMessage"><?=$wrapup_message ?></span>
<BR><BR>
<a href="#" onclick="WrapupFinish();return false;">Revestimento Wrapup e movimento sobre</a>
@@ -5566,7 +5654,7 @@ Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<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>
<table border=1 bgcolor="#FFFFFF" width=770 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:29;" id="DispoButtonHideA">
@@ -5578,11 +5666,11 @@ Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<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>Todas as mudanças feitas ao cliente que a informação abaixo neste tempo não será comitted, você devem mudar a informação do cliente antes de você hangup a chamada. </TD></TR></TABLE>
<table border=0 bgcolor="#CCFFCC" width=770 height=47><TR><TD align=center VALIGN=top>Todas as mudanças feitas ao cliente que a informação abaixo neste tempo não será comitted, você devem mudar a informação do cliente antes de você hangup a chamada. </TD></TR></TABLE>
</span>
<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> CHAMADA DA DISPOSIÇÃO :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Hangup Outra vez</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">minimize</a></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> CHAMADA DA DISPOSIÇÃO :<span id="DispoSelectPhonE"></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectHAspan"><a href="#" onclick="DispoHanguPAgaiN()">Hangup Outra vez</a></span> &nbsp; &nbsp; &nbsp; <span id="DispoSelectMaxMin"><a href="#" onclick="DispoMinimize()">minimize</a></span><BR>
<span id="DispoSelectContent"> Extremidade-$$$-CHAME A Seleção Da Disposição </span>
<input type=hidden name=DispoSelection><BR>
<input type=checkbox name=DispoSelectStop size=1 value="0"> PARE DE CHAMAR-SE <BR>
@@ -5596,7 +5684,7 @@ Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
<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> Selecione uma data da rechamada :<span id="CallBackDatE"></span><BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> Selecione uma data da rechamada :<span id="CallBackDatE"></span><BR>
<input type=hidden name=CallBackDatESelectioN>
<input type=hidden name=CallBackTimESelectioN>
<span id="CallBackDatEPrinT">Selecione uma data abaixo</span> &nbsp;
@@ -5639,7 +5727,7 @@ Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
</span>
<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> SELEÇÃO DE GRUPO INBOUND MAIS PRÓXIMA <BR>
<table border=1 bgcolor="#CCFFCC" width=770 height=460><TR><TD align=center VALIGN=top> SELEÇÃO DE GRUPO INBOUND MAIS PRÓXIMA <BR>
<span id="CloserSelectContent"> Seleção De Grupo Inbound Mais próxima </span>
<input type=hidden name=CloserSelectList><BR>
<input type=checkbox name=CloserSelectBlended size=1 value="0"> CHAMADA MISTURADA(outbound ativado) <BR>
@@ -5662,7 +5750,7 @@ Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
<span style="position:absolute;left:80px;top:12px;z-index:42;" id="MainXfeRBox">
<input type=hidden name=H_XfeR_channel>
<input type=hidden name=M_XfeR_channel>
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> TRANSFERÊNCIA VIVA DA CHAMADA</b> <BR>Canaleta a ser transferida: <span id="MainXfeRChanneL">Canaleta</span><BR></tr>
<table border=0 bgcolor="#FFFFCC" width=720 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> TRANSFERÊNCIA VIVA DA CHAMADA</b> <BR>Canaleta a ser transferida: <span id="MainXfeRChanneL">Canaleta</span><BR></tr>
<tr><td>Extensões:<BR><span id="MainXfeRContent"> Menu Das Extensões </span></td>
<td>
<BR>
@@ -5678,7 +5766,7 @@ Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
<span style="position:absolute;left:154px;top:65px;z-index:15;" id="ScriptPanel">
<table border=0 bgcolor="#FFE7D0" width=486 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICISELETOR SCRIPT</div></font></TD></TR></TABLE>
<table border=0 bgcolor="#FFE7D0" width=606 height=331><TR><TD align=left valign=top><font class="sb_text"><div class="scroll_script" id="ScriptContents">VICISELETOR SCRIPT</div></font></TD></TR></TABLE>
</span>
@@ -5688,7 +5776,7 @@ Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="Ag
<!-- BEGIN ********* Here is the main VICISELETOR display panel -->
<span style="position:absolute;left:0px;top:46px;z-index:10;" id="MainPanel">
<TABLE border=0 BGCOLOR="#E0C2D6" width=640 id="MainTable">
<TABLE border=0 BGCOLOR="#E0C2D6" width=760 id="MainTable">
<TR><TD colspan=3><font class="body_text"> STATUS: <span id="MainStatuSSpan"></span></font></TD></TR>
<tr><td colspan=3><span id="busycallsdebug"></span></td></tr>
<tr><td width=150 align=left valign=top>
@@ -5725,7 +5813,7 @@ ID REGISTRO: <font class="body_small"><span id="RecorDID"></span></font><BR>
</center>
</font>
</td>
<td width=480 align=left valign=top>
<td width=600 align=left valign=top>
<input type=hidden name=lead_id value="">
<input type=hidden name=list_id value="">
<input type=hidden name=called_count value="">
@@ -7,6 +7,7 @@
#
# 60619-1718 - Added variable filtering to eliminate SQL injection attack threat
# - Added required user/pass to gain access to this page
# 61215-1139 - Added drop percentage of answered and round-2 decimal
#
header ("Content-type: text/html; charset=utf-8");
@@ -119,7 +120,7 @@ if ( ($row[0] < 1) or ($row[1] < 1) )
else
{
$average_hold_seconds = ($row[1] / $row[0]);
$average_hold_seconds = round($average_hold_seconds, 0);
$average_hold_seconds = round($average_hold_seconds, 2);
$average_hold_seconds = sprintf("%10s", $average_hold_seconds);
}
echo "Total Calls placed from this Campaign: $TOTALcalls\n";
@@ -132,32 +133,49 @@ $stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
$DROPcalls = sprintf("%10s", $row[0]);
$DROPcallsRAW = $row[0];
$DROPseconds = $row[1];
$stmt="select count(*) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status NOT IN('NA','B');";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
$ANSWERcalls = $row[0];
if ( ($DROPcalls < 1) or ($TOTALcalls < 1) )
{$DROPpercent = '0';}
else
{
$DROPpercent = (($DROPcalls / $TOTALcalls) * 100);
$DROPpercent = round($DROPpercent, 0);
$DROPpercent = (($DROPcallsRAW / $TOTALcalls) * 100);
$DROPpercent = round($DROPpercent, 2);
}
if ( ($row[0] < 1) or ($row[1] < 1) )
if ( ($DROPcalls < 1) or ($ANSWERcalls < 1) )
{$DROPANSWERpercent = '0';}
else
{
$DROPANSWERpercent = (($DROPcallsRAW / $ANSWERcalls) * 100);
$DROPANSWERpercent = round($DROPANSWERpercent, 2);
}
if ( ($DROPseconds < 1) or ($DROPcallsRAW < 1) )
{$average_hold_seconds = ' 0';}
else
{
$average_hold_seconds = ($row[1] / $row[0]);
$average_hold_seconds = round($average_hold_seconds, 0);
$average_hold_seconds = ($DROPseconds / $DROPcallsRAW);
$average_hold_seconds = round($average_hold_seconds, 2);
$average_hold_seconds = sprintf("%10s", $average_hold_seconds);
}
echo "Total DROP Calls: $DROPcalls $DROPpercent%\n";
echo "Percent of DROP Calls taken out of Answers: $DROPcalls / $ANSWERcalls $DROPANSWERpercent%\n";
echo "Average Length for DROP Calls in seconds: $average_hold_seconds\n";
echo "\n";
echo "---------- AUTO-DIAL NO ANSWERS\n";
$stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status='NA' and (length_in_sec <= 60 or length_in_sec is null);";
$stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status IN('NA','B') and (length_in_sec <= 60 or length_in_sec is null);";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
@@ -168,7 +186,7 @@ if ( ($NAcalls < 1) or ($TOTALcalls < 1) )
else
{
$NApercent = (($NAcalls / $TOTALcalls) * 100);
$NApercent = round($NApercent, 0);
$NApercent = round($NApercent, 2);
}
if ( ($row[0] < 1) or ($row[1] < 1) )
@@ -176,11 +194,11 @@ if ( ($row[0] < 1) or ($row[1] < 1) )
else
{
$average_na_seconds = ($row[1] / $row[0]);
$average_na_seconds = round($average_na_seconds, 0);
$average_na_seconds = round($average_na_seconds, 2);
$average_na_seconds = sprintf("%10s", $average_na_seconds);
}
echo "Total NA calls -Busy,Disconnect,BTvoicemail: $NAcalls $NApercent%\n";
echo "Total NA calls -Busy,Disconnect,RingNoAnswer: $NAcalls $NApercent%\n";
echo "Average Call Length for NA Calls in seconds: $average_na_seconds\n";
@@ -63,9 +63,10 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
<?
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
echo "<TITLE>VICIDIAL: Agent Time Sheet</TITLE></HEAD><BODY BGCOLOR=WHITE>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=19 MAXLENGTH=19 VALUE=\"$query_date\">\n";
echo "<INPUT TYPE=TEXT NAME=agent SIZE=10 MAXLENGTH=20 VALUE=\"$agent\">\n";
echo "<a href=\"./admin.php\">VICIDIAL ADMIN</a>: Agent Time Sheet<BR>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET> &nbsp; \n";
echo "Date: <INPUT TYPE=TEXT NAME=query_date SIZE=19 MAXLENGTH=19 VALUE=\"$query_date\">\n";
echo "User ID: <INPUT TYPE=TEXT NAME=agent SIZE=10 MAXLENGTH=20 VALUE=\"$agent\">\n";
echo "<INPUT TYPE=SUBMIT NAME=SUBMIT VALUE=SUBMIT>\n";
echo "</FORM>\n\n";
@@ -63,9 +63,10 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
<?
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
echo "<TITLE>VICIDIAL: Agent Time Sheet</TITLE></HEAD><BODY BGCOLOR=WHITE>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=19 MAXLENGTH=19 VALUE=\"$query_date\">\n";
echo "<INPUT TYPE=TEXT NAME=agent SIZE=10 MAXLENGTH=20 VALUE=\"$agent\">\n";
echo "<a href=\"./admin.php\">VICIDIAL ADMIN</a>: Agent Time Sheet Archive<BR>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET> &nbsp; \n";
echo "Date: <INPUT TYPE=TEXT NAME=query_date SIZE=19 MAXLENGTH=19 VALUE=\"$query_date\">\n";
echo "User ID: <INPUT TYPE=TEXT NAME=agent SIZE=10 MAXLENGTH=20 VALUE=\"$agent\">\n";
echo "<INPUT TYPE=SUBMIT NAME=SUBMIT VALUE=SUBMIT>\n";
echo "</FORM>\n\n";
@@ -284,10 +284,10 @@ $rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$VDhop = $row[0];
$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
if ($group=='XXXX-ALL-ACTIVE-XXXX')
{
$stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill) from vicidial_campaign_stats;";
$stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_answers_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill),sum(answers_today) from vicidial_campaign_stats;";
}
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
@@ -298,6 +298,7 @@ $drpctTODAY = $row[3];
$diffONEMIN = $row[4];
$agentsONEMIN = $row[5];
$balanceFILL = $row[6];
$answersTODAY = $row[7];
if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) )
{
$diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100);
@@ -348,7 +349,7 @@ echo "</TR>";
echo "<TR>";
echo "<TD ALIGN=RIGHT><font size=2><B>HOPPER LEVEL:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $HOPlev &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>CALLS DROPPED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DROPPED / ANSWERED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY / $answersTODAY &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DL DIFF:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $diffONEMIN &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>STATUSES:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE &nbsp; &nbsp; </TD>";
echo "</TR>";
@@ -155,7 +155,7 @@ $rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$VDhop = $row[0];
$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$DAleads = $row[0];
@@ -165,6 +165,7 @@ $drpctTODAY = $row[3];
$diffONEMIN = $row[4];
$agentsONEMIN = $row[5];
$balanceFILL = $row[6];
$answersTODAY = $row[7];
if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) )
{
$diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100);
@@ -211,7 +212,7 @@ echo "</TR>";
echo "<TR>";
echo "<TD ALIGN=RIGHT><font size=2><B>HOPPER LEVEL:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $HOPlev &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>CALLS DROPPED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DROPPED / ANSWERED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY / $answersTODAY &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DL DIFF:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $diffONEMIN &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>STATUSES:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE &nbsp; &nbsp; </TD>";
echo "</TR>";
+46 -5
View File
@@ -1907,7 +1907,7 @@ echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN
<B>Script Text -</B> This is where you place the content of a Vicidial Script. Minimum of 2 characters. You can have customer information be auto-populated in this script using "--A--field--B--" where field is one of the following fieldnames: vendor_lead_code, source_id, 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, date_of_birth, alt_phone, email, security_phrase, comments, lead_id, campaign, phone_login, group, channel_group, SQLdate, epoch, uniqueid, customer_zap_channel, server_ip, SIPexten, session_id. For example, this sentence would print the persons name in it----<BR><BR> Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?<BR><BR> This would read----<BR><BR>Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?<BR><BR> You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:
<DIV style="height:200px;width:400px;background:white;overflow:scroll;font-size:12px;font-family:sans-serif;" id=iframe_example>
&#60;iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&#38;vendor_id=--A--vendor_lead_code--B--&#38;list_id=--A--list_id--B--&#38;gmt_offset_now=--A--gmt_offset_now--B--&#38;phone_code=--A--phone_code--B--&#38;phone_number=--A--phone_number--B--&#38;title=--A--title--B--&#38;first_name=--A--first_name--B--&#38;middle_initial=--A--middle_initial--B--&#38;last_name=--A--last_name--B--&#38;address1=--A--address1--B--&#38;address2=--A--address2--B--&#38;address3=--A--address3--B--&#38;city=--A--city--B--&#38;state=--A--state--B--&#38;province=--A--province--B--&#38;postal_code=--A--postal_code--B--&#38;country_code=--A--country_code--B--&#38;gender=--A--gender--B--&#38;date_of_birth=--A--date_of_birth--B--&#38;alt_phone=--A--alt_phone--B--&#38;email=--A--email--B--&#38;security_phrase=--A--security_phrase--B--&#38;comments=--A--comments--B--&#38;user=--A--user--B--&#38;campaign=--A--campaign--B--&#38;phone_login=--A--phone_login--B--&#38;fronter=--A--fronter--B--&#38;closer=--A--user--B--&#38;group=--A--group--B--&#38;channel_group=--A--group--B--&#38;SQLdate=--A--SQLdate--B--&#38;epoch=--A--epoch--B--&#38;uniqueid=--A--uniqueid--B--&#38;customer_zap_channel=--A--customer_zap_channel--B--&#38;server_ip=--A--server_ip--B--&#38;SIPexten=--A--SIPexten--B--&#38;session_id=--A--session_id--B--&#38;phone=--A--phone--B--" style="width:460;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"&#62;
&#60;iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&#38;vendor_id=--A--vendor_lead_code--B--&#38;list_id=--A--list_id--B--&#38;gmt_offset_now=--A--gmt_offset_now--B--&#38;phone_code=--A--phone_code--B--&#38;phone_number=--A--phone_number--B--&#38;title=--A--title--B--&#38;first_name=--A--first_name--B--&#38;middle_initial=--A--middle_initial--B--&#38;last_name=--A--last_name--B--&#38;address1=--A--address1--B--&#38;address2=--A--address2--B--&#38;address3=--A--address3--B--&#38;city=--A--city--B--&#38;state=--A--state--B--&#38;province=--A--province--B--&#38;postal_code=--A--postal_code--B--&#38;country_code=--A--country_code--B--&#38;gender=--A--gender--B--&#38;date_of_birth=--A--date_of_birth--B--&#38;alt_phone=--A--alt_phone--B--&#38;email=--A--email--B--&#38;security_phrase=--A--security_phrase--B--&#38;comments=--A--comments--B--&#38;user=--A--user--B--&#38;campaign=--A--campaign--B--&#38;phone_login=--A--phone_login--B--&#38;fronter=--A--fronter--B--&#38;closer=--A--user--B--&#38;group=--A--group--B--&#38;channel_group=--A--group--B--&#38;SQLdate=--A--SQLdate--B--&#38;epoch=--A--epoch--B--&#38;uniqueid=--A--uniqueid--B--&#38;customer_zap_channel=--A--customer_zap_channel--B--&#38;server_ip=--A--server_ip--B--&#38;SIPexten=--A--SIPexten--B--&#38;session_id=--A--session_id--B--&#38;phone=--A--phone--B--" style="width:580;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"&#62;
&#60;/iframe&#62;
</DIV>
@@ -2009,7 +2009,7 @@ The VICIDIAL basic web-based lead loader is designed simply to take a lead file
<LI>Comments
</OL>
<BR>NOTES: The Excel Lead loader functionality is enabled by a series of perl scripts and needs to have a properly configured /home/cron/AST_SERVER_conf.pl file in place on the web server. Also, a couple perl modules must be loaded for it to work as well - OLE-Storage_Lite and Spreadsheet-ParseExcel. You can check for runtime errors in these by looking at your apache error_log file.
<BR>NOTES: The Excel Lead loader functionality is enabled by a series of perl scripts and needs to have a properly configured /etc/astguiclient.conf file in place on the web server. Also, a couple perl modules must be loaded for it to work as well - OLE-Storage_Lite and Spreadsheet-ParseExcel. You can check for runtime errors in these by looking at your apache error_log file.
@@ -2576,7 +2576,7 @@ exit;
if ($ADD==7111111)
{
##### TEST VARIABLES #####
$vendor_lead_code = 'VENDORLEADCODE';
$vendor_lead_code = 'VENDOR:LEAD;CODE';
$list_id = 'LISTID';
$gmt_offset_now = 'GMTOFFSET';
$phone_code = '1';
@@ -2625,6 +2625,47 @@ $row=mysql_fetch_row($rslt);
$script_name = $row[1];
$script_text = $row[3];
if (eregi("iframe src",$script_text))
{
$vendor_lead_code = eregi_replace(' ','+',$vendor_lead_code);
$list_id = eregi_replace(' ','+',$list_id);
$gmt_offset_now = eregi_replace(' ','+',$gmt_offset_now);
$phone_code = eregi_replace(' ','+',$phone_code);
$phone_number = eregi_replace(' ','+',$phone_number);
$title = eregi_replace(' ','+',$title);
$first_name = eregi_replace(' ','+',$first_name);
$middle_initial = eregi_replace(' ','+',$middle_initial);
$last_name = eregi_replace(' ','+',$last_name);
$address1 = eregi_replace(' ','+',$address1);
$address2 = eregi_replace(' ','+',$address2);
$address3 = eregi_replace(' ','+',$address2);
$city = eregi_replace(' ','+',$city);
$state = eregi_replace(' ','+',$state);
$province = eregi_replace(' ','+',$province);
$postal_code = eregi_replace(' ','+',$postal_code);
$country_code = eregi_replace(' ','+',$country_code);
$gender = eregi_replace(' ','+',$gender);
$date_of_birth = eregi_replace(' ','+',$date_of_birth);
$alt_phone = eregi_replace(' ','+',$alt_phone);
$email = eregi_replace(' ','+',$email);
$security_phrase = eregi_replace(' ','+',$security_phrase);
$comments = eregi_replace(' ','+',$comments);
$RGfullname = eregi_replace(' ','+',$RGfullname);
$RGuser = eregi_replace(' ','+',$RGuser);
$RGlead_id = eregi_replace(' ','+',$RGlead_id);
$RGcampaign = eregi_replace(' ','+',$RGcampaign);
$RGphone_login = eregi_replace(' ','+',$RGphone_login);
$RGgroup = eregi_replace(' ','+',$RGgroup);
$RGchannel_group = eregi_replace(' ','+',$RGchannel_group);
$RGSQLdate = eregi_replace(' ','+',$RGSQLdate);
$RGepoch = eregi_replace(' ','+',$RGepoch);
$RGuniqueid = eregi_replace(' ','+',$RGuniqueid);
$RGcustomer_zap_channel = eregi_replace(' ','+',$RGcustomer_zap_channel);
$RGserver_ip = eregi_replace(' ','+',$RGserver_ip);
$RGSIPexten = eregi_replace(' ','+',$RGSIPexten);
$RGsession_id = eregi_replace(' ','+',$RGsession_id);
}
$script_text = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$script_text);
$script_text = eregi_replace('--A--list_id--B--',"$list_id",$script_text);
$script_text = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$script_text);
@@ -2669,7 +2710,7 @@ $script_text = eregi_replace("\n","<BR>",$script_text);
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
echo "Preview Script: $script_id<BR>\n";
echo "<TABLE WIDTH=400><TR><TD>\n";
echo "<TABLE WIDTH=600><TR><TD>\n";
echo "<center><B>$script_name</B><BR></center>\n";
echo "$script_text\n";
echo "</TD></TR></TABLE></center>\n";
@@ -2708,7 +2749,7 @@ if ($hh=='server') {$server_hh='bgcolor ="#FF99FF"'; $server_fc='BLACK';} # pink
</title>
<script language="Javascript">
function openNewWindow(url) {
window.open (url,"",'width=500,height=300,scrollbars=yes,menubar=yes,address=yes');
window.open (url,"",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');
}
</script>
</head>
@@ -103,6 +103,8 @@ $PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
# 60421-1459 - check GET/POST vars lines with isset to not trigger PHP NOTICES
# 60609-1112 - Added DNC list addition if status changed to DNC
# 60619-1539 - Added variable filtering to eliminate SQL injection attack threat
# 61130-1639 - Added recording_log lookup and list for this lead_id
# 61201-1136 - Added recording_log user(TSR) display and link
#
$STARTtime = date("U");
@@ -165,8 +167,8 @@ $browser = getenv("HTTP_USER_AGENT");
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER><FONT FACE="Courier" COLOR=BLACK SIZE=3>
<?
echo "<a href=\"./admin.php?ADD=100\">VICIDIAL ADMIN</a>: Lead record modification<BR>\n";
if ($end_call > 0)
{
@@ -413,21 +415,25 @@ echo "<center>\n";
echo "<B>CALLS TO THIS LEAD:</B>\n";
echo "<TABLE width=550 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> TSR</td><td align=right><font size=2> CAMPAIGN</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> TSR</td><td align=right><font size=2> CAMPAIGN</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
$stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 50;";
$stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 500;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
$u=0;
while ($logs_to_print > $u) {
while ($logs_to_print > $u)
{
$row=mysql_fetch_row($rslt);
if (eregi("1$|3$|5$|7$|9$", $u))
{$bgcolor='bgcolor="#B9CBFD"';}
else
{$bgcolor='bgcolor="#9BB9FB"';}
echo "<tr $bgcolor><td><font size=2>$row[4]</td>";
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td><font size=2>$row[4]</td>";
echo "<td align=left><font size=2> $row[7]</td>\n";
echo "<td align=left><font size=2> $row[8]</td>\n";
echo "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[11]</A> </td>\n";
@@ -435,11 +441,46 @@ echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td
echo "<td align=right><font size=2> $row[2] </td>\n";
echo "<td align=right><font size=2> $row[1] </td></tr>\n";
$u++;
}
}
echo "</TABLE></center>\n";
echo "<BR><BR>\n";
echo "<B>RECORDINGS FOR THIS LEAD:</B>\n";
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=1># </td><td align=left><font size=2> LEAD</td><td><font size=2>DATE/TIME </td><td align=left><font size=2>SECONDS </td><td align=left><font size=2> &nbsp; RECID</td><td align=center><font size=2>FILENAME</td><td align=left><font size=2>LOCATION</td><td align=left><font size=2>TSR</td></tr>\n";
$stmt="select * from recording_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by recording_id desc limit 500;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
$u=0;
while ($logs_to_print > $u)
{
$row=mysql_fetch_row($rslt);
if (eregi("1$|3$|5$|7$|9$", $u))
{$bgcolor='bgcolor="#B9CBFD"';}
else
{$bgcolor='bgcolor="#9BB9FB"';}
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td align=left><font size=2> $row[12] </td>";
echo "<td align=left><font size=2> $row[4] </td>\n";
echo "<td align=left><font size=2> $row[8] </td>\n";
echo "<td align=left><font size=2> $row[0] </td>\n";
echo "<td align=center><font size=2> $row[10] </td>\n";
echo "<td align=left><font size=2> $row[11] </td>\n";
echo "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[13]\" target=\"_blank\">$row[13]</A> </td>";
echo "</tr>\n";
}
echo "</TABLE></center>\n";
@@ -98,8 +98,9 @@ $browser = getenv("HTTP_USER_AGENT");
<title>Lead Lookup</title>
</head>
<body bgcolor=white>
<?
echo "<a href=\"./admin.php?ADD=100\">VICIDIAL ADMIN</a>: Lead search<BR>\n";
if ( (!$vendor_id) and (!$phone) and (!$lead_id) )
{
@@ -111,7 +111,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN: Group Hourly Stats <? echo $group ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php?ADD=100000\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN</a>: Group Hourly Stats <? echo $group ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
@@ -160,7 +160,7 @@ echo "<TR><TD ALIGN=LEFT COLSPAN=2>\n";
echo "<br><center>\n";
echo "<B>TSR HOUR COUNTS: $group | $status | $date_with_hour | $date_no_hour</B>\n";
echo "<B>TSR HOUR COUNTS: <a href=\"./admin.php?ADD=3111&group_id=$group\">$group</a> | $status | $date_with_hour | $date_no_hour</B>\n";
echo "<center><TABLE width=600 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>TSR </td><td align=left><font size=2>ID </td><td align=right><font size=2> &nbsp; $status</td><td align=right><font size=2> &nbsp; TOTAL CALLS</td><td align=right><font size=2> &nbsp; $status DAY</td><td align=right><font size=2> &nbsp; &nbsp; </td></tr>\n";
@@ -0,0 +1,245 @@
<?
# phone_stats.php.php
#
# Copyright (C) 2006 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
#
#
# changes:
# 60620-1333 - Added variable filtering to eliminate SQL injection attack threat
# - Added required user/pass to gain access to this page
# 60927-1548 - Changed to vicidial_users for authentication
#
require("dbconnect.php");
$PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER'];
$PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW'];
$PHP_SELF=$_SERVER['PHP_SELF'];
if (isset($_GET["group"])) {$group=$_GET["group"];}
elseif (isset($_POST["group"])) {$group=$_POST["group"];}
if (isset($_GET["query_date"])) {$query_date=$_GET["query_date"];}
elseif (isset($_POST["query_date"])) {$query_date=$_POST["query_date"];}
if (isset($_GET["begin_date"])) {$begin_date=$_GET["begin_date"];}
elseif (isset($_POST["begin_date"])) {$begin_date=$_POST["begin_date"];}
if (isset($_GET["end_date"])) {$end_date=$_GET["end_date"];}
elseif (isset($_POST["end_date"])) {$end_date=$_POST["end_date"];}
if (isset($_GET["extension"])) {$extension=$_GET["extension"];}
elseif (isset($_POST["extension"])) {$extension=$_POST["extension"];}
if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];}
elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];}
if (isset($_GET["user"])) {$user=$_GET["user"];}
elseif (isset($_POST["user"])) {$user=$_POST["user"];}
if (isset($_GET["full_name"])) {$full_name=$_GET["full_name"];}
elseif (isset($_POST["full_name"])) {$full_name=$_POST["full_name"];}
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
$STARTtime = date("U");
$TODAY = date("Y-m-d");
$admin_page = './admin.php';
if (!isset($begin_date)) {$begin_date = $TODAY;}
if (!isset($end_date)) {$end_date = $TODAY;}
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7;";
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$auth=$row[0];
$fp = fopen ("./project_auth_entries.txt", "a");
$date = date("r");
$ip = getenv("REMOTE_ADDR");
$browser = getenv("HTTP_USER_AGENT");
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
{
Header("WWW-Authenticate: Basic realm=\"VICI-ASTERISK\"");
Header("HTTP/1.0 401 Unauthorized");
echo "Invalid Username/Password: |$PHP_AUTH_USER|$PHP_AUTH_PW|\n";
exit;
}
else
{
if($auth>0)
{
$office_no=strtoupper($PHP_AUTH_USER);
$password=strtoupper($PHP_AUTH_PW);
$stmt="SELECT full_name from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW'";
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$LOGfullname=$row[0];
fwrite ($fp, "ASTERISK|GOOD|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|$LOGfullname|\n");
fclose($fp);
##### get server listing for dynamic pulldown
$stmt="SELECT fullname from phones where server_ip='$server_ip' and extension='$extension'";
$rsltx=mysql_query($stmt, $link);
$rowx=mysql_fetch_row($rsltx);
$fullname = $row[0];
}
else
{
fwrite ($fp, "ASTERISK|FAIL|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|\n");
fclose($fp);
}
}
?>
<html>
<head>
<title>VICIDIAL ADMIN: Phone Stats</title>
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN: Administration</TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TR BGCOLOR=#F0F5FE><TD ALIGN=LEFT COLSPAN=2><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1><B> &nbsp; <a href="<? echo $admin_page ?>?ADD=10000000000"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>LIST ALL PHONES</a> | <a href="<? echo $admin_page ?>?ADD=11111111111"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>ADD A NEW PHONE</a> | <a href="<? echo $admin_page ?>?ADD=551"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>SEARCH FOR A PHONE</a> | <a href="<? echo $admin_page ?>?ADD=111111111111"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>ADD A SERVER</a> | <a href="<? echo $admin_page ?>?ADD=100000000000"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>LIST ALL SERVERS</a></TD></TR>
<TR BGCOLOR=#F0F5FE><TD ALIGN=LEFT COLSPAN=2><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1><B> &nbsp; <a href="<? echo $admin_page ?>?ADD=1000000000000"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>SHOW ALL CONFERENCES</a> | <a href="<? echo $admin_page ?>?ADD=1111111111111"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=1>ADD A NEW CONFERENCE</a></TD></TR>
<?
echo "<TR BGCOLOR=\"#F0F5FE\"><TD ALIGN=LEFT COLSPAN=2><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2><B> &nbsp; \n";
echo "<form action=$PHP_SELF method=POST>\n";
echo "<input type=hidden name=extension value=\"$extension\">\n";
echo "<input type=hidden name=server_ip value=\"$server_ip\">\n";
echo "<input type=text name=begin_date value=\"$begin_date\" size=10 maxsize=10> to \n";
echo "<input type=text name=end_date value=\"$end_date\" size=10 maxsize=10> &nbsp;\n";
echo "<input type=submit name=submit value=submit>\n";
echo " &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $user - $full_name\n";
echo "</B></TD></TR>\n";
echo "<TR><TD ALIGN=LEFT COLSPAN=2>\n";
$stmt="SELECT count(*),channel_group, sum(length_in_sec) from call_log where extension='" . mysql_real_escape_string($extension) . "' and server_ip='" . mysql_real_escape_string($server_ip) . "' and start_time >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and start_time <= '" . mysql_real_escape_string($end_date) . " 23:59:59' group by channel_group order by channel_group";
$rslt=mysql_query($stmt, $link);
$statuses_to_print = mysql_num_rows($rslt);
# echo "|$stmt|\n";
echo "<br><center>\n";
echo "<B>CALL TIME AND CHANNELS:</B>\n";
echo "<center><TABLE width=300 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>CHANNEL GROUP </td><td align=right><font size=2>COUNT</td><td align=right><font size=2> HOURS:MINUTES</td></tr>\n";
$total_calls=0;
$o=0;
while ($statuses_to_print > $o) {
$row=mysql_fetch_row($rslt);
if (eregi("1$|3$|5$|7$|9$", $o))
{$bgcolor='bgcolor="#B9CBFD"';}
else
{$bgcolor='bgcolor="#9BB9FB"';}
$call_seconds = $row[2];
$call_hours = ($call_seconds / 3600);
$call_hours = round($call_hours, 2);
$call_hours_int = intval("$call_hours");
$call_minutes = ($call_hours - $call_hours_int);
$call_minutes = ($call_minutes * 60);
$call_minutes_int = round($call_minutes, 0);
if ($call_minutes_int < 10) {$call_minutes_int = "0$call_minutes_int";}
echo "<tr $bgcolor><td><font size=2>$row[1]</td>";
echo "<td align=right><font size=2> $row[0]</td>\n";
echo "<td align=right><font size=2> $call_hours_int:$call_minutes_int</td></tr>\n";
$total_calls = ($total_calls + $row[0]);
$call_seconds=0;
$o++;
}
$stmt="SELECT sum(length_in_sec) from call_log where extension='" . mysql_real_escape_string($extension) . "' and server_ip='" . mysql_real_escape_string($server_ip) . "' and start_time >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and start_time <= '" . mysql_real_escape_string($end_date) . " 23:59:59'";
$rslt=mysql_query($stmt, $link);
$counts_to_print = mysql_num_rows($rslt);
$row=mysql_fetch_row($rslt);
$call_seconds = $row[0];
$call_hours = ($call_seconds / 3600);
$call_hours = round($call_hours, 2);
$call_hours_int = intval("$call_hours");
$call_minutes = ($call_hours - $call_hours_int);
$call_minutes = ($call_minutes * 60);
$call_minutes_int = round($call_minutes, 0);
if ($call_minutes_int < 10) {$call_minutes_int = "0$call_minutes_int";}
# echo "|$stmt|\n";
echo "<tr><td><font size=2>TOTAL CALLS </td><td align=right><font size=2> $total_calls</td><td align=right><font size=2> $call_hours_int:$call_minutes_int</td></tr>\n";
echo "</TABLE></center>\n";
echo "<br><br>\n";
echo "<center>\n";
echo "<B>LAST 1000 CALLS FOR DATE RANGE:</B>\n";
echo "<TABLE width=400 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>NUMBER </td><td><font size=2>CHANNEL GROUP </td><td align=right><font size=2> DATE</td><td align=right><font size=2> LENGTH(MIN.)</td></tr>\n";
$stmt="SELECT number_dialed,channel_group,start_time,length_in_min from call_log where extension='" . mysql_real_escape_string($extension) . "' and server_ip='" . mysql_real_escape_string($server_ip) . "' and start_time >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and start_time <= '" . mysql_real_escape_string($end_date) . " 23:59:59' LIMIT 1000";
$rslt=mysql_query($stmt, $link);
$events_to_print = mysql_num_rows($rslt);
# echo "|$stmt|\n";
$total_calls=0;
$o=0;
$event_start_seconds='';
$event_stop_seconds='';
while ($events_to_print > $o) {
$row=mysql_fetch_row($rslt);
if (eregi("1$|3$|5$|7$|9$", $o))
{$bgcolor='bgcolor="#B9CBFD"';}
else
{$bgcolor='bgcolor="#9BB9FB"';}
echo "<tr $bgcolor><td><font size=2>$row[0]</td>";
echo "<td align=right><font size=2> $row[1]</td>\n";
echo "<td align=right><font size=2> $row[2]</td>\n";
echo "<td align=right><font size=2> $row[3]</td></tr>\n";
$call_seconds=0;
$o++;
}
echo "</TABLE></center>\n";
$ENDtime = date("U");
$RUNtime = ($ENDtime - $STARTtime);
echo "\n\n\n<br><br><br>\n\n";
echo "<font size=0>\n\n\n<br><br><br>\nscript runtime: $RUNtime seconds</font>";
?>
</TD></TR><TABLE>
</body>
</html>
<?
exit;
?>
-1
View File
@@ -1 +0,0 @@
Hello world
+43 -6
View File
@@ -6,6 +6,7 @@
# CHANGES
#
# 60619-1743 - Added variable filtering to eliminate SQL injection attack threat
# 61201-1136 - Added recordings display and changed calls to time range with 10000 limit
#
header ("Content-type: text/html; charset=utf-8");
@@ -92,7 +93,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN: User Stats for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN</a>: User Stats for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
@@ -254,11 +255,11 @@ echo "<br><br>\n";
echo "<center>\n";
echo "<B>LAST 50 CALLS:</B>\n";
echo "<B>CALLS FOR THIS TIME PERIOD: (10000 record limit)</B>\n";
echo "<TABLE width=550 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> PHONE</td><td align=right><font size=2> CAMPAIGN</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> PHONE</td><td align=right><font size=2> CAMPAIGN</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
$stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' order by uniqueid desc limit 50;";
$stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
@@ -270,7 +271,10 @@ echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td
else
{$bgcolor='bgcolor="#9BB9FB"';}
echo "<tr $bgcolor><td><font size=2>$row[4]</td>";
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td><font size=2>$row[4]</td>";
echo "<td align=left><font size=2> $row[7]</td>\n";
echo "<td align=left><font size=2> $row[8]</td>\n";
echo "<td align=left><font size=2> $row[10] </td>\n";
@@ -278,13 +282,46 @@ echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td
echo "<td align=right><font size=2> $row[2] </td>\n";
echo "<td align=right><font size=2> <A HREF=\"admin_modify_lead.php?lead_id=$row[1]\" target=\"_blank\">$row[1]</A> </td></tr>\n";
$u++;
}
echo "</TABLE></center>\n";
echo "<B>RECORDINGS FOR THIS TIME PERIOD: (10000 record limit)</B>\n";
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=1># </td><td align=left><font size=2> LEAD</td><td><font size=2>DATE/TIME </td><td align=left><font size=2>SECONDS </td><td align=left><font size=2> &nbsp; RECID</td><td align=center><font size=2>FILENAME</td><td align=left><font size=2>LOCATION</td></tr>\n";
$stmt="select * from recording_log where user='" . mysql_real_escape_string($user) . "' and start_time >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and start_time <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by recording_id desc limit 10000;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
$u=0;
while ($logs_to_print > $u)
{
$row=mysql_fetch_row($rslt);
if (eregi("1$|3$|5$|7$|9$", $u))
{$bgcolor='bgcolor="#B9CBFD"';}
else
{$bgcolor='bgcolor="#9BB9FB"';}
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td align=left><font size=2> <A HREF=\"admin_modify_lead.php?lead_id=$row[12]\" target=\"_blank\">$row[12]</A> </td>";
echo "<td align=left><font size=2> $row[4] </td>\n";
echo "<td align=left><font size=2> $row[8] </td>\n";
echo "<td align=left><font size=2> $row[0] </td>\n";
echo "<td align=center><font size=2> $row[10] </td>\n";
echo "<td align=right><font size=2> $row[11] </td>\n";
echo "</tr>\n";
}
echo "</TABLE></center>\n";
$ENDtime = date("U");
$RUNtime = ($ENDtime - $STARTtime);
@@ -124,7 +124,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN: User Status for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN</a>: User Status for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
@@ -0,0 +1,255 @@
<?
### voice_lab.php
###
### Copyright (C) 2006 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
###
#
# CHANGES
#
# 61220-1050 - First Build
#
require("dbconnect.php");
$PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER'];
$PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW'];
$PHP_SELF=$_SERVER['PHP_SELF'];
if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];}
elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];}
if (isset($_GET["session_id"])) {$session_id=$_GET["session_id"];}
elseif (isset($_POST["session_id"])) {$session_id=$_POST["session_id"];}
if (isset($_GET["campaign_id"])) {$campaign_id=$_GET["campaign_id"];}
elseif (isset($_POST["campaign_id"])) {$campaign_id=$_POST["campaign_id"];}
if (isset($_GET["NEW_VOICE_LAB"])) {$NEW_VOICE_LAB=$_GET["NEW_VOICE_LAB"];}
elseif (isset($_POST["NEW_VOICE_LAB"])) {$NEW_VOICE_LAB=$_POST["NEW_VOICE_LAB"];}
if (isset($_GET["KILL_VOICE_LAB"])) {$KILL_VOICE_LAB=$_GET["KILL_VOICE_LAB"];}
elseif (isset($_POST["KILL_VOICE_LAB"])) {$KILL_VOICE_LAB=$_POST["KILL_VOICE_LAB"];}
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
$STARTtime = date("U");
$TODAY = date("Y-m-d");
$MYSQL_datetime = date("Y-m-d H:i:s");
$FILE_datetime = date("Ymd-His_");
$secX = $STARTtime;
$local_DEF = 'Local/';
$local_AMP = '@';
$ext_context = 'demo';
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7;";
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$auth=$row[0];
$fp = fopen ("./project_auth_entries.txt", "a");
$date = date("r");
$ip = getenv("REMOTE_ADDR");
$browser = getenv("HTTP_USER_AGENT");
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
{
Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
Header("HTTP/1.0 401 Unauthorized");
echo "Invalid Username/Password: |$PHP_AUTH_USER|$PHP_AUTH_PW|\n";
exit;
}
else
{
if($auth>0)
{
$office_no=strtoupper($PHP_AUTH_USER);
$password=strtoupper($PHP_AUTH_PW);
$stmt="SELECT full_name from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW'";
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$LOGfullname=$row[0];
fwrite ($fp, "VICIDIAL|GOOD|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|$LOGfullname|\n");
fclose($fp);
}
else
{
fwrite ($fp, "VICIDIAL|FAIL|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|\n");
fclose($fp);
}
$stmt="SELECT full_name from vicidial_users where user='$user';";
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$full_name = $row[0];
}
##### get server listing for dynamic pulldown
$stmt="SELECT server_ip,server_description from servers order by server_ip";
$rslt=mysql_query($stmt, $link);
$servers_to_print = mysql_num_rows($rslt);
$servers_list='';
$o=0;
while ($servers_to_print > $o)
{
$rowx=mysql_fetch_row($rslt);
$servers_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
$o++;
}
##### get campaigns listing for dynamic pulldown
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id";
$rslt=mysql_query($stmt, $link);
$campaigns_to_print = mysql_num_rows($rslt);
$campaigns_list='';
$o=0;
while ($campaigns_to_print > $o)
{
$rowx=mysql_fetch_row($rslt);
$campaigns_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
$o++;
}
?>
<html>
<head>
<title>VICIDIAL VOICE LAB: Admin</title>
<?
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
?>
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<?
if ($NEW_VOICE_LAB > 0)
{
if ( (strlen($server_ip) > 6) && (strlen($session_id) > 6) && (strlen($campaign_id) > 2) )
{
echo "<br><br><br>TO START YOUR VOICE LAB, DIAL $session_id ON YOUR PHONE NOW<br><br><br>\n";
$S='*';
$D_s_ip = explode('.', $server_ip);
if (strlen($D_s_ip[0])<2) {$D_s_ip[0] = "0$D_s_ip[0]";}
if (strlen($D_s_ip[0])<3) {$D_s_ip[0] = "0$D_s_ip[0]";}
if (strlen($D_s_ip[1])<2) {$D_s_ip[1] = "0$D_s_ip[1]";}
if (strlen($D_s_ip[1])<3) {$D_s_ip[1] = "0$D_s_ip[1]";}
if (strlen($D_s_ip[2])<2) {$D_s_ip[2] = "0$D_s_ip[2]";}
if (strlen($D_s_ip[2])<3) {$D_s_ip[2] = "0$D_s_ip[2]";}
if (strlen($D_s_ip[3])<2) {$D_s_ip[3] = "0$D_s_ip[3]";}
if (strlen($D_s_ip[3])<3) {$D_s_ip[3] = "0$D_s_ip[3]";}
$remote_dialstring = "$D_s_ip[0]$S$D_s_ip[1]$S$D_s_ip[2]$S$D_s_ip[3]$S$session_id";
$thirty_minutes_old = mktime(date("H"), date("i"), date("s")-30, date("m"), date("d"), date("Y"));
$past_thirty = date("Y-m-d H:i:s",$thirty_minutes_old);
$stmt="SELECT conf_exten,server_ip,user from vicidial_live_agents where last_update_time > '$past_thirty' and campaign_id='$campaign_id';";
$rslt=mysql_query($stmt, $link);
$agents_to_loop = mysql_num_rows($rslt);
$agents_sessions[0]='';
$agents_servers[0]='';
$agents_users[0]='';
$o=0;
while ($agents_to_loop > $o)
{
$rowx=mysql_fetch_row($rslt);
$agents_sessions[$o] = "$rowx[0]";
$agents_servers[$o] = "$rowx[1]";
$agents_users[$o] = "$rowx[2]";
$o++;
}
$o=0;
while ($agents_to_loop > $o)
{
if ($agents_servers[$o] == "$server_ip")
{$dial_string = $session_id;}
else
{$dial_string = $remote_dialstring;}
$stmt="INSERT INTO vicidial_manager values('','','$MYSQL_datetime','NEW','N','$agents_servers[$o]','','Originate','VL$FILE_datetime$o','Channel: $local_DEF$dial_string$local_AMP$ext_context','Context: $ext_context','Exten: $agents_sessions[$o]','Priority: 1','Callerid: VL$FILE_datetime$o','','','','','')";
echo "|$stmt|\n<BR><BR>\n";
$rslt=mysql_query($stmt, $link);
echo "LOGGED IN USER $agents_users[$o] at session $agents_sessions[$o] on server $agents_servers[$o]\n";
$o++;
}
echo "<br>Kill a Voice Lab Session: 8600900<form action=$PHP_SELF method=POST>\n";
echo "<input type=hidden name=KILL_VOICE_LAB value=2>\n";
echo "<input type=hidden name=session_id value=8600900>\n";
echo "<input type=hidden name=server_ip value=$server_ip>\n";
echo "<input type=hidden name=campaign_id value=$campaign_id>\n";
echo "<input type=submit name=submit value='KILL THIS VOICE LAB'>\n";
echo "</form><BR><BR><BR>\n";
}
else
{
echo "ERROR!!!! Not all info entered properly\n<BR><BR>\n";
echo "|$server_ip| |$session_id| |$campaign_id|\n<BR><BR>\n";
echo "<a href=\"$PHP_SELF\">Back to main voicelab screen</a>\n<BR><BR>\n";
}
}
else
{
echo "<br>Start a Voice Lab Session: 8600900<form action=$PHP_SELF method=POST>\n";
echo "<input type=hidden name=NEW_VOICE_LAB value=2>\n";
echo "<input type=hidden name=session_id value=8600900>\n";
echo "Your Server: <select size=1 name=server_ip>$servers_list</select>\n";
echo "<BR>\n";
echo "Campaign: <select size=1 name=campaign_id>$campaigns_list</select>";
echo "<BR>\n";
echo "<input type=submit name=submit value=submit>\n";
echo "</form><BR><BR><BR>\n";
echo "<br>Kill a Voice Lab Session: 8600900<form action=$PHP_SELF method=POST>\n";
echo "<input type=hidden name=KILL_VOICE_LAB value=2>\n";
echo "<input type=hidden name=session_id value=8600900>\n";
echo "Your Server: <select size=1 name=server_ip>$servers_list</select>\n";
echo "<BR>\n";
echo "Campaign: <select size=1 name=campaign_id>$campaigns_list</select>";
echo "<BR>\n";
echo "<input type=submit name=submit value=submit>\n";
echo "</form><BR><BR><BR>\n";
}
if ($KILL_VOICE_LAB > 1)
{
if ( (strlen($server_ip) > 6) && (strlen($session_id) > 6) && (strlen($campaign_id) > 2) )
{
$kill_dial_string = "5555$session_id";
$hangup_exten='8300';
$stmt="INSERT INTO vicidial_manager values('','','$MYSQL_datetime','NEW','N','$server_ip','','Originate','VLK$FILE_datetime','Channel: $local_DEF$kill_dial_string$local_AMP$ext_context','Context: $ext_context','Exten: $hangup_exten','Priority: 1','Callerid: VLK$FILE_datetime','','','','','')";
echo "|$stmt|\n<BR><BR>\n";
$rslt=mysql_query($stmt, $link);
echo "VOICELAB SESSION KILLED: $session_id at $server_ip | $KILL_VOICE_LAB\n";
}
else
{
echo "ERROR!!!! Not all info entered properly\n<BR><BR>\n";
echo "|$server_ip| |$session_id| |$campaign_id|\n<BR><BR>\n";
echo "<a href=\"$PHP_SELF\">Back to main voicelab screen</a>\n<BR><BR>\n";
}
}
?>
</BODY></HTML>
@@ -7,6 +7,7 @@
#
# 60619-1718 - Added variable filtering to eliminate SQL injection attack threat
# - Added required user/pass to gain access to this page
# 61215-1139 - Added drop percentage of answered and round-2 decimal
#
header ("Content-type: text/html; charset=utf-8");
@@ -119,7 +120,7 @@ if ( ($row[0] < 1) or ($row[1] < 1) )
else
{
$average_hold_seconds = ($row[1] / $row[0]);
$average_hold_seconds = round($average_hold_seconds, 0);
$average_hold_seconds = round($average_hold_seconds, 2);
$average_hold_seconds = sprintf("%10s", $average_hold_seconds);
}
echo "Gesamtanrufe gesetzt von dieser Kampagne: $TOTALcalls\n";
@@ -132,32 +133,49 @@ $stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
$DROPcalls = sprintf("%10s", $row[0]);
$DROPcallsRAW = $row[0];
$DROPseconds = $row[1];
$stmt="select count(*) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status NOT IN('NA','B');";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
$ANSWERcalls = $row[0];
if ( ($DROPcalls < 1) or ($TOTALcalls < 1) )
{$DROPpercent = '0';}
else
{
$DROPpercent = (($DROPcalls / $TOTALcalls) * 100);
$DROPpercent = round($DROPpercent, 0);
$DROPpercent = (($DROPcallsRAW / $TOTALcalls) * 100);
$DROPpercent = round($DROPpercent, 2);
}
if ( ($row[0] < 1) or ($row[1] < 1) )
if ( ($DROPcalls < 1) or ($ANSWERcalls < 1) )
{$DROPANSWERpercent = '0';}
else
{
$DROPANSWERpercent = (($DROPcallsRAW / $ANSWERcalls) * 100);
$DROPANSWERpercent = round($DROPANSWERpercent, 2);
}
if ( ($DROPseconds < 1) or ($DROPcallsRAW < 1) )
{$average_hold_seconds = ' 0';}
else
{
$average_hold_seconds = ($row[1] / $row[0]);
$average_hold_seconds = round($average_hold_seconds, 0);
$average_hold_seconds = ($DROPseconds / $DROPcallsRAW);
$average_hold_seconds = round($average_hold_seconds, 2);
$average_hold_seconds = sprintf("%10s", $average_hold_seconds);
}
echo "Gesamt-TROPFEN Anrufe: $DROPcalls $DROPpercent%\n";
echo "Percent of DROP Calls taken out of Answers: $DROPcalls / $ANSWERcalls $DROPANSWERpercent%\n";
echo "Durchschnittliche Länge für TROPFEN Anrufe in den Sekunden: $average_hold_seconds\n";
echo "\n";
echo "----------AUTO-DIAL KEINE ANTWORTEN\n";
$stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status='NA' and (length_in_sec <= 60 or length_in_sec is null);";
$stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status IN('NA','B') and (length_in_sec <= 60 or length_in_sec is null);";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
@@ -168,7 +186,7 @@ if ( ($NAcalls < 1) or ($TOTALcalls < 1) )
else
{
$NApercent = (($NAcalls / $TOTALcalls) * 100);
$NApercent = round($NApercent, 0);
$NApercent = round($NApercent, 2);
}
if ( ($row[0] < 1) or ($row[1] < 1) )
@@ -176,11 +194,11 @@ if ( ($row[0] < 1) or ($row[1] < 1) )
else
{
$average_na_seconds = ($row[1] / $row[0]);
$average_na_seconds = round($average_na_seconds, 0);
$average_na_seconds = round($average_na_seconds, 2);
$average_na_seconds = sprintf("%10s", $average_na_seconds);
}
echo "Gesamt-Na benennt - beschäftigt, Trennung, BTvoicemail: $NAcalls $NApercent%\n";
echo "Total NA calls -Busy,Disconnect,RingNoAnswer: $NAcalls $NApercent%\n";
echo "Durchschnittliche Anruf-Länge für Na benennt in den Sekunden: $average_na_seconds\n";
@@ -63,9 +63,10 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
<?
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
echo "<TITLE>VICIDIAL: Agent Time Sheet</TITLE></HEAD><BODY BGCOLOR=WHITE>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=19 MAXLENGTH=19 VALUE=\"$query_date\">\n";
echo "<INPUT TYPE=TEXT NAME=agent SIZE=10 MAXLENGTH=20 VALUE=\"$agent\">\n";
echo "<a href=\"./admin.php\">VICIDIAL ADMIN</a>: Agent Time Sheet<BR>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET> &nbsp; \n";
echo "Date: <INPUT TYPE=TEXT NAME=query_date SIZE=19 MAXLENGTH=19 VALUE=\"$query_date\">\n";
echo "User ID: <INPUT TYPE=TEXT NAME=agent SIZE=10 MAXLENGTH=20 VALUE=\"$agent\">\n";
echo "<INPUT TYPE=Submit NAME=SUBMIT VALUE=SUBMIT>\n";
echo "</FORM>\n\n";
@@ -284,10 +284,10 @@ $rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$VDhop = $row[0];
$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
if ($group=='XXXX-ALL-ACTIVE-XXXX')
{
$stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill) from vicidial_campaign_stats;";
$stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_answers_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill),sum(answers_today) from vicidial_campaign_stats;";
}
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
@@ -298,6 +298,7 @@ $drpctTODAY = $row[3];
$diffONEMIN = $row[4];
$agentsONEMIN = $row[5];
$balanceFILL = $row[6];
$answersTODAY = $row[7];
if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) )
{
$diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100);
@@ -348,7 +349,7 @@ echo "</TR>";
echo "<TR>";
echo "<TD ALIGN=RIGHT><font size=2><B>HOPPER LEVEL:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $HOPlev &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>CALLS DROPPED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DROPPED / ANSWERED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY / $answersTODAY &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DL DIFF:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $diffONEMIN &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>STATUSES:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE &nbsp; &nbsp; </TD>";
echo "</TR>";
@@ -155,7 +155,7 @@ $rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$VDhop = $row[0];
$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$DAleads = $row[0];
@@ -165,6 +165,7 @@ $drpctTODAY = $row[3];
$diffONEMIN = $row[4];
$agentsONEMIN = $row[5];
$balanceFILL = $row[6];
$answersTODAY = $row[7];
if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) )
{
$diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100);
@@ -211,7 +212,7 @@ echo "</TR>";
echo "<TR>";
echo "<TD ALIGN=RIGHT><font size=2><B>HOPPER LEVEL:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $HOPlev &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>CALLS DROPPED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DROPPED / ANSWERED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY / $answersTODAY &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DL DIFF:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $diffONEMIN &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>STATUSES:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE &nbsp; &nbsp; </TD>";
echo "</TR>";
+46 -5
View File
@@ -1907,7 +1907,7 @@ echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN
<B>Index-Text -</B> This is where you place the content of a Vicidial Script. Minimum of 2 characters. You can have customer information be auto-populated in this script using "--A--field--B--" where field is one of the following fieldnames: vendor_lead_code, source_id, 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, date_of_birth, alt_phone, email, security_phrase, comments, lead_id, campaign, phone_login, group, channel_group, SQLdate, epoch, uniqueid, customer_zap_channel, server_ip, SIPexten, session_id. For example, this sentence would print the persons name in it----<BR><BR> Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?<BR><BR> This would read----<BR><BR>Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?<BR><BR> You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:
<DIV style="height:200px;width:400px;background:white;overflow:scroll;font-size:12px;font-family:sans-serif;" id=iframe_example>
&#60;iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&#38;vendor_id=--A--vendor_lead_code--B--&#38;list_id=--A--list_id--B--&#38;gmt_offset_now=--A--gmt_offset_now--B--&#38;phone_code=--A--phone_code--B--&#38;phone_number=--A--phone_number--B--&#38;title=--A--title--B--&#38;first_name=--A--first_name--B--&#38;middle_initial=--A--middle_initial--B--&#38;last_name=--A--last_name--B--&#38;address1=--A--address1--B--&#38;address2=--A--address2--B--&#38;address3=--A--address3--B--&#38;city=--A--city--B--&#38;state=--A--state--B--&#38;province=--A--province--B--&#38;postal_code=--A--postal_code--B--&#38;country_code=--A--country_code--B--&#38;gender=--A--gender--B--&#38;date_of_birth=--A--date_of_birth--B--&#38;alt_phone=--A--alt_phone--B--&#38;email=--A--email--B--&#38;security_phrase=--A--security_phrase--B--&#38;comments=--A--comments--B--&#38;user=--A--user--B--&#38;campaign=--A--campaign--B--&#38;phone_login=--A--phone_login--B--&#38;fronter=--A--fronter--B--&#38;closer=--A--user--B--&#38;group=--A--group--B--&#38;channel_group=--A--group--B--&#38;SQLdate=--A--SQLdate--B--&#38;epoch=--A--epoch--B--&#38;uniqueid=--A--uniqueid--B--&#38;customer_zap_channel=--A--customer_zap_channel--B--&#38;server_ip=--A--server_ip--B--&#38;SIPexten=--A--SIPexten--B--&#38;session_id=--A--session_id--B--&#38;phone=--A--phone--B--" style="width:460;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"&#62;
&#60;iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&#38;vendor_id=--A--vendor_lead_code--B--&#38;list_id=--A--list_id--B--&#38;gmt_offset_now=--A--gmt_offset_now--B--&#38;phone_code=--A--phone_code--B--&#38;phone_number=--A--phone_number--B--&#38;title=--A--title--B--&#38;first_name=--A--first_name--B--&#38;middle_initial=--A--middle_initial--B--&#38;last_name=--A--last_name--B--&#38;address1=--A--address1--B--&#38;address2=--A--address2--B--&#38;address3=--A--address3--B--&#38;city=--A--city--B--&#38;state=--A--state--B--&#38;province=--A--province--B--&#38;postal_code=--A--postal_code--B--&#38;country_code=--A--country_code--B--&#38;gender=--A--gender--B--&#38;date_of_birth=--A--date_of_birth--B--&#38;alt_phone=--A--alt_phone--B--&#38;email=--A--email--B--&#38;security_phrase=--A--security_phrase--B--&#38;comments=--A--comments--B--&#38;user=--A--user--B--&#38;campaign=--A--campaign--B--&#38;phone_login=--A--phone_login--B--&#38;fronter=--A--fronter--B--&#38;closer=--A--user--B--&#38;group=--A--group--B--&#38;channel_group=--A--group--B--&#38;SQLdate=--A--SQLdate--B--&#38;epoch=--A--epoch--B--&#38;uniqueid=--A--uniqueid--B--&#38;customer_zap_channel=--A--customer_zap_channel--B--&#38;server_ip=--A--server_ip--B--&#38;SIPexten=--A--SIPexten--B--&#38;session_id=--A--session_id--B--&#38;phone=--A--phone--B--" style="width:580;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"&#62;
&#60;/iframe&#62;
</DIV>
@@ -2009,7 +2009,7 @@ Die VICIDIAL grundlegende Netz-gegründete Leitung Ladevorrichtung isteinfach en
<LI>Anmerkungen
</OL>
<BR>ANMERKUNGEN: Die übertreffenleitung Ladevorrichtung Funktionalitätwird durch eine Reihe Perl Indexe ermöglicht und muß eine richtigzusammengebaute /home/cron/AST_SERVER_conf.pl Akte im Platz auf demweb server haben. Auch ein Paarperl Module müssen für sie, umaußerdem zu arbeiten - OLE-Storage_Lite-Storage_Lite undVerteilungsbogen-ParseExcel geladen werden. Sie können aufLaufzeitfehler in diesen überprüfen, indem Sie Ihre Apache error_logAkte betrachten.
<BR>NOTES: The Excel Lead loader functionality is enabled by a series of perl scripts and needs to have a properly configured /etc/astguiclient.conf file in place on the web server. Also, a couple perl modules must be loaded for it to work as well - OLE-Storage_Lite and Spreadsheet-ParseExcel. You can check for runtime errors in these by looking at your apache error_log file.
@@ -2576,7 +2576,7 @@ exit;
if ($ADD==7111111)
{
##### TEST VARIABLES #####
$vendor_lead_code = 'VENDORLEADCODE';
$vendor_lead_code = 'VENDOR:LEAD;CODE';
$list_id = 'LISTID';
$gmt_offset_now = 'GMTOFFSET';
$phone_code = '1';
@@ -2625,6 +2625,47 @@ $row=mysql_fetch_row($rslt);
$script_name = $row[1];
$script_text = $row[3];
if (eregi("iframe src",$script_text))
{
$vendor_lead_code = eregi_replace(' ','+',$vendor_lead_code);
$list_id = eregi_replace(' ','+',$list_id);
$gmt_offset_now = eregi_replace(' ','+',$gmt_offset_now);
$phone_code = eregi_replace(' ','+',$phone_code);
$phone_number = eregi_replace(' ','+',$phone_number);
$title = eregi_replace(' ','+',$title);
$first_name = eregi_replace(' ','+',$first_name);
$middle_initial = eregi_replace(' ','+',$middle_initial);
$last_name = eregi_replace(' ','+',$last_name);
$address1 = eregi_replace(' ','+',$address1);
$address2 = eregi_replace(' ','+',$address2);
$address3 = eregi_replace(' ','+',$address2);
$city = eregi_replace(' ','+',$city);
$state = eregi_replace(' ','+',$state);
$province = eregi_replace(' ','+',$province);
$postal_code = eregi_replace(' ','+',$postal_code);
$country_code = eregi_replace(' ','+',$country_code);
$gender = eregi_replace(' ','+',$gender);
$date_of_birth = eregi_replace(' ','+',$date_of_birth);
$alt_phone = eregi_replace(' ','+',$alt_phone);
$email = eregi_replace(' ','+',$email);
$security_phrase = eregi_replace(' ','+',$security_phrase);
$comments = eregi_replace(' ','+',$comments);
$RGfullname = eregi_replace(' ','+',$RGfullname);
$RGuser = eregi_replace(' ','+',$RGuser);
$RGlead_id = eregi_replace(' ','+',$RGlead_id);
$RGcampaign = eregi_replace(' ','+',$RGcampaign);
$RGphone_login = eregi_replace(' ','+',$RGphone_login);
$RGgroup = eregi_replace(' ','+',$RGgroup);
$RGchannel_group = eregi_replace(' ','+',$RGchannel_group);
$RGSQLdate = eregi_replace(' ','+',$RGSQLdate);
$RGepoch = eregi_replace(' ','+',$RGepoch);
$RGuniqueid = eregi_replace(' ','+',$RGuniqueid);
$RGcustomer_zap_channel = eregi_replace(' ','+',$RGcustomer_zap_channel);
$RGserver_ip = eregi_replace(' ','+',$RGserver_ip);
$RGSIPexten = eregi_replace(' ','+',$RGSIPexten);
$RGsession_id = eregi_replace(' ','+',$RGsession_id);
}
$script_text = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$script_text);
$script_text = eregi_replace('--A--list_id--B--',"$list_id",$script_text);
$script_text = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$script_text);
@@ -2669,7 +2710,7 @@ $script_text = eregi_replace("\n","<BR>",$script_text);
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
echo "Vorbetrachtung-Index: $script_id<BR>\n";
echo "<TABLE WIDTH=400><TR><TD>\n";
echo "<TABLE WIDTH=600><TR><TD>\n";
echo "<center><B>$script_name</B><BR></center>\n";
echo "$script_text\n";
echo "</TD></TR></TABLE></center>\n";
@@ -2708,7 +2749,7 @@ if ($hh=='server') {$server_hh='bgcolor ="#FF99FF"'; $server_fc='BLACK';} # pink
</title>
<script language="Javascript">
function openNewWindow(url) {
window.open (url,"",'width=500,height=300,scrollbars=yes,menubar=yes,address=yes');
window.open (url,"",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');
}
</script>
</head>
@@ -103,6 +103,8 @@ $PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
# 60421-1459 - check GET/POST vars lines with isset to not trigger PHP NOTICES
# 60609-1112 - Added DNC list addition if status changed to DNC
# 60619-1539 - Added variable filtering to eliminate SQL injection attack threat
# 61130-1639 - Added recording_log lookup and list for this lead_id
# 61201-1136 - Added recording_log user(TSR) display and link
#
$STARTtime = date("U");
@@ -165,8 +167,8 @@ $browser = getenv("HTTP_USER_AGENT");
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER><FONT FACE="Courier" COLOR=BLACK SIZE=3>
<?
echo "<a href=\"./admin.php?ADD=100\">VICIDIAL ADMIN</a>: Leitung notieren Änderung<BR>\n";
if ($end_call > 0)
{
@@ -413,21 +415,25 @@ echo "<center>\n";
echo "<B>ANRUFE ZU DIESEM LEITUNG:</B>\n";
echo "<TABLE width=550 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> TSR</td><td align=right><font size=2> KAMPAGNE</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> TSR</td><td align=right><font size=2> KAMPAGNE</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
$stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 50;";
$stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 500;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
$u=0;
while ($logs_to_print > $u) {
while ($logs_to_print > $u)
{
$row=mysql_fetch_row($rslt);
if (eregi("1$|3$|5$|7$|9$", $u))
{$bgcolor='bgcolor="#B9CBFD"';}
else
{$bgcolor='bgcolor="#9BB9FB"';}
echo "<tr $bgcolor><td><font size=2>$row[4]</td>";
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td><font size=2>$row[4]</td>";
echo "<td align=left><font size=2> $row[7]</td>\n";
echo "<td align=left><font size=2> $row[8]</td>\n";
echo "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[11]</A> </td>\n";
@@ -435,11 +441,46 @@ echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td
echo "<td align=right><font size=2> $row[2] </td>\n";
echo "<td align=right><font size=2> $row[1] </td></tr>\n";
$u++;
}
}
echo "</TABLE></center>\n";
echo "<BR><BR>\n";
echo "<B>RECORDINGS FOR THIS LEAD:</B>\n";
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=1># </td><td align=left><font size=2> LEAD</td><td><font size=2>DATE/TIME </td><td align=left><font size=2>SECONDS </td><td align=left><font size=2> &nbsp; RECID</td><td align=center><font size=2>FILENAME</td><td align=left><font size=2>LOCATION</td><td align=left><font size=2>TSR</td></tr>\n";
$stmt="select * from recording_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by recording_id desc limit 500;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
$u=0;
while ($logs_to_print > $u)
{
$row=mysql_fetch_row($rslt);
if (eregi("1$|3$|5$|7$|9$", $u))
{$bgcolor='bgcolor="#B9CBFD"';}
else
{$bgcolor='bgcolor="#9BB9FB"';}
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td align=left><font size=2> $row[12] </td>";
echo "<td align=left><font size=2> $row[4] </td>\n";
echo "<td align=left><font size=2> $row[8] </td>\n";
echo "<td align=left><font size=2> $row[0] </td>\n";
echo "<td align=center><font size=2> $row[10] </td>\n";
echo "<td align=left><font size=2> $row[11] </td>\n";
echo "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[13]\" target=\"_blank\">$row[13]</A> </td>";
echo "</tr>\n";
}
echo "</TABLE></center>\n";
@@ -98,8 +98,9 @@ $browser = getenv("HTTP_USER_AGENT");
<title>Leitung Nachschlagen</title>
</head>
<body bgcolor=white>
<?
echo "<a href=\"./admin.php?ADD=100\">VICIDIAL ADMIN</a>: Lead search<BR>\n";
if ( (!$vendor_id) and (!$phone) and (!$lead_id) )
{
@@ -111,7 +111,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN: Gruppe Stündlicher Notfall <? echo $group ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php?ADD=100000\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN</a>: Gruppe Stündlicher Notfall <? echo $group ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
@@ -160,7 +160,7 @@ echo "<TR><TD ALIGN=LEFT COLSPAN=2>\n";
echo "<br><center>\n";
echo "<B>TSR STUNDE ZÄHLIMPULSE: $group | $status | $date_with_hour | $date_no_hour</B>\n";
echo "<B>TSR STUNDE ZÄHLIMPULSE: <a href=\"./admin.php?ADD=3111&group_id=$group\">$group</a> | $status | $date_with_hour | $date_no_hour</B>\n";
echo "<center><TABLE width=600 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>TSR </td><td align=left><font size=2>ID </td><td align=right><font size=2> &nbsp; $status</td><td align=right><font size=2> &nbsp; GESAMTANRUFE</td><td align=right><font size=2> &nbsp; $status DAY</td><td align=right><font size=2> &nbsp; &nbsp; </td></tr>\n";
@@ -6,6 +6,7 @@
# CHANGES
#
# 60619-1743 - Added variable filtering to eliminate SQL injection attack threat
# 61201-1136 - Added recordings display and changed calls to time range with 10000 limit
#
header ("Content-type: text/html; charset=utf-8");
@@ -92,7 +93,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN: User Stats for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN</a>: User Stats for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
@@ -254,11 +255,11 @@ echo "<br><br>\n";
echo "<center>\n";
echo "<B>ANRUFE DES LETZT-50:</B>\n";
echo "<B>CALLS FOR THIS TIME PERIOD: (10000 record limit)</B>\n";
echo "<TABLE width=550 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> PHONE</td><td align=right><font size=2> KAMPAGNE</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> PHONE</td><td align=right><font size=2> KAMPAGNE</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
$stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' order by uniqueid desc limit 50;";
$stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
@@ -270,7 +271,10 @@ echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td
else
{$bgcolor='bgcolor="#9BB9FB"';}
echo "<tr $bgcolor><td><font size=2>$row[4]</td>";
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td><font size=2>$row[4]</td>";
echo "<td align=left><font size=2> $row[7]</td>\n";
echo "<td align=left><font size=2> $row[8]</td>\n";
echo "<td align=left><font size=2> $row[10] </td>\n";
@@ -278,13 +282,46 @@ echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td
echo "<td align=right><font size=2> $row[2] </td>\n";
echo "<td align=right><font size=2> <A HREF=\"admin_modify_lead.php?lead_id=$row[1]\" target=\"_blank\">$row[1]</A> </td></tr>\n";
$u++;
}
echo "</TABLE></center>\n";
echo "<B>RECORDINGS FOR THIS TIME PERIOD: (10000 record limit)</B>\n";
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=1># </td><td align=left><font size=2> LEAD</td><td><font size=2>DATE/TIME </td><td align=left><font size=2>SECONDS </td><td align=left><font size=2> &nbsp; RECID</td><td align=center><font size=2>FILENAME</td><td align=left><font size=2>LOCATION</td></tr>\n";
$stmt="select * from recording_log where user='" . mysql_real_escape_string($user) . "' and start_time >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and start_time <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by recording_id desc limit 10000;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
$u=0;
while ($logs_to_print > $u)
{
$row=mysql_fetch_row($rslt);
if (eregi("1$|3$|5$|7$|9$", $u))
{$bgcolor='bgcolor="#B9CBFD"';}
else
{$bgcolor='bgcolor="#9BB9FB"';}
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td align=left><font size=2> <A HREF=\"admin_modify_lead.php?lead_id=$row[12]\" target=\"_blank\">$row[12]</A> </td>";
echo "<td align=left><font size=2> $row[4] </td>\n";
echo "<td align=left><font size=2> $row[8] </td>\n";
echo "<td align=left><font size=2> $row[0] </td>\n";
echo "<td align=center><font size=2> $row[10] </td>\n";
echo "<td align=right><font size=2> $row[11] </td>\n";
echo "</tr>\n";
}
echo "</TABLE></center>\n";
$ENDtime = date("U");
$RUNtime = ($ENDtime - $STARTtime);
@@ -124,7 +124,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN: User Status for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN</a>: User Status for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
@@ -7,6 +7,7 @@
#
# 60619-1718 - Added variable filtering to eliminate SQL injection attack threat
# - Added required user/pass to gain access to this page
# 61215-1139 - Added drop percentage of answered and round-2 decimal
#
header ("Content-type: text/html; charset=utf-8");
@@ -119,7 +120,7 @@ if ( ($row[0] < 1) or ($row[1] < 1) )
else
{
$average_hold_seconds = ($row[1] / $row[0]);
$average_hold_seconds = round($average_hold_seconds, 0);
$average_hold_seconds = round($average_hold_seconds, 2);
$average_hold_seconds = sprintf("%10s", $average_hold_seconds);
}
echo "Συνολικά κλήσεις που τοποθετήθηκαν από την Εκστρατεία: $TOTALcalls\n";
@@ -132,32 +133,49 @@ $stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
$DROPcalls = sprintf("%10s", $row[0]);
$DROPcallsRAW = $row[0];
$DROPseconds = $row[1];
$stmt="select count(*) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status NOT IN('NA','B');";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
$ANSWERcalls = $row[0];
if ( ($DROPcalls < 1) or ($TOTALcalls < 1) )
{$DROPpercent = '0';}
else
{
$DROPpercent = (($DROPcalls / $TOTALcalls) * 100);
$DROPpercent = round($DROPpercent, 0);
$DROPpercent = (($DROPcallsRAW / $TOTALcalls) * 100);
$DROPpercent = round($DROPpercent, 2);
}
if ( ($row[0] < 1) or ($row[1] < 1) )
if ( ($DROPcalls < 1) or ($ANSWERcalls < 1) )
{$DROPANSWERpercent = '0';}
else
{
$DROPANSWERpercent = (($DROPcallsRAW / $ANSWERcalls) * 100);
$DROPANSWERpercent = round($DROPANSWERpercent, 2);
}
if ( ($DROPseconds < 1) or ($DROPcallsRAW < 1) )
{$average_hold_seconds = ' 0';}
else
{
$average_hold_seconds = ($row[1] / $row[0]);
$average_hold_seconds = round($average_hold_seconds, 0);
$average_hold_seconds = ($DROPseconds / $DROPcallsRAW);
$average_hold_seconds = round($average_hold_seconds, 2);
$average_hold_seconds = sprintf("%10s", $average_hold_seconds);
}
echo "Συνολικά ΕΓΚΑΤΑΛΕΙΜΕΝΕΣ κλήσεις: $DROPcalls $DROPpercent%\n";
echo "Percent of DROP Calls taken out of Answers: $DROPcalls / $ANSWERcalls $DROPANSWERpercent%\n";
echo "Μέσος όρος σε δευτερόλεπτα για ΕΓΚΑΤΑΕΙΜΕΝΕΣ κλήσεις: $average_hold_seconds\n";
echo "\n";
echo "---------- ΜΗ ΑΠΑΝΤ ΑΥΤ ΚΛΗΣΕΙΣ\n";
$stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status='NA' and (length_in_sec <= 60 or length_in_sec is null);";
$stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status IN('NA','B') and (length_in_sec <= 60 or length_in_sec is null);";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
@@ -168,7 +186,7 @@ if ( ($NAcalls < 1) or ($TOTALcalls < 1) )
else
{
$NApercent = (($NAcalls / $TOTALcalls) * 100);
$NApercent = round($NApercent, 0);
$NApercent = round($NApercent, 2);
}
if ( ($row[0] < 1) or ($row[1] < 1) )
@@ -176,11 +194,11 @@ if ( ($row[0] < 1) or ($row[1] < 1) )
else
{
$average_na_seconds = ($row[1] / $row[0]);
$average_na_seconds = round($average_na_seconds, 0);
$average_na_seconds = round($average_na_seconds, 2);
$average_na_seconds = sprintf("%10s", $average_na_seconds);
}
echo "Συνολικά ΝΑ κλήσεις -Busy,Disconnect,BTvoicemail: $NAcalls $NApercent%\n";
echo "Total NA calls -Busy,Disconnect,RingNoAnswer: $NAcalls $NApercent%\n";
echo "Μέσος όρος σε δευτερόλεπτα για ΝΑ κλήσεις: $average_na_seconds\n";
@@ -63,9 +63,10 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
<?
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
echo "<TITLE>VICIDIAL: Agent Time Sheet</TITLE></HEAD><BODY BGCOLOR=WHITE>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=19 MAXLENGTH=19 VALUE=\"$query_date\">\n";
echo "<INPUT TYPE=TEXT NAME=agent SIZE=10 MAXLENGTH=20 VALUE=\"$agent\">\n";
echo "<a href=\"./admin.php\">ΔΙΑΧΕΙΡΙΣΗ</a>: Agent Time Sheet<BR>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET> &nbsp; \n";
echo "Date: <INPUT TYPE=TEXT NAME=query_date SIZE=19 MAXLENGTH=19 VALUE=\"$query_date\">\n";
echo "User ID: <INPUT TYPE=TEXT NAME=agent SIZE=10 MAXLENGTH=20 VALUE=\"$agent\">\n";
echo "<INPUT TYPE=Submit NAME=ΕΠΙΒΕΒΑΙΩΣΗ VALUE=ΥΠΟΒΑΛΛΩ>\n";
echo "</FORM>\n\n";
@@ -284,10 +284,10 @@ $rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$VDhop = $row[0];
$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
if ($group=='XXXX-ALL-ACTIVE-XXXX')
{
$stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill) from vicidial_campaign_stats;";
$stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_answers_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill),sum(answers_today) from vicidial_campaign_stats;";
}
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
@@ -298,6 +298,7 @@ $drpctTODAY = $row[3];
$diffONEMIN = $row[4];
$agentsONEMIN = $row[5];
$balanceFILL = $row[6];
$answersTODAY = $row[7];
if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) )
{
$diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100);
@@ -348,7 +349,7 @@ echo "</TR>";
echo "<TR>";
echo "<TD ALIGN=RIGHT><font size=2><B>HOPPER LEVEL:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $HOPlev &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>CALLS DROPPED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DROPPED / ANSWERED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY / $answersTODAY &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DL DIFF:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $diffONEMIN &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>STATUSES:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE &nbsp; &nbsp; </TD>";
echo "</TR>";
@@ -155,7 +155,7 @@ $rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$VDhop = $row[0];
$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$DAleads = $row[0];
@@ -165,6 +165,7 @@ $drpctTODAY = $row[3];
$diffONEMIN = $row[4];
$agentsONEMIN = $row[5];
$balanceFILL = $row[6];
$answersTODAY = $row[7];
if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) )
{
$diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100);
@@ -211,7 +212,7 @@ echo "</TR>";
echo "<TR>";
echo "<TD ALIGN=RIGHT><font size=2><B>HOPPER LEVEL:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $HOPlev &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>CALLS DROPPED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DROPPED / ANSWERED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY / $answersTODAY &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DL DIFF:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $diffONEMIN &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>STATUSES:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE &nbsp; &nbsp; </TD>";
echo "</TR>";
+46 -5
View File
@@ -1910,7 +1910,7 @@ echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN
<B>Κείμενο χειρόγραφου -</B> This is where you place the content of a Vicidial Script. Minimum of 2 characters. You can have customer information be auto-populated in this script using "--A--field--B--" where field is one of the following fieldnames: vendor_lead_code, source_id, 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, date_of_birth, alt_phone, email, security_phrase, comments, lead_id, campaign, phone_login, group, channel_group, SQLdate, epoch, uniqueid, customer_zap_channel, server_ip, SIPexten, session_id. For example, this sentence would print the persons name in it----<BR><BR> Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?<BR><BR> This would read----<BR><BR>Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?<BR><BR> You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:
<DIV style="height:200px;width:400px;background:white;overflow:scroll;font-size:12px;font-family:sans-serif;" id=iframe_example>
&#60;iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&#38;vendor_id=--A--vendor_lead_code--B--&#38;list_id=--A--list_id--B--&#38;gmt_offset_now=--A--gmt_offset_now--B--&#38;phone_code=--A--phone_code--B--&#38;phone_number=--A--phone_number--B--&#38;title=--A--title--B--&#38;first_name=--A--first_name--B--&#38;middle_initial=--A--middle_initial--B--&#38;last_name=--A--last_name--B--&#38;address1=--A--address1--B--&#38;address2=--A--address2--B--&#38;address3=--A--address3--B--&#38;city=--A--city--B--&#38;state=--A--state--B--&#38;province=--A--province--B--&#38;postal_code=--A--postal_code--B--&#38;country_code=--A--country_code--B--&#38;gender=--A--gender--B--&#38;date_of_birth=--A--date_of_birth--B--&#38;alt_phone=--A--alt_phone--B--&#38;email=--A--email--B--&#38;security_phrase=--A--security_phrase--B--&#38;comments=--A--comments--B--&#38;user=--A--user--B--&#38;campaign=--A--campaign--B--&#38;phone_login=--A--phone_login--B--&#38;fronter=--A--fronter--B--&#38;closer=--A--user--B--&#38;group=--A--group--B--&#38;channel_group=--A--group--B--&#38;SQLdate=--A--SQLdate--B--&#38;epoch=--A--epoch--B--&#38;uniqueid=--A--uniqueid--B--&#38;customer_zap_channel=--A--customer_zap_channel--B--&#38;server_ip=--A--server_ip--B--&#38;SIPexten=--A--SIPexten--B--&#38;session_id=--A--session_id--B--&#38;phone=--A--phone--B--" style="width:460;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"&#62;
&#60;iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&#38;vendor_id=--A--vendor_lead_code--B--&#38;list_id=--A--list_id--B--&#38;gmt_offset_now=--A--gmt_offset_now--B--&#38;phone_code=--A--phone_code--B--&#38;phone_number=--A--phone_number--B--&#38;title=--A--title--B--&#38;first_name=--A--first_name--B--&#38;middle_initial=--A--middle_initial--B--&#38;last_name=--A--last_name--B--&#38;address1=--A--address1--B--&#38;address2=--A--address2--B--&#38;address3=--A--address3--B--&#38;city=--A--city--B--&#38;state=--A--state--B--&#38;province=--A--province--B--&#38;postal_code=--A--postal_code--B--&#38;country_code=--A--country_code--B--&#38;gender=--A--gender--B--&#38;date_of_birth=--A--date_of_birth--B--&#38;alt_phone=--A--alt_phone--B--&#38;email=--A--email--B--&#38;security_phrase=--A--security_phrase--B--&#38;comments=--A--comments--B--&#38;user=--A--user--B--&#38;campaign=--A--campaign--B--&#38;phone_login=--A--phone_login--B--&#38;fronter=--A--fronter--B--&#38;closer=--A--user--B--&#38;group=--A--group--B--&#38;channel_group=--A--group--B--&#38;SQLdate=--A--SQLdate--B--&#38;epoch=--A--epoch--B--&#38;uniqueid=--A--uniqueid--B--&#38;customer_zap_channel=--A--customer_zap_channel--B--&#38;server_ip=--A--server_ip--B--&#38;SIPexten=--A--SIPexten--B--&#38;session_id=--A--session_id--B--&#38;phone=--A--phone--B--" style="width:580;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"&#62;
&#60;/iframe&#62;
</DIV>
@@ -2013,7 +2013,7 @@ echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN
<LI>Σχόλια
</OL>
<BR>ΣΗΜΕΙΩΣΕΙΣ: Η λειτουργία εισαγωγής οδηγών Excel επιτρέπεται από μια σειρά προγραμμάτων και πρέπει να έχει κατάλληλα διαμορφωμένο ένα αρχείο home/cron/AST_SERVER_conf.pl στον κεντρικό υπολογιστή δικτύου. Επίσης, κάποια υπο-προγράμματα πρέπει να φορτωθούν για να εργαστούν επίσης - OLE- τα Storage_Lite και Spreadsheet-ParseExcel. Μπορείτε να ελέγξετε για λάθη χρόνου εκτέλεσης στο αρχείο error_log του apache σας .
<BR>NOTES: The Excel Lead loader functionality is enabled by a series of perl scripts and needs to have a properly configured /etc/astguiclient.conf file in place on the web server. Also, a couple perl modules must be loaded for it to work as well - OLE-Storage_Lite and Spreadsheet-ParseExcel. You can check for runtime errors in these by looking at your apache error_log file.
@@ -2580,7 +2580,7 @@ exit;
if ($ADD==7111111)
{
##### TEST VARIABLES #####
$vendor_lead_code = 'VENDORLEADCODE';
$vendor_lead_code = 'VENDOR:LEAD;CODE';
$list_id = 'LISTID';
$gmt_offset_now = 'GMTOFFSET';
$phone_code = '1';
@@ -2629,6 +2629,47 @@ $row=mysql_fetch_row($rslt);
$script_name = $row[1];
$script_text = $row[3];
if (eregi("iframe src",$script_text))
{
$vendor_lead_code = eregi_replace(' ','+',$vendor_lead_code);
$list_id = eregi_replace(' ','+',$list_id);
$gmt_offset_now = eregi_replace(' ','+',$gmt_offset_now);
$phone_code = eregi_replace(' ','+',$phone_code);
$phone_number = eregi_replace(' ','+',$phone_number);
$title = eregi_replace(' ','+',$title);
$first_name = eregi_replace(' ','+',$first_name);
$middle_initial = eregi_replace(' ','+',$middle_initial);
$last_name = eregi_replace(' ','+',$last_name);
$address1 = eregi_replace(' ','+',$address1);
$address2 = eregi_replace(' ','+',$address2);
$address3 = eregi_replace(' ','+',$address2);
$city = eregi_replace(' ','+',$city);
$state = eregi_replace(' ','+',$state);
$province = eregi_replace(' ','+',$province);
$postal_code = eregi_replace(' ','+',$postal_code);
$country_code = eregi_replace(' ','+',$country_code);
$gender = eregi_replace(' ','+',$gender);
$date_of_birth = eregi_replace(' ','+',$date_of_birth);
$alt_phone = eregi_replace(' ','+',$alt_phone);
$email = eregi_replace(' ','+',$email);
$security_phrase = eregi_replace(' ','+',$security_phrase);
$comments = eregi_replace(' ','+',$comments);
$RGfullname = eregi_replace(' ','+',$RGfullname);
$RGuser = eregi_replace(' ','+',$RGuser);
$RGlead_id = eregi_replace(' ','+',$RGlead_id);
$RGcampaign = eregi_replace(' ','+',$RGcampaign);
$RGphone_login = eregi_replace(' ','+',$RGphone_login);
$RGgroup = eregi_replace(' ','+',$RGgroup);
$RGchannel_group = eregi_replace(' ','+',$RGchannel_group);
$RGSQLdate = eregi_replace(' ','+',$RGSQLdate);
$RGepoch = eregi_replace(' ','+',$RGepoch);
$RGuniqueid = eregi_replace(' ','+',$RGuniqueid);
$RGcustomer_zap_channel = eregi_replace(' ','+',$RGcustomer_zap_channel);
$RGserver_ip = eregi_replace(' ','+',$RGserver_ip);
$RGSIPexten = eregi_replace(' ','+',$RGSIPexten);
$RGsession_id = eregi_replace(' ','+',$RGsession_id);
}
$script_text = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$script_text);
$script_text = eregi_replace('--A--list_id--B--',"$list_id",$script_text);
$script_text = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$script_text);
@@ -2673,7 +2714,7 @@ $script_text = eregi_replace("\n","<BR>",$script_text);
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
echo "Προεπισκόπιση Βοηθού: $script_id<BR>\n";
echo "<TABLE WIDTH=400><TR><TD>\n";
echo "<TABLE WIDTH=600><TR><TD>\n";
echo "<center><B>$script_name</B><BR></center>\n";
echo "$script_text\n";
echo "</TD></TR></TABLE></center>\n";
@@ -2712,7 +2753,7 @@ if ($hh=='server') {$server_hh='bgcolor ="#FF99FF"'; $server_fc='BLACK';} # pink
</title>
<script language="Javascript">
function openNewWindow(url) {
window.open (url,"",'width=500,height=300,scrollbars=yes,menubar=yes,address=yes');
window.open (url,"",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');
}
</script>
</head>
@@ -167,8 +167,8 @@ $browser = getenv("HTTP_USER_AGENT");
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER><FONT FACE="Courier" COLOR=BLACK SIZE=3>
<?
echo "<a href=\"./admin.php?ADD=100\">ΔΙΑΧΕΙΡΙΣΗ</a>: Τροποποίηση οδηγού<BR>\n";
if ($end_call > 0)
{
@@ -98,8 +98,9 @@ $browser = getenv("HTTP_USER_AGENT");
<title>Ψάξιμο Καθοδήγησης</title>
</head>
<body bgcolor=white>
<?
echo "<a href=\"./admin.php?ADD=100\">ΔΙΑΧΕΙΡΙΣΗ</a>: Lead search<BR>\n";
if ( (!$vendor_id) and (!$phone) and (!$lead_id) )
{
@@ -111,7 +111,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; ΔΙΑΧΕΙΡΙΣΗ: Ομαδοποιημένα Ωριαία Στατιστικά <? echo $group ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php?ADD=100000\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; ΔΙΑΧΕΙΡΙΣΗ</a>: Ομαδοποιημένα Ωριαία Στατιστικά <? echo $group ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
@@ -160,7 +160,7 @@ echo "<TR><TD ALIGN=LEFT COLSPAN=2>\n";
echo "<br><center>\n";
echo "<B>ΜΕΤΡΗΣΗ ΩΡΩΝ TSR: $group | $status | $date_with_hour | $date_no_hour</B>\n";
echo "<B>ΜΕΤΡΗΣΗ ΩΡΩΝ TSR: <a href=\"./admin.php?ADD=3111&group_id=$group\">$group</a> | $status | $date_with_hour | $date_no_hour</B>\n";
echo "<center><TABLE width=600 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>TSR </td><td align=left><font size=2>ID </td><td align=right><font size=2> &nbsp; $status</td><td align=right><font size=2> &nbsp; ΣΥΝΟΛΙΚΕΣ ΚΛΗΣΕΙΣ</td><td align=right><font size=2> &nbsp; $status DAY</td><td align=right><font size=2> &nbsp; &nbsp; </td></tr>\n";
@@ -1,114 +0,0 @@
VICIDIAL|GOOD|Tue, 22 Nov 2005 14:58:40 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 22 Nov 2005 15:02:51 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 22 Nov 2005 15:03:00 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 22 Nov 2005 15:03:10 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 22 Nov 2005 15:03:12 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 22 Nov 2005 15:05:07 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 22 Nov 2005 15:05:10 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 22 Nov 2005 15:28:49 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 22 Nov 2005 15:30:11 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 22 Nov 2005 15:30:15 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Thu, 22 Dec 2005 17:06:49 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Thu, 22 Dec 2005 17:07:13 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Thu, 22 Dec 2005 17:07:17 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Thu, 22 Dec 2005 17:07:21 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Fri, 23 Dec 2005 14:39:30 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:43 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:45 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:46 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 03 Mar 2006 16:14:21 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:03:10 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:03:15 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:03:33 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:04:19 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:04:24 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:04:28 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:11:04 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:11:08 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:11:45 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:11:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:15:54 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:15:56 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
LIST_LOAD|GOOD|Thu, 27 Apr 2006 17:18:51 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7||
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:18:56 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:19:07 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:19:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:21:55 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:23:16 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:23:21 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:23:23 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:23:29 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:24:23 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:24:25 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:25:31 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:25:41 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:25:43 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:25:45 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:25:46 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:26:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:26:50 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:26:52 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:32 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:38 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:39 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:41 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:43 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:48 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:54 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:55 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:57 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:58 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:00:48 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:00:50 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:00:58 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:03 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:17 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:19 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:29 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:42 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:43 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:47 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:52 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:54 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:59 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:01 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:03 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:05 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:11 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:12 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:15 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:16 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:26 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:28 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:32 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:07:52 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:13 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:17 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:20 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:22 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:24 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:25 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:27 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:28 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:33 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:35 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:37 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:44 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:46 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:47 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:51 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:21:00 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:21:17 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:21:23 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
LIST_LOAD|GOOD|Thu, 27 Apr 2006 22:22:17 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7||
LIST_LOAD|GOOD|Thu, 27 Apr 2006 22:25:37 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7||
LIST_LOAD|GOOD|Thu, 27 Apr 2006 22:27:54 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7||
LIST_LOAD|GOOD|Thu, 27 Apr 2006 22:34:07 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7||
VICIDIAL|GOOD|Thu, 27 Apr 2006 23:40:50 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:35:20 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:35:23 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:35:26 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:35:31 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
@@ -93,7 +93,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; ΔΙΑΧΕΙΡΙΣΗ: User Stats for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; ΔΙΑΧΕΙΡΙΣΗ</a>: User Stats for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
@@ -124,7 +124,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; ΔΙΑΧΕΙΡΙΣΗ: User Status for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; ΔΙΑΧΕΙΡΙΣΗ</a>: User Status for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
@@ -7,6 +7,7 @@
#
# 60619-1718 - Added variable filtering to eliminate SQL injection attack threat
# - Added required user/pass to gain access to this page
# 61215-1139 - Added drop percentage of answered and round-2 decimal
#
header ("Content-type: text/html; charset=utf-8");
@@ -119,7 +120,7 @@ if ( ($row[0] < 1) or ($row[1] < 1) )
else
{
$average_hold_seconds = ($row[1] / $row[0]);
$average_hold_seconds = round($average_hold_seconds, 0);
$average_hold_seconds = round($average_hold_seconds, 2);
$average_hold_seconds = sprintf("%10s", $average_hold_seconds);
}
echo "Total Calls placed from this Campaign: $TOTALcalls\n";
@@ -132,32 +133,49 @@ $stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
$DROPcalls = sprintf("%10s", $row[0]);
$DROPcallsRAW = $row[0];
$DROPseconds = $row[1];
$stmt="select count(*) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status NOT IN('NA','B');";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
$ANSWERcalls = $row[0];
if ( ($DROPcalls < 1) or ($TOTALcalls < 1) )
{$DROPpercent = '0';}
else
{
$DROPpercent = (($DROPcalls / $TOTALcalls) * 100);
$DROPpercent = round($DROPpercent, 0);
$DROPpercent = (($DROPcallsRAW / $TOTALcalls) * 100);
$DROPpercent = round($DROPpercent, 2);
}
if ( ($row[0] < 1) or ($row[1] < 1) )
if ( ($DROPcalls < 1) or ($ANSWERcalls < 1) )
{$DROPANSWERpercent = '0';}
else
{
$DROPANSWERpercent = (($DROPcallsRAW / $ANSWERcalls) * 100);
$DROPANSWERpercent = round($DROPANSWERpercent, 2);
}
if ( ($DROPseconds < 1) or ($DROPcallsRAW < 1) )
{$average_hold_seconds = ' 0';}
else
{
$average_hold_seconds = ($row[1] / $row[0]);
$average_hold_seconds = round($average_hold_seconds, 0);
$average_hold_seconds = ($DROPseconds / $DROPcallsRAW);
$average_hold_seconds = round($average_hold_seconds, 2);
$average_hold_seconds = sprintf("%10s", $average_hold_seconds);
}
echo "Total DROP Calls: $DROPcalls $DROPpercent%\n";
echo "Percent of DROP Calls taken out of Answers: $DROPcalls / $ANSWERcalls $DROPANSWERpercent%\n";
echo "Average Length for DROP Calls in seconds: $average_hold_seconds\n";
echo "\n";
echo "---------- AUTO-DIAL NO ANSWERS\n";
$stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status='NA' and (length_in_sec <= 60 or length_in_sec is null);";
$stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status IN('NA','B') and (length_in_sec <= 60 or length_in_sec is null);";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
@@ -168,7 +186,7 @@ if ( ($NAcalls < 1) or ($TOTALcalls < 1) )
else
{
$NApercent = (($NAcalls / $TOTALcalls) * 100);
$NApercent = round($NApercent, 0);
$NApercent = round($NApercent, 2);
}
if ( ($row[0] < 1) or ($row[1] < 1) )
@@ -176,11 +194,11 @@ if ( ($row[0] < 1) or ($row[1] < 1) )
else
{
$average_na_seconds = ($row[1] / $row[0]);
$average_na_seconds = round($average_na_seconds, 0);
$average_na_seconds = round($average_na_seconds, 2);
$average_na_seconds = sprintf("%10s", $average_na_seconds);
}
echo "Total NA calls -Busy,Disconnect,BTvoicemail: $NAcalls $NApercent%\n";
echo "Total NA calls -Busy,Disconnect,RingNoAnswer: $NAcalls $NApercent%\n";
echo "Average Call Length for NA Calls in seconds: $average_na_seconds\n";
@@ -63,9 +63,10 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
<?
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
echo "<TITLE>VICIDIAL: Agent Time Sheet</TITLE></HEAD><BODY BGCOLOR=WHITE>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=19 MAXLENGTH=19 VALUE=\"$query_date\">\n";
echo "<INPUT TYPE=TEXT NAME=agent SIZE=10 MAXLENGTH=20 VALUE=\"$agent\">\n";
echo "<a href=\"./admin.php\">VICIDIAL ADMIN</a>: Agent Time Sheet<BR>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET> &nbsp; \n";
echo "Date: <INPUT TYPE=TEXT NAME=query_date SIZE=19 MAXLENGTH=19 VALUE=\"$query_date\">\n";
echo "User ID: <INPUT TYPE=TEXT NAME=agent SIZE=10 MAXLENGTH=20 VALUE=\"$agent\">\n";
echo "<INPUT TYPE=SUBMIT NAME=SUBMIT VALUE=SUBMIT>\n";
echo "</FORM>\n\n";
@@ -284,10 +284,10 @@ $rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$VDhop = $row[0];
$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
if ($group=='XXXX-ALL-ACTIVE-XXXX')
{
$stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill) from vicidial_campaign_stats;";
$stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_answers_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill),sum(answers_today) from vicidial_campaign_stats;";
}
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
@@ -298,6 +298,7 @@ $drpctTODAY = $row[3];
$diffONEMIN = $row[4];
$agentsONEMIN = $row[5];
$balanceFILL = $row[6];
$answersTODAY = $row[7];
if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) )
{
$diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100);
@@ -348,7 +349,7 @@ echo "</TR>";
echo "<TR>";
echo "<TD ALIGN=RIGHT><font size=2><B>HOPPER LEVEL:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $HOPlev &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>CALLS DROPPED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DROPPED / ANSWERED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY / $answersTODAY &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DL DIFF:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $diffONEMIN &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>STATUSES:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE &nbsp; &nbsp; </TD>";
echo "</TR>";
@@ -155,7 +155,7 @@ $rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$VDhop = $row[0];
$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$DAleads = $row[0];
@@ -165,6 +165,7 @@ $drpctTODAY = $row[3];
$diffONEMIN = $row[4];
$agentsONEMIN = $row[5];
$balanceFILL = $row[6];
$answersTODAY = $row[7];
if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) )
{
$diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100);
@@ -211,7 +212,7 @@ echo "</TR>";
echo "<TR>";
echo "<TD ALIGN=RIGHT><font size=2><B>HOPPER LEVEL:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $HOPlev &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>CALLS DROPPED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DROPPED / ANSWERED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY / $answersTODAY &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DL DIFF:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $diffONEMIN &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>STATUSES:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE &nbsp; &nbsp; </TD>";
echo "</TR>";
+46 -5
View File
@@ -1907,7 +1907,7 @@ echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN
<B>Script Text -</B> This is where you place the content of a Vicidial Script. Minimum of 2 characters. You can have customer information be auto-populated in this script using "--A--field--B--" where field is one of the following fieldnames: vendor_lead_code, source_id, 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, date_of_birth, alt_phone, email, security_phrase, comments, lead_id, campaign, phone_login, group, channel_group, SQLdate, epoch, uniqueid, customer_zap_channel, server_ip, SIPexten, session_id. For example, this sentence would print the persons name in it----<BR><BR> Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?<BR><BR> This would read----<BR><BR>Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?<BR><BR> You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:
<DIV style="height:200px;width:400px;background:white;overflow:scroll;font-size:12px;font-family:sans-serif;" id=iframe_example>
&#60;iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&#38;vendor_id=--A--vendor_lead_code--B--&#38;list_id=--A--list_id--B--&#38;gmt_offset_now=--A--gmt_offset_now--B--&#38;phone_code=--A--phone_code--B--&#38;phone_number=--A--phone_number--B--&#38;title=--A--title--B--&#38;first_name=--A--first_name--B--&#38;middle_initial=--A--middle_initial--B--&#38;last_name=--A--last_name--B--&#38;address1=--A--address1--B--&#38;address2=--A--address2--B--&#38;address3=--A--address3--B--&#38;city=--A--city--B--&#38;state=--A--state--B--&#38;province=--A--province--B--&#38;postal_code=--A--postal_code--B--&#38;country_code=--A--country_code--B--&#38;gender=--A--gender--B--&#38;date_of_birth=--A--date_of_birth--B--&#38;alt_phone=--A--alt_phone--B--&#38;email=--A--email--B--&#38;security_phrase=--A--security_phrase--B--&#38;comments=--A--comments--B--&#38;user=--A--user--B--&#38;campaign=--A--campaign--B--&#38;phone_login=--A--phone_login--B--&#38;fronter=--A--fronter--B--&#38;closer=--A--user--B--&#38;group=--A--group--B--&#38;channel_group=--A--group--B--&#38;SQLdate=--A--SQLdate--B--&#38;epoch=--A--epoch--B--&#38;uniqueid=--A--uniqueid--B--&#38;customer_zap_channel=--A--customer_zap_channel--B--&#38;server_ip=--A--server_ip--B--&#38;SIPexten=--A--SIPexten--B--&#38;session_id=--A--session_id--B--&#38;phone=--A--phone--B--" style="width:460;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"&#62;
&#60;iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&#38;vendor_id=--A--vendor_lead_code--B--&#38;list_id=--A--list_id--B--&#38;gmt_offset_now=--A--gmt_offset_now--B--&#38;phone_code=--A--phone_code--B--&#38;phone_number=--A--phone_number--B--&#38;title=--A--title--B--&#38;first_name=--A--first_name--B--&#38;middle_initial=--A--middle_initial--B--&#38;last_name=--A--last_name--B--&#38;address1=--A--address1--B--&#38;address2=--A--address2--B--&#38;address3=--A--address3--B--&#38;city=--A--city--B--&#38;state=--A--state--B--&#38;province=--A--province--B--&#38;postal_code=--A--postal_code--B--&#38;country_code=--A--country_code--B--&#38;gender=--A--gender--B--&#38;date_of_birth=--A--date_of_birth--B--&#38;alt_phone=--A--alt_phone--B--&#38;email=--A--email--B--&#38;security_phrase=--A--security_phrase--B--&#38;comments=--A--comments--B--&#38;user=--A--user--B--&#38;campaign=--A--campaign--B--&#38;phone_login=--A--phone_login--B--&#38;fronter=--A--fronter--B--&#38;closer=--A--user--B--&#38;group=--A--group--B--&#38;channel_group=--A--group--B--&#38;SQLdate=--A--SQLdate--B--&#38;epoch=--A--epoch--B--&#38;uniqueid=--A--uniqueid--B--&#38;customer_zap_channel=--A--customer_zap_channel--B--&#38;server_ip=--A--server_ip--B--&#38;SIPexten=--A--SIPexten--B--&#38;session_id=--A--session_id--B--&#38;phone=--A--phone--B--" style="width:580;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"&#62;
&#60;/iframe&#62;
</DIV>
@@ -2009,7 +2009,7 @@ The VICIDIAL basic web-based lead loader is designed simply to take a lead file
<LI>Comments
</OL>
<BR>NOTES: The Excel Lead loader functionality is enabled by a series of perl scripts and needs to have a properly configured /home/cron/AST_SERVER_conf.pl file in place on the web server. Also, a couple perl modules must be loaded for it to work as well - OLE-Storage_Lite and Spreadsheet-ParseExcel. You can check for runtime errors in these by looking at your apache error_log file.
<BR>NOTES: The Excel Lead loader functionality is enabled by a series of perl scripts and needs to have a properly configured /etc/astguiclient.conf file in place on the web server. Also, a couple perl modules must be loaded for it to work as well - OLE-Storage_Lite and Spreadsheet-ParseExcel. You can check for runtime errors in these by looking at your apache error_log file.
@@ -2576,7 +2576,7 @@ exit;
if ($ADD==7111111)
{
##### TEST VARIABLES #####
$vendor_lead_code = 'VENDORLEADCODE';
$vendor_lead_code = 'VENDOR:LEAD;CODE';
$list_id = 'LISTID';
$gmt_offset_now = 'GMTOFFSET';
$phone_code = '1';
@@ -2625,6 +2625,47 @@ $row=mysql_fetch_row($rslt);
$script_name = $row[1];
$script_text = $row[3];
if (eregi("iframe src",$script_text))
{
$vendor_lead_code = eregi_replace(' ','+',$vendor_lead_code);
$list_id = eregi_replace(' ','+',$list_id);
$gmt_offset_now = eregi_replace(' ','+',$gmt_offset_now);
$phone_code = eregi_replace(' ','+',$phone_code);
$phone_number = eregi_replace(' ','+',$phone_number);
$title = eregi_replace(' ','+',$title);
$first_name = eregi_replace(' ','+',$first_name);
$middle_initial = eregi_replace(' ','+',$middle_initial);
$last_name = eregi_replace(' ','+',$last_name);
$address1 = eregi_replace(' ','+',$address1);
$address2 = eregi_replace(' ','+',$address2);
$address3 = eregi_replace(' ','+',$address2);
$city = eregi_replace(' ','+',$city);
$state = eregi_replace(' ','+',$state);
$province = eregi_replace(' ','+',$province);
$postal_code = eregi_replace(' ','+',$postal_code);
$country_code = eregi_replace(' ','+',$country_code);
$gender = eregi_replace(' ','+',$gender);
$date_of_birth = eregi_replace(' ','+',$date_of_birth);
$alt_phone = eregi_replace(' ','+',$alt_phone);
$email = eregi_replace(' ','+',$email);
$security_phrase = eregi_replace(' ','+',$security_phrase);
$comments = eregi_replace(' ','+',$comments);
$RGfullname = eregi_replace(' ','+',$RGfullname);
$RGuser = eregi_replace(' ','+',$RGuser);
$RGlead_id = eregi_replace(' ','+',$RGlead_id);
$RGcampaign = eregi_replace(' ','+',$RGcampaign);
$RGphone_login = eregi_replace(' ','+',$RGphone_login);
$RGgroup = eregi_replace(' ','+',$RGgroup);
$RGchannel_group = eregi_replace(' ','+',$RGchannel_group);
$RGSQLdate = eregi_replace(' ','+',$RGSQLdate);
$RGepoch = eregi_replace(' ','+',$RGepoch);
$RGuniqueid = eregi_replace(' ','+',$RGuniqueid);
$RGcustomer_zap_channel = eregi_replace(' ','+',$RGcustomer_zap_channel);
$RGserver_ip = eregi_replace(' ','+',$RGserver_ip);
$RGSIPexten = eregi_replace(' ','+',$RGSIPexten);
$RGsession_id = eregi_replace(' ','+',$RGsession_id);
}
$script_text = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$script_text);
$script_text = eregi_replace('--A--list_id--B--',"$list_id",$script_text);
$script_text = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$script_text);
@@ -2669,7 +2710,7 @@ $script_text = eregi_replace("\n","<BR>",$script_text);
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
echo "Preview Script: $script_id<BR>\n";
echo "<TABLE WIDTH=400><TR><TD>\n";
echo "<TABLE WIDTH=600><TR><TD>\n";
echo "<center><B>$script_name</B><BR></center>\n";
echo "$script_text\n";
echo "</TD></TR></TABLE></center>\n";
@@ -2708,7 +2749,7 @@ if ($hh=='server') {$server_hh='bgcolor ="#FF99FF"'; $server_fc='BLACK';} # pink
</title>
<script language="Javascript">
function openNewWindow(url) {
window.open (url,"",'width=500,height=300,scrollbars=yes,menubar=yes,address=yes');
window.open (url,"",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');
}
</script>
</head>
@@ -1,37 +0,0 @@
Wed, 14 Dec 2005 10:17:51 -0500|ADD A NEW SCRIPT ENTRY |6666|10.10.6.19|'TESTCAMP01','first test script','script_comments','script_text','Y'|
Wed, 14 Dec 2005 17:02:06 -0500|ADD A NEW SCRIPT ENTRY |6666|10.10.6.19|'TESTCAMP02','first test script','for testing purposes only','asdf asdf as dfafd as dfas fda sf as fa sdf a sdf as fda sdf a sdf as fas df as fa sf as dfa sdf a fd
hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there ','Y'|
Wed, 14 Dec 2005 17:04:05 -0500|ADD A NEW SCRIPT ENTRY |6666|10.10.6.19|'TESTCAMP03','first test script','for testing purposes only','asdf asdf as dfafd as dfas fda sf as fa sdf a sdf as fda sdf a sdf as fas df as fa sf as dfa sdf a fd
hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there ','Y'|
Tue, 03 Jan 2006 11:33:22 -0500|RESET LIST CALLED |123456|10.10.6.19|list_name='test domestic lists'|
Tue, 03 Jan 2006 11:33:22 -0500|MODIFY LIST INFO |123456|10.10.6.19|list_name='test domestic lists',campaign_id='TESTCAMP',active='Y' where list_id='101'|
Mon, 23 Jan 2006 10:45:26 -0500|ADD A NEW CAMPAIGN |123456|10.10.6.19|INSERT INTO vicidial_campaigns (campaign_id,campaign_name,active,dial_status_a,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,campaign_script,get_call_launch) values('CCONFIRM','College Partnership Confirm','Y','NEW','DOWN','','','','Y','50','1','oldest_call_finish','9am-9pm','','','NONE')|
Mon, 23 Jan 2006 10:46:09 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership Confirm',active='Y',dial_status_a='NEW',dial_status_b='',dial_status_c='',dial_status_d='',dial_status_e='',lead_order='DOWN',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='60', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CCONFIRM'|N|
Mon, 23 Jan 2006 10:47:08 -0500|ADD A NEW CAMPAIGN HOTKEY |123456|10.10.6.19|'A','1','Answering Machine','Y','CCONFIRM'|
Mon, 23 Jan 2006 10:47:14 -0500|ADD A NEW CAMPAIGN HOTKEY |123456|10.10.6.19|'N','2','No Answer','Y','CCONFIRM'|
Mon, 23 Jan 2006 10:48:06 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership',active='Y',dial_status_a='N',dial_status_b='NEW',dial_status_c='DROP',dial_status_d='A',dial_status_e='NA',lead_order='DOWN COUNT',allow_closers='Y',hopper_level='200', auto_dial_level='2.7', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='30', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='http://10.10.10.196/vicidial/vicidial_college_partnership.php', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CPARTNER'|N|
Mon, 23 Jan 2006 10:48:22 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership Confirm',active='Y',dial_status_a='NEW',dial_status_b='',dial_status_c='',dial_status_d='',dial_status_e='',lead_order='DOWN',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='30', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CCONFIRM'|N|
Mon, 23 Jan 2006 10:49:01 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership Confirm',active='Y',dial_status_a='NEW',dial_status_b='',dial_status_c='',dial_status_d='',dial_status_e='',lead_order='DOWN',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='30', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='http://10.10.10.196/vicidial/vicidial_college_partnership_confirm.php', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CCONFIRM'|N|
Mon, 23 Jan 2006 11:07:57 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership Confirm',active='Y',dial_status_a='NEW',dial_status_b='',dial_status_c='',dial_status_d='',dial_status_e='',lead_order='DOWN',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='30', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='http://10.10.10.196/vicidial/vicidial_college_partnership_confirm.php?STAGE=CONFIRMLOOKUP', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CCONFIRM'|N|
Mon, 23 Jan 2006 12:10:13 -0500|ADD A NEW LIST |123456|10.10.6.19|'80204','CP Confirm Jan28-29','CCONFIRM','N'|
Mon, 23 Jan 2006 12:14:26 -0500|MODIFY LIST INFO |123456|10.10.6.19|list_name='CPConfirm Jan28-29 E',campaign_id='CCONFIRM',active='N' where list_id='80204'|
Mon, 23 Jan 2006 12:14:31 -0500|RESET LIST CALLED |123456|10.10.6.19|list_name='CPConfirm Jan28-29 E'|
Mon, 23 Jan 2006 12:14:31 -0500|MODIFY LIST INFO |123456|10.10.6.19|list_name='CPConfirm Jan28-29 E',campaign_id='CCONFIRM',active='Y' where list_id='80204'|
Mon, 23 Jan 2006 12:14:48 -0500|ADD A NEW LIST |123456|10.10.6.19|'80304','CPConfirm Jan28-29 W','CCONFIRM','Y'|
Mon, 23 Jan 2006 12:15:57 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership Confirm',active='Y',dial_status_a='SALE',dial_status_b='',dial_status_c='',dial_status_d='',dial_status_e='',lead_order='DOWN',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='30', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='http://10.10.10.196/vicidial/vicidial_college_partnership_confirm.php?STAGE=CONFIRMLOOKUP', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CCONFIRM'|N|
Mon, 23 Jan 2006 12:16:16 -0500|RESET LIST CALLED |123456|10.10.6.19|list_name='CPConfirm Jan28-29 E'|
Mon, 23 Jan 2006 12:16:16 -0500|MODIFY LIST INFO |123456|10.10.6.19|list_name='CPConfirm Jan28-29 E',campaign_id='CCONFIRM',active='Y' where list_id='80204'|
Mon, 23 Jan 2006 12:16:37 -0500|RESET LIST CALLED |123456|10.10.6.19|list_name='CPConfirm Jan28-29 W'|
Mon, 23 Jan 2006 12:16:37 -0500|MODIFY LIST INFO |123456|10.10.6.19|list_name='CPConfirm Jan28-29 W',campaign_id='CCONFIRM',active='Y' where list_id='80304'|
Mon, 23 Jan 2006 12:18:31 -0500|RESET LIST CALLED |123456|10.10.6.19|list_name='CPConfirm Jan28-29 W'|
Mon, 23 Jan 2006 12:18:31 -0500|MODIFY LIST INFO |123456|10.10.6.19|list_name='CPConfirm Jan28-29 W',campaign_id='CCONFIRM',active='Y' where list_id='80304'|
Mon, 23 Jan 2006 12:18:42 -0500|RESET LIST CALLED |123456|10.10.6.19|list_name='CPConfirm Jan28-29 E'|
Mon, 23 Jan 2006 12:18:42 -0500|MODIFY LIST INFO |123456|10.10.6.19|list_name='CPConfirm Jan28-29 E',campaign_id='CCONFIRM',active='Y' where list_id='80204'|
Mon, 23 Jan 2006 12:21:01 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership Confirm',active='Y',dial_status_a='NEW',dial_status_b='',dial_status_c='',dial_status_d='',dial_status_e='',lead_order='DOWN',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='30', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='http://10.10.10.196/vicidial/vicidial_college_partnership_confirm.php?STAGE=CONFIRMLOOKUP', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CCONFIRM'|N|
Mon, 23 Jan 2006 12:21:13 -0500|CAMPAIGN HOPPERRESET|123456|10.10.6.19|campaign_name='College Partnership Confirm'|
Mon, 23 Jan 2006 12:21:13 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership Confirm',active='Y',dial_status_a='NEW',dial_status_b='',dial_status_c='',dial_status_d='',dial_status_e='',lead_order='DOWN',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='30', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='http://10.10.10.196/vicidial/vicidial_college_partnership_confirm.php?STAGE=CONFIRMLOOKUP', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CCONFIRM'|Y|
Tue, 24 Jan 2006 11:35:57 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='UMG Card on File',active='Y',dial_status_a='N',dial_status_b='B',dial_status_c='DROP',dial_status_d='A',dial_status_e='NA',lead_order='DOWN COUNT',hopper_level='500', auto_dial_level='4.0' where campaign_id='UMGCOF'|N|
@@ -103,6 +103,8 @@ $PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
# 60421-1459 - check GET/POST vars lines with isset to not trigger PHP NOTICES
# 60609-1112 - Added DNC list addition if status changed to DNC
# 60619-1539 - Added variable filtering to eliminate SQL injection attack threat
# 61130-1639 - Added recording_log lookup and list for this lead_id
# 61201-1136 - Added recording_log user(TSR) display and link
#
$STARTtime = date("U");
@@ -165,8 +167,8 @@ $browser = getenv("HTTP_USER_AGENT");
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER><FONT FACE="Courier" COLOR=BLACK SIZE=3>
<?
echo "<a href=\"./admin.php?ADD=100\">VICIDIAL ADMIN</a>: Lead record modification<BR>\n";
if ($end_call > 0)
{
@@ -413,21 +415,25 @@ echo "<center>\n";
echo "<B>CALLS TO THIS LEAD:</B>\n";
echo "<TABLE width=550 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> TSR</td><td align=right><font size=2> CAMPAIGN</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> TSR</td><td align=right><font size=2> CAMPAIGN</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
$stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 50;";
$stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 500;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
$u=0;
while ($logs_to_print > $u) {
while ($logs_to_print > $u)
{
$row=mysql_fetch_row($rslt);
if (eregi("1$|3$|5$|7$|9$", $u))
{$bgcolor='bgcolor="#B9CBFD"';}
else
{$bgcolor='bgcolor="#9BB9FB"';}
echo "<tr $bgcolor><td><font size=2>$row[4]</td>";
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td><font size=2>$row[4]</td>";
echo "<td align=left><font size=2> $row[7]</td>\n";
echo "<td align=left><font size=2> $row[8]</td>\n";
echo "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[11]</A> </td>\n";
@@ -435,11 +441,46 @@ echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td
echo "<td align=right><font size=2> $row[2] </td>\n";
echo "<td align=right><font size=2> $row[1] </td></tr>\n";
$u++;
}
}
echo "</TABLE></center>\n";
echo "<BR><BR>\n";
echo "<B>RECORDINGS FOR THIS LEAD:</B>\n";
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=1># </td><td align=left><font size=2> LEAD</td><td><font size=2>DATE/TIME </td><td align=left><font size=2>SECONDS </td><td align=left><font size=2> &nbsp; RECID</td><td align=center><font size=2>FILENAME</td><td align=left><font size=2>LOCATION</td><td align=left><font size=2>TSR</td></tr>\n";
$stmt="select * from recording_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by recording_id desc limit 500;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
$u=0;
while ($logs_to_print > $u)
{
$row=mysql_fetch_row($rslt);
if (eregi("1$|3$|5$|7$|9$", $u))
{$bgcolor='bgcolor="#B9CBFD"';}
else
{$bgcolor='bgcolor="#9BB9FB"';}
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td align=left><font size=2> $row[12] </td>";
echo "<td align=left><font size=2> $row[4] </td>\n";
echo "<td align=left><font size=2> $row[8] </td>\n";
echo "<td align=left><font size=2> $row[0] </td>\n";
echo "<td align=center><font size=2> $row[10] </td>\n";
echo "<td align=left><font size=2> $row[11] </td>\n";
echo "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[13]\" target=\"_blank\">$row[13]</A> </td>";
echo "</tr>\n";
}
echo "</TABLE></center>\n";
@@ -98,8 +98,9 @@ $browser = getenv("HTTP_USER_AGENT");
<title>Lead Lookup</title>
</head>
<body bgcolor=white>
<?
echo "<a href=\"./admin.php?ADD=100\">VICIDIAL ADMIN</a>: Lead search<BR>\n";
if ( (!$vendor_id) and (!$phone) and (!$lead_id) )
{
@@ -111,7 +111,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN: Group Hourly Stats <? echo $group ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php?ADD=100000\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN</a>: Group Hourly Stats <? echo $group ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
@@ -160,7 +160,7 @@ echo "<TR><TD ALIGN=LEFT COLSPAN=2>\n";
echo "<br><center>\n";
echo "<B>TSR HOUR COUNTS: $group | $status | $date_with_hour | $date_no_hour</B>\n";
echo "<B>TSR HOUR COUNTS: <a href=\"./admin.php?ADD=3111&group_id=$group\">$group</a> | $status | $date_with_hour | $date_no_hour</B>\n";
echo "<center><TABLE width=600 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>TSR </td><td align=left><font size=2>ID </td><td align=right><font size=2> &nbsp; $status</td><td align=right><font size=2> &nbsp; TOTAL CALLS</td><td align=right><font size=2> &nbsp; $status DAY</td><td align=right><font size=2> &nbsp; &nbsp; </td></tr>\n";
@@ -1,129 +0,0 @@
VICIDIAL|GOOD|Thu, 22 Sep 2005 17:42:07 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:04 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:14 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:15 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:16 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:17 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:18 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:19 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:20 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:35 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:37 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:39 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 13:14:51 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 16:18:06 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:48 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Wed, 28 Sep 2005 17:47:57 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Wed, 28 Sep 2005 17:48:00 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Wed, 28 Sep 2005 17:48:01 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Fri, 30 Sep 2005 15:48:43 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Fri, 30 Sep 2005 15:50:19 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Tue, 04 Oct 2005 10:57:45 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
LIST_LOAD|GOOD|Tue, 04 Oct 2005 10:57:52 -0400|lead|load|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7||
VICIDIAL|GOOD|Tue, 04 Oct 2005 10:57:54 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:02:12 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:09:17 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Tue, 22 Nov 2005 15:02:48 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 13 Dec 2005 17:44:00 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 13 Dec 2005 17:44:50 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 13 Dec 2005 17:53:06 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 13 Dec 2005 17:53:08 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 13 Dec 2005 17:53:11 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Wed, 14 Dec 2005 10:17:14 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Wed, 14 Dec 2005 10:17:51 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Wed, 14 Dec 2005 17:01:30 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Wed, 14 Dec 2005 17:02:01 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Wed, 14 Dec 2005 17:02:06 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Wed, 14 Dec 2005 17:04:05 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Wed, 14 Dec 2005 17:04:07 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Wed, 14 Dec 2005 17:04:25 -0500|123456|bob5|10.10.6.19|Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)|1 - TESTCAMP remote agent|
VICIDIAL|GOOD|Wed, 14 Dec 2005 17:04:33 -0500|123456|bob5|10.10.6.19|Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)|1 - TESTCAMP remote agent|
VICIDIAL|GOOD|Wed, 14 Dec 2005 17:04:36 -0500|123456|bob5|10.10.6.19|Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)|1 - TESTCAMP remote agent|
VICIDIAL|GOOD|Thu, 22 Dec 2005 17:09:08 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Fri, 23 Dec 2005 14:39:26 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Fri, 23 Dec 2005 14:39:37 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Tue, 03 Jan 2006 11:33:11 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Tue, 03 Jan 2006 11:33:15 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Tue, 03 Jan 2006 11:33:18 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Tue, 03 Jan 2006 11:33:22 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Tue, 03 Jan 2006 11:33:25 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Thu, 19 Jan 2006 15:37:53 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:04 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:06 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:55 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 19 Jan 2006 15:47:46 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 19 Jan 2006 15:47:48 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:44:44 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:45:26 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:46:09 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:47:08 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:47:14 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:47:47 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:47:54 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:06 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:10 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:14 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:22 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:23 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:25 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:27 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:39 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:42 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:49 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:52 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 10:49:01 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 11:07:57 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:06:18 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:06:20 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:06:23 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:06:43 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:09:37 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:10:13 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:14:26 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:14:31 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:14:36 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:14:48 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:14:51 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:14:56 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:15:45 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:15:57 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:16:04 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:16:16 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:16:31 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:16:34 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:16:37 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:18:31 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:18:36 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:18:39 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:18:42 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:18:43 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:18:49 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:21:01 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Mon, 23 Jan 2006 12:21:13 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Tue, 24 Jan 2006 10:01:26 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Tue, 24 Jan 2006 10:01:30 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Tue, 24 Jan 2006 10:08:30 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Tue, 24 Jan 2006 10:08:33 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Tue, 24 Jan 2006 11:34:58 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Tue, 24 Jan 2006 11:35:04 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Tue, 24 Jan 2006 11:35:10 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Tue, 24 Jan 2006 11:35:22 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Tue, 24 Jan 2006 11:35:49 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Tue, 24 Jan 2006 11:35:57 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 03 Mar 2006 16:14:19 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:03:05 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:23 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:45 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:47 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:52 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:56 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:57 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:59 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 23:22:00 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 23:22:01 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 23:41:20 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 10:05:32 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 10:05:35 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 10:06:06 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:35:54 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
@@ -6,6 +6,7 @@
# CHANGES
#
# 60619-1743 - Added variable filtering to eliminate SQL injection attack threat
# 61201-1136 - Added recordings display and changed calls to time range with 10000 limit
#
header ("Content-type: text/html; charset=utf-8");
@@ -92,7 +93,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN: User Stats for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN</a>: User Stats for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
@@ -254,11 +255,11 @@ echo "<br><br>\n";
echo "<center>\n";
echo "<B>LAST 50 CALLS:</B>\n";
echo "<B>CALLS FOR THIS TIME PERIOD: (10000 record limit)</B>\n";
echo "<TABLE width=550 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> PHONE</td><td align=right><font size=2> CAMPAIGN</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> PHONE</td><td align=right><font size=2> CAMPAIGN</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
$stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' order by uniqueid desc limit 50;";
$stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
@@ -270,7 +271,10 @@ echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td
else
{$bgcolor='bgcolor="#9BB9FB"';}
echo "<tr $bgcolor><td><font size=2>$row[4]</td>";
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td><font size=2>$row[4]</td>";
echo "<td align=left><font size=2> $row[7]</td>\n";
echo "<td align=left><font size=2> $row[8]</td>\n";
echo "<td align=left><font size=2> $row[10] </td>\n";
@@ -278,13 +282,46 @@ echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td
echo "<td align=right><font size=2> $row[2] </td>\n";
echo "<td align=right><font size=2> <A HREF=\"admin_modify_lead.php?lead_id=$row[1]\" target=\"_blank\">$row[1]</A> </td></tr>\n";
$u++;
}
echo "</TABLE></center>\n";
echo "<B>RECORDINGS FOR THIS TIME PERIOD: (10000 record limit)</B>\n";
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=1># </td><td align=left><font size=2> LEAD</td><td><font size=2>DATE/TIME </td><td align=left><font size=2>SECONDS </td><td align=left><font size=2> &nbsp; RECID</td><td align=center><font size=2>FILENAME</td><td align=left><font size=2>LOCATION</td></tr>\n";
$stmt="select * from recording_log where user='" . mysql_real_escape_string($user) . "' and start_time >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and start_time <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by recording_id desc limit 10000;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
$u=0;
while ($logs_to_print > $u)
{
$row=mysql_fetch_row($rslt);
if (eregi("1$|3$|5$|7$|9$", $u))
{$bgcolor='bgcolor="#B9CBFD"';}
else
{$bgcolor='bgcolor="#9BB9FB"';}
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td align=left><font size=2> <A HREF=\"admin_modify_lead.php?lead_id=$row[12]\" target=\"_blank\">$row[12]</A> </td>";
echo "<td align=left><font size=2> $row[4] </td>\n";
echo "<td align=left><font size=2> $row[8] </td>\n";
echo "<td align=left><font size=2> $row[0] </td>\n";
echo "<td align=center><font size=2> $row[10] </td>\n";
echo "<td align=right><font size=2> $row[11] </td>\n";
echo "</tr>\n";
}
echo "</TABLE></center>\n";
$ENDtime = date("U");
$RUNtime = ($ENDtime - $STARTtime);
@@ -124,7 +124,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN: User Status for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN</a>: User Status for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
@@ -7,6 +7,7 @@
#
# 60619-1718 - Added variable filtering to eliminate SQL injection attack threat
# - Added required user/pass to gain access to this page
# 61215-1139 - Added drop percentage of answered and round-2 decimal
#
header ("Content-type: text/html; charset=utf-8");
@@ -119,7 +120,7 @@ if ( ($row[0] < 1) or ($row[1] < 1) )
else
{
$average_hold_seconds = ($row[1] / $row[0]);
$average_hold_seconds = round($average_hold_seconds, 0);
$average_hold_seconds = round($average_hold_seconds, 2);
$average_hold_seconds = sprintf("%10s", $average_hold_seconds);
}
echo "Llamadas dentro de esta campaña $TOTALcalls\n";
@@ -132,32 +133,49 @@ $stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
$DROPcalls = sprintf("%10s", $row[0]);
$DROPcallsRAW = $row[0];
$DROPseconds = $row[1];
$stmt="select count(*) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status NOT IN('NA','B');";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
$ANSWERcalls = $row[0];
if ( ($DROPcalls < 1) or ($TOTALcalls < 1) )
{$DROPpercent = '0';}
else
{
$DROPpercent = (($DROPcalls / $TOTALcalls) * 100);
$DROPpercent = round($DROPpercent, 0);
$DROPpercent = (($DROPcallsRAW / $TOTALcalls) * 100);
$DROPpercent = round($DROPpercent, 2);
}
if ( ($row[0] < 1) or ($row[1] < 1) )
if ( ($DROPcalls < 1) or ($ANSWERcalls < 1) )
{$DROPANSWERpercent = '0';}
else
{
$DROPANSWERpercent = (($DROPcallsRAW / $ANSWERcalls) * 100);
$DROPANSWERpercent = round($DROPANSWERpercent, 2);
}
if ( ($DROPseconds < 1) or ($DROPcallsRAW < 1) )
{$average_hold_seconds = ' 0';}
else
{
$average_hold_seconds = ($row[1] / $row[0]);
$average_hold_seconds = round($average_hold_seconds, 0);
$average_hold_seconds = ($DROPseconds / $DROPcallsRAW);
$average_hold_seconds = round($average_hold_seconds, 2);
$average_hold_seconds = sprintf("%10s", $average_hold_seconds);
}
echo "Total DROP Calls: $DROPcalls $DROPpercent%\n";
echo "Percent of DROP Calls taken out of Answers: $DROPcalls / $ANSWERcalls $DROPANSWERpercent%\n";
echo "Longitud media para las llamadas DROP en segundos: $average_hold_seconds\n";
echo "\n";
echo "---------- AUTO-DIAL SIN RESPUESTA\n";
$stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status='NA' and (length_in_sec <= 60 or length_in_sec is null);";
$stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and status IN('NA','B') and (length_in_sec <= 60 or length_in_sec is null);";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$row=mysql_fetch_row($rslt);
@@ -168,7 +186,7 @@ if ( ($NAcalls < 1) or ($TOTALcalls < 1) )
else
{
$NApercent = (($NAcalls / $TOTALcalls) * 100);
$NApercent = round($NApercent, 0);
$NApercent = round($NApercent, 2);
}
if ( ($row[0] < 1) or ($row[1] < 1) )
@@ -176,11 +194,11 @@ if ( ($row[0] < 1) or ($row[1] < 1) )
else
{
$average_na_seconds = ($row[1] / $row[0]);
$average_na_seconds = round($average_na_seconds, 0);
$average_na_seconds = round($average_na_seconds, 2);
$average_na_seconds = sprintf("%10s", $average_na_seconds);
}
echo "Llamadas sin Respuesta - ocupado, desconexión,..: $NAcalls $NApercent%\n";
echo "Total NA calls -Busy,Disconnect,RingNoAnswer: $NAcalls $NApercent%\n";
echo "Longitud media para las Llamadas sin Respuesta en segundos: $average_na_seconds\n";
@@ -63,9 +63,10 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
<?
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
echo "<TITLE>VICIDIAL: Agent Time Sheet</TITLE></HEAD><BODY BGCOLOR=WHITE>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=19 MAXLENGTH=19 VALUE=\"$query_date\">\n";
echo "<INPUT TYPE=TEXT NAME=agent SIZE=10 MAXLENGTH=20 VALUE=\"$agent\">\n";
echo "<a href=\"./admin.php\">VICIDIAL ADMIN</a>: Agent Time Sheet<BR>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET> &nbsp; \n";
echo "Date: <INPUT TYPE=TEXT NAME=query_date SIZE=19 MAXLENGTH=19 VALUE=\"$query_date\">\n";
echo "User ID: <INPUT TYPE=TEXT NAME=agent SIZE=10 MAXLENGTH=20 VALUE=\"$agent\">\n";
echo "<INPUT TYPE=Submit NAME=ENVIAR VALUE=ENVIAR>\n";
echo "</FORM>\n\n";
@@ -284,10 +284,10 @@ $rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$VDhop = $row[0];
$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
if ($group=='XXXX-ALL-ACTIVE-XXXX')
{
$stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill) from vicidial_campaign_stats;";
$stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_answers_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill),sum(answers_today) from vicidial_campaign_stats;";
}
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
@@ -298,6 +298,7 @@ $drpctTODAY = $row[3];
$diffONEMIN = $row[4];
$agentsONEMIN = $row[5];
$balanceFILL = $row[6];
$answersTODAY = $row[7];
if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) )
{
$diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100);
@@ -348,7 +349,7 @@ echo "</TR>";
echo "<TR>";
echo "<TD ALIGN=RIGHT><font size=2><B>HOPPER LEVEL:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $HOPlev &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>CALLS DROPPED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DROPPED / ANSWERED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY / $answersTODAY &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DL DIFF:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $diffONEMIN &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>STATUSES:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE &nbsp; &nbsp; </TD>";
echo "</TR>";
@@ -155,7 +155,7 @@ $rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$VDhop = $row[0];
$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';";
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$DAleads = $row[0];
@@ -165,6 +165,7 @@ $drpctTODAY = $row[3];
$diffONEMIN = $row[4];
$agentsONEMIN = $row[5];
$balanceFILL = $row[6];
$answersTODAY = $row[7];
if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) )
{
$diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100);
@@ -211,7 +212,7 @@ echo "</TR>";
echo "<TR>";
echo "<TD ALIGN=RIGHT><font size=2><B>HOPPER LEVEL:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $HOPlev &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>CALLS DROPPED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DROPPED / ANSWERED:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $dropsTODAY / $answersTODAY &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>DL DIFF:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $diffONEMIN &nbsp; &nbsp; </TD>";
echo "<TD ALIGN=RIGHT><font size=2><B>STATUSES:</B></TD><TD ALIGN=LEFT><font size=2>&nbsp; $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE &nbsp; &nbsp; </TD>";
echo "</TR>";
+46 -5
View File
@@ -1907,7 +1907,7 @@ echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN
<B>Texto de la escritura -</B> This is where you place the content of a Vicidial Script. Minimum of 2 characters. You can have customer information be auto-populated in this script using "--A--field--B--" where field is one of the following fieldnames: vendor_lead_code, source_id, 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, date_of_birth, alt_phone, email, security_phrase, comments, lead_id, campaign, phone_login, group, channel_group, SQLdate, epoch, uniqueid, customer_zap_channel, server_ip, SIPexten, session_id. For example, this sentence would print the persons name in it----<BR><BR> Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?<BR><BR> This would read----<BR><BR>Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?<BR><BR> You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:
<DIV style="height:200px;width:400px;background:white;overflow:scroll;font-size:12px;font-family:sans-serif;" id=iframe_example>
&#60;iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&#38;vendor_id=--A--vendor_lead_code--B--&#38;list_id=--A--list_id--B--&#38;gmt_offset_now=--A--gmt_offset_now--B--&#38;phone_code=--A--phone_code--B--&#38;phone_number=--A--phone_number--B--&#38;title=--A--title--B--&#38;first_name=--A--first_name--B--&#38;middle_initial=--A--middle_initial--B--&#38;last_name=--A--last_name--B--&#38;address1=--A--address1--B--&#38;address2=--A--address2--B--&#38;address3=--A--address3--B--&#38;city=--A--city--B--&#38;state=--A--state--B--&#38;province=--A--province--B--&#38;postal_code=--A--postal_code--B--&#38;country_code=--A--country_code--B--&#38;gender=--A--gender--B--&#38;date_of_birth=--A--date_of_birth--B--&#38;alt_phone=--A--alt_phone--B--&#38;email=--A--email--B--&#38;security_phrase=--A--security_phrase--B--&#38;comments=--A--comments--B--&#38;user=--A--user--B--&#38;campaign=--A--campaign--B--&#38;phone_login=--A--phone_login--B--&#38;fronter=--A--fronter--B--&#38;closer=--A--user--B--&#38;group=--A--group--B--&#38;channel_group=--A--group--B--&#38;SQLdate=--A--SQLdate--B--&#38;epoch=--A--epoch--B--&#38;uniqueid=--A--uniqueid--B--&#38;customer_zap_channel=--A--customer_zap_channel--B--&#38;server_ip=--A--server_ip--B--&#38;SIPexten=--A--SIPexten--B--&#38;session_id=--A--session_id--B--&#38;phone=--A--phone--B--" style="width:460;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"&#62;
&#60;iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&#38;vendor_id=--A--vendor_lead_code--B--&#38;list_id=--A--list_id--B--&#38;gmt_offset_now=--A--gmt_offset_now--B--&#38;phone_code=--A--phone_code--B--&#38;phone_number=--A--phone_number--B--&#38;title=--A--title--B--&#38;first_name=--A--first_name--B--&#38;middle_initial=--A--middle_initial--B--&#38;last_name=--A--last_name--B--&#38;address1=--A--address1--B--&#38;address2=--A--address2--B--&#38;address3=--A--address3--B--&#38;city=--A--city--B--&#38;state=--A--state--B--&#38;province=--A--province--B--&#38;postal_code=--A--postal_code--B--&#38;country_code=--A--country_code--B--&#38;gender=--A--gender--B--&#38;date_of_birth=--A--date_of_birth--B--&#38;alt_phone=--A--alt_phone--B--&#38;email=--A--email--B--&#38;security_phrase=--A--security_phrase--B--&#38;comments=--A--comments--B--&#38;user=--A--user--B--&#38;campaign=--A--campaign--B--&#38;phone_login=--A--phone_login--B--&#38;fronter=--A--fronter--B--&#38;closer=--A--user--B--&#38;group=--A--group--B--&#38;channel_group=--A--group--B--&#38;SQLdate=--A--SQLdate--B--&#38;epoch=--A--epoch--B--&#38;uniqueid=--A--uniqueid--B--&#38;customer_zap_channel=--A--customer_zap_channel--B--&#38;server_ip=--A--server_ip--B--&#38;SIPexten=--A--SIPexten--B--&#38;session_id=--A--session_id--B--&#38;phone=--A--phone--B--" style="width:580;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"&#62;
&#60;/iframe&#62;
</DIV>
@@ -2009,7 +2009,7 @@ El VICIDIAL tela-baso' cargador del plomo se diseña simplemente llevar un file(
<LI>Comentarios
</OL>
<BR>NOTAS: La funcionalidad del cargador del plomo del sobresalir es permitida por una serie de escrituras del Perl y necesita tener un archivo correctamente configurado de /home/cron/AST_SERVER_conf.pl en lugar en el web server. También, los módulos de un Perl de los pares se deben cargar para ella para trabajar también - oLE-Storage_Lite-Storage_Lite y la Hoja de balance-ParseExcel. Usted puede comprobar para saber si hay errores runtime en éstos mirando su archivo del error_log de apache.
<BR>NOTES: The Excel Lead loader functionality is enabled by a series of perl scripts and needs to have a properly configured /etc/astguiclient.conf file in place on the web server. Also, a couple perl modules must be loaded for it to work as well - OLE-Storage_Lite and Spreadsheet-ParseExcel. You can check for runtime errors in these by looking at your apache error_log file.
@@ -2576,7 +2576,7 @@ exit;
if ($ADD==7111111)
{
##### TEST VARIABLES #####
$vendor_lead_code = 'VENDORLEADCODE';
$vendor_lead_code = 'VENDOR:LEAD;CODE';
$list_id = 'LISTID';
$gmt_offset_now = 'GMTOFFSET';
$phone_code = '1';
@@ -2625,6 +2625,47 @@ $row=mysql_fetch_row($rslt);
$script_name = $row[1];
$script_text = $row[3];
if (eregi("iframe src",$script_text))
{
$vendor_lead_code = eregi_replace(' ','+',$vendor_lead_code);
$list_id = eregi_replace(' ','+',$list_id);
$gmt_offset_now = eregi_replace(' ','+',$gmt_offset_now);
$phone_code = eregi_replace(' ','+',$phone_code);
$phone_number = eregi_replace(' ','+',$phone_number);
$title = eregi_replace(' ','+',$title);
$first_name = eregi_replace(' ','+',$first_name);
$middle_initial = eregi_replace(' ','+',$middle_initial);
$last_name = eregi_replace(' ','+',$last_name);
$address1 = eregi_replace(' ','+',$address1);
$address2 = eregi_replace(' ','+',$address2);
$address3 = eregi_replace(' ','+',$address2);
$city = eregi_replace(' ','+',$city);
$state = eregi_replace(' ','+',$state);
$province = eregi_replace(' ','+',$province);
$postal_code = eregi_replace(' ','+',$postal_code);
$country_code = eregi_replace(' ','+',$country_code);
$gender = eregi_replace(' ','+',$gender);
$date_of_birth = eregi_replace(' ','+',$date_of_birth);
$alt_phone = eregi_replace(' ','+',$alt_phone);
$email = eregi_replace(' ','+',$email);
$security_phrase = eregi_replace(' ','+',$security_phrase);
$comments = eregi_replace(' ','+',$comments);
$RGfullname = eregi_replace(' ','+',$RGfullname);
$RGuser = eregi_replace(' ','+',$RGuser);
$RGlead_id = eregi_replace(' ','+',$RGlead_id);
$RGcampaign = eregi_replace(' ','+',$RGcampaign);
$RGphone_login = eregi_replace(' ','+',$RGphone_login);
$RGgroup = eregi_replace(' ','+',$RGgroup);
$RGchannel_group = eregi_replace(' ','+',$RGchannel_group);
$RGSQLdate = eregi_replace(' ','+',$RGSQLdate);
$RGepoch = eregi_replace(' ','+',$RGepoch);
$RGuniqueid = eregi_replace(' ','+',$RGuniqueid);
$RGcustomer_zap_channel = eregi_replace(' ','+',$RGcustomer_zap_channel);
$RGserver_ip = eregi_replace(' ','+',$RGserver_ip);
$RGSIPexten = eregi_replace(' ','+',$RGSIPexten);
$RGsession_id = eregi_replace(' ','+',$RGsession_id);
}
$script_text = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$script_text);
$script_text = eregi_replace('--A--list_id--B--',"$list_id",$script_text);
$script_text = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$script_text);
@@ -2669,7 +2710,7 @@ $script_text = eregi_replace("\n","<BR>",$script_text);
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
echo "Escritura De la Inspección previo: $script_id<BR>\n";
echo "<TABLE WIDTH=400><TR><TD>\n";
echo "<TABLE WIDTH=600><TR><TD>\n";
echo "<center><B>$script_name</B><BR></center>\n";
echo "$script_text\n";
echo "</TD></TR></TABLE></center>\n";
@@ -2708,7 +2749,7 @@ if ($hh=='server') {$server_hh='bgcolor ="#FF99FF"'; $server_fc='BLACK';} # pink
</title>
<script language="Javascript">
function openNewWindow(url) {
window.open (url,"",'width=500,height=300,scrollbars=yes,menubar=yes,address=yes');
window.open (url,"",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');
}
</script>
</head>
@@ -1,5 +0,0 @@
Mon, 26 Sep 2005 12:20:13 -0400|MODIFY CAMPAIGN INFO|444|10.10.10.19|campaign_name='Test campaign for VICIDIAL 2',active='Y',dial_status_a='NEW',dial_status_b='N',dial_status_c='DROP',dial_status_d='A',dial_status_e='B',lead_order='DOWN',allow_closers='Y',hopper_level='100', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='24hours', voicemail_ext='138', dial_timeout='28', dial_prefix='9', campaign_cid='0000000000', campaign_vdad_exten='8365' where campaign_id='TESTCAMP'|N|
Mon, 26 Sep 2005 17:31:20 -0400|MODIFY USER INFO |444|10.10.10.19|pass='sales',full_name='1 - TESTCAMP remote agent',user_level='4',user_group='ADMIN' where user='123456'|
Fri, 28 Apr 2006 11:34:07 -0400|MODIFY CAMPAIGN INFO|123456|10.10.8.19|campaign_name='Test campaign for VICIDIAL 2',active='Y',dial_status_a='NA',dial_status_b='NP',dial_status_c='DROP',dial_status_d='N',dial_status_e='A',lead_order='DOWN COUNT',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='24hours', voicemail_ext='138', dial_timeout='50', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8365', web_form_address='http://10.10.10.196/vicidial/closer-fronter_popupX2-1.php', park_ext='8305', park_file_name='classical', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='TINYDATE_AGENT_CUSTPHONE', campaign_script='TESTCAMP04', get_call_launch='NONE', am_message_exten='8320', amd_send_to_vmx='N', xferconf_a_dtmf='1234',xferconf_a_number='7274514920', xferconf_b_dtmf='4321',xferconf_b_number='7274514032',lead_filter_id='NEWHIGH',alt_number_dialing='N',scheduled_callbacks='Y' where campaign_id='TESTCAMP'|N|
Fri, 28 Apr 2006 11:34:38 -0400|RESET LIST CALLED |123456|10.10.8.19|list_name='test domestic lists'|
Fri, 28 Apr 2006 11:34:38 -0400|MODIFY LIST INFO |123456|10.10.8.19|list_name='test domestic lists',campaign_id='TESTCAMP',active='Y' where list_id='101'|
@@ -103,6 +103,8 @@ $PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
# 60421-1459 - check GET/POST vars lines with isset to not trigger PHP NOTICES
# 60609-1112 - Added DNC list addition if status changed to DNC
# 60619-1539 - Added variable filtering to eliminate SQL injection attack threat
# 61130-1639 - Added recording_log lookup and list for this lead_id
# 61201-1136 - Added recording_log user(TSR) display and link
#
$STARTtime = date("U");
@@ -165,8 +167,8 @@ $browser = getenv("HTTP_USER_AGENT");
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER><FONT FACE="Courier" COLOR=BLACK SIZE=3>
<?
echo "<a href=\"./admin.php?ADD=100\">VICIDIAL ADMIN</a>: Registro del Lead modificado<BR>\n";
if ($end_call > 0)
{
@@ -413,21 +415,25 @@ echo "<center>\n";
echo "<B>LLAMADAS A ESTE LEAD:</B>\n";
echo "<TABLE width=550 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> TSR</td><td align=right><font size=2> CAMPAÑA</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> TSR</td><td align=right><font size=2> CAMPAÑA</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
$stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 50;";
$stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 500;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
$u=0;
while ($logs_to_print > $u) {
while ($logs_to_print > $u)
{
$row=mysql_fetch_row($rslt);
if (eregi("1$|3$|5$|7$|9$", $u))
{$bgcolor='bgcolor="#B9CBFD"';}
else
{$bgcolor='bgcolor="#9BB9FB"';}
echo "<tr $bgcolor><td><font size=2>$row[4]</td>";
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td><font size=2>$row[4]</td>";
echo "<td align=left><font size=2> $row[7]</td>\n";
echo "<td align=left><font size=2> $row[8]</td>\n";
echo "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[11]</A> </td>\n";
@@ -435,11 +441,46 @@ echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td
echo "<td align=right><font size=2> $row[2] </td>\n";
echo "<td align=right><font size=2> $row[1] </td></tr>\n";
$u++;
}
}
echo "</TABLE></center>\n";
echo "<BR><BR>\n";
echo "<B>RECORDINGS FOR THIS LEAD:</B>\n";
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=1># </td><td align=left><font size=2> LEAD</td><td><font size=2>DATE/TIME </td><td align=left><font size=2>SECONDS </td><td align=left><font size=2> &nbsp; RECID</td><td align=center><font size=2>FILENAME</td><td align=left><font size=2>LOCATION</td><td align=left><font size=2>TSR</td></tr>\n";
$stmt="select * from recording_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by recording_id desc limit 500;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
$u=0;
while ($logs_to_print > $u)
{
$row=mysql_fetch_row($rslt);
if (eregi("1$|3$|5$|7$|9$", $u))
{$bgcolor='bgcolor="#B9CBFD"';}
else
{$bgcolor='bgcolor="#9BB9FB"';}
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td align=left><font size=2> $row[12] </td>";
echo "<td align=left><font size=2> $row[4] </td>\n";
echo "<td align=left><font size=2> $row[8] </td>\n";
echo "<td align=left><font size=2> $row[0] </td>\n";
echo "<td align=center><font size=2> $row[10] </td>\n";
echo "<td align=left><font size=2> $row[11] </td>\n";
echo "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[13]\" target=\"_blank\">$row[13]</A> </td>";
echo "</tr>\n";
}
echo "</TABLE></center>\n";
@@ -98,8 +98,9 @@ $browser = getenv("HTTP_USER_AGENT");
<title>Operaciones de búsqueda del Lead</title>
</head>
<body bgcolor=white>
<?
echo "<a href=\"./admin.php?ADD=100\">VICIDIAL ADMIN</a>: Lead search<BR>\n";
if ( (!$vendor_id) and (!$phone) and (!$lead_id) )
{
@@ -111,7 +111,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN: Stats Cada hora Del Grupo <? echo $group ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php?ADD=100000\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN</a>: Stats Cada hora Del Grupo <? echo $group ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
@@ -160,7 +160,7 @@ echo "<TR><TD ALIGN=LEFT COLSPAN=2>\n";
echo "<br><center>\n";
echo "<B>CUENTAS DE HORAS DE TSR: $group | $status | $date_with_hour | $date_no_hour</B>\n";
echo "<B>CUENTAS DE HORAS DE TSR: <a href=\"./admin.php?ADD=3111&group_id=$group\">$group</a> | $status | $date_with_hour | $date_no_hour</B>\n";
echo "<center><TABLE width=600 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>TSR </td><td align=left><font size=2>ID </td><td align=right><font size=2> &nbsp; $status</td><td align=right><font size=2> &nbsp; LLAMADAS TOTALES</td><td align=right><font size=2> &nbsp; $status DAY</td><td align=right><font size=2> &nbsp; &nbsp; </td></tr>\n";
@@ -1,170 +0,0 @@
VICIDIAL|GOOD|Thu, 22 Sep 2005 17:42:04 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Thu, 22 Sep 2005 17:42:10 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Thu, 22 Sep 2005 18:35:53 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Fri, 23 Sep 2005 11:28:16 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Fri, 23 Sep 2005 11:32:26 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Fri, 23 Sep 2005 11:32:28 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Fri, 23 Sep 2005 12:39:09 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Fri, 23 Sep 2005 12:52:43 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Fri, 23 Sep 2005 12:52:45 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Fri, 23 Sep 2005 14:33:18 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Fri, 23 Sep 2005 14:33:20 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Fri, 23 Sep 2005 16:31:02 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Fri, 23 Sep 2005 16:31:09 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Fri, 23 Sep 2005 16:31:11 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Fri, 23 Sep 2005 16:31:13 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Fri, 23 Sep 2005 16:31:15 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Fri, 23 Sep 2005 16:31:16 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:05:06 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:05:10 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:05:12 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:05:16 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:06 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:10 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:15 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:19 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:22 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:32 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:34 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:38 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:41 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:47 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:55 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:07:22 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:07:23 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:07:26 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:07:36 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:20:02 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:20:13 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:20:21 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:20:24 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 12:20:26 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 13:04:03 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
LIST_LOAD|GOOD|Mon, 26 Sep 2005 13:04:19 -0400|lead|load|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6||
VICIDIAL|GOOD|Mon, 26 Sep 2005 13:14:49 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 13:14:53 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
LIST_LOAD|GOOD|Mon, 26 Sep 2005 13:15:08 -0400|lead|load|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6||
VICIDIAL|GOOD|Mon, 26 Sep 2005 13:56:12 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 13:56:15 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VD_CLOSER|GOOD|Mon, 26 Sep 2005 13:56:28 -0400|over|ride|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6||
VICIDIAL|GOOD|Mon, 26 Sep 2005 16:17:15 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:01 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:04 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:05 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:07 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:13 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:20 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:29 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:34 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:37 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:39 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:41 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:47 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:53 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager|
VICIDIAL|GOOD|Wed, 28 Sep 2005 17:47:44 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Wed, 28 Sep 2005 17:47:46 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Wed, 28 Sep 2005 17:47:48 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Wed, 28 Sep 2005 17:47:50 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Wed, 28 Sep 2005 17:47:53 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Wed, 28 Sep 2005 17:47:54 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Fri, 30 Sep 2005 15:48:44 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Fri, 30 Sep 2005 15:48:46 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Fri, 30 Sep 2005 15:48:48 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Fri, 30 Sep 2005 15:48:52 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Fri, 30 Sep 2005 15:59:10 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:09:19 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:09:36 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:09:36 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:09:53 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:11:06 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:13 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:40 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:41 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:41 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:42 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:42 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:44 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:46 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:47 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:47 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:50 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:52 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:54 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:54 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
LIST_LOAD|GOOD|Thu, 06 Oct 2005 10:12:55 -0400|lead|load|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7||
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:58 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:59 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:00 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:00 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:02 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:04 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:04 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:06 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:06 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:09 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:52 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:59 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:26:16 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:26:17 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 06 Oct 2005 10:26:19 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Fri, 07 Oct 2005 10:09:58 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Fri, 07 Oct 2005 10:10:01 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Fri, 07 Oct 2005 10:10:05 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Fri, 07 Oct 2005 10:10:07 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Fri, 07 Oct 2005 10:10:12 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Fri, 07 Oct 2005 10:10:39 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Fri, 07 Oct 2005 10:36:07 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 10 Nov 2005 15:02:07 -0500|444|444|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 10 Nov 2005 15:02:19 -0500|444|444|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 10 Nov 2005 15:02:23 -0500|444|444|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 10 Nov 2005 15:02:29 -0500|444|444|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 10 Nov 2005 15:02:34 -0500|444|444|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Thu, 10 Nov 2005 15:03:08 -0500|444|444|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager|
VICIDIAL|GOOD|Tue, 22 Nov 2005 15:02:45 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Tue, 22 Nov 2005 15:29:13 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user|
VICIDIAL|GOOD|Thu, 22 Dec 2005 17:05:59 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Thu, 22 Dec 2005 17:06:07 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Thu, 22 Dec 2005 17:06:10 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Thu, 22 Dec 2005 17:06:33 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Thu, 22 Dec 2005 17:06:38 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Thu, 22 Dec 2005 17:09:05 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Fri, 23 Dec 2005 14:39:34 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin|
VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:10 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:13 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:14 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 03 Mar 2006 16:14:23 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 03 Mar 2006 16:14:38 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 03 Mar 2006 16:14:55 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 17 Mar 2006 14:22:24 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 17 Mar 2006 14:22:27 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 17 Mar 2006 14:22:29 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 17 Mar 2006 14:59:52 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 17 Mar 2006 14:59:53 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:03:08 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:34:00 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 17:34:03 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 18:00:32 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:09:43 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:12:38 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:13:31 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:13:43 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:13:50 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:13:53 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:13:55 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:13:57 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:14:01 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:08 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:12 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Thu, 27 Apr 2006 23:40:33 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:33:41 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:33:43 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:33:47 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:33:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:34:07 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:34:20 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:34:24 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:34:26 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:34:38 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:34:46 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:34:50 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
VICIDIAL|GOOD|Fri, 28 Apr 2006 11:35:52 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin|
@@ -6,6 +6,7 @@
# CHANGES
#
# 60619-1743 - Added variable filtering to eliminate SQL injection attack threat
# 61201-1136 - Added recordings display and changed calls to time range with 10000 limit
#
header ("Content-type: text/html; charset=utf-8");
@@ -92,7 +93,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN: User Stats for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN</a>: User Stats for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
@@ -254,11 +255,11 @@ echo "<br><br>\n";
echo "<center>\n";
echo "<B>ÚLTIMAS 50 LLAMADAS:</B>\n";
echo "<B>CALLS FOR THIS TIME PERIOD: (10000 record limit)</B>\n";
echo "<TABLE width=550 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> PHONE</td><td align=right><font size=2> CAMPAÑA</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td><td align=left><font size=2> STATUS</td><td align=left><font size=2> PHONE</td><td align=right><font size=2> CAMPAÑA</td><td align=right><font size=2> LIST</td><td align=right><font size=2> LEAD</td></tr>\n";
$stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' order by uniqueid desc limit 50;";
$stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
@@ -270,7 +271,10 @@ echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td
else
{$bgcolor='bgcolor="#9BB9FB"';}
echo "<tr $bgcolor><td><font size=2>$row[4]</td>";
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td><font size=2>$row[4]</td>";
echo "<td align=left><font size=2> $row[7]</td>\n";
echo "<td align=left><font size=2> $row[8]</td>\n";
echo "<td align=left><font size=2> $row[10] </td>\n";
@@ -278,13 +282,46 @@ echo "<tr><td><font size=2>DATE/TIME </td><td align=left><font size=2>LENGTH</td
echo "<td align=right><font size=2> $row[2] </td>\n";
echo "<td align=right><font size=2> <A HREF=\"admin_modify_lead.php?lead_id=$row[1]\" target=\"_blank\">$row[1]</A> </td></tr>\n";
$u++;
}
echo "</TABLE></center>\n";
echo "<B>RECORDINGS FOR THIS TIME PERIOD: (10000 record limit)</B>\n";
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
echo "<tr><td><font size=1># </td><td align=left><font size=2> LEAD</td><td><font size=2>DATE/TIME </td><td align=left><font size=2>SECONDS </td><td align=left><font size=2> &nbsp; RECID</td><td align=center><font size=2>FILENAME</td><td align=left><font size=2>LOCATION</td></tr>\n";
$stmt="select * from recording_log where user='" . mysql_real_escape_string($user) . "' and start_time >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and start_time <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by recording_id desc limit 10000;";
$rslt=mysql_query($stmt, $link);
$logs_to_print = mysql_num_rows($rslt);
$u=0;
while ($logs_to_print > $u)
{
$row=mysql_fetch_row($rslt);
if (eregi("1$|3$|5$|7$|9$", $u))
{$bgcolor='bgcolor="#B9CBFD"';}
else
{$bgcolor='bgcolor="#9BB9FB"';}
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td align=left><font size=2> <A HREF=\"admin_modify_lead.php?lead_id=$row[12]\" target=\"_blank\">$row[12]</A> </td>";
echo "<td align=left><font size=2> $row[4] </td>\n";
echo "<td align=left><font size=2> $row[8] </td>\n";
echo "<td align=left><font size=2> $row[0] </td>\n";
echo "<td align=center><font size=2> $row[10] </td>\n";
echo "<td align=right><font size=2> $row[11] </td>\n";
echo "</tr>\n";
}
echo "</TABLE></center>\n";
$ENDtime = date("U");
$RUNtime = ($ENDtime - $STARTtime);
@@ -124,7 +124,7 @@ echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n"
</head>
<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<CENTER>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN: User Status for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
<TABLE WIDTH=620 BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0><TR BGCOLOR=#015B91><TD ALIGN=LEFT><? echo "<a href=\"./admin.php\">" ?><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B> &nbsp; VICIDIAL ADMIN</a>: User Status for <? echo $user ?></TD><TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><? echo date("l F j, Y G:i:s A") ?> &nbsp; </TD></TR>
-1
View File
@@ -1 +0,0 @@
Hello world