From: Steve Sutton Date: Wed, 30 Jul 2014 20:29:04 +0000 (-0400) Subject: Update so the calendar links from home work X-Git-Tag: VV1^2~26 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=fbb73d9ce38c62fb84511f73a08d6fc8578e27ed;p=web%2FCityofMI.git 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. --- 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/');