<?
/*
override_demo.php3 - Example of overridding the pcCalendar class
REQUIRES pcCalendar FROM ARTICLE 1468 ON http://www.weberdev.com/
Copyright (c) 2000, Polaris Computing
http://www.polaris.ca/
*/
include( 'pccalendar.php3' );
class myCalendar extends pcCalendar
{
function myCalendar()
{
/* Override the constructor function. Default is to use long names for the days
of the week, but we want a small and cute calendar. */
$this->gaWeekTitles[] = "Su";
$this->gaWeekTitles[] = "Mo";
$this->gaWeekTitles[] = "Tu";
$this->gaWeekTitles[] = "We";
$this->gaWeekTitles[] = "Th";
$this->gaWeekTitles[] = "Fr";
$this->gaWeekTitles[] = "Sa";
}
function intStartTable()
{
/* define how the table should be presented */
echo '<table border=3>';
}
function intDisplayWeekTitle( $intWeekDay )
{
/* define how titles of the week are to be displayed */
echo '<td><font class="font-family: Arial; font-size: 9pt; color: #000000"><b>';
echo $this->gaWeekTitles[ $intWeekDay ];
echo '</b></font></td>';
}
function intDisplayDay( $intDay )
{
/* define how the days of the month are to be displayed */
echo '<td><font class="font-family: Arial; font-size: 8pt; color: #000000">';
echo $intDay;
echo '</font></td>';
}
}
/* no other functions in the pcCalendar need to be overridden. */
/* create new Calendar instance */
$cal = new myCalendar;
/* display calendar for current month & year */
$cal->intShowCalendar();
?>
pcCalendar class - Allows for the creation of calendars in HTML pages. All output functions can be easily overridden, refer to article 1471 for an example.
Categories : PHP , Date Time , Calendar , PHP Classes Customizable Calendar Class Categories : HTML and PHP , Date Time , PHP , PHP Classes , Calendar A PHP Calendar function with CSS : add a cool calendar to any php page by just adding a calendar class based function. Categories : PHP , PHP Classes , Calendar , Date Time This script contains 2 functions: 1 to create html select object based on your own customer date format entry- "M d Y h:i.... etc". The second function processes the select object on submit back to unix time. Categories : PHP , Calendar , Date Time , HTML and PHP Calendar, Kalender, date, time, day, month, year Categories : PHP , Date Time , Calendar Calendars to choose a range of dates , reservation events ... Categories : PHP , Calendar , Java Script , Date Time Calendar using Date function Categories : HTML and PHP , PHP , Date Time , Calendar A Timing Class Categories : PHP , PHP Classes , Date Time PHP Calendar Web App Categories : PHP , Databases , MySQL , Date Time , Calendar Calendar class on the same page , suitable for reservation
Categories : PHP , Calendar , Date Time CALENDAR - easy calendar-navigation with PHP Categories : PHP , Date Time , HTML and PHP , Calendar Count how many weeks in the month have a specified day, such as Mon, Tue, etc. Var avail - number of days - first day name of the month, occurrences of Sun, occurrences of Mon, etc. Allows you to calculate number of working hours exclude Holidays. Categories : Calendar , Date Time , PHP , Databases , MySQL A time measuring and performance benchmarking class Categories : PHP , PHP Classes , Testing , Debugging , Date Time Validator - A PHP class that can can be used for validating Email IDs and Dates Categories : PHP , PHP Classes , Data Validation , Email , Date Time table calendar pretty much does what cal(1) does - prints out a calendar.
Categories : Date Time , PHP , Calendar