WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Example of using the pcCalendar class, article 1468 on weberdev.com. Calendar example.
Categories : PHP, Date Time, PHP Classes, Calendar Update Picture
Seamus Venasse
Date : Jan 05th 2000
Grade : 3 of 5 (graded 3 times)
Viewed : 8468
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Seamus Venasse
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

<?
/*
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
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
Customizable Calendar Class
Categories : HTML and PHP, Date Time, PHP, PHP Classes, Calendar
Calendar using Date function
Categories : HTML and PHP, PHP, Date Time, Calendar
A simple and fast calendar combining PHP and tables. Use this as a base for applications in which a calendar is needed.
Categories : Date Time, PHP, Complete Programs, Calendar
A Timing Class
Categories : PHP, PHP Classes, Date Time
Monthly and Daily Upcoming Events calendar.
Categories : Date Time, PostgreSQL, PHP, Calendar, Databases
Open and Close your website in fixed times .
Categories : PHP, PHP Classes, Cron, Date Time
Functions used to define a schedule of holidays. Can define non-fixed holidays (eg. 3rd sunday of June).
Categories : Calendar, Date Time, PHP
CALENDAR - easy calendar-navigation with PHP
Categories : PHP, Date Time, HTML and PHP, Calendar
Calendars to choose a range of dates , reservation events ...
Categories : PHP, Calendar, Java Script, 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
Validator - A PHP class that can can be used for validating Email IDs and Dates
Categories : PHP, PHP Classes, Data Validation, Email, Date Time
A time measuring and performance benchmarking class
Categories : PHP, PHP Classes, Testing, Debugging, Date Time
Shows the current time as a PNG-image. This script does not use the GD library. You can use it as a benchmark (because it's slow), or as a quick reference for implementing a simple PNG-file generator.
Categories : Graphics, Zlib, Calendar, PHP, Date Time