Location: PHPKode > scripts > pcCalendar > pccalendar/override_demo.php3
<?
        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();

?>
Return current item: pcCalendar