PHP Classes

File: example.phtml

Recommend this page to a friend!
  Classes of Ricardo Costa   DCalendar   example.phtml   Download  
File: example.phtml
Role: Example script
Content type: text/plain
Description: Example of various views
Class: DCalendar
Show a calendar with options of events color
Author: By
Last change:
Date: 22 years ago
Size: 455 bytes
 

Contents

Class file image Download
<?php
require("inc.date_functions.phtml");
require(
"class.calendar.phtml");
$c = new calendar();
$c->events = Array("2002-10-10", "2002-10-06", "2002-10-29");
$c->events_hint = Array("Reunião com Cliente - 10:00\nJantar com Familia - 20:00", "Dentista - 13:30", "Entregar Relatório - 16:00");

$c->show(1, 1, 1);
print(
"<p><p>");
$c->show(1, 1, 0);
print(
"<p><p>");
$c->show(1, 0, 0);
print(
"<p><p>");
$c->show(0, 0, 0);
print(
"<p><p>");
?>