PHP Classes

File: example.1.php

Recommend this page to a friend!
  Classes of Salettes Rémy   PHPalm Calendar   example.1.php   Download  
File: example.1.php
Role: Example script
Content type: text/plain
Description: 1st example
Class: PHPalm Calendar
Output month calendars with links day detail pages
Author: By
Last change: Comments changed so as to fit with the new feature.
Date: 19 years ago
Size: 748 bytes
 

Contents

Class file image Download
<?php

/* PHPalm - Calendar
 * Example 1 : Display a simple calendar with the current year and month and let you change the month.
 * This is the simplest way of displaying a calendar
 * 02/12/2005
 * Author : Rémy Salettes
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation.
*/


//We include the class
require_once ("calendar.class.php");

//We create an instance of the class
$MyCal = new calendar();

//We call the generate() function, all is in its name
$MyCal->generate();

//We call the draw() function which allow you to display the calendar generated before
$MyCal->draw();

?>