diff --git a/www/vicidial/AST_agent_performance_detail.php b/www/vicidial/AST_agent_performance_detail.php index 6b95fce7..cec97f5a 100644 --- a/www/vicidial/AST_agent_performance_detail.php +++ b/www/vicidial/AST_agent_performance_detail.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # CHANGES # @@ -46,6 +46,7 @@ # 141125-0951 - Changed TOTAL column label to LOGIN TIME for uniform headers with other reports, issue #427 # 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 # $startMS = microtime(); @@ -78,13 +79,26 @@ if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];} elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];} if (isset($_GET["file_download"])) {$file_download=$_GET["file_download"];} elseif (isset($_POST["file_download"])) {$file_download=$_POST["file_download"];} -if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_display_type"];} +if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_display_type"];} elseif (isset($_POST["report_display_type"])) {$report_display_type=$_POST["report_display_type"];} -if (isset($_GET["show_percentages"])) {$show_percentages=$_GET["show_percentages"];} +if (isset($_GET["show_percentages"])) {$show_percentages=$_GET["show_percentages"];} elseif (isset($_POST["show_percentages"])) {$show_percentages=$_POST["show_percentages"];} +if (isset($_GET["time_in_sec"])) {$time_in_sec=$_GET["time_in_sec"];} + elseif (isset($_POST["time_in_sec"])) {$time_in_sec=$_POST["time_in_sec"];} if (strlen($shift)<2) {$shift='ALL';} +$TIME_HF_agentperfdetail = 'HF'; +$TIME_H_agentperfdetail = 'H'; +$TIME_M_agentperfdetail = 'M'; + +if ($time_in_sec) + { + $TIME_HF_agentperfdetail = 'S'; + $TIME_H_agentperfdetail = 'S'; + $TIME_M_agentperfdetail = 'S'; + } + $report_name = 'Agent Performance Detail'; $db_source = 'M'; $JS_text="