From 8878c12d443acb61e550477285a560bb7cd818e4 Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 22 Apr 2015 20:44:34 +0000 Subject: [PATCH] Added two new shift options for Agent Time Detail report git-svn-id: svn://192.168.202.10@2311 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/vicidial/AST_agent_time_detail.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/www/vicidial/AST_agent_time_detail.php b/www/vicidial/AST_agent_time_detail.php index f0437f43..b125420b 100644 --- a/www/vicidial/AST_agent_time_detail.php +++ b/www/vicidial/AST_agent_time_detail.php @@ -40,6 +40,7 @@ # 141204-0548 - Fix for download headers, issue #805 # 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 # $startMS = microtime(); @@ -482,6 +483,16 @@ else if (strlen($time_BEGIN) < 6) {$time_BEGIN = "00:00:00";} if (strlen($time_END) < 6) {$time_END = "23:59:59";} } + if ($shift == '9AM-5PM') + { + $time_BEGIN = "09:00:00"; + $time_END = "16:59:59"; + } + if ($shift == '5PM-MIDNIGHT') + { + $time_BEGIN = "17:00:00"; + $time_END = "23:59:59"; + } $query_date_BEGIN = "$query_date $time_BEGIN"; $query_date_END = "$end_date $time_END"; @@ -1483,6 +1494,8 @@ echo "\n"; echo "\n"; echo "\n"; echo "\n"; +echo "\n"; +echo "\n"; echo "
\n"; echo ""._QXZ("Show parks-holds")."
"; echo ""._QXZ("Time in seconds")."
";