From 57d327706a9441404c9aa79c7e002fb151fcf8df Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 20 Oct 2014 13:13:14 +0000 Subject: [PATCH] Added 9am-10pm and 10am-6pm options to DID stats report git-svn-id: svn://192.168.202.10@2175 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/vicidial/AST_DIDstats.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/www/vicidial/AST_DIDstats.php b/www/vicidial/AST_DIDstats.php index c0382dbd..c7fb2651 100644 --- a/www/vicidial/AST_DIDstats.php +++ b/www/vicidial/AST_DIDstats.php @@ -23,6 +23,7 @@ # 140328-0005 - Converted division calculations to use MathZDC function # 140502-1208 - Added 9am-11pm option # 140808-1036 - Added server breakdown section +# 141020-0848 - Added 9am-10pm and 10am-6pm options # $startMS = microtime(); @@ -374,7 +375,9 @@ $MAIN.="\n"; $MAIN.="\n"; $MAIN.="\n"; $MAIN.="\n"; +$MAIN.="\n"; $MAIN.="\n"; +$MAIN.="\n"; $MAIN.="\n"; $MAIN.="\n"; $MAIN.="\n"; @@ -434,6 +437,11 @@ else if (strlen($time_BEGIN) < 6) {$time_BEGIN = "08:45:00";} if (strlen($time_END) < 6) {$time_END = "00:59:59";} } + if ($shift == '10AM-5PM') + { + if (strlen($time_BEGIN) < 6) {$time_BEGIN = "10:00:00";} + if (strlen($time_END) < 6) {$time_END = "16:59:59";} + } if ($shift == '10AM-6PM') { if (strlen($time_BEGIN) < 6) {$time_BEGIN = "10:00:00";} @@ -444,6 +452,11 @@ else if (strlen($time_BEGIN) < 6) {$time_BEGIN = "09:00:00";} if (strlen($time_END) < 6) {$time_END = "22:59:59";} } + if ($shift == '9AM-10PM') + { + if (strlen($time_BEGIN) < 6) {$time_BEGIN = "09:00:00";} + if (strlen($time_END) < 6) {$time_END = "21:59:59";} + } if ($shift == '9AM-1AM') { if (strlen($time_BEGIN) < 6) {$time_BEGIN = "09:00:00";}