added phrase to translations

added date chooser to timeclock detail and IVR reports
added 3-WAY status to Real-time report
changed AGENTDIRECT selection to a separate link instead of clicking on number-to-dial field

git-svn-id: svn://192.168.202.10@1353 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2010-03-01 21:01:51 +00:00
parent 8861f74bb7
commit ccd267aa0e
18 changed files with 236 additions and 62 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
* Changed Meetme Sounds in Asterisk 2007-07-27
For some reason, possibly effeciency, the enter and leave sounds that you hear in standard Asterisk meetme rooms are actually hex dumps of RAW ULAW 8bit audio that have been compiled into the code of Asterisk in a header file. This makes them somewhat difficult to change, especially since there are no instructions.
For some reason, possibly efficiency, the enter and leave sounds that you hear in standard Asterisk meetme rooms are actually hex dumps of RAW ULAW 8bit audio that have been compiled into the code of Asterisk in a header file. This makes them somewhat difficult to change, especially since there are no instructions.
This should slightly reduce time that it takes for calls to get to agents, as well as reduce the time of the locks that occur when these sounds are played in Asterisk. The new enter and leave sounds I include with VICIDIAL are 0.12 and 0.13 seconds respectively as compared to the default sounds which are more than double that.
@@ -26,7 +26,7 @@ Here are the steps I went to to change the meetme enter and leave sounds:
00000020 5d 66 60 51 6c 5f 3e 4d 59 47 72 e4 52 53 58 48 |]f`Ql_>MYGräRSXH|
4. Used favorite text edotor to format the data properly:
4. Used favorite text editor to format the data properly:
- 60 character length lines comma-space separated in the same format as enter.h and leave.h were in. Don't forget the header and footer to this raw hex audio, they are important
0xd6, 0xdc, 0x55, 0x5f, 0x63, 0x67, 0xf0, 0xf0, 0x74, 0x75,
+1
View File
@@ -483,3 +483,4 @@ has selected your in-group choices|foi selecionado o grupo de escolhas|
CONSULTATIVE|CONSULTIVO|
Close Message|Fechar Mensagem|
TIMER NOTIFICATION|NOTIFICAÇÃO TIMER|
>AGENTS<|>AGENTES<|
+1
View File
@@ -489,3 +489,4 @@ has selected your in-group choices|hat Ihren in-group Entscheidungen|
CONSULTATIVE|BERATENDE|
Close Message|Close Message|
TIMER NOTIFICATION|Timer-Benachrichtigung|
>AGENTS<|>Agenten<|
+1
View File
@@ -479,3 +479,4 @@ has selected your in-group choices|έχει επιλέξει σε σας τις
CONSULTATIVE|ΣΥΜΒΟΥΛΕΥΤΙΚΗ|
Close Message|Κλείσιμο Μήνυμα|
TIMER NOTIFICATION|TIMER ΚΟΙΝΟΠΟΙΗΣΗ|
>AGENTS<|>πράκτορες<|
+1
View File
@@ -486,3 +486,4 @@ CONSULTATIVE|CONSULTIVO|
Close Message|Cerrar Mensaje|
TIMER NOTIFICATION|NOTIFICACIÓN TIMER|
login_language=en_us|login_language=es_es|
>AGENTS<|>AGENTES<|
+1
View File
@@ -485,3 +485,4 @@ has selected your in-group choices|a sélectionné votre choix en groupe|
CONSULTATIVE|CONSULTATIF|
Close Message|Fermer Message|
TIMER NOTIFICATION|TIMER NOTIFICATION|
>AGENTS<|>AGENTS<|
+1
View File
@@ -501,3 +501,4 @@ has selected your in-group choices|ha selezionato le tue scelte per i gruppi inb
CONSULTATIVE|CONSULTIVO|
Close Message|Chiudi Messaggio|
TIMER NOTIFICATION|NOTIFICA TIMER|
>AGENTS<|>OPERATORI<|
+1
View File
@@ -517,3 +517,4 @@ has selected your in-group choices|heeft gekozen uw in-groep keuzes|
CONSULTATIVE|ADVIESGROEP|
Close Message|Close Message|
TIMER NOTIFICATION|TIMER AANMELDING|
>AGENTS<|>agenten<|
+1
View File
@@ -485,3 +485,4 @@ has selected your in-group choices|wybrał się w grupie-wybory|
CONSULTATIVE|KONSULTACYJNA|
Close Message|Zamknij komunikat|
TIMER NOTIFICATION|ZAWIADOMIENIE TIMER|
>AGENTS<|>agentów<|
+1
View File
@@ -485,3 +485,4 @@ has selected your in-group choices|foi selecionado o grupo de escolhas|
CONSULTATIVE|CONSULTIVO|
Close Message|Fechar Mensagem|
TIMER NOTIFICATION|NOTIFICAÇÃO TIMER|
>AGENTS<|>AGENTES<|
+1
View File
@@ -485,3 +485,4 @@ has selected your in-group choices|выбрал в вашей группе вы
CONSULTATIVE|КОНСУЛЬТАТИВНЫЙ|
Close Message|Закрыть сообщение|
TIMER NOTIFICATION|ТАЙМЕР УВЕДОМЛЕНИЯ|
>AGENTS<|>агенты<|
+1
View File
@@ -485,3 +485,4 @@ has selected your in-group choices|vybrala si v skupine-voľby|
CONSULTATIVE|PORADNÝ|
Close Message|Zavrieť správu|
TIMER NOTIFICATION|TIMER OZNAM|
>AGENTS<|>AGENTI<|
+1
View File
@@ -516,3 +516,4 @@ has selected your in-group choices|您的選擇組的選擇|
CONSULTATIVE|協商|
Close Message|關閉消息|
TIMER NOTIFICATION|計時器通知|
>AGENTS<|>經營者<|
+3 -6
View File
@@ -238,10 +238,11 @@
# 100219-1437 - Added agent_dispo_log file option
# 100220-1041 - Added CALLLOGview and LEADINFOview functions
# 100221-1105 - Added custom CID use compatibility
# 100301-1342 - Changed Available agents output for AGENTDIRECT selection
#
$version = '2.4-145';
$build = '100221-1105';
$version = '2.4-146';
$build = '100301-1342';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=314;
$one_mysql_log=0;
@@ -6524,10 +6525,6 @@ if ($ACTION == 'AGENTSview')
if (ereg("NOT-LOGGED-IN-AGENTS",$agent_status_viewable_groups))
{echo "<font style=\"background-color:#FFFFFF;\"> &nbsp; &nbsp;</font>-LOGGED-OUT &nbsp;\n";}
if ($comments=='AgentXferViewSelect')
{
echo "<BR><BR><a href=\"#\" onclick=\"AgentsXferSelect('0','$comments');return false;\">Close Window</a>&nbsp;";
}
echo "</font>\n";
}
+48 -16
View File
@@ -278,10 +278,11 @@
# 100207-1103 - Changed Pause Codes function to allow for multiple pause codes per pause period
# 100220-1040 - Added Call Log View and Customer Info View and fixed HotKeys position
# 100221-1107 - Added Custom CID compatibility
# 100301-1330 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field
#
$version = '2.4-256';
$build = '100221-1107';
$version = '2.4-257';
$build = '100301-1330';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=64;
$one_mysql_log=0;
@@ -541,7 +542,7 @@ if ($campaign_login_list > 0)
if ($VD_campaign)
{
if ( (eregi("$VD_campaign",$rowx[0])) and (strlen($VD_campaign) == strlen($rowx[0])) )
{$camp_form_code .= "<option value=\"$rowx[0]\" SELECTED>$rowx[0]$campname</option>\n";}
{$camp_form_code .= "<option value=\"$rowx[0]\" selected>$rowx[0]$campname</option>\n";}
else
{
if (!ereg('login_allowable_campaigns',$camp_form_code))
@@ -4816,12 +4817,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
while (loop_ct < XFgroupCOUNT)
{
if (VARxfergroups[loop_ct] == LIVE_default_xfer_group)
{XfeR_SelecT = 'SELECTED ';}
{XfeR_SelecT = 'selected ';}
else {XfeR_SelecT = '';}
live_XfeR_HTML = live_XfeR_HTML + "<option " + XfeR_SelecT + "value=\"" + VARxfergroups[loop_ct] + "\">" + VARxfergroups[loop_ct] + " - " + VARxfergroupsnames[loop_ct] + "</option>\n";
loop_ct++;
}
document.getElementById("XfeRGrouPLisT").innerHTML = "<select size=1 name=XfeRGrouP class=\"cust_form\" id=XfeRGrouP>" + live_XfeR_HTML + "</select>";
document.getElementById("XfeRGrouPLisT").innerHTML = "<select size=1 name=XfeRGrouP id=XfeRGrouP class=\"cust_form\" onChange=\"XferAgentSelectLink();return false;\">" + live_XfeR_HTML + "</select>";
// INSERT VICIDIAL_LOG ENTRY FOR THIS CALL PROCESS
DialLog("start");
@@ -6448,7 +6449,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
CalL_XC_a_NuMber = VDIC_data_VDIG[8];
CalL_XC_b_Dtmf = VDIC_data_VDIG[9];
CalL_XC_b_NuMber = VDIC_data_VDIG[10];
if (VDIC_data_VDIG[11].length > 0)
if ( (VDIC_data_VDIG[11].length > 1) && (VDIC_data_VDIG[11] != '---NONE---') )
{LIVE_default_xfer_group = VDIC_data_VDIG[11];}
else
{LIVE_default_xfer_group = default_xfer_group;}
@@ -6705,12 +6706,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
while (loop_ct < XFgroupCOUNT)
{
if (VARxfergroups[loop_ct] == LIVE_default_xfer_group)
{XfeR_SelecT = 'SELECTED ';}
{XfeR_SelecT = 'selected ';}
else {XfeR_SelecT = '';}
live_XfeR_HTML = live_XfeR_HTML + "<option " + XfeR_SelecT + "value=\"" + VARxfergroups[loop_ct] + "\">" + VARxfergroups[loop_ct] + " - " + VARxfergroupsnames[loop_ct] + "</option>\n";
loop_ct++;
}
document.getElementById("XfeRGrouPLisT").innerHTML = "<select size=1 name=XfeRGrouP class=\"cust_form\" id=XfeRGrouP>" + live_XfeR_HTML + "</select>";
document.getElementById("XfeRGrouPLisT").innerHTML = "<select size=1 name=XfeRGrouP class=\"cust_form\" id=XfeRGrouP onChange=\"XferAgentSelectLink();return false;\">" + live_XfeR_HTML + "</select>";
if (lastcustserverip == server_ip)
{
@@ -9328,13 +9329,21 @@ function phone_number_format(formatphone) {
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
// alert(xmlhttp.responseText);
document.getElementById(RAlocation).innerHTML = xmlhttp.responseText + "\n";
var newRAlocationHTML = xmlhttp.responseText;
// alert(newRAlocationHTML);
if (RAlocation == 'AgentXferViewSelect')
{
document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n<BR><BR><a href=\"#\" onclick=\"AgentsXferSelect('0','AgentXferViewSelect');return false;\">Close Window</a>&nbsp;";
}
else
{
document.getElementById(RAlocation).innerHTML = newRAlocationHTML + "\n";
}
}
}
delete xmlhttp;
}
}
}
}
@@ -9517,6 +9526,7 @@ function phone_number_format(formatphone) {
function AgentsXferSelect(AXuser,AXlocation)
{
xfer_select_agents_active=0;
document.getElementById('AgentXferViewSelect').innerHTML = '';
hideDiv('AgentXferViewSpan');
hideDiv(AXlocation);
document.vicidial_form.xfernumber.value = AXuser;
@@ -9524,7 +9534,24 @@ function phone_number_format(formatphone) {
// ################################################################################
// OnFocus function for number to dial
// OnChange function for transfer group select list
function XferAgentSelectLink()
{
var XfeRSelecT = document.getElementById("XfeRGrouP");
var XScheck = XfeRSelecT.value
if (XScheck.match(/AGENTDIRECT/))
{
showDiv('agentdirectlink');
}
else
{
hideDiv('agentdirectlink');
}
}
// ################################################################################
// function for number to dial for AGENTDIRECT in-group transfers
function XferAgentSelectLaunch()
{
var XfeRSelecT = document.getElementById("XfeRGrouP");
@@ -9552,12 +9579,12 @@ function phone_number_format(formatphone) {
while (loop_ct < XFgroupCOUNT)
{
if (VARxfergroups[loop_ct] == 'AGENTDIRECT')
{XfeR_SelecT = 'SELECTED ';}
{XfeR_SelecT = 'selected ';}
else {XfeR_SelecT = '';}
live_XfeR_HTML = live_XfeR_HTML + "<option " + XfeR_SelecT + "value=\"" + VARxfergroups[loop_ct] + "\">" + VARxfergroups[loop_ct] + " - " + VARxfergroupsnames[loop_ct] + "</option>\n";
loop_ct++;
}
document.getElementById("XfeRGrouPLisT").innerHTML = "<select size=1 name=XfeRGrouP class=\"cust_form\" id=XfeRGrouP>" + live_XfeR_HTML + "</select>";
document.getElementById("XfeRGrouPLisT").innerHTML = "<select size=1 name=XfeRGrouP class=\"cust_form\" id=XfeRGrouP onChange=\"XferAgentSelectLink();return false;\">" + live_XfeR_HTML + "</select>";
mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip,'','NO');
@@ -9970,6 +9997,7 @@ else
hideDiv('TimerSpan');
hideDiv('CalLLoGDisplaYBox');
hideDiv('LeaDInfOBox');
hideDiv('agentdirectlink');
if (is_webphone!='Y')
{hideDiv('webphoneSpan');}
if (view_calls_in_queue_launch != '1')
@@ -10595,6 +10623,8 @@ else
{
if (VU_vicidial_transfers == '1')
{
XferAgentSelectLink();
if (showxfervar == 'ON')
{
var xfer_height = <?php echo $HTheight ?>;
@@ -10751,6 +10781,7 @@ else
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
.body_small {font-size: 11px; font-family: sans-serif;}
.body_small_bold {font-size: 11px; font-family: sans-serif; font-weight: bold;}
.body_tiny {font-size: 10px; font-family: sans-serif;}
.log_text {font-size: 11px; font-family: monospace;}
.log_text_red {font-size: 11px; font-family: monospace; font-weight: bold; background: #FF3333}
@@ -11093,7 +11124,7 @@ if ($agent_display_dialable_leads > 0)
<TABLE cellpadding=0 cellspacing=1 border=0>
<TR>
<TD ALIGN=LEFT COLSPAN=3>
<span id="XfeRGrouPLisT"><select size=1 name=XfeRGrouP class="cust_form"><option>-- SELECT A GROUP TO SEND YOUR CALL TO --</option></select></span>
<span id="XfeRGrouPLisT"><select size=1 name=XfeRGrouP id=XfeRGrouP class="cust_form" onChange="XferAgentSelectLink();return false;"><option>-- SELECT A GROUP TO SEND YOUR CALL TO --</option></select></span>
<span STYLE="background-color: <?php echo $MAIN_COLOR ?>" id="LocalCloser"><IMG SRC="./images/vdc_XB_localcloser_OFF.gif" border=0 alt="LOCAL CLOSER" style="vertical-align:middle"></span> &nbsp; &nbsp;
</TD>
@@ -11120,7 +11151,8 @@ if ($agent_display_dialable_leads > 0)
<TD ALIGN=LEFT COLSPAN=2>
<IMG SRC="./images/vdc_XB_number.gif" border=0 alt="Number to call" style="vertical-align:middle">
&nbsp;
<input type=text size=20 name=xfernumber maxlength=25 class="cust_form" value="<?php echo $preset_populate ?>" onFocus="XferAgentSelectLaunch();return false;"> &nbsp;
<input type=text size=20 name=xfernumber maxlength=25 class="cust_form" value="<?php echo $preset_populate ?>"> &nbsp;
<span id=agentdirectlink><font class="body_small_bold"><a href="#" onclick="XferAgentSelectLaunch();return false;">AGENTS</a></font></span>
<input type=hidden name=xferuniqueid>
</TD>
<TD ALIGN=LEFT>
+74 -24
View File
@@ -12,6 +12,7 @@
# 90508-0644 - Changed to PHP long tags
# 91112-0719 - Added in-group names to select list
# 100214-1421 - Sort menu alphabetically
# 100301-1401 - Added popup date selector
#
require("dbconnect.php");
@@ -180,6 +181,21 @@ else
$query_date_END = "$end_date $time_END";
}
$query_dateARRAY = explode(" ",$query_date_BEGIN);
$query_date_D = $query_dateARRAY[0];
$query_date_T = $query_dateARRAY[1];
$end_dateARRAY = explode(" ",$query_date_END);
$end_date_D = $end_dateARRAY[0];
$end_date_T = $end_dateARRAY[1];
?>
<script language="JavaScript" src="calendar_db.js"></script>
<link rel="stylesheet" href="calendar.css">
<?php
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
echo "<TITLE>IVR Stats Report</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
@@ -198,12 +214,48 @@ if ($DB > 0)
echo "<BR>\n";
}
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
echo "<TABLE BORDER=0><TR><TD VALIGN=TOP>\n";
echo "<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
echo "Date Range:<BR>\n";
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=19 MAXLENGTH=19 VALUE=\"$query_date_BEGIN\">\n";
echo " to <INPUT TYPE=TEXT NAME=end_date SIZE=19 MAXLENGTH=19 VALUE=\"$query_date_END\">\n";
echo "<INPUT TYPE=hidden NAME=query_date ID=query_date VALUE=\"$query_date\">\n";
echo "<INPUT TYPE=hidden NAME=end_date ID=end_date VALUE=\"$end_date\">\n";
echo "<INPUT TYPE=TEXT NAME=query_date_D SIZE=11 MAXLENGTH=10 VALUE=\"$query_date_D\">";
?>
<script language="JavaScript">
var o_cal = new tcal ({
// form name
'formname': 'vicidial_report',
// input name
'controlname': 'query_date_D'
});
o_cal.a_tpl.yearscroll = false;
// o_cal.a_tpl.weekstart = 1; // Monday week start
</script>
<?php
echo " &nbsp; <INPUT TYPE=TEXT NAME=query_date_T SIZE=9 MAXLENGTH=8 VALUE=\"$query_date_T\">";
echo "<BR> to <BR><INPUT TYPE=TEXT NAME=end_date_D SIZE=11 MAXLENGTH=10 VALUE=\"$end_date_D\">";
?>
<script language="JavaScript">
var o_cal = new tcal ({
// form name
'formname': 'vicidial_report',
// input name
'controlname': 'end_date_D'
});
o_cal.a_tpl.yearscroll = false;
// o_cal.a_tpl.weekstart = 1; // Monday week start
</script>
<?php
echo " &nbsp; <INPUT TYPE=TEXT NAME=end_date_T SIZE=9 MAXLENGTH=8 VALUE=\"$end_date_T\">";
echo "</TD><TD ROWSPAN=2 VALIGN=TOP>\n";
echo "Inbound Groups: \n";
echo "</TD><TD ROWSPAN=2 VALIGN=TOP>\n";
@@ -245,7 +297,23 @@ echo "<option value=\"PM\">PM</option>\n";
echo "<option value=\"ALL\">ALL</option>\n";
echo "<option value=\"RANGE\">RANGE</option>\n";
echo "</SELECT>\n";
echo " &nbsp; <INPUT TYPE=submit NAME=SUBMIT VALUE=SUBMIT>\n";
?>
<SCRIPT LANGUAGE="JavaScript">
function submit_form()
{
document.vicidial_report.end_date.value = document.vicidial_report.end_date_D.value + " " + document.vicidial_report.end_date_T.value;
document.vicidial_report.query_date.value = document.vicidial_report.query_date_D.value + " " + document.vicidial_report.query_date_T.value;
document.vicidial_report.submit();
}
</SCRIPT>
&nbsp; <input type=button value="SUBMIT" name=smt id=smt onClick="submit_form()">
<?php
echo "</TD></TR></TABLE>\n";
echo "</FORM>\n\n";
@@ -260,7 +328,8 @@ if ($groups_to_print < 1)
else
{
echo "IVR Stats Report: $group_string $NOW_TIME\n";
echo "IVR Stats Report: $query_date_BEGIN to $query_date_END $NOW_TIME\n";
echo " $group_string\n";
$TOTALcalls=0;
$NOCALLERIDcalls=0;
@@ -493,17 +562,6 @@ else
echo "+--------+--------+--------+--------+------+------+\n";
##############################
######### TIME STATS
@@ -660,14 +718,6 @@ else
echo "+------+-------------------------------------------------------------------------------------------------------+-------+\n\n";
$ENDtime = date("U");
$RUNtime = ($ENDtime - $STARTtime);
echo "\nRun Time: $RUNtime seconds\n";
+70 -10
View File
@@ -3,10 +3,11 @@
#
# Pulls all timeclock records for an agent
#
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
# 90602-2244 - First build
# 100301-1401 - Added popup date selector
#
@@ -46,12 +47,10 @@ $stmt = "SELECT use_non_latin FROM system_settings;";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$qm_conf_ct = mysql_num_rows($rslt);
$i=0;
while ($i < $qm_conf_ct)
if ($qm_conf_ct > 0)
{
$row=mysql_fetch_row($rslt);
$non_latin = $row[0];
$i++;
}
##### END SETTINGS LOOKUP #####
###########################################
@@ -66,7 +65,7 @@ $rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$auth=$row[0];
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
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");
@@ -84,6 +83,13 @@ if (!isset($end_date)) {$end_date = "$NOW_DATE 23:59:59";}
$query_dateURL = ereg_replace(' ','+',$query_date);
$end_dateURL = ereg_replace(' ','+',$end_date);
$query_dateARRAY = explode(" ",$query_date);
$query_date_D = $query_dateARRAY[0];
$query_date_T = $query_dateARRAY[1];
$end_dateARRAY = explode(" ",$end_date);
$end_date_D = $end_dateARRAY[0];
$end_date_T = $end_dateARRAY[1];
$stmt="select campaign_id from vicidial_campaigns;";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
@@ -177,6 +183,9 @@ if ($file_download < 1)
-->
</STYLE>
<script language="JavaScript" src="calendar_db.js"></script>
<link rel="stylesheet" href="calendar.css">
<?php
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
echo "<TITLE>User Time-Clock Detail</TITLE></HEAD><BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
@@ -470,7 +479,7 @@ else
### BEGIN sort through output to display properly ###
if (ereg("NAME|ID|TCLOCK|GROUP",$stage))
if ( (ereg("NAME|ID|TCLOCK|GROUP",$stage)) and ($k > 0) )
{
if (ereg("ID",$stage))
{sort($TOPsort, SORT_NUMERIC);}
@@ -563,11 +572,44 @@ if ($file_download > 0)
############################################################################
##### BEGIN HTML form section
############################################################################
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
echo "<TABLE CELLSPACING=3><TR><TD VALIGN=TOP> Dates:<BR>";
echo "<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=20 MAXLENGTH=20 VALUE=\"$query_date\">\n";
echo "<BR> to <BR><INPUT TYPE=TEXT NAME=end_date SIZE=20 MAXLENGTH=20 VALUE=\"$end_date\">\n";
echo "<INPUT TYPE=hidden NAME=query_date ID=query_date VALUE=\"$query_date\">\n";
echo "<INPUT TYPE=hidden NAME=end_date ID=end_date VALUE=\"$end_date\">\n";
echo "<INPUT TYPE=TEXT NAME=query_date_D SIZE=11 MAXLENGTH=10 VALUE=\"$query_date_D\">";
?>
<script language="JavaScript">
var o_cal = new tcal ({
// form name
'formname': 'vicidial_report',
// input name
'controlname': 'query_date_D'
});
o_cal.a_tpl.yearscroll = false;
// o_cal.a_tpl.weekstart = 1; // Monday week start
</script>
<?php
echo " &nbsp; <INPUT TYPE=TEXT NAME=query_date_T SIZE=9 MAXLENGTH=8 VALUE=\"$query_date_T\">";
echo "<BR> to <BR><INPUT TYPE=TEXT NAME=end_date_D SIZE=11 MAXLENGTH=10 VALUE=\"$end_date_D\">";
?>
<script language="JavaScript">
var o_cal = new tcal ({
// form name
'formname': 'vicidial_report',
// input name
'controlname': 'end_date_D'
});
o_cal.a_tpl.yearscroll = false;
// o_cal.a_tpl.weekstart = 1; // Monday week start
</script>
<?php
echo " &nbsp; <INPUT TYPE=TEXT NAME=end_date_T SIZE=9 MAXLENGTH=8 VALUE=\"$end_date_T\">";
# echo "</TD><TD VALIGN=TOP> Campaigns:<BR>";
# echo "<SELECT SIZE=5 NAME=group[] multiple>\n";
@@ -607,7 +649,25 @@ echo "<option value=\"AM\">AM</option>\n";
echo "<option value=\"PM\">PM</option>\n";
echo "<option value=\"ALL\">ALL</option>\n";
echo "</SELECT><BR><BR>\n";
echo "<INPUT TYPE=SUBMIT NAME=SUBMIT VALUE=SUBMIT>\n";
?>
<SCRIPT LANGUAGE="JavaScript">
function submit_form()
{
document.vicidial_report.end_date.value = document.vicidial_report.end_date_D.value + " " + document.vicidial_report.end_date_T.value;
document.vicidial_report.query_date.value = document.vicidial_report.query_date_D.value + " " + document.vicidial_report.query_date_T.value;
document.vicidial_report.submit();
}
</SCRIPT>
<input type=button value="SUBMIT" name=smt id=smt onClick="submit_form()">
<?php
echo "</TD><TD VALIGN=TOP> &nbsp; &nbsp; &nbsp; &nbsp; ";
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n";
+27 -4
View File
@@ -59,10 +59,11 @@
# 91102-2013 - Changed in-group color styles for incoming calls waiting
# 91204-1548 - Added ability to change agent in-groups and blended
# 100214-1127 - Added no-dialable-leads alert and in-groups stats option
# 100301-1229 - Added 3-WAY status for consultative transfer agents
#
$version = '2.2.0-50';
$build = '100214-1127';
$version = '2.2.0-51';
$build = '100301-1229';
header ("Content-type: text/html; charset=utf-8");
@@ -664,6 +665,7 @@ function hide_ingroup_info()
.violet {color: black; background-color: #EE82EE}
.thistle {color: black; background-color: #D8BFD8}
.olive {color: white; background-color: #808000}
.lime {color: white; background-color: #006600}
.yellow {color: black; background-color: yellow}
.khaki {color: black; background-color: #F0E68C}
.orange {color: black; background-color: orange}
@@ -1729,6 +1731,20 @@ $talking_to_print = mysql_num_rows($rslt);
$Alead_id[$i] = $row[14];
$Astate_change[$i] = $row[15];
### 3-WAY Check ###
if ($Alead_id[$i]!=0)
{
$threewaystmt="select UNIX_TIMESTAMP(last_call_time) from vicidial_live_agents where lead_id='$Alead_id[$i]' and status='INCALL' order by UNIX_TIMESTAMP(last_call_time) desc";
$threewayrslt=mysql_query($threewaystmt, $link);
if (mysql_num_rows($threewayrslt)>1)
{
$Astatus[$i]="3-WAY";
$srow=mysql_fetch_row($threewayrslt);
$Acall_mostrecent[$i]=$srow[0];
}
}
### END 3-WAY Check ###
$i++;
}
@@ -1946,8 +1962,10 @@ $calls_to_list = mysql_num_rows($rslt);
while(mb_strlen($user, 'utf-8')>20) {$user = mb_substr("$user", 0, -1,'utf8');}
}
}
if (!eregi("INCALL|QUEUE|PARK",$Astatus[$i]))
if (!eregi("INCALL|QUEUE|PARK|3-WAY",$Astatus[$i]))
{$call_time_S = ($STARTtime - $Astate_change[$i]);}
else if (eregi("3-WAY",$Astatus[$i]))
{$call_time_S = ($STARTtime - $Acall_mostrecent[$i]);}
else
{$call_time_S = ($STARTtime - $Acall_time[$i]);}
@@ -1961,6 +1979,10 @@ $calls_to_list = mysql_num_rows($rslt);
if ($call_time_S >= 300) {$G='<SPAN class="purple"><B>'; $EG='</B></SPAN>';}
# if ($call_time_S >= 600) {$G='<SPAN class="purple"><B>'; $EG='</B></SPAN>';}
}
if ($Lstatus=='3-WAY')
{
if ($call_time_S >= 10) {$G='<SPAN class="lime"><B>'; $EG='</B></SPAN>';}
}
if ($Lstatus=='DEAD')
{
if ($call_time_S >= 21600)
@@ -2012,7 +2034,7 @@ $calls_to_list = mysql_num_rows($rslt);
# if ( (strlen($Acall_server_ip[$i])> 4) and ($Acall_server_ip[$i] != "$Aserver_ip[$i]") )
# {$G='<SPAN class="orange"><B>'; $EG='</B></SPAN>';}
if ( (eregi("INCALL",$status)) or (eregi("QUEUE",$status)) or (eregi("PARK",$status)) ) {$agent_incall++; $agent_total++;}
if ( (eregi("INCALL",$status)) or (eregi("QUEUE",$status)) or (eregi("3-WAY",$status)) or (eregi("PARK",$status))) {$agent_incall++; $agent_total++;}
if ( (eregi("READY",$status)) or (eregi("CLOSER",$status)) ) {$agent_ready++; $agent_total++;}
if ( (eregi("READY",$status)) or (eregi("CLOSER",$status)) )
{
@@ -2085,6 +2107,7 @@ $calls_to_list = mysql_num_rows($rslt);
$Aecho .= " <SPAN class=\"khaki\"><B> </SPAN> - Agent Paused > 10 seconds</B>\n";
$Aecho .= " <SPAN class=\"yellow\"><B> </SPAN> - Agent Paused > 1 minute</B>\n";
$Aecho .= " <SPAN class=\"olive\"><B> </SPAN> - Agent Paused > 5 minutes</B>\n";
$Aecho .= " <SPAN class=\"lime\"><B> </SPAN> - Agent in 3-WAY > 10 seconds</B>\n";
$Aecho .= " <SPAN class=\"black\"><B> </SPAN> - Agent on a dead call</B>\n";
if ($agent_ready > 0) {$B='<FONT class="b1">'; $BG='</FONT>';}