PHP Classes
elePHPant
Icontem

File: EgClsEventCalender.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Md. Aminul Islam  >  Event calendar  >  EgClsEventCalender.php  >  Download  
File: EgClsEventCalender.php
Role: Example script
Content type: text/plain
Description: Example For Event Calender
Class: Event calendar
Draw Month Calendar Including Events
Author: By
Last change: Perfect Example. Updated two functions data.
Date: 8 years ago
Size: 1,288 bytes
 

Contents

Class file image Download
<?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>