CCALENDAR Applet

CCalendar is a calendar applet. You can use it as a real calendar choosing the global appearence and the photo you want to show.
You can use it as a help for you site's user to entry date in a form field. CCalendar support multilanguage for days and months, the choice of the first day of the week and adds schedule possibility. CCalendar allow you to link event to the days.
If you plan to use CCalendar as a schedule calendar, look at the example 3 for precisions.
CCalendar allows :
  • Display photos associated to each month( example 1 ).
  • Display in the HTML page the date choosen in the date format of your country ( example 2 ).
  • Display a schedule by modify the days colors ( example 3 )
  • Call a javascript function each time a day is clicked ( example 4 ).
  • Associate an event to a day and associate a different URL to each event ( example 3 ).
  • Choose the language and first day of the week in the CCalendar. You can see an example in the example 3.

Index

See example 1 See example 2 See example 3
See example 4 Term of use Parameters
Click here to download ccalendar.zip Applets list History

Terms of use

CCalendar is a FreeWare for non commercial sites.
For professional / commercial use, you will need to obtain a "professional registration". With this registration you can use CCalendar with no reference to me and I will send the complete source to you.
For more information about "Professional registration" : C. Caissotti.

CCalendar parameters

lst_imgString list containing the name of the image you wan to appear in the calendar.The separator is the comma point ( ; ). For example lst_img="img01.gif;img02.gif;img03.gif"
color_fondBackground color
color_fullFull day color. This parameter is very important because it presence make the applet becomes a availability applet. CCalendar verify for each day if a file 'year'.txt ( ex : 1999.txt ) is present. This file contains a line for each month. Each line is a string of '0' and '1', one character for one day. 0 for free day, 1 for full day.
color_full is the color of the full day. Look at example 3 for more information
color_caseColor of the days. Color of free day in planning mode
color_CommentComment color. The comment is the string at the bottom of the applet
color_emptyColor of the empty case. The empty case are case without valuable day
formForm where the field to update is placed
fieldName of the field to update
jvfNale of the javascript function to call. Don't forget the (). See example 4
formatDate format to use in the field. String with
  • 'a' or 'y' for the year
  • 'm' for the month
  • 'd' for the day
  • Other caracters are only copied
The default format is "d/m/y"
strictString to put in the field, instead of the date, when clicking on a full day
nlcNumber of line to keep for the comment rectangle at the bottom of the calendar. The default is 1
day1..day7Support Multilanguage. Enter in these parameters the name of the days in your language. Day1 is Sunday, day7 is Saturday
Example in french
  • param name="day1" value="Dimanche"
  • param name="day2" value="Lundi"
  • param name="day3" value="Mardi"
  • param name="day4" value="Mercredi"
  • param name="day5" value="Jeudi"
  • param name="day6" value="Vendredi"
  • param name="day7" value="Samedi"
month1..month12Support Multilanguage. Enter in these parameters the name of the month in your language. Month1 is January, Month12 is December
Example in french
  • param name="month1" value="Janvier"
  • param name="month2" value="Février"
  • param name="month3" value="Mars"
  • param name="month4" value="Avril"
  • param name="month5" value="Mai"
  • param name="month6" value="Juin"
  • param name="month7" value="Juillet"
  • param name="month8" value="Aout"
  • param name="month9" value="Septembre"
  • param name="month10" value="Octobre"
  • param name="month11" value="Novembre"
  • param name="month12" value="Décembre"
etargetTarget where to show the URL associated to an event in a mulit-frame environment.
color_cdColor of the current day
fwdFirst week of the day. 0=Sunday,1=Monday...Default is 0
dinitFirst date displayed by the calendar. To avoid country date format problem, the date given must be like ddmmyyyy ( example 01012000 for First january 2000 ). The default is the current date
color_sdColor of the selected day

History

March 2001: Add parameter dinit to choose the first date displayed and the color of the selected day.
First january 2001: Modify the way of calculate the first day of a month to correct the bug of IE5.
December 2000: Add a parameter to choose the first day of the week.
November 2000: Add a parameter to display the current day in a different color.
October 2000: Add the possibility to add an different URL to each day associated to an event.
August 2000 : Add a parameter to call javascript functions.
Back to index Home page Write me