PHP Classes
Icontem

File: example.2.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Salettes Rémy  >  PHPalm Calendar  >  example.2.php  
File: example.2.php
Role: Example script
Content type: text/plain
Description: 2nd example
Class: PHPalm Calendar
Output month calendars with links day detail pages
 

Contents

Class file image Download
<?php

/* PHPalm - Calendar
 * Example 2 : Display a calendar with the current year and month, translated in french that don't allow the user to change the month
 * 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, specifying that we want the current month and year (auto) and the french translation (fr)
//If we had wanted the german translation : $MyCal = new calendar('auto', 'auto', 'de');
$MyCal = new calendar('auto''auto''fr');

//Change not allowed
$MyCal->allow_change 0;

//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();

?>


 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products