Warning: ob_start(): output handler 'ob_gzhandler' conflicts with 'zlib output compression' in /home/public/vinyl_calendar/index.php on line 3
Calendar Date Picker

Vinyl Free Calendar Date Picker

By Bryan McEleney

Thanks to my collaborators, Vinyl Matt Media for allowing me to share this calendar.

This is a free PHP and javascript DHTML popup calendar datepicker for picking dates. It's XHTML 1.0 Strict . It's fast and it's independent - no heavy javascript libraries required.
It's not open source, it's not gpl, it's free as in beer

There are day and month combos, and an icon to pick from a calendar.
Try the demo calendar to the right. You can download the source code including this demo here:

Download


Calendar PHP function. This prints the calendar combos and date picker:

function calendar(
	$colour,          	// hex colour code to colour the calendar eg 00ff00
	$input_name, 	  	// the name for the calendar input
	$caption, 	      	// caption to display on the calendar
	$input_id,        	// the id of the calendar input
	$onchange,        	// user defined onchange event handler. this is called 
						// whenever a date is picked
	$num_months,     	// normally display 3 months 
	$start_date="", 	// the start date of the calendar, normally today
	$selected_date=""	// the currently selected date
)

Javascript function. For dynamic control of the calendar in case you need it

function pick_date(
	input_id,		// the id of the calendar input
	display_date		// a date string "dd/mm/yyyy"
)
	
 
 
 
Arrival:
Select Arrival
M
T
W
T
F
S
S
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
M
T
W
T
F
S
S
27
28
29
30
M
T
W
T
F
S
S
1
2
3
4
Departure:
Select Departure
M
T
W
T
F
S
S
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
M
T
W
T
F
S
S
27
28
29
30
M
T
W
T
F
S
S
1
2
3
4