Location: PHPKode > scripts > Event calendar class > event-calendar-class/EgClsEventCalender.php
<?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 (hide@address.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>
Return current item: Event calendar class