PHP Classes
elePHPant
Icontem

File: example.phtml

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of DesK  >  DCalendar fixed  >  example.phtml  >  Download  
File: example.phtml
Role: Example script
Content type: text/plain
Description: example
Class: DCalendar fixed
Show a calendar with options of events color
Author: By
Last change:
Date: 12 years ago
Size: 962 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","2003-10-04");
/*
Changes by DesK
Hi, i make some changes ..
On my maschine .. it dosn't show me the events i add.
the title from given events was not set
so now u have to set the day of the event_hints like this

first the days .. then the hints .. with he index of the day !
$c->events_hint = Array(10 => "Reunião com Cliente - 10:00\nJantar com Familia - 20:00", 06 => "Dentista - 13:30", 29 => "Entregar Relatório - 16:00", 04 => "GEBURTSTAG");

*/
$c->events_hint = Array(10 => "Reunião com Cliente - 10:00\nJantar com Familia - 20:00", 06 => "Dentista - 13:30", 29 => "Entregar Relatório - 16:00", 04 => "GEBURTSTAG");

$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, 1, 0);
print(
"<p><p>");

?>