From fbb73d9ce38c62fb84511f73a08d6fc8578e27ed Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 30 Jul 2014 16:29:04 -0400 Subject: [PATCH] Update so the calendar links from home work build the start and end date for search if you get link from the calendar on the home page. --- static/10.phtml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/static/10.phtml b/static/10.phtml index dcd0040..1258eee 100755 --- a/static/10.phtml +++ b/static/10.phtml @@ -1,5 +1,25 @@ array('filter' => FILTER_VALIDATE_INT, 'options' => array('min_range' => 1, 'max_range' => 31)), + 'month' => array('filter' => FILTER_VALIDATE_INT, 'options' => array('min_range' => 1, 'max_range' => 12)), + 'year' => array('filter' => FILTER_VALIDATE_INT, 'options' => array('min_range' => date('Y'), 'max_range' => date('Y') + 2)), + ) + ); + if ($calendarDateArray['day'] && $calendarDateArray['month'] && $calendarDateArray['year']) { + $time = mktime( + 0, + 0, + 0, + $calendarDateArray['month'], + $calendarDateArray['day'], + $calendarDateArray['year'] + ); + $_REQUEST['search'] = 1; + $_REQUEST['startMonth'] = $_REQUEST['endMonth'] = date('m/d/Y', $time); + } // set CommonApp define if not set if (!defined('COMMON_APP_BASE')) { define('COMMON_APP_BASE', '/var/www/server/CommonApps/'); -- 2.17.1