X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;ds=inline;f=lib%2Fforms.php;h=c71c11feda5e24e148b2cf9780241766b31db794;hb=refs%2Ftags%2Flive-2013-12-12;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)";
+ }
+
?>