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";}