PHP Classes
elePHPant
Icontem

How to Add Datepicker in PHP Form with PHP date picker class: Generate form input to pick a calendar date

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (12)   DownloadInstall with Composer Download .zip   Reputation   Support forum (11)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2006-09-04 (11 years ago) RSS 2.0 feedStarStarStar 53%Total: 8,058 This week: 1All time: 207 This week: 631Down
Version License PHP version Categories
datepicker 1.0.1Free for non-comm...3HTML, Time and Date
Description Author

This PHP class can be used to generate a nice, template driven date picker in a pop-up window.

The class will automatically generate the required HTML and JavaScript code that will make a pop-up window appear to let the user choose a date from a calendar. The selected date will be passed to an user-specified control from the caller page.

Every aspect is customizable: the aspect of the date picker is template driven meaning you can completely alter how the date picker looks by changing the template and the related CSS file; the format in which the date to be returned is configurable; the date picker can be instructed to show a specific year/month/date by default; the first day of the week can be also set;

The date picker also supports localisation: in this version, beside the default english language file you can also choose between german and dutch.

The code is heavily documented so you can easily understand every aspect of it.

Name: Stefan Gabos <contact>
Classes: 11 packages by
Country: Romania Romania
Age: 37
All time rank: 301 in Romania Romania
Week rank: 515 Down7 in Romania Romania Down
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • screenshot.gif
  Files folder image Files  
File Role Description
Files folder imageexamples (1 file)
Files folder imageincludes (3 files)
Files folder imagelanguages (3 files)
Files folder imagetemplates (1 directory)
Plain text file ChangeLog Data changelog file
Plain text file class.datepicker.php Class class source v1.0.1
Plain text file License Lic. license file

  Files folder image Files  /  examples  
File Role Description
  Plain text file example.php Example example script

  Files folder image Files  /  includes  
File Role Description
  Plain text file class.xtemplate.php Class templating engine
  Plain text file datepicker.php Aux. auxiliary script
  Plain text file license.txt Lic. license file of the templating engine

  Files folder image Files  /  languages  
File Role Description
  Plain text file dutch.php Conf. dutch language file
  Plain text file english.php Conf. default language file
  Plain text file german.php Conf. german language file

  Files folder image Files  /  templates  
File Role Description
Files folder imagedefault (2 files)

  Files folder image Files  /  templates  /  default  
File Role Description
  Plain text file style.css Data stylesheet for the template file
  Plain text file template.xtpl Data template file

 Version Control Reuses Unique User Downloads Download Rankings  
 0%1
Total:8,058
This week:1
All time:207
This week:631Down
 User Ratings  
 
 All time
Utility:76%StarStarStarStar
Consistency:78%StarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:1971