Login   Register  
PHP Classes
elePHPant
Icontem

File: override_demo.php3

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Seamus Venasse  >  pcCalendar  >  override_demo.php3  >  Download  
File: override_demo.php3
Role: ???
Content type: text/plain
Description: Example of override demo
Class: pcCalendar
Author: By
Last change:
Date: 2000-01-08 04:20
Size: 1,504 bytes
 

Contents

Class file image Download
<?
        include( 'pccalendar.php3' );

        class myCalendar extends pcCalendar
        {
                function myCalendar()
                {
                        $this->gaWeekTitles[] = "Su";
                        $this->gaWeekTitles[] = "Mo";
                        $this->gaWeekTitles[] = "Tu";
                        $this->gaWeekTitles[] = "We";
                        $this->gaWeekTitles[] = "Th";
                        $this->gaWeekTitles[] = "Fr";
                        $this->gaWeekTitles[] = "Sa";
                }

                function intStartTable()
                {
                        echo '<table border=3>';
                }

                function intDisplayWeekTitle( $intWeekDay )
                {
                        echo '<td><font class="font-family: Arial; font-size: 9pt; color: #000000"><b>';
                        echo $this->gaWeekTitles[ $intWeekDay ];
                        echo '</b></font></td>';
                }

                function intDisplayDay( $intYear, $intMonth, $intDay )
                {
                        echo '<td><font class="font-family: Arial; font-size: 8pt; color: #000000">';
                        echo $intDay;
                        echo '</font></td>';
                }
        }

        /* create new Calendar instance */
        $cal = new myCalendar;

        /* display calendar for current month & year */
        $cal->intShowCalendar();

?>