PHP date-picker for FBML features
- improved FBJS code
- automatic client-side date verification (user cannot input 31. Februar)
- you can choose between date and date-time picker
- after submiting get dates in MySQL format like YYYY-MM-DD hh:mm:ss
- gettext translations
Structure
_lib/calendar.js.php
calendar.php
calendar.tmpl.php
img/
cal.gif
sl_SI/
LC_MESSAGES/
main.po
Usage
You have to include and create object only once! When object is created you call functions setDateTimeField() and setDateField().Example
require_once('_lib/calendar.php');
$onlyOneObject = new fbCalendarInput();
//date and time input fields
$x->setDateTimeField("firstOne");
//we dont care for time, only date input
$x->setDateField("secondOne");
$x->setDateTimeField("third");
Download
Download in compressed ZIP file
Thanks
The JS is based on code provided here.Thanks to Johnson for giving us a starting point and to all those who have posted their findings and work-arounds to the various FBJS pitfalls. Big thanks to S10sys for producing and sharing their code for a working fbjs date picker.
Email this
Hits: 2305
Comments (6)

Write comment


