X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Fforms.php;h=c71c11feda5e24e148b2cf9780241766b31db794;hb=c0b122f11daeec715462a6819ec46df6733ce61d;hp=af51c1c53fe1f4b552c0e9a76edd8c33c0a23e26;hpb=6fdbfe32798452ec1c0fdbda57edabb892518409;p=readifood.git diff --git a/lib/forms.php b/lib/forms.php index af51c1c..c71c11f 100644 --- a/lib/forms.php +++ b/lib/forms.php @@ -1,5 +1,18 @@ \n"; + } + + function end_form() { + echo "\n"; + } + function input($name, $value = null, $type = null) { echo ""; + $id = "textarea_$name"; + echo ""; + echo ""; } function option($select, $value, $text, $selected = null) { @@ -30,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)"; + } + ?>