Monday, 30 December 2013 00:00

Calendar coding in Php

Written by 
Rate this item
(0 votes)

Here is the simple coding on how to code do calendar programming using php..

<?php
$myCalendar = new tc_calendar("date2");
$myCalendar->setIcon("calendar/images/CalendarIcon.png");
$myCalendar->setDate(date('d'), date('m'), date('Y'));
$myCalendar->setPath("calendar/");
$myCalendar->setYearInterval(1890, 2080);

$myCalendar->dateAllow('1890-01-01', '2045-05-01', false);

$myCalendar->setSpecificDate(array("2039-01-10", "2039-01-13", "2039-01-23"), 0, 'month');

$myCalendar->startMonday(true);
$myCalendar->showWeeks(true);  

 //Tooltips
$myCalendar->setToolTips(array("2013-07-02", "2013-07-15", "2013-07-25"), 'test!', '');
$myCalendar->setToolTips(array("2013-06-06", "2013-06-01", "2013-06-05"), '', 'month');
$myCalendar->setToolTips(array("1969-07-06", "2040-07-01", "2013-06-05"), '', 'month');
$myCalendar->setToolTips(array("1969-07-06", "2040-07-01", "2013-06-05") , '', 'month');
$myCalendar->setToolTips(array("1969-07-06", "2040-07-01", "2013-06-05"), '', 'month');
$myCalendar->setToolTips(array("1969-07-06", "2040-07-01", "2013-06-05"), '', 'month');
$myCalendar->setToolTips(array("2013-06-06", "2013-06-11", "2013-06-15"), '', 'month');
$myCalendar->setToolTips(array("2013-07-06", "2013-01-01", "2013-12-25"), '', 'year');
$myCalendar->setToolTips(array("2013-07-06", "2013-07-15", "2013-07-25"), '', '');

$myCalendar->setTimezone("India/Kolkata");
$myCalendar->writeScript();
?>

simple program by
Ultimatecine.com

Read 4930 times Last modified on Monday, 11 August 2014 13:22
sreeram

Email This email address is being protected from spambots. You need JavaScript enabled to view it.

Latest discussions

  • No posts to display.