From: Iain Patterson Date: Mon, 22 Apr 2013 20:08:53 +0000 (-0400) Subject: Show dates in the past. X-Git-Tag: 2013-05-13~34 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=0fd77b357d1868a57756e91f9e71dfa3b3db26b8;hp=0f0d73d202f9b9c2b60f5774f1adb0c1c161d460;p=readifood.git Show dates in the past. Show dates up to two months in the past as well as the future when creating a date dropdown. --- diff --git a/lib/functions.php b/lib/functions.php index 20fdd7b..801ed78 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -389,15 +389,22 @@ } function show_date_form($name, $date = null) { + $past = 60; + $future = 60; echo "\n";