X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Fforms.php;h=c71c11feda5e24e148b2cf9780241766b31db794;hb=67672f1de588927289253f9b56270e5336aa537d;hp=7b707d797e3f4204fb1595eb3c27220feb8446b2;hpb=56f5e034aebe1b00dbd1cc976fd165d03420c632;p=readifood.git diff --git a/lib/forms.php b/lib/forms.php index 7b707d7..c71c11f 100644 --- a/lib/forms.php +++ b/lib/forms.php @@ -30,10 +30,14 @@ } function textarea($name, $value = null) { - echo ""; + echo ""; } function option($select, $value, $text, $selected = null) { @@ -43,4 +47,42 @@ echo ">$text\n"; } + function datepicker($name, $value = null, $past = true, $past_picker = null, $future = true, $future_picker = null) { + $id = "datepicker_$name"; + echo ""; + echo "(Y-m-d)"; + } + ?>