Fixed Javascript element problems in reports, Issue #857

git-svn-id: svn://192.168.202.10@2324 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2015-05-16 17:26:20 +00:00
parent 7850a38b27
commit 86c0c97e20
20 changed files with 57 additions and 37 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
<?php
# AST_CLOSER_service_level.php
#
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
#
@@ -29,6 +29,7 @@
# 141113-2336 - Finalized adding QXZ translation to all admin files
# 141128-0856 - Code cleanup for QXZ functions
# 141230-0923 - Added code for on-the-fly language translations display
# 150516-1258 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -1160,7 +1161,7 @@ $JS_text.=" document.getElementById('holdcalldrop_stats_graph').innerHTML=graph_
$JS_text.="}\n";
$JS_onload.="\tDrawHCDGraph('AVGHOLD','1');\n";
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
if ($report_display_type=="HTML")
+3 -2
View File
@@ -1,7 +1,7 @@
<?php
# AST_CLOSERstats.php
#
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES:
# 60619-1714 - Added variable filtering to eliminate SQL injection attack threat
@@ -46,6 +46,7 @@
# 141114-0009 - Finalized adding QXZ translation to all admin files
# 141128-0858 - Code cleanup for QXZ functions
# 141230-0942 - Added code for on-the-fly language translations display
# 150516-1259 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -2186,7 +2187,7 @@ $JS_text.=" document.getElementById('agentstats_graph').innerHTML=graph_to_displ
$JS_text.="}\n";
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
$GRAPH_text=$GRAPH;
+3 -2
View File
@@ -1,7 +1,7 @@
<?php
# AST_CLOSERsummary_hourly.php
#
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
#
@@ -23,6 +23,7 @@
# 140328-0005 - Converted division calculations to use MathZDC function
# 141114-0012 - Finalized adding QXZ translation to all admin files
# 141230-1511 - Added code for on-the-fly language translations display
# 150516-1300 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -1020,7 +1021,7 @@ else
}
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
if ($costformat > 0)
+3 -2
View File
@@ -1,7 +1,7 @@
<?php
# AST_IVRstats.php
#
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
# 81026-2026 - First build
@@ -30,6 +30,7 @@
# 140501-1900 - Fixed 15-min graph for inbound and outbound
# 141113-2319 - Finalized adding QXZ translation to all admin files
# 141230-1448 - Added code for on-the-fly language translations display
# 150516-1301 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -1100,7 +1101,7 @@ else
exit;
} else {
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
echo $HEADER;
+3 -2
View File
@@ -1,7 +1,7 @@
<?php
# AST_LISTS_campaign_stats.php
#
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# This is a list inventory report, not a calling report. This report will show
# statistics for all of the lists in the selected campaigns
@@ -22,6 +22,7 @@
# 140328-0005 - Converted division calculations to use MathZDC function
# 141114-0828 - Finalized adding QXZ translation to all admin files
# 141230-1444 - Added code for on-the-fly language translations display
# 150516-1302 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -1143,7 +1144,7 @@ else
} else {
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
echo $HEADER;
+3 -2
View File
@@ -1,7 +1,7 @@
<?php
# AST_LISTS_pass_report.php
#
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# This is a list inventory report, not a calling report. This report will show
# statistics for all of the lists in the selected campaigns
@@ -12,6 +12,7 @@
# 140331-2122 - Converted division calculations to use MathZDC function, added HTML view
# 141114-0827 - Finalized adding QXZ translation to all admin files
# 141230-0919 - Added code for on-the-fly language translations display
# 150516-1303 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -2428,7 +2429,7 @@ else
} else {
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
echo $HEADER;
+3 -2
View File
@@ -1,7 +1,7 @@
<?php
# AST_LISTS_stats.php
#
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# This is a list inventory report, not a calling report. This report will show
# statistics for all of the lists in the selected campaigns
@@ -13,6 +13,7 @@
# 140328-0005 - Converted division calculations to use MathZDC function
# 141114-0825 - Finalized adding QXZ translation to all admin files
# 141230-1442 - Added code for on-the-fly language translations display
# 150516-1304 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -803,7 +804,7 @@ else
} else {
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
echo $HEADER;
@@ -1,7 +1,7 @@
<?php
# AST_OUTBOUNDsummary_interval.php
#
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
#
@@ -23,6 +23,7 @@
# 140328-0005 - Converted division calculations to use MathZDC function
# 141114-0822 - Finalized adding QXZ translation to all admin files
# 141230-0912 - Added code for on-the-fly language translations display
# 150516-1305 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -1621,7 +1622,7 @@ else
exit;
} else {
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
if ($report_display_type=="HTML")
{
+3 -2
View File
@@ -1,7 +1,7 @@
<?php
# AST_VDADstats.php
#
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
# 60619-1718 - Added variable filtering to eliminate SQL injection attack threat
@@ -43,6 +43,7 @@
# 140328-0005 - Converted division calculations to use MathZDC function
# 141114-0705 - Finalized adding QXZ translation to all admin files
# 141230-1353 - Added code for on-the-fly language translations display
# 150516-1306 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -1970,7 +1971,7 @@ else
}
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
echo $JS_text;
+3 -2
View File
@@ -1,7 +1,7 @@
<?php
# AST_agent_days_detail.php
#
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
#
@@ -25,6 +25,7 @@
# 140328-0005 - Converted division calculations to use MathZDC function
# 141114-0021 - Finalized adding QXZ translation to all admin files
# 141230-1526 - Added code for on-the-fly language translations display
# 150516-1307 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -834,7 +835,7 @@ if ($file_download > 0)
}
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
if ($report_display_type=="HTML")
@@ -47,6 +47,7 @@
# 141128-0904 - Code cleanup for QXZ functions
# 141230-0945 - Added code for on-the-fly language translations display
# 150210-1357 - Added option to show time in seconds
# 150516-1308 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -1623,7 +1624,7 @@ $JS_text.=" var graph_to_display=eval(\"graph_\"+graph);\n";
$JS_text.=" document.getElementById('pause_detail_graph').innerHTML=graph_to_display;\n";
$JS_text.="}\n";
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
$GRAPH3="<tr><td colspan='".(3+count($sub_statusesARY))."' class='graph_span_cell'><span id='pause_detail_graph'><BR>&nbsp;<BR></span></td></tr></table><BR><BR>";
@@ -1,7 +1,7 @@
<?php
# AST_agent_performance_detail.php
#
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
#
@@ -39,6 +39,7 @@
# 131002-2015 - Added user group to report output
# 131010-1930 - Expanded user group column, added most recent user group
# 140108-0712 - Added webserver and hostname to report logging
# 150516-1309 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -1557,7 +1558,7 @@ $JS_text.=" var graph_to_display=eval(\"graph_\"+graph);\n";
$JS_text.=" document.getElementById('pause_detail_graph').innerHTML=graph_to_display;\n";
$JS_text.="}\n";
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
$GRAPH3="<tr><td colspan='".(3+count($sub_statusesARY))."' class='graph_span_cell'><span id='pause_detail_graph'><BR>&nbsp;<BR></span></td></tr></table><BR><BR>";
+3 -2
View File
@@ -1,7 +1,7 @@
<?php
# AST_agent_status_detail.php
#
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
#
@@ -25,6 +25,7 @@
# 130901-0827 - Changed to mysqli PHP functions
# 140108-0711 - Added webserver and hostname to report logging
# 140328-0005 - Converted division calculations to use MathZDC function
# 150516-1310 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -893,7 +894,7 @@ if ($file_download > 0)
}
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
if ($report_display_type=="HTML")
+2 -1
View File
@@ -41,6 +41,7 @@
# 141230-0929 - Added code for on-the-fly language translations display
# 150210-1356 - Added option to show time in seconds
# 150422-1643 - Added two new shift options
# 150516-1311 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -1416,7 +1417,7 @@ $NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIG
##### BEGIN HTML form section
############################################################################
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
@@ -4,7 +4,7 @@
# This report is designed to show the breakdown by list_id of the calls and
# their statuses for all lists within a campaign for a set time period
#
# Copyright (C) 2014 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
#
@@ -19,6 +19,7 @@
# 140328-0005 - Converted division calculations to use MathZDC function
# 141114-0848 - Finalized adding QXZ translation to all admin files
# 141230-1516 - Added code for on-the-fly language translations display
# 150516-1312 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -590,7 +591,7 @@ while($i < $group_ct)
$CSV_text.="\n\n";
}
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
if ($report_display_type=="HTML")
+2 -1
View File
@@ -23,6 +23,7 @@
# 141113-2055 - Finalized adding QXZ translation to all admin files
# 141230-0921 - Added code for on-the-fly language translations display
# 150218-1142 - Fix for download issue
# 150516-1313 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -2037,7 +2038,7 @@ else
}
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
if ($report_display_type=="HTML")
@@ -1,7 +1,7 @@
<?php
# AST_performance_comparison_report.php
#
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com>, Joe Johnson <freewermadmin@gmail.com LICENSE: AGPLv2
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com>, Joe Johnson <freewermadmin@gmail.com LICENSE: AGPLv2
#
# CHANGES
#
@@ -11,6 +11,7 @@
# 141113-2058 - Finalized adding QXZ translation to all admin files
# 141128-0905 - Code cleanup for QXZ functions
# 141230-0939 - Added code for on-the-fly language translations display
# 150516-1314 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -910,7 +911,7 @@ $HTML_text.="</BODY></HTML>";
if ($file_download == 0 || !$file_download)
{
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
$HTML_head.=$JS_text;
+3 -2
View File
@@ -6,7 +6,7 @@
# QC statuses of QCFAIL, QCCANC and sales are defined by the Sale=Y status
# flags being set on those statuses.
#
# Copyright (C) 2014 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
#
@@ -23,6 +23,7 @@
# 140328-0005 - Converted division calculations to use MathZDC function
# 141114-0728 - Finalized adding QXZ translation to all admin files
# 141230-1424 - Added code for on-the-fly language translations display
# 150516-1315 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -1254,7 +1255,7 @@ else
{
header("Content-type: text/html; charset=utf-8");
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
if ($report_display_type=="HTML")
+3 -2
View File
@@ -4,7 +4,7 @@
# This User-Group based report runs some very intensive SQL queries, so it is
# not recommended to run this on long time periods.
#
# Copyright (C) 2014 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
#
@@ -17,6 +17,7 @@
# 140108-0731 - Added webserver and hostname to report logging
# 141113-2339 - Finalized adding QXZ translation to all admin files
# 141230-1413 - Added code for on-the-fly language translations display
# 150516-1316 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -380,7 +381,7 @@ else
{
header("Content-type: text/html; charset=utf-8");
# $JS_onload.="}\n";
# $JS_text.=$JS_onload;
# if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
# $JS_text.="</script>\n";
if ($report_display_type=="HTML")
+3 -2
View File
@@ -1,7 +1,7 @@
<?php
# fcstats.php
#
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
#
@@ -29,6 +29,7 @@
# 140328-0005 - Converted division calculations to use MathZDC function
# 141114-0017 - Finalized adding QXZ translation to all admin files
# 141230-1345 - Added code for on-the-fly language translations display
# 150516-1317 - Fixed Javascript element problem, Issue #857
#
$startMS = microtime();
@@ -1006,7 +1007,7 @@ if ($file_download > 0)
else
{
$JS_onload.="}\n";
$JS_text.=$JS_onload;
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
$JS_text.="</script>\n";
echo $HTML_head;