X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Ffunctions.php;h=2fcbe0e493e3dace99565a6bbb75e9bdf7674e4b;hb=0bb5ed236bdb79e75feb7491b508592d6a0ebe37;hp=0f2e0e782662a9881b523a5763382524d697c45a;hpb=446bce55325fc63d0583b838111d387764be498f;p=readifood.git diff --git a/lib/functions.php b/lib/functions.php index 0f2e0e7..2fcbe0e 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -486,37 +486,13 @@ } 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) { /* - Valid postcode formats (BS766): + Valid postcode formats (BS7666): AN NLL ABN NLL