The Class Can be used to Generate a Calendar Dynamically by passing the month and the year. You can also create the calendar, with respect to the Server Time.
Here is the Example create by implementing the class..
- <?php
- require_once(”calendar.class.php”);
- $cal = new calendar();
- $Month = 12;
- $Year = 1988;
- // Calendar For Assigned Date
- $cal->AssignDate($Month,$Year); // Required Parameter is Month and Year, respectively
- $cal->GenerateCalendar();
- ?>
Line 2 : Includes the Calendar Class to this script
Line 4 : Create an object of the calendar generator
Line 6 & 7: Assign Values to for the Month & Year so that we can generate a calendar for that particualr month & year (If You Pass ‘0′ for Both the Parameter, then You can generate A calendar with respect to the server date)
Line 10 : Call the function which assigns the data
Line 11 : Call to the calender Generation Function
Download Link : TAR ZIP