X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Ffunctions.php;h=2fcbe0e493e3dace99565a6bbb75e9bdf7674e4b;hb=3b2e8214805eb2bdebb7485ce29c072815361eef;hp=a132ca1145704e363f195fd00ded4896d4848a9e;hpb=70bb5379c5ed6328da193eb87c23ab8a9606409b;p=readifood.git diff --git a/lib/functions.php b/lib/functions.php index a132ca1..2fcbe0e 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -486,32 +486,8 @@ } function show_date_form($name, $date = null) { - $past = 60; - $future = 60; - echo "\n"; - return; - if (! isset($date)) $date = date('Y-m-d'); - list($y, $m, $d) = iso8601_to_ymd($date); - - echo "Year: "; - echo "Month: "; - echo "Day: "; + if (! isset($date)) $date = date('Y-m-d', time()); + datepicker($name, $date); } function validate_postcode($postcode, &$outward = null, &$inward = null) {