diff --git a/UPGRADE b/UPGRADE
index 1b451861..70203de3 100644
--- a/UPGRADE
+++ b/UPGRADE
@@ -86,8 +86,8 @@ OTHER CHANGES:
12. Added campaign options to limit number of active callbacks
-13. Changed all Administrative interface text output to use a function instead
- of echo.
+13. Changed all Agent and Administrative interface text output to use a function
+ instead of echo.(for future dynamic other-language interfaces)
diff --git a/www/vicidial/AST_CLOSER_service_level.php b/www/vicidial/AST_CLOSER_service_level.php
index 058f5440..644edc87 100644
--- a/www/vicidial/AST_CLOSER_service_level.php
+++ b/www/vicidial/AST_CLOSER_service_level.php
@@ -26,6 +26,7 @@
# 130902-0737 - Changed to mysqli PHP functions
# 140108-0747 - Added webserver and hostname to report logging
# 140328-0005 - Converted division calculations to use MathZDC function
+# 141113-2336 - Finalized adding QXZ translation to all admin files
#
$startMS = microtime();
@@ -109,7 +110,7 @@ if ($auth > 0)
if ($reports_auth < 1)
{
- $VDdisplayMESSAGE = "You are not allowed to view reports";
+ $VDdisplayMESSAGE = _QXZ("You are not allowed to view reports");
Header ("Content-type: text/html; charset=utf-8");
echo "$VDdisplayMESSAGE: |$PHP_AUTH_USER|$auth_message|\n";
exit;
@@ -122,10 +123,10 @@ if ($auth > 0)
}
else
{
- $VDdisplayMESSAGE = "Login incorrect, please try again";
+ $VDdisplayMESSAGE = _QXZ("Login incorrect, please try again");
if ($auth_message == 'LOCK')
{
- $VDdisplayMESSAGE = "Too many login attempts, try again in 15 minutes";
+ $VDdisplayMESSAGE = _QXZ("Too many login attempts, try again in 15 minutes");
Header ("Content-type: text/html; charset=utf-8");
echo "$VDdisplayMESSAGE: |$PHP_AUTH_USER|$auth_message|\n";
exit;
@@ -207,7 +208,7 @@ if ( (!preg_match("/$report_name/",$LOGallowed_reports)) and (!preg_match("/ALL
{
Header("WWW-Authenticate: Basic realm=\"CONTACT-CENTER-ADMIN\"");
Header("HTTP/1.0 401 Unauthorized");
- echo "You are not allowed to view this report: |$PHP_AUTH_USER|$report_name|\n";
+ echo _QXZ("You are not allowed to view this report").": |$PHP_AUTH_USER|$report_name|\n";
exit;
}
@@ -274,7 +275,7 @@ $HEADER.="\n";
$HEADER.="\n";
$HEADER.="\n";
-$HEADER.="
";
for ($d=0; $d0) {
$graph_data_ary[$d][0]=preg_replace('/\s/', "", $graph_data_ary[$d][0]);
@@ -709,10 +710,10 @@ if ($group_ct > 1)
}
$MAIN.="\n";
-$MAIN.="Time range: $query_date_BEGIN to $query_date_END\n\n";
-$MAIN.="---------- TOTALS\n";
+$MAIN.=_QXZ("Time range").": $query_date_BEGIN "._QXZ("to")." $query_date_END\n\n";
+$MAIN.="---------- "._QXZ("TOTALS")."\n";
-$CSV_text1.="\n\"Time range:\",\"$query_date_BEGIN\",\"to\",\"$query_date_END\"\n\n";
+$CSV_text1.="\n\""._QXZ("Time range").":\",\"$query_date_BEGIN\",\""._QXZ("to")."\",\"$query_date_END\"\n\n";
$stmt="select count(*),sum(length_in_sec) from vicidial_closer_log where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id IN($group_SQL);";
if ($DID=='Y')
@@ -760,37 +761,37 @@ $average_answer_seconds = sprintf("%10s", $average_answer_seconds);
if ($EMAIL=='Y')
{
- $MAIN.="Total Emails taken in to this In-Group: $TOTALcalls\n";
- $MAIN.="Average Email Length for all Emails: $average_call_seconds seconds\n";
- $MAIN.="Answered Emails: $ANSWEREDcalls $ANSWEREDpercent%\n";
- $MAIN.="Average queue time for Answered Emails: $average_answer_seconds seconds\n";
- $MAIN.="Emails taken into the IVR for this In-Group: $IVRcalls\n";
+ $MAIN.=_QXZ("Total Emails taken in to this In-Group:",47)."$TOTALcalls\n";
+ $MAIN.=_QXZ("Average Email Length for all Emails:",47)."$average_call_seconds "._QXZ("seconds")."\n";
+ $MAIN.=_QXZ("Answered Emails:",47)."$ANSWEREDcalls $ANSWEREDpercent%\n";
+ $MAIN.=_QXZ("Average queue time for Answered Emails:",47)."$average_answer_seconds "._QXZ("seconds")."\n";
+ $MAIN.=_QXZ("Emails taken into the IVR for this In-Group:",47)."$IVRcalls\n";
- $CSV_text1.="\"Total Emails taken in to this In-Group:\",\"$TOTALcalls\"\n";
- $CSV_text1.="\"Average Email Length for all Emails:\",\"$average_call_seconds seconds\"\n";
- $CSV_text1.="\"Answered Emails:\",\"$ANSWEREDcalls\",\"$ANSWEREDpercent%\"\n";
- $CSV_text1.="\"Average queue time for Answered Emails:\",\"$average_answer_seconds seconds\"\n";
- $CSV_text1.="\"Emails taken into the IVR for this In-Group:\",\"$IVRcalls\"\n";
+ $CSV_text1.="\""._QXZ("Total Emails taken in to this In-Group").":\",\"$TOTALcalls\"\n";
+ $CSV_text1.="\""._QXZ("Average Email Length for all Emails").":\",\"$average_call_seconds "._QXZ("seconds")."\"\n";
+ $CSV_text1.="\""._QXZ("Answered Emails").":\",\"$ANSWEREDcalls\",\"$ANSWEREDpercent%\"\n";
+ $CSV_text1.="\""._QXZ("Average queue time for Answered Emails").":\",\"$average_answer_seconds "._QXZ("seconds")."\"\n";
+ $CSV_text1.="\""._QXZ("Emails taken into the IVR for this In-Group").":\",\"$IVRcalls\"\n";
}
else
{
- $MAIN.="Total calls taken in to this In-Group: $TOTALcalls\n";
- $MAIN.="Average Call Length for all Calls: $average_call_seconds seconds\n";
- $MAIN.="Answered Calls: $ANSWEREDcalls $ANSWEREDpercent%\n";
- $MAIN.="Average queue time for Answered Calls: $average_answer_seconds seconds\n";
- $MAIN.="Calls taken into the IVR for this In-Group: $IVRcalls\n";
+ $MAIN.=_QXZ("Total calls taken in to this In-Group:",47)."$TOTALcalls\n";
+ $MAIN.=_QXZ("Average Call Length for all Calls:",47)."$average_call_seconds "._QXZ("seconds")."\n";
+ $MAIN.=_QXZ("Answered Calls:",47)."$ANSWEREDcalls $ANSWEREDpercent%\n";
+ $MAIN.=_QXZ("Average queue time for Answered Calls:",47)."$average_answer_seconds "._QXZ("seconds")."\n";
+ $MAIN.=_QXZ("Calls taken into the IVR for this In-Group:",47)."$IVRcalls\n";
- $CSV_text1.="\"Total calls taken in to this In-Group:\",\"$TOTALcalls\"\n";
- $CSV_text1.="\"Average Call Length for all Calls:\",\"$average_call_seconds seconds\"\n";
- $CSV_text1.="\"Answered Calls:\",\"$ANSWEREDcalls\",\"$ANSWEREDpercent%\"\n";
- $CSV_text1.="\"Average queue time for Answered Calls:\",\"$average_answer_seconds seconds\"\n";
- $CSV_text1.="\"Calls taken into the IVR for this In-Group:\",\"$IVRcalls\"\n";
+ $CSV_text1.="\""._QXZ("Total calls taken in to this In-Group").":\",\"$TOTALcalls\"\n";
+ $CSV_text1.="\""._QXZ("Average Call Length for all Calls").":\",\"$average_call_seconds "._QXZ("seconds")."\"\n";
+ $CSV_text1.="\""._QXZ("Answered Calls").":\",\"$ANSWEREDcalls\",\"$ANSWEREDpercent%\"\n";
+ $CSV_text1.="\""._QXZ("Average queue time for Answered Calls").":\",\"$average_answer_seconds "._QXZ("seconds")."\"\n";
+ $CSV_text1.="\""._QXZ("Calls taken into the IVR for this In-Group").":\",\"$IVRcalls\"\n";
}
$MAIN.="\n";
-$MAIN.="---------- DROPS\n";
+$MAIN.="---------- "._QXZ("DROPS")."\n";
-$CSV_text1.="\n\"DROPS\"\n";
+$CSV_text1.="\n\""._QXZ("DROPS")."\"\n";
$stmt="select count(*),sum(length_in_sec) from vicidial_closer_log where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id IN($group_SQL) and status IN('DROP','XDROP') and (length_in_sec <= 49999 or length_in_sec is null);";
if ($DID=='Y')
@@ -814,19 +815,19 @@ $DROP_ANSWEREDpercent = round($DROP_ANSWEREDpercent, 0);
if ($EMAIL=='Y')
{
- $MAIN.="Total DROP Emails: $DROPcalls $DROPpercent% drop/answered: $DROP_ANSWEREDpercent%\n";
- $MAIN.="Average hold time for DROP Emails: $average_hold_seconds seconds\n";
+ $MAIN.=_QXZ("Total DROP Emails:",47)."$DROPcalls $DROPpercent% "._QXZ("drop/answered").": $DROP_ANSWEREDpercent%\n";
+ $MAIN.=_QXZ("Average hold time for DROP Emails:",47)."$average_hold_seconds "._QXZ("seconds")."\n";
- $CSV_text1.="\"Total DROP Emails:\",\"$DROPcalls\",\"$DROPpercent%\",\"drop/answered:\",\"$DROP_ANSWEREDpercent%\"\n";
- $CSV_text1.="\"Average hold time for DROP Emails:\",\"$average_hold_seconds seconds\"\n";
+ $CSV_text1.="\"Total DROP Emails:\",\"$DROPcalls\",\"$DROPpercent%\",\""._QXZ("drop/answered").":\",\"$DROP_ANSWEREDpercent%\"\n";
+ $CSV_text1.="\"Average hold time for DROP Emails:\",\"$average_hold_seconds "._QXZ("seconds")."\"\n";
}
else
{
- $MAIN.="Total DROP Calls: $DROPcalls $DROPpercent% drop/answered: $DROP_ANSWEREDpercent%\n";
- $MAIN.="Average hold time for DROP Calls: $average_hold_seconds seconds\n";
+ $MAIN.=_QXZ("Total DROP Calls:",47)."$DROPcalls $DROPpercent% "._QXZ("drop/answered").": $DROP_ANSWEREDpercent%\n";
+ $MAIN.=_QXZ("Average hold time for DROP Calls:",47)."$average_hold_seconds "._QXZ("seconds")."\n";
- $CSV_text1.="\"Total DROP Calls:\",\"$DROPcalls\",\"$DROPpercent%\",\"drop/answered:\",\"$DROP_ANSWEREDpercent%\"\n";
- $CSV_text1.="\"Average hold time for DROP Calls:\",\"$average_hold_seconds seconds\"\n";
+ $CSV_text1.="\""._QXZ("Total DROP Calls").":\",\"$DROPcalls\",\"$DROPpercent%\",\""._QXZ("drop/answered").":\",\"$DROP_ANSWEREDpercent%\"\n";
+ $CSV_text1.="\""._QXZ("Average hold time for DROP Calls").":\",\"$average_hold_seconds "._QXZ("seconds")."\"\n";
}
if (strlen($group_SQL)>3)
@@ -864,32 +865,32 @@ if (strlen($group_SQL)>3)
if ($EMAIL=='Y')
{
$MAIN.="\n";
- $MAIN.="---------- CUSTOM INDICATORS\n";
- $MAIN.="GDE (Answered/Total emails taken in to this In-Group): $ANSWEREDpercent%\n";
- $MAIN.="ACR (Dropped/Answered): $DROP_ANSWEREDpercent%\n";
+ $MAIN.="---------- "._QXZ("CUSTOM INDICATORS")."\n";
+ $MAIN.="GDE "._QXZ("(Answered/Total emails taken in to this In-Group):",50)." $ANSWEREDpercent%\n";
+ $MAIN.="ACR "._QXZ("(Dropped/Answered):",50)." $DROP_ANSWEREDpercent%\n";
- $CSV_text1.="\n\"CUSTOM INDICATORS\"\n";
- $CSV_text1.="\"GDE (Answered/Total emails taken in to this In-Group):\",\"$ANSWEREDpercent%\"\n";
- $CSV_text1.="\"ACR (Dropped/Answered):\",\"$DROP_ANSWEREDpercent%\"\n";
+ $CSV_text1.="\n\""._QXZ("CUSTOM INDICATORS")."\"\n";
+ $CSV_text1.="\"GDE "._QXZ("(Answered/Total emails taken in to this In-Group)").":\",\"$ANSWEREDpercent%\"\n";
+ $CSV_text1.="\"ACR "._QXZ("(Dropped/Answered)").":\",\"$DROP_ANSWEREDpercent%\"\n";
}
else
{
$MAIN.="\n";
- $MAIN.="---------- CUSTOM INDICATORS\n";
- $MAIN.="GDE (Answered/Total calls taken in to this In-Group): $ANSWEREDpercent%\n";
- $MAIN.="ACR (Dropped/Answered): $DROP_ANSWEREDpercent%\n";
+ $MAIN.="---------- "._QXZ("CUSTOM INDICATORS")."\n";
+ $MAIN.="GDE "._QXZ("(Answered/Total calls taken in to this In-Group):",50)." $ANSWEREDpercent%\n";
+ $MAIN.="ACR "._QXZ("(Dropped/Answered):",50)." $DROP_ANSWEREDpercent%\n";
- $CSV_text1.="\n\"CUSTOM INDICATORS\"\n";
- $CSV_text1.="\"GDE (Answered/Total calls taken in to this In-Group):\",\"$ANSWEREDpercent%\"\n";
- $CSV_text1.="\"ACR (Dropped/Answered):\",\"$DROP_ANSWEREDpercent%\"\n";
+ $CSV_text1.="\n\""._QXZ("CUSTOM INDICATORS")."\"\n";
+ $CSV_text1.="\"GDE "._QXZ("(Answered/Total calls taken in to this In-Group)").":\",\"$ANSWEREDpercent%\"\n";
+ $CSV_text1.="\"ACR "._QXZ("(Dropped/Answered)").":\",\"$DROP_ANSWEREDpercent%\"\n";
}
if ($DID!='Y')
{
- $MAIN.="TMR1 (Answered within $Sanswer_sec_pct_rt_stat_one seconds/Answered): $PCTanswer_sec_pct_rt_stat_one%\n";
- $MAIN.="TMR2 (Answered within $Sanswer_sec_pct_rt_stat_two seconds/Answered): $PCTanswer_sec_pct_rt_stat_two%\n";
- $CSV_text1.="\"TMR1 (Answered within $Sanswer_sec_pct_rt_stat_one seconds/Answered):\",\"$PCTanswer_sec_pct_rt_stat_one%\"\n";
- $CSV_text1.="\"TMR2 (Answered within $Sanswer_sec_pct_rt_stat_two seconds/Answered):\",\"$PCTanswer_sec_pct_rt_stat_two%\"\n";
+ $MAIN.="TMR1 "._QXZ("(Answered within $Sanswer_sec_pct_rt_stat_one seconds/Answered):",75)." $PCTanswer_sec_pct_rt_stat_one%\n";
+ $MAIN.="TMR2 "._QXZ("(Answered within $Sanswer_sec_pct_rt_stat_two seconds/Answered):",75)." $PCTanswer_sec_pct_rt_stat_two%\n";
+ $CSV_text1.="\"TMR1 "._QXZ("(Answered within $Sanswer_sec_pct_rt_stat_one seconds/Answered)").":\",\"$PCTanswer_sec_pct_rt_stat_one%\"\n";
+ $CSV_text1.="\"TMR2 "._QXZ("(Answered within $Sanswer_sec_pct_rt_stat_two seconds/Answered)").":\",\"$PCTanswer_sec_pct_rt_stat_two%\"\n";
}
@@ -933,9 +934,9 @@ while ($p < $statuses_to_print)
##############################
######### CALL QUEUE STATS
$MAIN.="\n";
-$MAIN.="---------- QUEUE STATS\n";
+$MAIN.="---------- "._QXZ("QUEUE STATS")."\n";
-$CSV_text1.="\n\"QUEUE STATS\"\n";
+$CSV_text1.="\n\""._QXZ("QUEUE STATS")."\"\n";
$stmt="select count(*),sum(queue_seconds) from vicidial_closer_log where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id IN($group_SQL) and (queue_seconds > 0);";
if ($DID=='Y')
@@ -960,31 +961,31 @@ $average_total_queue_seconds = sprintf("%10.2f", $average_total_queue_seconds);
if ($EMAIL=='Y')
{
- $MAIN.="Total Emails That entered Queue: $QUEUEcalls $QUEUEpercent%\n";
- $MAIN.="Average QUEUE Length for queue emails: $average_queue_seconds seconds\n";
- $MAIN.="Average QUEUE Length across all emails: $average_total_queue_seconds seconds\n";
+ $MAIN.=_QXZ("Total Emails That entered Queue:",46)." $QUEUEcalls $QUEUEpercent%\n";
+ $MAIN.=_QXZ("Average QUEUE Length for queue emails:",46)." $average_queue_seconds "._QXZ("seconds")."\n";
+ $MAIN.=_QXZ("Average QUEUE Length across all emails:",46)." $average_total_queue_seconds "._QXZ("seconds")."\n";
- $CSV_text1.="\"Total Emails That entered Queue:\",\"$QUEUEcalls\",\"$QUEUEpercent%\"\n";
- $CSV_text1.="\"Average QUEUE Length for queue emails:\",\"$average_queue_seconds seconds\"\n";
- $CSV_text1.="\"Average QUEUE Length across all emails:\",\"$average_total_queue_seconds seconds\"\n";
+ $CSV_text1.="\""._QXZ("Total Emails That entered Queue").":\",\"$QUEUEcalls\",\"$QUEUEpercent%\"\n";
+ $CSV_text1.="\""._QXZ("Average QUEUE Length for queue emails").":\",\"$average_queue_seconds "._QXZ("seconds")."\"\n";
+ $CSV_text1.="\""._QXZ("Average QUEUE Length across all emails").":\",\"$average_total_queue_seconds "._QXZ("seconds")."\"\n";
}
else
{
- $MAIN.="Total Calls That entered Queue: $QUEUEcalls $QUEUEpercent%\n";
- $MAIN.="Average QUEUE Length for queue calls: $average_queue_seconds seconds\n";
- $MAIN.="Average QUEUE Length across all calls: $average_total_queue_seconds seconds\n";
+ $MAIN.=_QXZ("Total Calls That entered Queue:",46)." $QUEUEcalls $QUEUEpercent%\n";
+ $MAIN.=_QXZ("Average QUEUE Length for queue calls:",46)." $average_queue_seconds "._QXZ("seconds")."\n";
+ $MAIN.=_QXZ("Average QUEUE Length across all calls:",46)." $average_total_queue_seconds "._QXZ("seconds")."\n";
- $CSV_text1.="\"Total Calls That entered Queue:\",\"$QUEUEcalls\",\"$QUEUEpercent%\"\n";
- $CSV_text1.="\"Average QUEUE Length for queue calls:\",\"$average_queue_seconds seconds\"\n";
- $CSV_text1.="\"Average QUEUE Length across all calls:\",\"$average_total_queue_seconds seconds\"\n";
+ $CSV_text1.="\""._QXZ("Total Calls That entered Queue").":\",\"$QUEUEcalls\",\"$QUEUEpercent%\"\n";
+ $CSV_text1.="\""._QXZ("Average QUEUE Length for queue calls").":\",\"$average_queue_seconds "._QXZ("seconds")."\"\n";
+ $CSV_text1.="\""._QXZ("Average QUEUE Length across all calls").":\",\"$average_total_queue_seconds "._QXZ("seconds")."\"\n";
}
if ($EMAIL=='Y') {
- $rpt_type_verbiage='EMAIL';
- $rpt_type_verbiages='EMAILS';
+ $rpt_type_verbiage=_QXZ('EMAIL',6);
+ $rpt_type_verbiages=_QXZ('EMAILS',6);
} else {
- $rpt_type_verbiage='CALL ';
- $rpt_type_verbiages='CALLS ';
+ $rpt_type_verbiage=_QXZ('CALL',6);
+ $rpt_type_verbiages=_QXZ('CALLS',6);
}
##############################
@@ -993,12 +994,12 @@ if ($EMAIL=='Y') {
$TOTALcalls = 0;
$ASCII_text="\n";
-$ASCII_text.="---------- $rpt_type_verbiage HOLD TIME BREAKDOWN IN SECONDS DOWNLOAD\n";
+$ASCII_text.="---------- $rpt_type_verbiage "._QXZ("HOLD TIME BREAKDOWN IN SECONDS",36)." "._QXZ("DOWNLOAD")."\n";
$ASCII_text.="+-------------------------------------------------------------------------------------------+------------+\n";
$ASCII_text.="| 0 5 10 15 20 25 30 35 40 45 50 55 60 90 +90 | TOTAL |\n";
$ASCII_text.="+-------------------------------------------------------------------------------------------+------------+\n";
-$CSV_text2.="\n\"$rpt_type_verbiage HOLD TIME BREAKDOWN IN SECONDS\"\n";
+$CSV_text2.="\n\"$rpt_type_verbiage "._QXZ("HOLD TIME BREAKDOWN IN SECONDS")."\"\n";
$CSV_text2.="\"\",\"0\",\"5\",\"10\",\"15\",\"20\",\"25\",\"30\",\"35\",\"40\",\"45\",\"50\",\"55\",\"60\",\"90\",\"+90\",\"TOTAL\"\n";
@@ -1138,13 +1139,13 @@ else
$BDdropCALLS = 0;
$ASCII_text="\n";
-$ASCII_text.="---------- $rpt_type_verbiage DROP TIME BREAKDOWN IN SECONDS\n";
+$ASCII_text.="---------- $rpt_type_verbiage "._QXZ("DROP TIME BREAKDOWN IN SECONDS")."\n";
$ASCII_text.="+-------------------------------------------------------------------------------------------+------------+\n";
-$ASCII_text.="| 0 5 10 15 20 25 30 35 40 45 50 55 60 90 +90 | TOTAL |\n";
+$ASCII_text.="| 0 5 10 15 20 25 30 35 40 45 50 55 60 90 +90 | "._QXZ("TOTAL",10)." |\n";
$ASCII_text.="+-------------------------------------------------------------------------------------------+------------+\n";
-$CSV_text2.="\n\"$rpt_type_verbiage DROP TIME BREAKDOWN IN SECONDS\"\n";
-$CSV_text2.="\"\",\"0\",\"5\",\"10\",\"15\",\"20\",\"25\",\"30\",\"35\",\"40\",\"45\",\"50\",\"55\",\"60\",\"90\",\"+90\",\"TOTAL\"\n";
+$CSV_text2.="\n\"$rpt_type_verbiage "._QXZ("DROP TIME BREAKDOWN IN SECONDS")."\"\n";
+$CSV_text2.="\"\",\"0\",\"5\",\"10\",\"15\",\"20\",\"25\",\"30\",\"35\",\"40\",\"45\",\"50\",\"55\",\"60\",\"90\",\"+90\",\""._QXZ("TOTAL")."\"\n";
$stmt="select count(*),queue_seconds from vicidial_closer_log where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id IN($group_SQL) and status IN('DROP','XDROP') group by queue_seconds;";
if ($DID=='Y')
@@ -1283,13 +1284,13 @@ else
$BDansweredCALLS = 0;
$ASCII_text="\n";
-$ASCII_text.=" $rpt_type_verbiage ANSWERED TIME AND PERCENT BREAKDOWN IN SECONDS\n";
+$ASCII_text.=" $rpt_type_verbiage "._QXZ("ANSWERED TIME AND PERCENT BREAKDOWN IN SECONDS")."\n";
$ASCII_text.=" +-------------------------------------------------------------------------------------------+------------+\n";
-$ASCII_text.=" | 0 5 10 15 20 25 30 35 40 45 50 55 60 90 +90 | TOTAL |\n";
+$ASCII_text.=" | 0 5 10 15 20 25 30 35 40 45 50 55 60 90 +90 | "._QXZ("TOTAL",10)." |\n";
$ASCII_text.="----------+-------------------------------------------------------------------------------------------+------------+\n";
-$CSV_text2.="\n\"$rpt_type_verbiage ANSWERED TIME AND PERCENT BREAKDOWN IN SECONDS\"\n";
-$CSV_text2.="\"\",\"0\",\"5\",\"10\",\"15\",\"20\",\"25\",\"30\",\"35\",\"40\",\"45\",\"50\",\"55\",\"60\",\"90\",\"+90\",\"TOTAL\"\n";
+$CSV_text2.="\n\"$rpt_type_verbiage "._QXZ("ANSWERED TIME AND PERCENT BREAKDOWN IN SECONDS")."\"\n";
+$CSV_text2.="\"\",\"0\",\"5\",\"10\",\"15\",\"20\",\"25\",\"30\",\"35\",\"40\",\"45\",\"50\",\"55\",\"60\",\"90\",\"+90\",\""._QXZ("TOTAL")."\"\n";
$stmt="select count(*),queue_seconds from vicidial_closer_log where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id IN($group_SQL) and status NOT IN('DROP','XDROP','HXFER','QVMAIL','HOLDTO','LIVE','QUEUE','TIMEOT','AFTHRS','NANQUE','INBND','MAXCAL') group by queue_seconds;";
if ($DID=='Y')
@@ -1481,19 +1482,19 @@ $answeredCUMULATIVE = "$Cad_0 $Cad_5 $Cad10 $Cad15 $Cad20 $Cad25 $Cad30 $Cad35 $
$answeredINT_PERCENT = "$pad_0 $pad_5 $pad10 $pad15 $pad20 $pad25 $pad30 $pad35 $pad40 $pad45 $pad50 $pad55 $pad60 $pad90 $pad99 | |";
$answeredCUM_PERCENT = "$pCad_0 $pCad_5 $pCad10 $pCad15 $pCad20 $pCad25 $pCad30 $pCad35 $pCad40 $pCad45 $pCad50 $pCad55 $pCad60 $pCad90 $pCad99 | |";
$answeredCUM_ANS_PERCENT = "$ApCad_0 $ApCad_5 $ApCad10 $ApCad15 $ApCad20 $ApCad25 $ApCad30 $ApCad35 $ApCad40 $ApCad45 $ApCad50 $ApCad55 $ApCad60 $ApCad90 $ApCad99 | |";
-$ASCII_text.="INTERVAL | $answeredTOTALs\n";
-$ASCII_text.="INT % | $answeredINT_PERCENT\n";
-$ASCII_text.="CUMULATIVE| $answeredCUMULATIVE\n";
-$ASCII_text.="CUM % | $answeredCUM_PERCENT\n";
-$ASCII_text.="CUM ANS % | $answeredCUM_ANS_PERCENT\n";
+$ASCII_text.=_QXZ("INTERVAL",10)."| $answeredTOTALs\n";
+$ASCII_text.=_QXZ("INT",8)." %| $answeredINT_PERCENT\n";
+$ASCII_text.=_QXZ("CUMULATIVE",10)."| $answeredCUMULATIVE\n";
+$ASCII_text.=_QXZ("CUM",8)." %| $answeredCUM_PERCENT\n";
+$ASCII_text.=_QXZ("CUM ANS",8)." %| $answeredCUM_ANS_PERCENT\n";
$ASCII_text.="----------+-------------------------------------------------------------------------------------------+------------+\n";
-$CSV_text2.="\"INTERVAL\",\"$ad_0\",\"$ad_5\",\"$ad10\",\"$ad15\",\"$ad20\",\"$ad25\",\"$ad30\",\"$ad35\",\"$ad40\",\"$ad45\",\"$ad50\",\"$ad55\",\"$ad60\",\"$ad90\",\"$ad99\",\"$BDansweredCALLS\"\n";
-$CSV_text2.="\"INT %\",\"$pad_0\",\"$pad_5\",\"$pad10\",\"$pad15\",\"$pad20\",\"$pad25\",\"$pad30\",\"$pad35\",\"$pad40\",\"$pad45\",\"$pad50\",\"$pad55\",\"$pad60\",\"$pad90\",\"$pad99\"\n";
-$CSV_text2.="\"CUMULATIVE\",\"$Cad_0\",\"$Cad_5\",\"$Cad10\",\"$Cad15\",\"$Cad20\",\"$Cad25\",\"$Cad30\",\"$Cad35\",\"$Cad40\",\"$Cad45\",\"$Cad50\",\"$Cad55\",\"$Cad60\",\"$Cad90\",\"$Cad99\",\"$BDansweredCALLS\"\n";
-$CSV_text2.="\"CUM %\",\"$pCad_0\",\"$pCad_5\",\"$pCad10\",\"$pCad15\",\"$pCad20\",\"$pCad25\",\"$pCad30\",\"$pCad35\",\"$pCad40\",\"$pCad45\",\"$pCad50\",\"$pCad55\",\"$pCad60\",\"$pCad90\",\"$pCad99\"\n";
-$CSV_text2.="\"CUM ANS %\",\"$ApCad_0\",\"$ApCad_5\",\"$ApCad10\",\"$ApCad15\",\"$ApCad20\",\"$ApCad25\",\"$ApCad30\",\"$ApCad35\",\"$ApCad40\",\"$ApCad45\",\"$ApCad50\",\"$ApCad55\",\"$ApCad60\",\"$ApCad90\",\"$ApCad99\"\n";
+$CSV_text2.="\""._QXZ("INTERVAL")."\",\"$ad_0\",\"$ad_5\",\"$ad10\",\"$ad15\",\"$ad20\",\"$ad25\",\"$ad30\",\"$ad35\",\"$ad40\",\"$ad45\",\"$ad50\",\"$ad55\",\"$ad60\",\"$ad90\",\"$ad99\",\"$BDansweredCALLS\"\n";
+$CSV_text2.="\""._QXZ("INT")." %\",\"$pad_0\",\"$pad_5\",\"$pad10\",\"$pad15\",\"$pad20\",\"$pad25\",\"$pad30\",\"$pad35\",\"$pad40\",\"$pad45\",\"$pad50\",\"$pad55\",\"$pad60\",\"$pad90\",\"$pad99\"\n";
+$CSV_text2.="\""._QXZ("CUMULATIVE")."\",\"$Cad_0\",\"$Cad_5\",\"$Cad10\",\"$Cad15\",\"$Cad20\",\"$Cad25\",\"$Cad30\",\"$Cad35\",\"$Cad40\",\"$Cad45\",\"$Cad50\",\"$Cad55\",\"$Cad60\",\"$Cad90\",\"$Cad99\",\"$BDansweredCALLS\"\n";
+$CSV_text2.="\""._QXZ("CUM")." %\",\"$pCad_0\",\"$pCad_5\",\"$pCad10\",\"$pCad15\",\"$pCad20\",\"$pCad25\",\"$pCad30\",\"$pCad35\",\"$pCad40\",\"$pCad45\",\"$pCad50\",\"$pCad55\",\"$pCad60\",\"$pCad90\",\"$pCad99\"\n";
+$CSV_text2.="\""._QXZ("CUM ANS")." %\",\"$ApCad_0\",\"$ApCad_5\",\"$ApCad10\",\"$ApCad15\",\"$ApCad20\",\"$ApCad25\",\"$ApCad30\",\"$ApCad35\",\"$ApCad40\",\"$ApCad45\",\"$ApCad50\",\"$ApCad55\",\"$ApCad60\",\"$ApCad90\",\"$ApCad99\"\n";
if ($report_display_type=="HTML") {
$stmt="select count(*),round(queue_seconds) as rd_sec from vicidial_closer_log where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id IN($group_SQL) and status NOT IN('DROP','XDROP','HXFER','QVMAIL','HOLDTO','LIVE','QUEUE','TIMEOT','AFTHRS','NANQUE','INBND','MAXCAL') group by rd_sec order by rd_sec asc;";
@@ -1571,13 +1572,13 @@ else
$TOTALcalls = 0;
$ASCII_text="\n";
-$ASCII_text.="---------- $rpt_type_verbiage HANGUP REASON STATS DOWNLOAD\n";
+$ASCII_text.="---------- $rpt_type_verbiage "._QXZ("HANGUP REASON STATS",25)." "._QXZ("DOWNLOAD")."\n";
$ASCII_text.="+----------------------+------------+\n";
-$ASCII_text.="| HANGUP REASON | $rpt_type_verbiages |\n";
+$ASCII_text.="| "._QXZ("HANGUP REASON",20)." | $rpt_type_verbiages |\n";
$ASCII_text.="+----------------------+------------+\n";
-$CSV_text3.="\n\"$rpt_type_verbiage HANGUP REASON STATS\"\n";
-$CSV_text3.="\"HANGUP REASON\",\"$rpt_type_verbiages\"\n";
+$CSV_text3.="\n\"$rpt_type_verbiage "._QXZ("HANGUP REASON STATS")."\"\n";
+$CSV_text3.="\""._QXZ("HANGUP REASON")."\",\"$rpt_type_verbiages\"\n";
$stmt="select count(*),term_reason from vicidial_closer_log where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id IN($group_SQL) group by term_reason order by term_reason;";
if ($DID=='Y')
@@ -1608,10 +1609,10 @@ while ($i < $reasons_to_print)
$TOTALcalls = sprintf("%10s", $TOTALcalls);
$ASCII_text.="+----------------------+------------+\n";
-$ASCII_text.="| TOTAL: | $TOTALcalls |\n";
+$ASCII_text.="| "._QXZ("TOTAL:",20). " | $TOTALcalls |\n";
$ASCII_text.="+----------------------+------------+\n";
-$CSV_text3.="\"TOTAL:\",\"$TOTALcalls\"\n";
+$CSV_text3.="\""._QXZ("TOTAL").":\",\"$TOTALcalls\"\n";
if ($report_display_type=="HTML")
{
@@ -1626,9 +1627,9 @@ if ($report_display_type=="HTML")
}
$GRAPH_text="\n";
$GRAPH_text.="
";
###########################
- $CSV_text.="\"\",\"IVR CALLS\",\"QUEUE CALLS\",\"QUEUE DROP CALLS\",\"QUEUE DROP PERCENT\",\"IVR AVG TIME\",\"TOTAL AVG TIME\",\"CALL PATH\"\n";
+ $CSV_text.="\"\",\""._QXZ("IVR CALLS")."\",\""._QXZ("QUEUE CALLS")."\",\""._QXZ("QUEUE DROP CALLS")."\",\""._QXZ("QUEUE DROP PERCENT")."\",\""._QXZ("IVR AVG TIME")."\",\""._QXZ("TOTAL AVG TIME")."\",\""._QXZ("CALL PATH")."\"\n";
while ($s <= $p)
{
@@ -832,12 +833,12 @@ else
$IVRAVGTIME_graph.="
".$graph_stats[$d][5]."
".$graph_stats[$d][0]."
";
$TOTALAVGTIME_graph.="
".$graph_stats[$d][6]."
".$graph_stats[$d][0]."
";
}
- $IVRCALLS_graph.="
".trim($TOTALcalls)."
TOTAL
";
- $QUEUECALLS_graph.="
".trim($totFLOWtotal)."
TOTAL
";
- $QUEUEDROPCALLS_graph.="
".trim($totFLOWdrop)."
TOTAL
";
- $QUEUEDROPPERCENT_graph.="
".trim($totFLOWdropPCT)."%
TOTAL
";
- $IVRAVGTIME_graph.="
".trim($TavgFLOWivr_time)."
TOTAL
";
- $TOTALAVGTIME_graph.="
".trim($TavgFLOWtotal_time)."
TOTAL
";
+ $IVRCALLS_graph.="
".trim($TOTALcalls)."
"._QXZ("TOTAL")."
";
+ $QUEUECALLS_graph.="
".trim($totFLOWtotal)."
"._QXZ("TOTAL")."
";
+ $QUEUEDROPCALLS_graph.="
".trim($totFLOWdrop)."
"._QXZ("TOTAL")."
";
+ $QUEUEDROPPERCENT_graph.="
".trim($totFLOWdropPCT)."%
"._QXZ("TOTAL")."
";
+ $IVRAVGTIME_graph.="
".trim($TavgFLOWivr_time)."
"._QXZ("TOTAL")."
";
+ $TOTALAVGTIME_graph.="
".trim($TavgFLOWtotal_time)."
"._QXZ("TOTAL")."
";
$JS_onload.="\tDrawGraph('IVRCALLS', '1');\n";
$JS_text.="function DrawGraph(graph, th_id) {\n";
$JS_text.=" var IVRCALLS_graph=\"$IVRCALLS_graph\";\n";
@@ -871,7 +872,7 @@ else
######### TIME STATS
$MAIN.="\n";
- $MAIN.="---------- TIME STATS\n";
+ $MAIN.="---------- "._QXZ("TIME STATS")."\n";
$MAIN.="\n";
@@ -939,8 +940,8 @@ else
$hour_multiplier = MathZDC(100, $hi_hour_count);
$MAIN.="\n";
- $MAIN.="GRAPH IN 15 MINUTE INCREMENTS OF TOTAL CALLS TAKEN INTO THIS IVR\n";
- $CSV_text.="\n\"GRAPH IN 15 MINUTE INCREMENTS OF TOTAL CALLS TAKEN INTO THIS IVR\"\n";
+ $MAIN.=_QXZ("GRAPH IN 15 MINUTE INCREMENTS OF TOTAL CALLS TAKEN INTO THIS IVR")."\n";
+ $CSV_text.="\n\""._QXZ("GRAPH IN 15 MINUTE INCREMENTS OF TOTAL CALLS TAKEN INTO THIS IVR")."\"\n";
$k=1;
$Mk=0;
@@ -966,9 +967,9 @@ else
$MAIN.="+------+-------------------------------------------------------------------------------------------------------+-------+\n";
#$MAIN.="| HOUR | GRAPH IN 15 MINUTE INCREMENTS OF TOTAL INCOMING CALLS FOR THIS GROUP | TOTAL |\n";
- $MAIN.="| HOUR |$call_scale| TOTAL |\n";
+ $MAIN.="| "._QXZ("HOUR",4)." |$call_scale| "._QXZ("TOTAL",5)." |\n";
$MAIN.="+------+-------------------------------------------------------------------------------------------------------+-------+\n";
- $CSV_text.="\"HOUR\",\"TOTAL\"\n";
+ $CSV_text.="\""._QXZ("HOUR")."\",\""._QXZ("TOTAL")."\"\n";
$ZZ = '00';
$i=0;
@@ -1039,7 +1040,7 @@ else
$ENDtime = date("U");
$RUNtime = ($ENDtime - $STARTtime);
- $MAIN.="\nRun Time: $RUNtime seconds|$db_source\n";
+ $MAIN.="\n"._QXZ("Run Time").": $RUNtime "._QXZ("seconds")."|$db_source\n";
$MAIN.="
\n";
$MAIN.="\n";
diff --git a/www/vicidial/AST_LAGGED_log_report.php b/www/vicidial/AST_LAGGED_log_report.php
index f705ec11..b6f8c663 100644
--- a/www/vicidial/AST_LAGGED_log_report.php
+++ b/www/vicidial/AST_LAGGED_log_report.php
@@ -7,6 +7,7 @@
# 130622-1026 - First build
# 130901-2027 - Changed to mysqli PHP functions
# 140108-0736 - Added webserver and hostname to report logging
+# 141114-0832 - Finalized adding QXZ translation to all admin files
#
$startMS = microtime();
@@ -101,7 +102,7 @@ if ($auth > 0)
if ($reports_auth < 1)
{
- $VDdisplayMESSAGE = "You are not allowed to view reports";
+ $VDdisplayMESSAGE = _QXZ("You are not allowed to view reports");
Header ("Content-type: text/html; charset=utf-8");
echo "$VDdisplayMESSAGE: |$PHP_AUTH_USER|$auth_message|\n";
exit;
@@ -114,10 +115,10 @@ if ($auth > 0)
}
else
{
- $VDdisplayMESSAGE = "Login incorrect, please try again";
+ $VDdisplayMESSAGE = _QXZ("Login incorrect, please try again");
if ($auth_message == 'LOCK')
{
- $VDdisplayMESSAGE = "Too many login attempts, try again in 15 minutes";
+ $VDdisplayMESSAGE = _QXZ("Too many login attempts, try again in 15 minutes");
Header ("Content-type: text/html; charset=utf-8");
echo "$VDdisplayMESSAGE: |$PHP_AUTH_USER|$auth_message|\n";
exit;
@@ -201,7 +202,7 @@ $HEADER.="\n";
$HEADER.="\n";
$HEADER.="\n";
$HEADER.="\n";
-$HEADER.="$report_name\n";
+$HEADER.=""._QXZ("$report_name")."\n";
$short_header=1;
@@ -209,7 +210,7 @@ $MAIN.="
";
$MAIN.="
";
$rpt_stmt="select * from vicidial_agent_log where sub_status='LAGGED' and event_time>='$query_date $query_date_D' and event_time<='$query_date $query_date_T' $url_type_SQL order by user, event_time asc";
@@ -269,16 +270,16 @@ if ($SUBMIT && $query_date) {
if (!$lower_limit) {$lower_limit=1;}
if ($lower_limit+999>=mysqli_num_rows($rpt_rslt)) {$upper_limit=($lower_limit+mysqli_num_rows($rpt_rslt)%1000)-1;} else {$upper_limit=$lower_limit+999;}
- $ASCII_text.="--- LAGGED LOG RECORDS FOR $query_date, $query_date_D TO $query_date_T $server_rpt_string, RECORDS #$lower_limit-$upper_limit [DOWNLOAD]\n";
+ $ASCII_text.="--- "._QXZ("LAGGED LOG RECORDS FOR")." $query_date, $query_date_D "._QXZ("TO")." $query_date_T $server_rpt_string, "._QXZ("RECORDS")." #$lower_limit-$upper_limit ["._QXZ("DOWNLOAD")."]\n";
$lagged_rpt.="+--------------+------------+-----------------+---------------------+-----------+----------+--------+----------------------+----------------------+----------------------+\n";
- $lagged_rpt.="| AGENT LOG ID | USER | SERVER IP | EVENT TIME | LEAD ID | CAMPAIGN | STATUS | USER GROUP | COMMENTS | UNIQUE ID |\n";
+ $lagged_rpt.="| "._QXZ("AGENT LOG ID",12)." | "._QXZ("USER",10)." | "._QXZ("SERVER IP",15)." | "._QXZ("EVENT TIME",19)." | "._QXZ("LEAD ID",9)." | "._QXZ("CAMPAIGN",8)." | "._QXZ("STATUS",6)." | "._QXZ("USER GROUP",20)." | "._QXZ("COMMENTS",20)." | "._QXZ("UNIQUE ID",20)." |\n";
$lagged_rpt.="+--------------+------------+-----------------+---------------------+-----------+----------+--------+----------------------+----------------------+----------------------+\n";
$HTML_text.="
";
- $HTML_rpt.="
LAGGED LOG RECORDS FOR $query_date, $query_date_D TO $query_date_T $server_rpt_string, RECORDS #$lower_limit-$upper_limit