PHP Classes

Event calendar: Draw Month Calendar Including Events

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 50%Total: 4,736 All time: 581 This week: 100Up
Version License PHP version Categories
event_calendar 1.0.1Freeware4Time and Date, Content management
Description 

Author

This class can be used to draw month calendars of events with different colors. Events from MySQL database. Multiple events per day is also possible. For a particular event Event details is also available.

The class can render a calendar as an HTML table with all days of all the weeks of a given month.

It queries an events table in a MySQL database to retrieve all the events that occur in the specified month.

The month days on which there are scheduled events are rendered in a different way.

When the user clicks on the event day cell, the event details appear in a special row below the calendar table.

The calendar title and presentation styles are configurable.

The events in the database can be managed with a separate class.

Picture of Md. Aminul Islam
Name: Md. Aminul Islam <contact>
Classes: 8 packages by
Country: Bangladesh Bangladesh
Age: 43
All time rank: 1444 in Bangladesh Bangladesh
Week rank: 312 Down6 in Bangladesh Bangladesh Down

Example

<?php
   
   
include("ClsEventCalender.cls.php");

   
$host="localhost";
   
$user="root";
   
$password="";
   
$database="class_test";

   
//Create Object for Calender Event.
   
$ObjEventCal=new ClsEventCalender();
   
$ObjEventCal->UserDefineConnection($host,$user,$password,$database);

   
//Define Calender Table Properties(Size,Color...)
   
$CalenderTblWidth=250;
   
$CalenderTblBrdrWidth=1;
   
$CalenderTblBrdrColor="#0000FF";
   
$CalenderTblHeading="Event Calender";
   
$CalenderCellHeight=20; //Height of Calender Cell.
   
$ObjEventCal->SetCalenderTableInfo($CalenderTblWidth,$CalenderTblBrdrWidth,$CalenderTblBrdrColor,
                                                               
$CalenderTblHeading,$CalenderCellHeight);
   
   
//Define Event Table Properties(Size,Color...)
   
$EventTblTopPosition=73;
   
$EventTblLeftPosition=631;
   
$EventTblWidth=0; //Same Width of Calender
   
$EventTblHeight=240;
   
$ObjEventCal->SetEventTableInfo($EventTblTopPosition,$EventTblLeftPosition,$EventTblWidth,$EventTblHeight);
                               

?>
<htmL>
<body>
Created By: Md. Aminul Islam (aminulsumon@yahoo.com) <br>
<br>
<br>
<table width="5%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FF0000" style="border-collapse:collapse">
  <tr>
    <td><? $ObjEventCal->DrawCalender();?></td>
  </tr>
</table>
</body>
</htmL>


  Files folder image Files  
File Role Description
Accessible without login Plain text file database.sql Data Database Script for Store Events
Plain text file ClsConnection.cls.php Class For Create Database Connction
Accessible without login Plain text file EgClsEventCalender.php Example Example For Event Calender
Plain text file ClsEventCalender.cls.php Class Event Calender Class (Show)
Accessible without login Plain text file events_detail.php Example Details of a Particular Event

 Version Control Unique User Downloads Download Rankings  
 0%
Total:4,736
This week:0
All time:581
This week:100Up
 User Ratings  
 
 All time
Utility:72%StarStarStarStar
Consistency:68%StarStarStarStar
Documentation:-
Examples:68%StarStarStarStar
Tests:-
Videos:-
Overall:50%StarStarStar
Rank:2646