Difference: JSCalendarContrib (1 vs. 14)

Revision 142011-07-09 - TWikiContributor

 

JS Calendar Contrib

<--
   Contributions to this contrib package are appreciated. Please update this page at
   http://twiki.org/cgi-bin/view/Plugins/JSCalendarContrib or provide feedback at
   http://twiki.org/cgi-bin/view/Plugins/JSCalendarContribDev.
   If you are a TWiki contributor please update the extension in the SVN repository.
-->
Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications

Introduction

This module packages the Mishoo JSCalendar, a DHTML pop-up calendar in a form suitable for use in TWiki forms and TWiki applications.

Using the Calendar in TWikiForms

This package adds a date type to TWikiForms:

Type Description Size Value
date Single-line text box and a button next to it to pick a date from a popup calendar. The date can also be typed into the text box. The date format can be customized. Text box width in number of characters Initial (default) date

Example form definition:

Name: Type: Size Values: Tooltip message:
Start date date 12 2024-11-23 Select start date

Using the Calendar in user forms

You can also use the calendar directly in your own hand-built forms, without having to write any code. Just add this inline in the topic text:

%INCLUDE{"%SYSTEMWEB%.JSCalendarContribInline"}%
Then, to display a calendar icon next to a text input field:
<input type="text" id="cal_val_here" />
<input type="image" src="%PUBURL%/%SYSTEMWEB%/JSCalendarContrib/img.gif" onclick="javascript: return showCalendar('cal_val_here','%Y-%m-%d')" />
If the contrib is installed, you will see such a field here:

Detailed Documentation

Read the Mishoo documentation or visit the demo page for detailed information on using the calendar widget.

This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the functions:

renderDateForEdit

TWiki::Contrib::JSCalendarContrib::renderDateForEdit($name, $value, $format [, \%cssClass]) -> $html

This is the simplest way to use calendars from a plugin.

  • $name is the name of the CGI parameter for the calendar (it should be unique),
  • $value is the current value of the parameter (may be undef)
  • $format is the format to use (optional; the default is set in configure). The HTML returned will display a date field and a drop-down calendar.
  • \%options is an optional hash containing base options for the textfield.
Example:
use TWiki::Contrib::JSCalendarContrib;
...
my $fromDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'from', '1 April 1999');
my $toDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'to', undef, '%Y');

addHEAD

TWiki::Contrib::JSCalendarContrib::addHEAD($setup)

This function will automatically add the headers for the calendar to the page being rendered. It's intended for use when you want more control over the formatting of your calendars than renderDateForEdit affords. $setup is the name of the calendar setup module; it can either be omitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a Javascript helper function called 'showCalendar' is added that simplifies using calendars to set a value in a text field. For example, say we wanted to display the date with the calendar icon before the text field, using the format %Y %b %e

# Add styles and javascript for the calendar
use TWiki::Contrib::JSCalendarContrib;
...

sub commonTagsHandler {
  ....
  # Enable 'showCalendar'
  TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );

  my $cal = CGI::image_button(
      -name => 'img_datefield',
      -onclick =>
       "return showCalendar('id_datefield','%Y %b %e')",
      -src=> TWiki::Func::getPubUrlPath() . '/' .
             TWiki::Func::getTwikiWebname() .
             '/JSCalendarContrib/img.gif',
      -alt => 'Calendar',
      -align => 'middle' )
    . CGI::textfield(
      { name => 'date', id => "id_datefield" });
  ....
}
The first parameter to showCalendar is the id of the textfield, and the second parameter is the date format. Default format is '%e %B %Y'.

All available date specifiers:

%a - abbreviated weekday name 
%A - full weekday name 
%b - abbreviated month name 
%B - full month name 
%C - century number 
%d - the day of the month ( 00 .. 31 ) 
%e - the day of the month ( 0 .. 31 ) 
%H - hour ( 00 .. 23 ) 
%I - hour ( 01 .. 12 ) 
%j - day of the year ( 000 .. 366 ) 
%k - hour ( 0 .. 23 ) 
%l - hour ( 1 .. 12 ) 
%m - month ( 01 .. 12 ) 
%M - minute ( 00 .. 59 ) 
%n - a newline character 
%p - "PM" or "AM"
%P - "pm" or "am"
%S - second ( 00 .. 59 ) 
%s - number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC) 
%t - a tab character 
%U, %W, %V - the week number
   The week 01 is the week that has the Thursday in the current year,
   which is equivalent to the week that contains the fourth day of January. 
   Weeks start on Monday.
%u - the day of the week ( 1 .. 7, 1 = MON ) 
%w - the day of the week ( 0 .. 6, 0 = SUN ) 
%y - year without the century ( 00 .. 99 ) 
%Y - year including the century ( ex. 1979 ) 
%% - a literal % character 

addHEAD can be called from commonTagsHandler for adding the header to all pages, or from beforeEditHandler just for edit pages etc.

Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.

Like many other TWiki extensions, this module is shipped with a fully automatic installer script written using the BuildContrib.

  • If you have TWiki 4.2 or later, you can install from the configure interface (Go to Plugins->Find More Extensions)
  • If you have any problems, then you can still install manually from the command-line:
    1. Download one of the .zip or .tgz archives
    2. Unpack the archive in the root directory of your TWiki installation.
    3. Run the installer script ( perl <module>_installer )
    4. Run configure and enable the module, if it is a plugin.
    5. Repeat for any missing dependencies.
  • If you are still having problems, then instead of running the installer script:
    1. Make sure that the file permissions allow the webserver user to access all files.
    2. Check in any installed files that have existing ,v files in your existing install (take care not to lock the files when you check in)
    3. Manually edit LocalSite.cfg to set any configuration variables.

  • An administrator can customize the appearance of the calendar by modifying {JSCalendarContrib} settings in the "JSCalendarContrib Settings" section of the configure:
    Setting Default
    $TWiki::cfg{JSCalendarContrib}{format} '%Y-%m-%d'
    $TWiki::cfg{JSCalendarContrib}{lang} 'en'
    $TWiki::cfg{JSCalendarContrib}{style} 'blue'

Contrib Info

  • Set SHORTDESCRIPTION = Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications

Author: TWiki:Main.CrawfordCurrie http://c-dot.co.uk
Copyright: © See the Mishoo documentation for Mishoo JSCalendar
© 2007-2011 TWiki:TWiki.TWikiContributor for TWiki JSCalendarContrib
License: GPL (GNU General Public License)
Dependencies: None
Changed:
<
<
Version: 21601 (2011-08-20)
>
>
Version: 21601 (2012-01-14)
 
Change History:
<-- versions below in reverse order -->
 
2011-07-08: TWikibug:Item6725: Change global package variables from "use vars" to "our" -- TWiki:Main.PeterThoeny
2010-12-03: TWikibug:Item6609: In TWikiForms type table, automatically list the date form field type defined in this contrib -- TWiki:Main.PeterThoeny
2010-11-17: TWikibug:Item6530: Doc fixes: Changing TWIKIWEB to SYSTEMWEB
2010-11-04: TWikibug:Item6603: Add transparent image for nicer date button in TWiki Forms
2010-05-16: TWikibug:Item6433: Doc improvements
2009-04-27 TWikibug:Item6254 Adding "JSCalendarContrib Settings" section to configure; changing default to ISO date format; improved documentation (TWiki:Main/PeterThoeny)
2008-09-10 TWikibug:Item5991 Applied patch to fix rendering on IE7
2007-09-06 TWikibug:Item4030 Added doc for using the calendar in user forms
13603 TWikibug:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface
11594 Allow format to be configured.
11415 Add a renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert)
10247 TWikibug:Item2054 put the calendar at z-index 2000, way above pattern skin divs.
6634 TWikibug:Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
6626 TWikibug:Item468 updated docs for Dakar release
5048 Cairo readiness
5039 Split from SharedCode
27 Dec 2005 updated to calendar version 1.0; set style for Safari to win2k-1
14 Aug 2004 Separated out from SharedCode module
Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal

Related Topics: TWikiPreferences, TWikiForms

META FILEATTACHMENT attachment="screenshot-small.png" attr="h" comment="" date="1291363747" name="screenshot-small.png" path="screenshot-small.png" size="22317" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="screenshot.png" attr="h" comment="" date="1291364339" name="screenshot.png" path="screenshot.png" size="20920" user="TWikiContributor" version="1"

Revision 132011-07-09 - TWikiContributor

 

JS Calendar Contrib

<--
   Contributions to this contrib package are appreciated. Please update this page at
   http://twiki.org/cgi-bin/view/Plugins/JSCalendarContrib or provide feedback at
   http://twiki.org/cgi-bin/view/Plugins/JSCalendarContribDev.
   If you are a TWiki contributor please update the extension in the SVN repository.
-->
Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications

Introduction

This module packages the Mishoo JSCalendar, a DHTML pop-up calendar in a form suitable for use in TWiki forms and TWiki applications.

Using the Calendar in TWikiForms

This package adds a date type to TWikiForms:

Type Description Size Value
date Single-line text box and a button next to it to pick a date from a popup calendar. The date can also be typed into the text box. The date format can be customized. Text box width in number of characters Initial (default) date

Example form definition:

Name: Type: Size Values: Tooltip message:
Start date date 12 2024-11-23 Select start date

Using the Calendar in user forms

You can also use the calendar directly in your own hand-built forms, without having to write any code. Just add this inline in the topic text:

%INCLUDE{"%SYSTEMWEB%.JSCalendarContribInline"}%
Then, to display a calendar icon next to a text input field:
<input type="text" id="cal_val_here" />
<input type="image" src="%PUBURL%/%SYSTEMWEB%/JSCalendarContrib/img.gif" onclick="javascript: return showCalendar('cal_val_here','%Y-%m-%d')" />
If the contrib is installed, you will see such a field here:

Detailed Documentation

Read the Mishoo documentation or visit the demo page for detailed information on using the calendar widget.

This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the functions:

renderDateForEdit

TWiki::Contrib::JSCalendarContrib::renderDateForEdit($name, $value, $format [, \%cssClass]) -> $html

This is the simplest way to use calendars from a plugin.

  • $name is the name of the CGI parameter for the calendar (it should be unique),
  • $value is the current value of the parameter (may be undef)
  • $format is the format to use (optional; the default is set in configure). The HTML returned will display a date field and a drop-down calendar.
  • \%options is an optional hash containing base options for the textfield.
Example:
use TWiki::Contrib::JSCalendarContrib;
...
my $fromDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'from', '1 April 1999');
my $toDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'to', undef, '%Y');

addHEAD

TWiki::Contrib::JSCalendarContrib::addHEAD($setup)

This function will automatically add the headers for the calendar to the page being rendered. It's intended for use when you want more control over the formatting of your calendars than renderDateForEdit affords. $setup is the name of the calendar setup module; it can either be omitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a Javascript helper function called 'showCalendar' is added that simplifies using calendars to set a value in a text field. For example, say we wanted to display the date with the calendar icon before the text field, using the format %Y %b %e

# Add styles and javascript for the calendar
use TWiki::Contrib::JSCalendarContrib;
...

sub commonTagsHandler {
  ....
  # Enable 'showCalendar'
  TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );

  my $cal = CGI::image_button(
      -name => 'img_datefield',
      -onclick =>
       "return showCalendar('id_datefield','%Y %b %e')",
      -src=> TWiki::Func::getPubUrlPath() . '/' .
             TWiki::Func::getTwikiWebname() .
             '/JSCalendarContrib/img.gif',
      -alt => 'Calendar',
      -align => 'middle' )
    . CGI::textfield(
      { name => 'date', id => "id_datefield" });
  ....
}
The first parameter to showCalendar is the id of the textfield, and the second parameter is the date format. Default format is '%e %B %Y'.

All available date specifiers:

%a - abbreviated weekday name 
%A - full weekday name 
%b - abbreviated month name 
%B - full month name 
%C - century number 
%d - the day of the month ( 00 .. 31 ) 
%e - the day of the month ( 0 .. 31 ) 
%H - hour ( 00 .. 23 ) 
%I - hour ( 01 .. 12 ) 
%j - day of the year ( 000 .. 366 ) 
%k - hour ( 0 .. 23 ) 
%l - hour ( 1 .. 12 ) 
%m - month ( 01 .. 12 ) 
%M - minute ( 00 .. 59 ) 
%n - a newline character 
%p - "PM" or "AM"
%P - "pm" or "am"
%S - second ( 00 .. 59 ) 
%s - number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC) 
%t - a tab character 
%U, %W, %V - the week number
   The week 01 is the week that has the Thursday in the current year,
   which is equivalent to the week that contains the fourth day of January. 
   Weeks start on Monday.
%u - the day of the week ( 1 .. 7, 1 = MON ) 
%w - the day of the week ( 0 .. 6, 0 = SUN ) 
%y - year without the century ( 00 .. 99 ) 
%Y - year including the century ( ex. 1979 ) 
%% - a literal % character 

addHEAD can be called from commonTagsHandler for adding the header to all pages, or from beforeEditHandler just for edit pages etc.

Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.

Like many other TWiki extensions, this module is shipped with a fully automatic installer script written using the BuildContrib.

  • If you have TWiki 4.2 or later, you can install from the configure interface (Go to Plugins->Find More Extensions)
  • If you have any problems, then you can still install manually from the command-line:
    1. Download one of the .zip or .tgz archives
    2. Unpack the archive in the root directory of your TWiki installation.
    3. Run the installer script ( perl <module>_installer )
    4. Run configure and enable the module, if it is a plugin.
    5. Repeat for any missing dependencies.
  • If you are still having problems, then instead of running the installer script:
    1. Make sure that the file permissions allow the webserver user to access all files.
    2. Check in any installed files that have existing ,v files in your existing install (take care not to lock the files when you check in)
    3. Manually edit LocalSite.cfg to set any configuration variables.

  • An administrator can customize the appearance of the calendar by modifying {JSCalendarContrib} settings in the "JSCalendarContrib Settings" section of the configure:
    Setting Default
    $TWiki::cfg{JSCalendarContrib}{format} '%Y-%m-%d'
    $TWiki::cfg{JSCalendarContrib}{lang} 'en'
    $TWiki::cfg{JSCalendarContrib}{style} 'blue'

Contrib Info

  • Set SHORTDESCRIPTION = Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications
Changed:
<
<
Author: TWiki:Main/CrawfordCurrie http://c-dot.co.uk
Copyright: © See the Mishoo documentation for Mishoo JSCalendar
© 2007-2010 TWiki:TWiki/TWikiContributor for TWiki JSCalendarContrib
>
>
Author: TWiki:Main.CrawfordCurrie http://c-dot.co.uk
Copyright: © See the Mishoo documentation for Mishoo JSCalendar
© 2007-2011 TWiki:TWiki.TWikiContributor for TWiki JSCalendarContrib
 
License: GPL (GNU General Public License)
Dependencies: None
Changed:
<
<
Version: 20893 (2011-05-03)
>
>
Version: 21601 (2011-08-20)
 
Change History:
<-- versions below in reverse order -->
 
Added:
>
>
2011-07-08: TWikibug:Item6725: Change global package variables from "use vars" to "our" -- TWiki:Main.PeterThoeny
 
2010-12-03: TWikibug:Item6609: In TWikiForms type table, automatically list the date form field type defined in this contrib -- TWiki:Main.PeterThoeny
2010-11-17: TWikibug:Item6530: Doc fixes: Changing TWIKIWEB to SYSTEMWEB
2010-11-04: TWikibug:Item6603: Add transparent image for nicer date button in TWiki Forms
2010-05-16: TWikibug:Item6433: Doc improvements
2009-04-27 TWikibug:Item6254 Adding "JSCalendarContrib Settings" section to configure; changing default to ISO date format; improved documentation (TWiki:Main/PeterThoeny)
2008-09-10 TWikibug:Item5991 Applied patch to fix rendering on IE7
2007-09-06 TWikibug:Item4030 Added doc for using the calendar in user forms
13603 TWikibug:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface
11594 Allow format to be configured.
11415 Add a renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert)
10247 TWikibug:Item2054 put the calendar at z-index 2000, way above pattern skin divs.
6634 TWikibug:Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
6626 TWikibug:Item468 updated docs for Dakar release
5048 Cairo readiness
5039 Split from SharedCode
27 Dec 2005 updated to calendar version 1.0; set style for Safari to win2k-1
14 Aug 2004 Separated out from SharedCode module
Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal

Related Topics: TWikiPreferences, TWikiForms

META FILEATTACHMENT attachment="screenshot-small.png" attr="h" comment="" date="1291363747" name="screenshot-small.png" path="screenshot-small.png" size="22317" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="screenshot.png" attr="h" comment="" date="1291364339" name="screenshot.png" path="screenshot.png" size="20920" user="TWikiContributor" version="1"

Revision 122010-12-03 - TWikiContributor

 

JS Calendar Contrib

<--
   Contributions to this contrib package are appreciated. Please update this page at
   http://twiki.org/cgi-bin/view/Plugins/JSCalendarContrib or provide feedback at
   http://twiki.org/cgi-bin/view/Plugins/JSCalendarContribDev.
   If you are a TWiki contributor please update the extension in the SVN repository.
-->
Added:
>
>
 
Changed:
<
<
>
>
 
Changed:
<
<
>
>
Added:
>
>
 Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications

Introduction

This module packages the Mishoo JSCalendar, a DHTML pop-up calendar in a form suitable for use in TWiki forms and TWiki applications.

Added:
>
>

Using the Calendar in TWikiForms

This package adds a date type to TWikiForms:

Type Description Size Value
date Single-line text box and a button next to it to pick a date from a popup calendar. The date can also be typed into the text box. The date format can be customized. Text box width in number of characters Initial (default) date

Example form definition:

Name: Type: Size Values: Tooltip message:
Start date date 12 2024-11-23 Select start date
 

Using the Calendar in user forms

You can also use the calendar directly in your own hand-built forms, without having to write any code. Just add this inline in the topic text:

%INCLUDE{"%SYSTEMWEB%.JSCalendarContribInline"}%
Then, to display a calendar icon next to a text input field:
<input type="text" id="cal_val_here" />
<input type="image" src="%PUBURL%/%SYSTEMWEB%/JSCalendarContrib/img.gif" onclick="javascript: return showCalendar('cal_val_here','%Y-%m-%d')" />
If the contrib is installed, you will see such a field here:

Detailed Documentation

Read the Mishoo documentation or visit the demo page for detailed information on using the calendar widget.

This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the functions:

renderDateForEdit

TWiki::Contrib::JSCalendarContrib::renderDateForEdit($name, $value, $format [, \%cssClass]) -> $html

This is the simplest way to use calendars from a plugin.

  • $name is the name of the CGI parameter for the calendar (it should be unique),
  • $value is the current value of the parameter (may be undef)
  • $format is the format to use (optional; the default is set in configure). The HTML returned will display a date field and a drop-down calendar.
  • \%options is an optional hash containing base options for the textfield.
Example:
use TWiki::Contrib::JSCalendarContrib;
...
my $fromDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'from', '1 April 1999');
my $toDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'to', undef, '%Y');

addHEAD

TWiki::Contrib::JSCalendarContrib::addHEAD($setup)

This function will automatically add the headers for the calendar to the page being rendered. It's intended for use when you want more control over the formatting of your calendars than renderDateForEdit affords. $setup is the name of the calendar setup module; it can either be omitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a Javascript helper function called 'showCalendar' is added that simplifies using calendars to set a value in a text field. For example, say we wanted to display the date with the calendar icon before the text field, using the format %Y %b %e

# Add styles and javascript for the calendar
use TWiki::Contrib::JSCalendarContrib;
...

sub commonTagsHandler {
  ....
  # Enable 'showCalendar'
  TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );

  my $cal = CGI::image_button(
      -name => 'img_datefield',
      -onclick =>
       "return showCalendar('id_datefield','%Y %b %e')",
      -src=> TWiki::Func::getPubUrlPath() . '/' .
             TWiki::Func::getTwikiWebname() .
             '/JSCalendarContrib/img.gif',
      -alt => 'Calendar',
      -align => 'middle' )
    . CGI::textfield(
      { name => 'date', id => "id_datefield" });
  ....
}
The first parameter to showCalendar is the id of the textfield, and the second parameter is the date format. Default format is '%e %B %Y'.

All available date specifiers:

%a - abbreviated weekday name 
%A - full weekday name 
%b - abbreviated month name 
%B - full month name 
%C - century number 
%d - the day of the month ( 00 .. 31 ) 
%e - the day of the month ( 0 .. 31 ) 
%H - hour ( 00 .. 23 ) 
%I - hour ( 01 .. 12 ) 
%j - day of the year ( 000 .. 366 ) 
%k - hour ( 0 .. 23 ) 
%l - hour ( 1 .. 12 ) 
%m - month ( 01 .. 12 ) 
%M - minute ( 00 .. 59 ) 
%n - a newline character 
%p - "PM" or "AM"
%P - "pm" or "am"
%S - second ( 00 .. 59 ) 
%s - number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC) 
%t - a tab character 
%U, %W, %V - the week number
   The week 01 is the week that has the Thursday in the current year,
   which is equivalent to the week that contains the fourth day of January. 
   Weeks start on Monday.
%u - the day of the week ( 1 .. 7, 1 = MON ) 
%w - the day of the week ( 0 .. 6, 0 = SUN ) 
%y - year without the century ( 00 .. 99 ) 
%Y - year including the century ( ex. 1979 ) 
%% - a literal % character 

addHEAD can be called from commonTagsHandler for adding the header to all pages, or from beforeEditHandler just for edit pages etc.

Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.

Like many other TWiki extensions, this module is shipped with a fully automatic installer script written using the BuildContrib.

  • If you have TWiki 4.2 or later, you can install from the configure interface (Go to Plugins->Find More Extensions)
  • If you have any problems, then you can still install manually from the command-line:
    1. Download one of the .zip or .tgz archives
    2. Unpack the archive in the root directory of your TWiki installation.
    3. Run the installer script ( perl <module>_installer )
    4. Run configure and enable the module, if it is a plugin.
    5. Repeat for any missing dependencies.
  • If you are still having problems, then instead of running the installer script:
    1. Make sure that the file permissions allow the webserver user to access all files.
    2. Check in any installed files that have existing ,v files in your existing install (take care not to lock the files when you check in)
    3. Manually edit LocalSite.cfg to set any configuration variables.

  • An administrator can customize the appearance of the calendar by modifying {JSCalendarContrib} settings in the "JSCalendarContrib Settings" section of the configure:
    Setting Default
    $TWiki::cfg{JSCalendarContrib}{format} '%Y-%m-%d'
    $TWiki::cfg{JSCalendarContrib}{lang} 'en'
    $TWiki::cfg{JSCalendarContrib}{style} 'blue'

Contrib Info

  • Set SHORTDESCRIPTION = Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications

Author: TWiki:Main/CrawfordCurrie http://c-dot.co.uk
Copyright: © See the Mishoo documentation for Mishoo JSCalendar
© 2007-2010 TWiki:TWiki/TWikiContributor for TWiki JSCalendarContrib
License: GPL (GNU General Public License)
Dependencies: None
Changed:
<
<
Version: 18831 (2010-05-29)
>
>
Version: 20893 (2011-05-03)
 
Change History:
<-- versions below in reverse order -->
 
Changed:
<
<
2010-05-16: TWikibug:Item6433 - doc improvements
>
>
2010-12-03: TWikibug:Item6609: In TWikiForms type table, automatically list the date form field type defined in this contrib -- TWiki:Main.PeterThoeny
Added:
>
>
2010-11-17: TWikibug:Item6530: Doc fixes: Changing TWIKIWEB to SYSTEMWEB
2010-11-04: TWikibug:Item6603: Add transparent image for nicer date button in TWiki Forms
2010-05-16: TWikibug:Item6433: Doc improvements
 
2009-04-27 TWikibug:Item6254 Adding "JSCalendarContrib Settings" section to configure; changing default to ISO date format; improved documentation (TWiki:Main/PeterThoeny)
2008-09-10 TWikibug:Item5991 Applied patch to fix rendering on IE7
2007-09-06 TWikibug:Item4030 Added doc for using the calendar in user forms
13603 TWikibug:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface
11594 Allow format to be configured.
11415 Add a renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert)
10247 TWikibug:Item2054 put the calendar at z-index 2000, way above pattern skin divs.
6634 TWikibug:Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
6626 TWikibug:Item468 updated docs for Dakar release
5048 Cairo readiness
5039 Split from SharedCode
27 Dec 2005 updated to calendar version 1.0; set style for Safari to win2k-1
14 Aug 2004 Separated out from SharedCode module
Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal

Related Topics: TWikiPreferences, TWikiForms

Changed:
<
<
META FILEATTACHMENT attachment="screenshot.gif" attr="h" comment="" date="1274067851" name="screenshot.gif" path="screenshot.gif" size="8912" user="TWikiContributor" version="1"
>
>
META FILEATTACHMENT attachment="screenshot-small.png" attr="h" comment="" date="1291363747" name="screenshot-small.png" path="screenshot-small.png" size="22317" user="TWikiContributor" version="1"
Added:
>
>
META FILEATTACHMENT attachment="screenshot.png" attr="h" comment="" date="1291364339" name="screenshot.png" path="screenshot.png" size="20920" user="TWikiContributor" version="1"
 

Revision 112010-05-17 - TWikiContributor

Added:
>
>

JS Calendar Contrib

 
Changed:
<
<

JS Calendar Contrib

>
>
Deleted:
<
<
This module packages the Mishoo JSCalendar, a DHTML pop-up calendar in a form suitable for use in TWiki forms and TWiki applications.
 
Added:
>
>
Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications
 
Added:
>
>

Introduction

This module packages the Mishoo JSCalendar, a DHTML pop-up calendar in a form suitable for use in TWiki forms and TWiki applications.

 

Using the Calendar in user forms

You can also use the calendar directly in your own hand-built forms, without having to write any code. Just add this inline in the topic text:

%INCLUDE{"%SYSTEMWEB%.JSCalendarContribInline"}%
Then, to display a calendar icon next to a text input field:
<input type="text" id="cal_val_here" />
<input type="image" src="%PUBURL%/%SYSTEMWEB%/JSCalendarContrib/img.gif" onclick="javascript: return showCalendar('cal_val_here','%Y-%m-%d')" />
If the contrib is installed, you will see such a field here:

Detailed Documentation

Read the Mishoo documentation or visit the demo page for detailed information on using the calendar widget.

This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the functions:

Changed:
<
<

TWiki::Contrib::JSCalendarContrib::renderDateForEdit($name, $value, $format [, \%cssClass]) -> $html

>
>

renderDateForEdit

 
Added:
>
>
TWiki::Contrib::JSCalendarContrib::renderDateForEdit($name, $value, $format [, \%cssClass]) -> $html
 This is the simplest way to use calendars from a plugin.
  • $name is the name of the CGI parameter for the calendar (it should be unique),
  • $value is the current value of the parameter (may be undef)
  • $format is the format to use (optional; the default is set in configure). The HTML returned will display a date field and a drop-down calendar.
  • \%options is an optional hash containing base options for the textfield.
Example:
use TWiki::Contrib::JSCalendarContrib;
...
my $fromDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'from', '1 April 1999');
my $toDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'to', undef, '%Y');
Changed:
<
<

TWiki::Contrib::JSCalendarContrib::addHEAD($setup)

>
>

addHEAD

 
Added:
>
>
TWiki::Contrib::JSCalendarContrib::addHEAD($setup)
 This function will automatically add the headers for the calendar to the page being rendered. It's intended for use when you want more control over the formatting of your calendars than renderDateForEdit affords. $setup is the name of the calendar setup module; it can either be omitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a Javascript helper function called 'showCalendar' is added that simplifies using calendars to set a value in a text field. For example, say we wanted to display the date with the calendar icon before the text field, using the format %Y %b %e
# Add styles and javascript for the calendar
use TWiki::Contrib::JSCalendarContrib;
...

sub commonTagsHandler {
  ....
  # Enable 'showCalendar'
  TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );

  my $cal = CGI::image_button(
      -name => 'img_datefield',
      -onclick =>
       "return showCalendar('id_datefield','%Y %b %e')",
      -src=> TWiki::Func::getPubUrlPath() . '/' .
             TWiki::Func::getTwikiWebname() .
             '/JSCalendarContrib/img.gif',
      -alt => 'Calendar',
      -align => 'middle' )
    . CGI::textfield(
      { name => 'date', id => "id_datefield" });
  ....
}
The first parameter to showCalendar is the id of the textfield, and the second parameter is the date format. Default format is '%e %B %Y'.

All available date specifiers:

%a - abbreviated weekday name 
%A - full weekday name 
%b - abbreviated month name 
%B - full month name 
%C - century number 
%d - the day of the month ( 00 .. 31 ) 
%e - the day of the month ( 0 .. 31 ) 
%H - hour ( 00 .. 23 ) 
%I - hour ( 01 .. 12 ) 
%j - day of the year ( 000 .. 366 ) 
%k - hour ( 0 .. 23 ) 
%l - hour ( 1 .. 12 ) 
%m - month ( 01 .. 12 ) 
%M - minute ( 00 .. 59 ) 
%n - a newline character 
%p - "PM" or "AM"
%P - "pm" or "am"
%S - second ( 00 .. 59 ) 
%s - number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC) 
%t - a tab character 
%U, %W, %V - the week number
   The week 01 is the week that has the Thursday in the current year,
   which is equivalent to the week that contains the fourth day of January. 
   Weeks start on Monday.
%u - the day of the week ( 1 .. 7, 1 = MON ) 
%w - the day of the week ( 0 .. 6, 0 = SUN ) 
%y - year without the century ( 00 .. 99 ) 
%Y - year including the century ( ex. 1979 ) 
%% - a literal % character 

addHEAD can be called from commonTagsHandler for adding the header to all pages, or from beforeEditHandler just for edit pages etc.

Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.

Like many other TWiki extensions, this module is shipped with a fully automatic installer script written using the BuildContrib.

  • If you have TWiki 4.2 or later, you can install from the configure interface (Go to Plugins->Find More Extensions)
  • If you have any problems, then you can still install manually from the command-line:
    1. Download one of the .zip or .tgz archives
    2. Unpack the archive in the root directory of your TWiki installation.
    3. Run the installer script ( perl <module>_installer )
    4. Run configure and enable the module, if it is a plugin.
    5. Repeat for any missing dependencies.
  • If you are still having problems, then instead of running the installer script:
    1. Make sure that the file permissions allow the webserver user to access all files.
    2. Check in any installed files that have existing ,v files in your existing install (take care not to lock the files when you check in)
    3. Manually edit LocalSite.cfg to set any configuration variables.

  • An administrator can customize the appearance of the calendar by modifying {JSCalendarContrib} settings in the "JSCalendarContrib Settings" section of the configure:
    Setting Default
    $TWiki::cfg{JSCalendarContrib}{format} '%Y-%m-%d'
    $TWiki::cfg{JSCalendarContrib}{lang} 'en'
    $TWiki::cfg{JSCalendarContrib}{style} 'blue'

Contrib Info

  • Set SHORTDESCRIPTION = Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications

Author: TWiki:Main/CrawfordCurrie http://c-dot.co.uk
Changed:
<
<
Version: 18048 (02 Sep 2009) of the Mishoo calendar
>
>
Copyright: © See the Mishoo documentation for Mishoo JSCalendar
© 2007-2010 TWiki:TWiki/TWikiContributor for TWiki JSCalendarContrib
Deleted:
<
<
Copyright ©: See the Mishoo documentation
 
License: GPL (GNU General Public License)
Dependencies: None
Changed:
<
<
Change History:  
>
>
Version: 18831 (2010-05-29)
Added:
>
>
Change History:
<-- versions below in reverse order -->
 
2010-05-16: TWikibug:Item6433 - doc improvements
 
2009-04-27 TWikibug:Item6254 Adding "JSCalendarContrib Settings" section to configure; changing default to ISO date format; improved documentation (TWiki:Main/PeterThoeny)
2008-09-10 TWikibug:Item5991 Applied patch to fix rendering on IE7
2007-09-06 TWikibug:Item4030 Added doc for using the calendar in user forms
13603 TWikibug:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface
11594 Allow format to be configured.
11415 Add a renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert)
10247 TWikibug:Item2054 put the calendar at z-index 2000, way above pattern skin divs.
6634 TWikibug:Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
6626 TWikibug:Item468 updated docs for Dakar release
5048 Cairo readiness
5039 Split from SharedCode
27 Dec 2005 updated to calendar version 1.0; set style for Safari to win2k-1
14 Aug 2004 Separated out from SharedCode module
Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal

Related Topics: TWikiPreferences, TWikiForms

Changed:
<
<
META FILEATTACHMENT attr="h" comment="" name="screenshot.gif" version="1"
>
>
META FILEATTACHMENT attachment="screenshot.gif" attr="h" comment="" date="1274067851" name="screenshot.gif" path="screenshot.gif" size="8912" user="TWikiContributor" version="1"
 

Revision 102009-04-28 - TWikiContributor

 
<--
   Contributions to this contrib package are appreciated. Please update this page
   at http://twiki.org/cgi-bin/view/Plugins/JSCalendarContrib or provide feedback
   at http://twiki.org/cgi-bin/view/Plugins/JSCalendarContribDev.
   If you are a TWiki contributor please update the extension in the SVN repository.
-->

JS Calendar Contrib

This module packages the Mishoo JSCalendar, a DHTML pop-up calendar in a form suitable for use in TWiki forms and TWiki applications.

Using the Calendar in user forms

You can also use the calendar directly in your own hand-built forms, without having to write any code. Just add this inline in the topic text:

%INCLUDE{"%SYSTEMWEB%.JSCalendarContribInline"}%
Then, to display a calendar icon next to a text input field:
<input type="text" id="cal_val_here" />
<input type="image" src="%PUBURL%/%SYSTEMWEB%/JSCalendarContrib/img.gif" onclick="javascript: return showCalendar('cal_val_here','%Y-%m-%d')" />
If the contrib is installed, you will see such a field here:

Detailed Documentation

Read the Mishoo documentation or visit the demo page for detailed information on using the calendar widget.

This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the functions:

TWiki::Contrib::JSCalendarContrib::renderDateForEdit($name, $value, $format [, \%cssClass]) -> $html

This is the simplest way to use calendars from a plugin.

  • $name is the name of the CGI parameter for the calendar (it should be unique),
  • $value is the current value of the parameter (may be undef)
  • $format is the format to use (optional; the default is set in configure). The HTML returned will display a date field and a drop-down calendar.
  • \%options is an optional hash containing base options for the textfield.
Example:
use TWiki::Contrib::JSCalendarContrib;
...
my $fromDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'from', '1 April 1999');
my $toDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'to', undef, '%Y');

TWiki::Contrib::JSCalendarContrib::addHEAD($setup)

This function will automatically add the headers for the calendar to the page being rendered. It's intended for use when you want more control over the formatting of your calendars than renderDateForEdit affords. $setup is the name of the calendar setup module; it can either be omitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a Javascript helper function called 'showCalendar' is added that simplifies using calendars to set a value in a text field. For example, say we wanted to display the date with the calendar icon before the text field, using the format %Y %b %e

# Add styles and javascript for the calendar
use TWiki::Contrib::JSCalendarContrib;
...

sub commonTagsHandler {
  ....
  # Enable 'showCalendar'
  TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );

  my $cal = CGI::image_button(
      -name => 'img_datefield',
      -onclick =>
       "return showCalendar('id_datefield','%Y %b %e')",
      -src=> TWiki::Func::getPubUrlPath() . '/' .
             TWiki::Func::getTwikiWebname() .
             '/JSCalendarContrib/img.gif',
      -alt => 'Calendar',
      -align => 'middle' )
    . CGI::textfield(
      { name => 'date', id => "id_datefield" });
  ....
}
The first parameter to showCalendar is the id of the textfield, and the second parameter is the date format. Default format is '%e %B %Y'.

All available date specifiers:

%a - abbreviated weekday name 
%A - full weekday name 
%b - abbreviated month name 
%B - full month name 
%C - century number 
%d - the day of the month ( 00 .. 31 ) 
%e - the day of the month ( 0 .. 31 ) 
%H - hour ( 00 .. 23 ) 
%I - hour ( 01 .. 12 ) 
%j - day of the year ( 000 .. 366 ) 
%k - hour ( 0 .. 23 ) 
%l - hour ( 1 .. 12 ) 
%m - month ( 01 .. 12 ) 
%M - minute ( 00 .. 59 ) 
%n - a newline character 
%p - "PM" or "AM"
%P - "pm" or "am"
%S - second ( 00 .. 59 ) 
%s - number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC) 
%t - a tab character 
%U, %W, %V - the week number
   The week 01 is the week that has the Thursday in the current year,
   which is equivalent to the week that contains the fourth day of January. 
   Weeks start on Monday.
%u - the day of the week ( 1 .. 7, 1 = MON ) 
%w - the day of the week ( 0 .. 6, 0 = SUN ) 
%y - year without the century ( 00 .. 99 ) 
%Y - year including the century ( ex. 1979 ) 
%% - a literal % character 

addHEAD can be called from commonTagsHandler for adding the header to all pages, or from beforeEditHandler just for edit pages etc.

Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.

Like many other TWiki extensions, this module is shipped with a fully automatic installer script written using the BuildContrib.

  • If you have TWiki 4.2 or later, you can install from the configure interface (Go to Plugins->Find More Extensions)
  • If you have any problems, then you can still install manually from the command-line:
    1. Download one of the .zip or .tgz archives
    2. Unpack the archive in the root directory of your TWiki installation.
    3. Run the installer script ( perl <module>_installer )
    4. Run configure and enable the module, if it is a plugin.
    5. Repeat for any missing dependencies.
  • If you are still having problems, then instead of running the installer script:
    1. Make sure that the file permissions allow the webserver user to access all files.
    2. Check in any installed files that have existing ,v files in your existing install (take care not to lock the files when you check in)
    3. Manually edit LocalSite.cfg to set any configuration variables.

  • An administrator can customize the appearance of the calendar by modifying {JSCalendarContrib} settings in the "JSCalendarContrib Settings" section of the configure:
    Setting Default
    $TWiki::cfg{JSCalendarContrib}{format} '%Y-%m-%d'
    $TWiki::cfg{JSCalendarContrib}{lang} 'en'
    $TWiki::cfg{JSCalendarContrib}{style} 'blue'

Contrib Info

  • Set SHORTDESCRIPTION = Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications

Author: TWiki:Main/CrawfordCurrie http://c-dot.co.uk
Changed:
<
<
Version: 18048 (29 Apr 2009) of the Mishoo calendar
>
>
Version: 18048 (02 Sep 2009) of the Mishoo calendar
 
Copyright ©: See the Mishoo documentation
License: GPL (GNU General Public License)
Dependencies: None
Change History:  
2009-04-27 TWikibug:Item6254 Adding "JSCalendarContrib Settings" section to configure; changing default to ISO date format; improved documentation (TWiki:Main/PeterThoeny)
2008-09-10 TWikibug:Item5991 Applied patch to fix rendering on IE7
2007-09-06 TWikibug:Item4030 Added doc for using the calendar in user forms
13603 TWikibug:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface
11594 Allow format to be configured.
11415 Add a renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert)
10247 TWikibug:Item2054 put the calendar at z-index 2000, way above pattern skin divs.
6634 TWikibug:Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
6626 TWikibug:Item468 updated docs for Dakar release
5048 Cairo readiness
5039 Split from SharedCode
27 Dec 2005 updated to calendar version 1.0; set style for Safari to win2k-1
14 Aug 2004 Separated out from SharedCode module
Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal

Related Topics: TWikiPreferences, TWikiForms

META FILEATTACHMENT attr="h" comment="" name="screenshot.gif" version="1"

Revision 92009-04-28 - TWikiContributor

Deleted:
<
<

Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications

 
Added:
>
>

JS Calendar Contrib

This module packages the Mishoo JSCalendar, a DHTML pop-up calendar in a form suitable for use in TWiki forms and TWiki applications.
 
Changed:
<
<

Summary of Contents

>
>

Using the Calendar in user forms

Deleted:
<
<
This module packages the Mishoo JSCalendar Javascript in a form suitable for use with TWiki.
 
Added:
>
>
You can also use the calendar directly in your own hand-built forms, without having to write any code. Just add this inline in the topic text:
%INCLUDE{"%SYSTEMWEB%.JSCalendarContribInline"}%
Then, to display a calendar icon next to a text input field:
<input type="text" id="cal_val_here" />
<input type="image" src="%PUBURL%/%SYSTEMWEB%/JSCalendarContrib/img.gif" onclick="javascript: return showCalendar('cal_val_here','%Y-%m-%d')" />
If the contrib is installed, you will see such a field here:

 

Detailed Documentation

Added:
>
>
 Read the Mishoo documentation or visit the demo page for detailed information on using the calendar widget.

This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the functions:

TWiki::Contrib::JSCalendarContrib::renderDateForEdit($name, $value, $format [, \%cssClass]) -> $html

This is the simplest way to use calendars from a plugin.

  • $name is the name of the CGI parameter for the calendar (it should be unique),
  • $value is the current value of the parameter (may be undef)
  • $format is the format to use (optional; the default is set in configure). The HTML returned will display a date field and a drop-down calendar.
  • \%options is an optional hash containing base options for the textfield.
Example:
use TWiki::Contrib::JSCalendarContrib;
...
my $fromDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'from', '1 April 1999');
my $toDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'to', undef, '%Y');

TWiki::Contrib::JSCalendarContrib::addHEAD($setup)

This function will automatically add the headers for the calendar to the page being rendered. It's intended for use when you want more control over the formatting of your calendars than renderDateForEdit affords. $setup is the name of the calendar setup module; it can either be omitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a Javascript helper function called 'showCalendar' is added that simplifies using calendars to set a value in a text field. For example, say we wanted to display the date with the calendar icon before the text field, using the format %Y %b %e

# Add styles and javascript for the calendar
use TWiki::Contrib::JSCalendarContrib;
...

sub commonTagsHandler {
  ....
  # Enable 'showCalendar'
  TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );

  my $cal = CGI::image_button(
      -name => 'img_datefield',
      -onclick =>
       "return showCalendar('id_datefield','%Y %b %e')",
      -src=> TWiki::Func::getPubUrlPath() . '/' .
             TWiki::Func::getTwikiWebname() .
             '/JSCalendarContrib/img.gif',
      -alt => 'Calendar',
      -align => 'middle' )
    . CGI::textfield(
      { name => 'date', id => "id_datefield" });
  ....
}
The first parameter to showCalendar is the id of the textfield, and the second parameter is the date format. Default format is '%e %B %Y'.

All available date specifiers:

%a - abbreviated weekday name 
%A - full weekday name 
%b - abbreviated month name 
%B - full month name 
%C - century number 
%d - the day of the month ( 00 .. 31 ) 
%e - the day of the month ( 0 .. 31 ) 
%H - hour ( 00 .. 23 ) 
%I - hour ( 01 .. 12 ) 
%j - day of the year ( 000 .. 366 ) 
%k - hour ( 0 .. 23 ) 
%l - hour ( 1 .. 12 ) 
%m - month ( 01 .. 12 ) 
%M - minute ( 00 .. 59 ) 
%n - a newline character 
%p - "PM" or "AM"
%P - "pm" or "am"
%S - second ( 00 .. 59 ) 
%s - number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC) 
%t - a tab character 
%U, %W, %V - the week number
   The week 01 is the week that has the Thursday in the current year,
   which is equivalent to the week that contains the fourth day of January. 
   Weeks start on Monday.
%u - the day of the week ( 1 .. 7, 1 = MON ) 
%w - the day of the week ( 0 .. 6, 0 = SUN ) 
%y - year without the century ( 00 .. 99 ) 
%Y - year including the century ( ex. 1979 ) 
%% - a literal % character 

addHEAD can be called from commonTagsHandler for adding the header to all pages, or from beforeEditHandler just for edit pages etc.

Changed:
<
<

Using the Calendar in user forms

>
>

Installation Instructions

Deleted:
<
<
You can also use the calendar directly in your own hand-built forms, without having to write any code. Just add this inline in the topic text:
%INCLUDE{"%TWIKIWEB%/JSCalendarContribInline"}%
Then, to display a calendar icon next to a text input field:
<input type="text" id="cal_val_here" />
<input type="image" src="%PUBURL%/%TWIKIWEB%/JSCalendarContrib/img.gif" onclick="javascript: return showCalendar('cal_val_here','%e %B %Y')" />
If the contrib is installed, you will see such a field here:

 
Deleted:
<
<
<-- 
  • Set SHORTDESCRIPTION = Mishoo JSCalendar, packaged for use by plugins, skins and add-ons.
-->

Installation Instructions

 You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.

Like many other TWiki extensions, this module is shipped with a fully automatic installer script written using the BuildContrib.

  • If you have TWiki 4.2 or later, you can install from the configure interface (Go to Plugins->Find More Extensions)
  • If you have any problems, then you can still install manually from the command-line:
    1. Download one of the .zip or .tgz archives
    2. Unpack the archive in the root directory of your TWiki installation.
    3. Run the installer script ( perl <module>_installer )
    4. Run configure and enable the module, if it is a plugin.
    5. Repeat for any missing dependencies.
  • If you are still having problems, then instead of running the installer script:
    1. Make sure that the file permissions allow the webserver user to access all files.
    2. Check in any installed files that have existing ,v files in your existing install (take care not to lock the files when you check in)
    3. Manually edit LocalSite.cfg to set any configuration variables.

Changed:
<
<
  • An administrator can customize the appearance of the calendar by setting the following in LocalSite.cfg
>
>
Added:
>
>
  • An administrator can customize the appearance of the calendar by modifying {JSCalendarContrib} settings in the "JSCalendarContrib Settings" section of the configure:
 
Setting Default
Changed:
<
<
$TWiki::cfg{JSCalendarContrib}{style} 'blue'
>
>
$TWiki::cfg{JSCalendarContrib}{format} '%Y-%m-%d'
 
$TWiki::cfg{JSCalendarContrib}{lang} 'en'
Changed:
<
<
$TWiki::cfg{JSCalendarContrib}{format} '%e %b %Y'
>
>
$TWiki::cfg{JSCalendarContrib}{style} 'blue'
 
Changed:
<
<

Contrib Info

>
>

Contrib Info

 
Changed:
<
<
Another great TWiki extension from the WikiRing - working together to improve your wiki experience!
>
>
  • Set SHORTDESCRIPTION = Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications
 
Author: TWiki:Main/CrawfordCurrie http://c-dot.co.uk
Changed:
<
<
Version: 17492 (30 Mar 2009) of the Mishoo calendar
>
>
Version: 18048 (29 Apr 2009) of the Mishoo calendar
 
Copyright ©: See the Mishoo documentation
License: GPL (GNU General Public License)
Dependencies: None
Changed:
<
<
Change History:  
10 Sep 2008 Bugs:Item5991 Applied patch to fix rendering on IE7 .
06 Sep 2007 Bugs:Item4030 Added doc for using the calendar in user forms
13603 Bugs:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface
>
>
Change History:  
2009-04-27 TWikibug:Item6254 Adding "JSCalendarContrib Settings" section to configure; changing default to ISO date format; improved documentation (TWiki:Main/PeterThoeny)
2008-09-10 TWikibug:Item5991 Applied patch to fix rendering on IE7
2007-09-06 TWikibug:Item4030 Added doc for using the calendar in user forms
Added:
>
>
13603 TWikibug:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface
 
11594 Allow format to be configured.
11415 Add a renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert)
Changed:
<
<
10247 Bugs:Item2054 put the calendar at z-index 2000, way above pattern skin divs.
6634 Bugs:Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
6626 Bugs:Item468 updated docs for Dakar release
>
>
10247 TWikibug:Item2054 put the calendar at z-index 2000, way above pattern skin divs.
6634 TWikibug:Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
6626 TWikibug:Item468 updated docs for Dakar release
 
5048 Cairo readiness
5039 Split from SharedCode
27 Dec 2005 updated to calendar version 1.0; set style for Safari to win2k-1
14 Aug 2004 Separated out from SharedCode module
Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal
Changed:
<
<
Related Topics: TWikiPreferences
>
>
Related Topics: TWikiPreferences, TWikiForms
 
META FILEATTACHMENT attr="h" comment="" name="screenshot.gif" version="1"
Deleted:
<
<
META FILEATTACHMENT attr="h" comment="" name="wikiringlogo20x20.png" version="1"
 

Revision 82009-03-30 - TWikiContributor

 

JSCalendarContrib

Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications

<--

PLEASE DO NOT EDIT THIS TOPIC

It is automatically generated from the subversion repository, and any changes you make will simply be overwritten the next time a release is generated.

Instead, you could check your fix in, raise a bug in the Bugs web, or mail thge author. -->

Summary of Contents

This module packages the Mishoo JSCalendar Javascript in a form suitable for use with TWiki.

Detailed Documentation

Read the Mishoo documentation or visit the demo page for detailed information on using the calendar widget.

This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the functions:

TWiki::Contrib::JSCalendarContrib::renderDateForEdit($name, $value, $format [, \%cssClass]) -> $html

This is the simplest way to use calendars from a plugin.

  • $name is the name of the CGI parameter for the calendar (it should be unique),
  • $value is the current value of the parameter (may be undef)
  • $format is the format to use (optional; the default is set in configure). The HTML returned will display a date field and a drop-down calendar.
  • \%options is an optional hash containing base options for the textfield.
Example:
use TWiki::Contrib::JSCalendarContrib;
...
my $fromDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'from', '1 April 1999');
my $toDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'to', undef, '%Y');

TWiki::Contrib::JSCalendarContrib::addHEAD($setup)

This function will automatically add the headers for the calendar to the page being rendered. It's intended for use when you want more control over the formatting of your calendars than renderDateForEdit affords. $setup is the name of the calendar setup module; it can either be omitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a Javascript helper function called 'showCalendar' is added that simplifies using calendars to set a value in a text field. For example, say we wanted to display the date with the calendar icon before the text field, using the format %Y %b %e

# Add styles and javascript for the calendar
use TWiki::Contrib::JSCalendarContrib;
...

sub commonTagsHandler {
  ....
  # Enable 'showCalendar'
  TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );

  my $cal = CGI::image_button(
      -name => 'img_datefield',
      -onclick =>
       "return showCalendar('id_datefield','%Y %b %e')",
      -src=> TWiki::Func::getPubUrlPath() . '/' .
             TWiki::Func::getTwikiWebname() .
             '/JSCalendarContrib/img.gif',
      -alt => 'Calendar',
      -align => 'middle' )
    . CGI::textfield(
      { name => 'date', id => "id_datefield" });
  ....
}
The first parameter to showCalendar is the id of the textfield, and the second parameter is the date format. Default format is '%e %B %Y'.

All available date specifiers:

%a - abbreviated weekday name 
%A - full weekday name 
%b - abbreviated month name 
%B - full month name 
%C - century number 
%d - the day of the month ( 00 .. 31 ) 
%e - the day of the month ( 0 .. 31 ) 
%H - hour ( 00 .. 23 ) 
%I - hour ( 01 .. 12 ) 
%j - day of the year ( 000 .. 366 ) 
%k - hour ( 0 .. 23 ) 
%l - hour ( 1 .. 12 ) 
%m - month ( 01 .. 12 ) 
%M - minute ( 00 .. 59 ) 
%n - a newline character 
%p - "PM" or "AM"
%P - "pm" or "am"
%S - second ( 00 .. 59 ) 
%s - number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC) 
%t - a tab character 
%U, %W, %V - the week number
   The week 01 is the week that has the Thursday in the current year,
   which is equivalent to the week that contains the fourth day of January. 
   Weeks start on Monday.
%u - the day of the week ( 1 .. 7, 1 = MON ) 
%w - the day of the week ( 0 .. 6, 0 = SUN ) 
%y - year without the century ( 00 .. 99 ) 
%Y - year including the century ( ex. 1979 ) 
%% - a literal % character 

addHEAD can be called from commonTagsHandler for adding the header to all pages, or from beforeEditHandler just for edit pages etc.

Using the Calendar in user forms

You can also use the calendar directly in your own hand-built forms, without having to write any code. Just add this inline in the topic text:
%INCLUDE{"%TWIKIWEB%/JSCalendarContribInline"}%
Then, to display a calendar icon next to a text input field:
<input type="text" id="cal_val_here" />
<input type="image" src="%PUBURL%/%TWIKIWEB%/JSCalendarContrib/img.gif" onclick="javascript: return showCalendar('cal_val_here','%e %B %Y')" />
If the contrib is installed, you will see such a field here:

<-- 
  • Set SHORTDESCRIPTION = Mishoo JSCalendar, packaged for use by plugins, skins and add-ons.
-->

Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.

Like many other TWiki extensions, this module is shipped with a fully automatic installer script written using the BuildContrib.

  • If you have TWiki 4.2 or later, you can install from the configure interface (Go to Plugins->Find More Extensions)
  • If you have any problems, then you can still install manually from the command-line:
    1. Download one of the .zip or .tgz archives
    2. Unpack the archive in the root directory of your TWiki installation.
    3. Run the installer script ( perl <module>_installer )
    4. Run configure and enable the module, if it is a plugin.
    5. Repeat for any missing dependencies.
  • If you are still having problems, then instead of running the installer script:
    1. Make sure that the file permissions allow the webserver user to access all files.
    2. Check in any installed files that have existing ,v files in your existing install (take care not to lock the files when you check in)
    3. Manually edit LocalSite.cfg to set any configuration variables.

  • An administrator can customize the appearance of the calendar by setting the following in LocalSite.cfg
    Setting Default
    $TWiki::cfg{JSCalendarContrib}{style} 'blue'
    $TWiki::cfg{JSCalendarContrib}{lang} 'en'
    $TWiki::cfg{JSCalendarContrib}{format} '%e %b %Y'

Contrib Info

Another great TWiki extension from the WikiRing - working together to improve your wiki experience!

Author: TWiki:Main/CrawfordCurrie http://c-dot.co.uk
Changed:
<
<
Version: 17492 (06 Dec 2008) of the Mishoo calendar
>
>
Version: 17492 (30 Mar 2009) of the Mishoo calendar
 
Copyright ©: See the Mishoo documentation
License: GPL (GNU General Public License)
Dependencies: None
Change History:  
10 Sep 2008 Bugs:Item5991 Applied patch to fix rendering on IE7 .
06 Sep 2007 Bugs:Item4030 Added doc for using the calendar in user forms
13603 Bugs:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface
11594 Allow format to be configured.
11415 Add a renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert)
10247 Bugs:Item2054 put the calendar at z-index 2000, way above pattern skin divs.
6634 Bugs:Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
6626 Bugs:Item468 updated docs for Dakar release
5048 Cairo readiness
5039 Split from SharedCode
27 Dec 2005 updated to calendar version 1.0; set style for Safari to win2k-1
14 Aug 2004 Separated out from SharedCode module
Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal

Related Topics: TWikiPreferences

META FILEATTACHMENT attr="h" comment="" name="screenshot.gif" version="1"
META FILEATTACHMENT attr="h" comment="" name="wikiringlogo20x20.png" version="1"

Revision 72008-12-06 - TWikiContributor

 

JSCalendarContrib

Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications

<--

PLEASE DO NOT EDIT THIS TOPIC

It is automatically generated from the subversion repository, and any changes you make will simply be overwritten the next time a release is generated.

Instead, you could check your fix in, raise a bug in the Bugs web, or mail thge author. -->

Summary of Contents

This module packages the Mishoo JSCalendar Javascript in a form suitable for use with TWiki.

Detailed Documentation

Read the Mishoo documentation or visit the demo page for detailed information on using the calendar widget.

This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the functions:

TWiki::Contrib::JSCalendarContrib::renderDateForEdit($name, $value, $format [, \%cssClass]) -> $html

This is the simplest way to use calendars from a plugin.

  • $name is the name of the CGI parameter for the calendar (it should be unique),
  • $value is the current value of the parameter (may be undef)
  • $format is the format to use (optional; the default is set in configure). The HTML returned will display a date field and a drop-down calendar.
  • \%options is an optional hash containing base options for the textfield.
Example:
use TWiki::Contrib::JSCalendarContrib;
...
my $fromDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'from', '1 April 1999');
my $toDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'to', undef, '%Y');

TWiki::Contrib::JSCalendarContrib::addHEAD($setup)

This function will automatically add the headers for the calendar to the page being rendered. It's intended for use when you want more control over the formatting of your calendars than renderDateForEdit affords. $setup is the name of the calendar setup module; it can either be omitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a Javascript helper function called 'showCalendar' is added that simplifies using calendars to set a value in a text field. For example, say we wanted to display the date with the calendar icon before the text field, using the format %Y %b %e

# Add styles and javascript for the calendar
use TWiki::Contrib::JSCalendarContrib;
...

sub commonTagsHandler {
  ....
  # Enable 'showCalendar'
  TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );

  my $cal = CGI::image_button(
      -name => 'img_datefield',
      -onclick =>
       "return showCalendar('id_datefield','%Y %b %e')",
      -src=> TWiki::Func::getPubUrlPath() . '/' .
             TWiki::Func::getTwikiWebname() .
             '/JSCalendarContrib/img.gif',
      -alt => 'Calendar',
      -align => 'middle' )
    . CGI::textfield(
      { name => 'date', id => "id_datefield" });
  ....
}
The first parameter to showCalendar is the id of the textfield, and the second parameter is the date format. Default format is '%e %B %Y'.

All available date specifiers:

%a - abbreviated weekday name 
%A - full weekday name 
%b - abbreviated month name 
%B - full month name 
%C - century number 
%d - the day of the month ( 00 .. 31 ) 
%e - the day of the month ( 0 .. 31 ) 
%H - hour ( 00 .. 23 ) 
%I - hour ( 01 .. 12 ) 
%j - day of the year ( 000 .. 366 ) 
%k - hour ( 0 .. 23 ) 
%l - hour ( 1 .. 12 ) 
%m - month ( 01 .. 12 ) 
%M - minute ( 00 .. 59 ) 
%n - a newline character 
%p - "PM" or "AM"
%P - "pm" or "am"
%S - second ( 00 .. 59 ) 
%s - number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC) 
%t - a tab character 
%U, %W, %V - the week number
   The week 01 is the week that has the Thursday in the current year,
   which is equivalent to the week that contains the fourth day of January. 
   Weeks start on Monday.
%u - the day of the week ( 1 .. 7, 1 = MON ) 
%w - the day of the week ( 0 .. 6, 0 = SUN ) 
%y - year without the century ( 00 .. 99 ) 
%Y - year including the century ( ex. 1979 ) 
%% - a literal % character 

addHEAD can be called from commonTagsHandler for adding the header to all pages, or from beforeEditHandler just for edit pages etc.

Using the Calendar in user forms

You can also use the calendar directly in your own hand-built forms, without having to write any code. Just add this inline in the topic text:
Changed:
<
<
>
>
  Then, to display a calendar icon next to a text input field:
<input type="text" id="cal_val_here" />
Changed:
<
<
>
>
  If the contrib is installed, you will see such a field here:
Changed:
<
<
>
>
 
Changed:
<
<
>
>
 
<-- 
  • Set SHORTDESCRIPTION = Mishoo JSCalendar, packaged for use by plugins, skins and add-ons.
-->

Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.

Like many other TWiki extensions, this module is shipped with a fully automatic installer script written using the BuildContrib.

  • If you have TWiki 4.2 or later, you can install from the configure interface (Go to Plugins->Find More Extensions)
  • If you have any problems, then you can still install manually from the command-line:
    1. Download one of the .zip or .tgz archives
    2. Unpack the archive in the root directory of your TWiki installation.
    3. Run the installer script ( perl <module>_installer )
    4. Run configure and enable the module, if it is a plugin.
    5. Repeat for any missing dependencies.
  • If you are still having problems, then instead of running the installer script:
    1. Make sure that the file permissions allow the webserver user to access all files.
    2. Check in any installed files that have existing ,v files in your existing install (take care not to lock the files when you check in)
    3. Manually edit LocalSite.cfg to set any configuration variables.

  • An administrator can customize the appearance of the calendar by setting the following in LocalSite.cfg
    Setting Default
    $TWiki::cfg{JSCalendarContrib}{style} 'blue'
    $TWiki::cfg{JSCalendarContrib}{lang} 'en'
    $TWiki::cfg{JSCalendarContrib}{format} '%e %b %Y'

Contrib Info

Another great TWiki extension from the WikiRing - working together to improve your wiki experience!

Author: TWiki:Main/CrawfordCurrie http://c-dot.co.uk
Changed:
<
<
Version: 03 Aug 2008
>
>
Version: 17492 (06 Dec 2008) of the Mishoo calendar
 
Copyright ©: See the Mishoo documentation
License: GPL (GNU General Public License)
Dependencies: None
Changed:
<
<
Change History:  
03 Aug 2008 TWiki 4.2.1 release version incl new calendar icon
6 Sep 2007 Bugs:Item4030 Added doc for using the calendar in user forms
>
>
Change History:  
10 Sep 2008 Bugs:Item5991 Applied patch to fix rendering on IE7 .
06 Sep 2007 Bugs:Item4030 Added doc for using the calendar in user forms
 
13603 Bugs:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface
11594 Allow format to be configured.
11415 Add a renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert)
10247 Bugs:Item2054 put the calendar at z-index 2000, way above pattern skin divs.
6634 Bugs:Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
6626 Bugs:Item468 updated docs for Dakar release
5048 Cairo readiness
Changed:
<
<
5039 Split from SharedCode
>
>
5039 Split from SharedCode
 
27 Dec 2005 updated to calendar version 1.0; set style for Safari to win2k-1
Changed:
<
<
14 Aug 2004 Separated out from SharedCode module
>
>
14 Aug 2004 Separated out from SharedCode module
 
Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal
Changed:
<
<
Related Topics: TWikiPreferences
>
>
Related Topics: TWikiPreferences
 
META FILEATTACHMENT attr="h" comment="" name="screenshot.gif" version="1"
META FILEATTACHMENT attr="h" comment="" name="wikiringlogo20x20.png" version="1"

Revision 62008-08-03 - TWikiContributor

 

JSCalendarContrib

Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications

<--

PLEASE DO NOT EDIT THIS TOPIC

It is automatically generated from the subversion repository, and any changes you make will simply be overwritten the next time a release is generated.

Instead, you could check your fix in, raise a bug in the Bugs web, or mail thge author. -->

Summary of Contents

This module packages the Mishoo JSCalendar Javascript in a form suitable for use with TWiki.

Detailed Documentation

Read the Mishoo documentation or visit the demo page for detailed information on using the calendar widget.

This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the functions:

TWiki::Contrib::JSCalendarContrib::renderDateForEdit($name, $value, $format [, \%cssClass]) -> $html

This is the simplest way to use calendars from a plugin.

  • $name is the name of the CGI parameter for the calendar (it should be unique),
  • $value is the current value of the parameter (may be undef)
  • $format is the format to use (optional; the default is set in configure). The HTML returned will display a date field and a drop-down calendar.
  • \%options is an optional hash containing base options for the textfield.
Example:
use TWiki::Contrib::JSCalendarContrib;
...
my $fromDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'from', '1 April 1999');
my $toDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'to', undef, '%Y');

TWiki::Contrib::JSCalendarContrib::addHEAD($setup)

This function will automatically add the headers for the calendar to the page being rendered. It's intended for use when you want more control over the formatting of your calendars than renderDateForEdit affords. $setup is the name of the calendar setup module; it can either be omitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a Javascript helper function called 'showCalendar' is added that simplifies using calendars to set a value in a text field. For example, say we wanted to display the date with the calendar icon before the text field, using the format %Y %b %e

# Add styles and javascript for the calendar
use TWiki::Contrib::JSCalendarContrib;
...

sub commonTagsHandler {
  ....
  # Enable 'showCalendar'
  TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );

  my $cal = CGI::image_button(
      -name => 'img_datefield',
      -onclick =>
       "return showCalendar('id_datefield','%Y %b %e')",
      -src=> TWiki::Func::getPubUrlPath() . '/' .
             TWiki::Func::getTwikiWebname() .
             '/JSCalendarContrib/img.gif',
      -alt => 'Calendar',
      -align => 'middle' )
    . CGI::textfield(
      { name => 'date', id => "id_datefield" });
  ....
}
Changed:
<
<
The first parameter to showCalendar is the id of the textfield, and the second parameter is the . See the Mishoo documentation for details of the '$e %B %Y' parameter.
>
>
The first parameter to showCalendar is the id of the textfield, and the second parameter is the date format. Default format is '%e %B %Y'.
 
Added:
>
>
All available date specifiers:
%a - abbreviated weekday name 
%A - full weekday name 
%b - abbreviated month name 
%B - full month name 
%C - century number 
%d - the day of the month ( 00 .. 31 ) 
%e - the day of the month ( 0 .. 31 ) 
%H - hour ( 00 .. 23 ) 
%I - hour ( 01 .. 12 ) 
%j - day of the year ( 000 .. 366 ) 
%k - hour ( 0 .. 23 ) 
%l - hour ( 1 .. 12 ) 
%m - month ( 01 .. 12 ) 
%M - minute ( 00 .. 59 ) 
%n - a newline character 
%p - "PM" or "AM"
%P - "pm" or "am"
%S - second ( 00 .. 59 ) 
%s - number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC) 
%t - a tab character 
%U, %W, %V - the week number
   The week 01 is the week that has the Thursday in the current year,
   which is equivalent to the week that contains the fourth day of January. 
   Weeks start on Monday.
%u - the day of the week ( 1 .. 7, 1 = MON ) 
%w - the day of the week ( 0 .. 6, 0 = SUN ) 
%y - year without the century ( 00 .. 99 ) 
%Y - year including the century ( ex. 1979 ) 
%% - a literal % character 
 addHEAD can be called from commonTagsHandler for adding the header to all pages, or from beforeEditHandler just for edit pages etc.

Using the Calendar in user forms

You can also use the calendar directly in your own hand-built forms, without having to write any code. Just add this inline in the topic text:
%INCLUDE{"%SYSTEMWEB%/JSCalendarContribInline"}%
Then, to display a calendar icon next to a text input field:
<input type="text" id="cal_val_here" />
<input type="image" src="%PUBURL%/%SYSTEMWEB%/JSCalendarContrib/img.gif" onclick="javascript: return showCalendar('cal_val_here','%e %B %Y')" />
If the contrib is installed, you will see such a field here:

<-- 
  • Set SHORTDESCRIPTION = Mishoo JSCalendar, packaged for use by plugins, skins and add-ons.
-->

Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.

Like many other TWiki extensions, this module is shipped with a fully automatic installer script written using the BuildContrib.

  • If you have TWiki 4.2 or later, you can install from the configure interface (Go to Plugins->Find More Extensions)
  • If you have any problems, then you can still install manually from the command-line:
    1. Download one of the .zip or .tgz archives
    2. Unpack the archive in the root directory of your TWiki installation.
    3. Run the installer script ( perl <module>_installer )
    4. Run configure and enable the module, if it is a plugin.
    5. Repeat for any missing dependencies.
  • If you are still having problems, then instead of running the installer script:
    1. Make sure that the file permissions allow the webserver user to access all files.
    2. Check in any installed files that have existing ,v files in your existing install (take care not to lock the files when you check in)
    3. Manually edit LocalSite.cfg to set any configuration variables.

  • An administrator can customize the appearance of the calendar by setting the following in LocalSite.cfg
    Setting Default
    $TWiki::cfg{JSCalendarContrib}{style} 'blue'
    $TWiki::cfg{JSCalendarContrib}{lang} 'en'
    $TWiki::cfg{JSCalendarContrib}{format} '%e %b %Y'

Contrib Info

Another great TWiki extension from the WikiRing - working together to improve your wiki experience!

Author: TWiki:Main/CrawfordCurrie http://c-dot.co.uk
Changed:
<
<
Version: 16236 (22 Jan 2008) of the Mishoo calendar
>
>
Version: 03 Aug 2008
 
Copyright ©: See the Mishoo documentation
License: GPL (GNU General Public License)
Dependencies: None
Changed:
<
<
Change History:  
>
>
Change History:  
Added:
>
>
03 Aug 2008 TWiki 4.2.1 release version incl new calendar icon
 
6 Sep 2007 Bugs:Item4030 Added doc for using the calendar in user forms
13603 Bugs:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface
11594 Allow format to be configured.
11415 Add a renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert)
10247 Bugs:Item2054 put the calendar at z-index 2000, way above pattern skin divs.
6634 Bugs:Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
6626 Bugs:Item468 updated docs for Dakar release
5048 Cairo readiness
5039 Split from SharedCode
27 Dec 2005 updated to calendar version 1.0; set style for Safari to win2k-1
14 Aug 2004 Separated out from SharedCode module
Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal

Related Topics: TWikiPreferences

META FILEATTACHMENT attr="h" comment="" name="screenshot.gif" version="1"
META FILEATTACHMENT attr="h" comment="" name="wikiringlogo20x20.png" version="1"

Revision 52008-01-22 - TWikiContributor

 

JSCalendarContrib

Added:
>
>
 
Changed:
<
<
Mishoo JSCalendar, packaged for use by plugins, skins and add-ons.
>
>
Mishoo JSCalendar: A pop-up calendar for use in TWiki forms and TWiki applications
 
<--

PLEASE DO NOT EDIT THIS TOPIC

It is automatically generated from the subversion repository, and any changes you make will simply be overwritten the next time a release is generated.

Instead, you could check your fix in, raise a bug in the Bugs web, or mail thge author. -->

Summary of Contents

This module packages the Mishoo JSCalendar Javascript in a form suitable for use with TWiki.

Detailed Documentation

Deleted:
<
<
Read the Mishoo documentation or visit the demo page.
 
Changed:
<
<
This package provides a renderFormFieldForEditHandler that could be invoked by a plugin to ensure that forms use the Mishoo JSCalendar for editing.
>
>
Read the Mishoo documentation or
Added:
>
>
visit the demo page for detailed information on using the calendar widget.
 
Changed:
<
<
This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the function:
>
>
This package also includes a small Perl module to make using the calendar
Added:
>
>
easier from TWiki plugins. This module includes the functions:

TWiki::Contrib::JSCalendarContrib::renderDateForEdit($name, $value, $format [, \%cssClass]) -> $html

This is the simplest way to use calendars from a plugin.

  • $name is the name of the CGI parameter for the calendar (it should be unique),
  • $value is the current value of the parameter (may be undef)
  • $format is the format to use (optional; the default is set in configure). The HTML returned will display a date field and a drop-down calendar.
  • \%options is an optional hash containing base options for the textfield.
Example:
 
Changed:
<
<
addHEAD( $setup )
>
>
use TWiki::Contrib::JSCalendarContrib;
Added:
>
>
... my $fromDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit( 'from', '1 April 1999'); my $toDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit( 'to', undef, '%Y');
 
Changed:
<
<
that can automatically add the required headers to the page being rendered. $setup is the name of the calendar setup module; it can either be ommitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a helper function is added that simplifies using calendars to set a value in a text field. For example,
>
>
Added:
>
>

TWiki::Contrib::JSCalendarContrib::addHEAD($setup)

This function will automatically add the headers for the calendar to the page being rendered. It's intended for use when you want more control over the formatting of your calendars than renderDateForEdit affords. $setup is the name of the calendar setup module; it can either be omitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a Javascript helper function called 'showCalendar' is added that simplifies using calendars to set a value in a text field. For example, say we wanted to display the date with the calendar icon before the text field, using the format %Y %b %e

 
Changed:
<
<
# Add styles and javascript for the calendar require TWiki::Contrib::JSCalendarContrib; if( $@ || !$TWiki::Contrib::JSCalendarContrib::VERSION ||
>
>
# Add styles and javascript for the calendar use TWiki::Contrib::JSCalendarContrib; ...
Deleted:
<
<
$TWiki::Contrib::JSCalendarContrib::VERSION < 0.961 ) { TWiki::Func::writeWarning('JSCalendarContrib >=0.961 not found '.$@); } else { TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' ); }
 
Changed:
<
<
$html .= CGI::textfield( { name => 'datefield', id => "id_datefield" }); $html .= CGI::image_button( -name => 'datefield_calendar', -onclick => "return showCalendar('id_datefield','%e %B %Y')", -src=> TWiki::Func::getPubUrlPath() . '/' . TWiki::Func::getTwikiWebname() . '/JSCalendarContrib/img.gif', -alt => 'Calendar', -align => 'MIDDLE' ); } }
>
>
sub commonTagsHandler { .... # Enable 'showCalendar' TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );

my $cal = CGI::image_button( -name => 'img_datefield', -onclick => "return showCalendar('id_datefield','%Y %b %e')", -src=> TWiki::Func::getPubUrlPath() . '/' . TWiki::Func::getTwikiWebname() . '/JSCalendarContrib/img.gif', -alt => 'Calendar', -align => 'middle' ) . CGI::textfield(

Added:
>
>
{ name => 'date', id => "id_datefield" }); .... }
 
Changed:
<
<
The first parameter to showCalendar is the id of the textfield. See the Mishoo documentation for details of the '$e %B %Y' parameter.
>
>
The first parameter to showCalendar is the id of the textfield, and the second parameter is the . See the Mishoo documentation for details of the '$e %B %Y' parameter.
 
Changed:
<
<
Note that the header will only be added once, regardless of the number of times that addHEAD is called.
>
>
addHEAD can be called from commonTagsHandler for adding the header to all pages, or from beforeEditHandler just for edit pages etc.
 
Deleted:
<
<
addHEAD can be called from commonTagsHandler for adding the header to all pages, or to beforeEditHandler just for edit pages etc.
 
Deleted:
<
<

Settings

  • Name of the perl package
    • Set STUB = TWiki::Contrib::JSCalendarContrib
  • What do I do
    • Set SHORTDESCRIPTION = Mishoo JSCalendar, packaged for use by plugins, skins and add-ons.
 
Added:
>
>

Using the Calendar in user forms

You can also use the calendar directly in your own hand-built forms, without having to write any code. Just add this inline in the topic text:
%INCLUDE{"%SYSTEMWEB%/JSCalendarContribInline"}%
Then, to display a calendar icon next to a text input field:
<input type="text" id="cal_val_here" />
<input type="image" src="%PUBURL%/%SYSTEMWEB%/JSCalendarContrib/img.gif" onclick="javascript: return showCalendar('cal_val_here','%e %B %Y')" />
If the contrib is installed, you will see such a field here:

<-- 
  • Set SHORTDESCRIPTION = Mishoo JSCalendar, packaged for use by plugins, skins and add-ons.
-->
 

Installation Instructions

Added:
>
>
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.
 
Changed:
<
<
  • Download the archive from the Plugins web (see below)
  • Unpack it in your twiki installation directory. Content:
    File: Description:
    data/TWiki/JSCalendarContrib.txt  
    lib/TWiki/Contrib/JSCalendarContrib.pm  
    pub/TWiki/JSCalendarContrib/twiki.js  
    pub/TWiki/JSCalendarContrib/bugtest-hidden-selects.html  
    pub/TWiki/JSCalendarContrib/calendar-blue2.css  
    pub/TWiki/JSCalendarContrib/calendar-blue.css  
    pub/TWiki/JSCalendarContrib/calendar-brown.css  
    pub/TWiki/JSCalendarContrib/calendar-green.css  
    pub/TWiki/JSCalendarContrib/calendar.js  
    pub/TWiki/JSCalendarContrib/calendar.php  
    pub/TWiki/JSCalendarContrib/calendar-setup.js  
>
>
Like many other TWiki extensions, this module is shipped with a fully automatic installer script written using the BuildContrib.
  • If you have TWiki 4.2 or later, you can install from the configure interface (Go to Plugins->Find More Extensions)
  • If you have any problems, then you can still install manually from the command-line:
    1. Download one of the .zip or .tgz archives
    2. Unpack the archive in the root directory of your TWiki installation.
    3. Run the installer script ( perl <module>_installer )
    4. Run configure and enable the module, if it is a plugin.
    5. Repeat for any missing dependencies.
  • If you are still having problems, then instead of running the installer script:
    1. Make sure that the file permissions allow the webserver user to access all files.
    2. Check in any installed files that have existing ,v files in your existing install (take care not to lock the files when you check in)
    3. Manually edit LocalSite.cfg to set any configuration variables.
Deleted:
<
<
pub/TWiki/JSCalendarContrib/calendar-setup_stripped.js  
pub/TWiki/JSCalendarContrib/calendar_stripped.js  
pub/TWiki/JSCalendarContrib/calendar-system.css  
pub/TWiki/JSCalendarContrib/calendar-tas.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-1.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-2.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-cold-1.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-cold-2.css  
pub/TWiki/JSCalendarContrib/ChangeLog  
pub/TWiki/JSCalendarContrib/dayinfo.html  
pub/TWiki/JSCalendarContrib/doc/html/field-button.jpg  
pub/TWiki/JSCalendarContrib/doc/html/reference.css  
pub/TWiki/JSCalendarContrib/doc/html/reference.html  
pub/TWiki/JSCalendarContrib/doc/html/reference-Z-S.css  
pub/TWiki/JSCalendarContrib/doc/reference.pdf  
pub/TWiki/JSCalendarContrib/img.gif  
pub/TWiki/JSCalendarContrib/index.html  
pub/TWiki/JSCalendarContrib/lang/calendar-af.js  
pub/TWiki/JSCalendarContrib/lang/calendar-al.js  
pub/TWiki/JSCalendarContrib/lang/calendar-bg.js  
pub/TWiki/JSCalendarContrib/lang/calendar-big5.js  
pub/TWiki/JSCalendarContrib/lang/calendar-big5-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-br.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ca.js  
pub/TWiki/JSCalendarContrib/lang/calendar-cs-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-cs-win.js  
pub/TWiki/JSCalendarContrib/lang/calendar-da.js  
pub/TWiki/JSCalendarContrib/lang/calendar-de.js  
pub/TWiki/JSCalendarContrib/lang/calendar-du.js  
pub/TWiki/JSCalendarContrib/lang/calendar-el.js  
pub/TWiki/JSCalendarContrib/lang/calendar-en.js  
pub/TWiki/JSCalendarContrib/lang/calendar-es.js  
pub/TWiki/JSCalendarContrib/lang/calendar-fi.js  
pub/TWiki/JSCalendarContrib/lang/calendar-fr.js  
pub/TWiki/JSCalendarContrib/lang/calendar-he-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-hr.js  
pub/TWiki/JSCalendarContrib/lang/calendar-hr-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-hu.js  
pub/TWiki/JSCalendarContrib/lang/calendar-it.js  
pub/TWiki/JSCalendarContrib/lang/calendar-jp.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ko.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ko-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-lt.js  
pub/TWiki/JSCalendarContrib/lang/calendar-lt-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-lv.js  
pub/TWiki/JSCalendarContrib/lang/calendar-nl.js  
pub/TWiki/JSCalendarContrib/lang/calendar-no.js  
pub/TWiki/JSCalendarContrib/lang/calendar-pl.js  
pub/TWiki/JSCalendarContrib/lang/calendar-pl-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-pt.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ro.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ru_win_.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ru.js  
pub/TWiki/JSCalendarContrib/lang/calendar-si.js  
pub/TWiki/JSCalendarContrib/lang/calendar-sk.js  
pub/TWiki/JSCalendarContrib/lang/calendar-sp.js  
pub/TWiki/JSCalendarContrib/lang/calendar-sv.js  
pub/TWiki/JSCalendarContrib/lang/calendar-tr.js  
pub/TWiki/JSCalendarContrib/lang/calendar-zh.js  
pub/TWiki/JSCalendarContrib/lang/cn_utf8.js  
pub/TWiki/JSCalendarContrib/skins/aqua/active-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/dark-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/hover-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/menuarrow.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/normal-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/rowhover-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/status-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/theme.css  
pub/TWiki/JSCalendarContrib/skins/aqua/title-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/today-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/transparent-bg.png  
pub/TWiki/JSCalendarContrib/menuarrow.gif  
pub/TWiki/JSCalendarContrib/menuarrow2.gif  
pub/TWiki/JSCalendarContrib/multiple-dates.html  
pub/TWiki/JSCalendarContrib/README  
pub/TWiki/JSCalendarContrib/release-notes.html  
pub/TWiki/JSCalendarContrib/simple-1.html  
pub/TWiki/JSCalendarContrib/simple-2.html  
pub/TWiki/JSCalendarContrib/simple-3.html  
pub/TWiki/JSCalendarContrib/test.php  
pub/TWiki/JSCalendarContrib/test-position.html  
 
Changed:
<
<
  • Make sure that all files are readable by the web server user
>
>
Added:
>
>
 
  • An administrator can customize the appearance of the calendar by setting the following in LocalSite.cfg
    Setting Default
    $TWiki::cfg{JSCalendarContrib}{style} 'blue'
    $TWiki::cfg{JSCalendarContrib}{lang} 'en'
    $TWiki::cfg{JSCalendarContrib}{format} '%e %b %Y'

Contrib Info

Changed:
<
<
Author: TWiki:Main/CrawfordCurrie http://www.c-dot.co.uk
Version: 11704 of the Mishoo calendar
>
>
Another great TWiki extension from the WikiRing - working together to improve your wiki experience!
Added:
>
>
Author: TWiki:Main/CrawfordCurrie http://c-dot.co.uk
Version: 16236 (22 Jan 2008) of the Mishoo calendar
 
Copyright ©: See the Mishoo documentation
License: GPL (GNU General Public License)
Dependencies: None
Change History:  
Changed:
<
<
11594 Allow format to be configured.
11415 Add a renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert)
10247 Item2054 put the calendar at z-index 2000, way above pattern skin divs.
6634 Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
6626 Item468 updated docs for Dakar release
5048 Cairo readiness
5039 Split from SharedCode
>
>
6 Sep 2007 Bugs:Item4030 Added doc for using the calendar in user forms
13603 Bugs:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface
11594 Allow format to be configured.
11415 Add a renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert)
10247 Bugs:Item2054 put the calendar at z-index 2000, way above pattern skin divs.
6634 Bugs:Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
6626 Bugs:Item468 updated docs for Dakar release
Added:
>
>
5048 Cairo readiness
5039 Split from SharedCode
 
27 Dec 2005 updated to calendar version 1.0; set style for Safari to win2k-1
14 Aug 2004 Separated out from SharedCode module
Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal
Changed:
<
<
Related Topics: TWikiPreferences
>
>
Related Topics: TWikiPreferences
 
Added:
>
>
META FILEATTACHMENT attr="h" comment="" name="screenshot.gif" version="1"
META FILEATTACHMENT attr="h" comment="" name="wikiringlogo20x20.png" version="1"
 

Revision 42007-01-16 - TWikiContributor

 

JSCalendarContrib

Mishoo JSCalendar, packaged for use by plugins, skins and add-ons.

<--

PLEASE DO NOT EDIT THIS TOPIC

It is automatically generated from the subversion repository, and any changes you make will simply be overwritten the next time a release is generated.

Instead, you could check your fix in, raise a bug in the Bugs web, or mail thge author. -->

Summary of Contents

This module packages the Mishoo JSCalendar Javascript in a form suitable for use with TWiki.

Detailed Documentation

Read the Mishoo documentation or visit the demo page.
Added:
>
>
This package provides a renderFormFieldForEditHandler that could be invoked by a plugin to ensure that forms use the Mishoo JSCalendar for editing.
 This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the function:
addHEAD( $setup )
that can automatically add the required headers to the page being rendered. $setup is the name of the calendar setup module; it can either be ommitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a helper function is added that simplifies using calendars to set a value in a text field. For example,
    # Add styles and javascript for the calendar
    require TWiki::Contrib::JSCalendarContrib;
    if( $@ || !$TWiki::Contrib::JSCalendarContrib::VERSION ||
        $TWiki::Contrib::JSCalendarContrib::VERSION < 0.961 ) {
        TWiki::Func::writeWarning('JSCalendarContrib >=0.961 not found '.$@);
    } else {
        TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );
    }

    $html .= CGI::textfield(
        { name => 'datefield',
          id => "id_datefield" });
    $html .=
          CGI::image_button(
                      -name => 'datefield_calendar',
                      -onclick =>
                          "return showCalendar('id_datefield','%e %B %Y')",
                      -src=> TWiki::Func::getPubUrlPath() . '/' .
                        TWiki::Func::getTwikiWebname() .
                            '/JSCalendarContrib/img.gif',
                      -alt => 'Calendar',
                      -align => 'MIDDLE' );
            }
        }
The first parameter to showCalendar is the id of the textfield. See the Mishoo documentation for details of the '$e %B %Y' parameter.

Note that the header will only be added once, regardless of the number of times that addHEAD is called.

addHEAD can be called from commonTagsHandler for adding the header to all pages, or to beforeEditHandler just for edit pages etc.

Settings

  • Name of the perl package
    • Set STUB = TWiki::Contrib::JSCalendarContrib
  • What do I do
    • Set SHORTDESCRIPTION = Mishoo JSCalendar, packaged for use by plugins, skins and add-ons.

Installation Instructions

  • Download the archive from the Plugins web (see below)
  • Unpack it in your twiki installation directory. Content:
    File: Description:
    data/TWiki/JSCalendarContrib.txt  
    lib/TWiki/Contrib/JSCalendarContrib.pm  
    pub/TWiki/JSCalendarContrib/twiki.js  
    pub/TWiki/JSCalendarContrib/bugtest-hidden-selects.html  
    pub/TWiki/JSCalendarContrib/calendar-blue2.css  
    pub/TWiki/JSCalendarContrib/calendar-blue.css  
    pub/TWiki/JSCalendarContrib/calendar-brown.css  
    pub/TWiki/JSCalendarContrib/calendar-green.css  
    pub/TWiki/JSCalendarContrib/calendar.js  
    pub/TWiki/JSCalendarContrib/calendar.php  
    pub/TWiki/JSCalendarContrib/calendar-setup.js  
    pub/TWiki/JSCalendarContrib/calendar-setup_stripped.js  
    pub/TWiki/JSCalendarContrib/calendar_stripped.js  
    pub/TWiki/JSCalendarContrib/calendar-system.css  
    pub/TWiki/JSCalendarContrib/calendar-tas.css  
    pub/TWiki/JSCalendarContrib/calendar-win2k-1.css  
    pub/TWiki/JSCalendarContrib/calendar-win2k-2.css  
    pub/TWiki/JSCalendarContrib/calendar-win2k-cold-1.css  
    pub/TWiki/JSCalendarContrib/calendar-win2k-cold-2.css  
    pub/TWiki/JSCalendarContrib/ChangeLog  
    pub/TWiki/JSCalendarContrib/dayinfo.html  
    pub/TWiki/JSCalendarContrib/doc/html/field-button.jpg  
    pub/TWiki/JSCalendarContrib/doc/html/reference.css  
    pub/TWiki/JSCalendarContrib/doc/html/reference.html  
    pub/TWiki/JSCalendarContrib/doc/html/reference-Z-S.css  
    pub/TWiki/JSCalendarContrib/doc/reference.pdf  
    pub/TWiki/JSCalendarContrib/img.gif  
    pub/TWiki/JSCalendarContrib/index.html  
    pub/TWiki/JSCalendarContrib/lang/calendar-af.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-al.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-bg.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-big5.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-big5-utf8.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-br.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-ca.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-cs-utf8.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-cs-win.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-da.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-de.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-du.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-el.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-en.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-es.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-fi.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-fr.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-he-utf8.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-hr.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-hr-utf8.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-hu.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-it.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-jp.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-ko.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-ko-utf8.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-lt.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-lt-utf8.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-lv.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-nl.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-no.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-pl.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-pl-utf8.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-pt.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-ro.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-ru_win_.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-ru.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-si.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-sk.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-sp.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-sv.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-tr.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-zh.js  
    pub/TWiki/JSCalendarContrib/lang/cn_utf8.js  
    pub/TWiki/JSCalendarContrib/skins/aqua/active-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/dark-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/hover-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/menuarrow.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/normal-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/rowhover-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/status-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/theme.css  
    pub/TWiki/JSCalendarContrib/skins/aqua/title-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/today-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/transparent-bg.png  
    pub/TWiki/JSCalendarContrib/menuarrow.gif  
    pub/TWiki/JSCalendarContrib/menuarrow2.gif  
    pub/TWiki/JSCalendarContrib/multiple-dates.html  
    pub/TWiki/JSCalendarContrib/README  
    pub/TWiki/JSCalendarContrib/release-notes.html  
    pub/TWiki/JSCalendarContrib/simple-1.html  
    pub/TWiki/JSCalendarContrib/simple-2.html  
    pub/TWiki/JSCalendarContrib/simple-3.html  
    pub/TWiki/JSCalendarContrib/test.php  
    pub/TWiki/JSCalendarContrib/test-position.html  

  • Make sure that all files are readable by the web server user
Added:
>
>
  • An administrator can customize the appearance of the calendar by setting the following in LocalSite.cfg
    Setting Default
    $TWiki::cfg{JSCalendarContrib}{style} 'blue'
    $TWiki::cfg{JSCalendarContrib}{lang} 'en'
    $TWiki::cfg{JSCalendarContrib}{format} '%e %b %Y'
 

Contrib Info

Author: TWiki:Main/CrawfordCurrie http://www.c-dot.co.uk
Changed:
<
<
Version: 10613 of the Mishoo calendar
>
>
Version: 11704 of the Mishoo calendar
 
Copyright ©: See the Mishoo documentation
License: GPL (GNU General Public License)
Deleted:
<
<
|
 
Dependencies: None
Change History:  
Added:
>
>
11594 Allow format to be configured.
11415 Add a renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert)
 
10247 Item2054 put the calendar at z-index 2000, way above pattern skin divs.
6634 Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
6626 Item468 updated docs for Dakar release
5048 Cairo readiness
5039 Split from SharedCode
27 Dec 2005 updated to calendar version 1.0; set style for Safari to win2k-1
14 Aug 2004 Separated out from SharedCode module
Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal

Related Topics: TWikiPreferences

Revision 32006-06-25 - TWikiContributor

Added:
>
>

JSCalendarContrib

Mishoo JSCalendar, packaged for use by plugins, skins and add-ons.

 
<--

PLEASE DO NOT EDIT THIS TOPIC

It is automatically generated from the subversion repository, and any changes you make will simply be overwritten the next time a release is generated.

Instead, you could check your fix in, raise a bug in the Bugs web, or mail thge author. -->

Deleted:
<
<
Mishoo JSCalendar, packaged for use by plugins, skins and add-ons.
 
Changed:
<
<

Summary of Contents

>
>
Added:
>
>

Summary of Contents

 This module packages the Mishoo JSCalendar Javascript in a form suitable for use with TWiki.
Changed:
<
<

Detailed Documentation

>
>

Detailed Documentation

 Read the Mishoo documentation or visit the demo page.

This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the function:

addHEAD( $setup )
that can automatically add the required headers to the page being rendered. $setup is the name of the calendar setup module; it can either be ommitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a helper function is added that simplifies using calendars to set a value in a text field. For example,
    # Add styles and javascript for the calendar
    require TWiki::Contrib::JSCalendarContrib;
    if( $@ || !$TWiki::Contrib::JSCalendarContrib::VERSION ||
        $TWiki::Contrib::JSCalendarContrib::VERSION < 0.961 ) {
        TWiki::Func::writeWarning('JSCalendarContrib >=0.961 not found '.$@);
    } else {
        TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );
    }

    $html .= CGI::textfield(
        { name => 'datefield',
          id => "id_datefield" });
    $html .=
          CGI::image_button(
                      -name => 'datefield_calendar',
                      -onclick =>
                          "return showCalendar('id_datefield','%e %B %Y')",
                      -src=> TWiki::Func::getPubUrlPath() . '/' .
                        TWiki::Func::getTwikiWebname() .
                            '/JSCalendarContrib/img.gif',
                      -alt => 'Calendar',
                      -align => 'MIDDLE' );
            }
        }
The first parameter to showCalendar is the id of the textfield. See the Mishoo documentation for details of the '$e %B %Y' parameter.

Note that the header will only be added once, regardless of the number of times that addHEAD is called.

addHEAD can be called from commonTagsHandler for adding the header to all pages, or to beforeEditHandler just for edit pages etc.

Changed:
<
<

Settings

>
>

Settings

 
  • Name of the perl package
    • Set STUB = TWiki::Contrib::JSCalendarContrib
Added:
>
>
  • What do I do
    • Set SHORTDESCRIPTION = Mishoo JSCalendar, packaged for use by plugins, skins and add-ons.
 
Changed:
<
<

Installation Instructions

>
>

Installation Instructions

 
Changed:
<
<
  • Download the ZIP file from the Plugin web (see below)
  • Unzip JSCalendarContrib.zip in your twiki installation directory. Content:
>
>
  • Download the archive from the Plugins web (see below)
  • Unpack it in your twiki installation directory. Content:
 
File: Description:
data/TWiki/JSCalendarContrib.txt  
Deleted:
<
<
lib/TWiki/Contrib/JSCalendarContrib/build.pl  
 
lib/TWiki/Contrib/JSCalendarContrib.pm  
pub/TWiki/JSCalendarContrib/twiki.js  
pub/TWiki/JSCalendarContrib/bugtest-hidden-selects.html  
pub/TWiki/JSCalendarContrib/calendar-blue2.css  
pub/TWiki/JSCalendarContrib/calendar-blue.css  
pub/TWiki/JSCalendarContrib/calendar-brown.css  
pub/TWiki/JSCalendarContrib/calendar-green.css  
pub/TWiki/JSCalendarContrib/calendar.js  
pub/TWiki/JSCalendarContrib/calendar.php  
pub/TWiki/JSCalendarContrib/calendar-setup.js  
pub/TWiki/JSCalendarContrib/calendar-setup_stripped.js  
pub/TWiki/JSCalendarContrib/calendar_stripped.js  
pub/TWiki/JSCalendarContrib/calendar-system.css  
pub/TWiki/JSCalendarContrib/calendar-tas.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-1.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-2.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-cold-1.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-cold-2.css  
pub/TWiki/JSCalendarContrib/ChangeLog  
pub/TWiki/JSCalendarContrib/dayinfo.html  
pub/TWiki/JSCalendarContrib/doc/html/field-button.jpg  
pub/TWiki/JSCalendarContrib/doc/html/reference.css  
pub/TWiki/JSCalendarContrib/doc/html/reference.html  
pub/TWiki/JSCalendarContrib/doc/html/reference-Z-S.css  
pub/TWiki/JSCalendarContrib/doc/reference.pdf  
pub/TWiki/JSCalendarContrib/img.gif  
pub/TWiki/JSCalendarContrib/index.html  
pub/TWiki/JSCalendarContrib/lang/calendar-af.js  
pub/TWiki/JSCalendarContrib/lang/calendar-al.js  
pub/TWiki/JSCalendarContrib/lang/calendar-bg.js  
pub/TWiki/JSCalendarContrib/lang/calendar-big5.js  
pub/TWiki/JSCalendarContrib/lang/calendar-big5-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-br.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ca.js  
pub/TWiki/JSCalendarContrib/lang/calendar-cs-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-cs-win.js  
pub/TWiki/JSCalendarContrib/lang/calendar-da.js  
pub/TWiki/JSCalendarContrib/lang/calendar-de.js  
pub/TWiki/JSCalendarContrib/lang/calendar-du.js  
pub/TWiki/JSCalendarContrib/lang/calendar-el.js  
pub/TWiki/JSCalendarContrib/lang/calendar-en.js  
pub/TWiki/JSCalendarContrib/lang/calendar-es.js  
pub/TWiki/JSCalendarContrib/lang/calendar-fi.js  
pub/TWiki/JSCalendarContrib/lang/calendar-fr.js  
pub/TWiki/JSCalendarContrib/lang/calendar-he-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-hr.js  
pub/TWiki/JSCalendarContrib/lang/calendar-hr-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-hu.js  
pub/TWiki/JSCalendarContrib/lang/calendar-it.js  
pub/TWiki/JSCalendarContrib/lang/calendar-jp.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ko.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ko-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-lt.js  
pub/TWiki/JSCalendarContrib/lang/calendar-lt-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-lv.js  
pub/TWiki/JSCalendarContrib/lang/calendar-nl.js  
pub/TWiki/JSCalendarContrib/lang/calendar-no.js  
pub/TWiki/JSCalendarContrib/lang/calendar-pl.js  
pub/TWiki/JSCalendarContrib/lang/calendar-pl-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-pt.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ro.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ru_win_.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ru.js  
pub/TWiki/JSCalendarContrib/lang/calendar-si.js  
pub/TWiki/JSCalendarContrib/lang/calendar-sk.js  
pub/TWiki/JSCalendarContrib/lang/calendar-sp.js  
pub/TWiki/JSCalendarContrib/lang/calendar-sv.js  
pub/TWiki/JSCalendarContrib/lang/calendar-tr.js  
pub/TWiki/JSCalendarContrib/lang/calendar-zh.js  
pub/TWiki/JSCalendarContrib/lang/cn_utf8.js  
pub/TWiki/JSCalendarContrib/skins/aqua/active-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/dark-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/hover-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/menuarrow.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/normal-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/rowhover-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/status-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/theme.css  
pub/TWiki/JSCalendarContrib/skins/aqua/title-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/today-bg.gif  
Added:
>
>
pub/TWiki/JSCalendarContrib/skins/aqua/transparent-bg.png  
 
pub/TWiki/JSCalendarContrib/menuarrow.gif  
pub/TWiki/JSCalendarContrib/menuarrow2.gif  
pub/TWiki/JSCalendarContrib/multiple-dates.html  
pub/TWiki/JSCalendarContrib/README  
pub/TWiki/JSCalendarContrib/release-notes.html  
pub/TWiki/JSCalendarContrib/simple-1.html  
pub/TWiki/JSCalendarContrib/simple-2.html  
pub/TWiki/JSCalendarContrib/simple-3.html  
pub/TWiki/JSCalendarContrib/test.php  
pub/TWiki/JSCalendarContrib/test-position.html  

  • Make sure that all files are readable by the web server user
Changed:
<
<

Contrib Info

>
>

Contrib Info

 
Author: TWiki:Main/CrawfordCurrie http://www.c-dot.co.uk
Changed:
<
<
Version: 9105 of the Mishoo calendar
>
>
Version: 10613 of the Mishoo calendar
 
Copyright ©: See the Mishoo documentation
Changed:
<
<
License: GNU LGPL
>
>
License: GPL (GNU General Public License)
Added:
>
>
|
 
Dependencies: None
Change History:  
Added:
>
>
10247 Item2054 put the calendar at z-index 2000, way above pattern skin divs.
 
6634 Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
6626 Item468 updated docs for Dakar release
5048 Cairo readiness
5039 Split from SharedCode
27 Dec 2005 updated to calendar version 1.0; set style for Safari to win2k-1
14 Aug 2004 Separated out from SharedCode module
Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev
Added:
>
>
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal
  Related Topics: TWikiPreferences
Deleted:
<
<
-- TWiki:Main/CrawfordCurrie - 21:44:48 31 March 2006
 

Revision 22006-04-01 - TWikiContributor

Added:
>
>
<--

PLEASE DO NOT EDIT THIS TOPIC

It is automatically generated from the subversion repository, and any changes you make will simply be overwritten the next time a release is generated.

Instead, you could check your fix in, raise a bug in the Bugs web, or mail thge author. -->

 Mishoo JSCalendar, packaged for use by plugins, skins and add-ons.

Summary of Contents

This module packages the Mishoo JSCalendar Javascript in a form suitable for use with TWiki.

Detailed Documentation

Read the Mishoo documentation or visit the demo page.

This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the function:

addHEAD( $setup )
that can automatically add the required headers to the page being rendered. $setup is the name of the calendar setup module; it can either be ommitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a helper function is added that simplifies using calendars to set a value in a text field. For example,
Changed:
<
<
# Add styles and javascript for the calendar require TWiki::Contrib::JSCalendarContrib; if( $@ || !$TWiki::Contrib::JSCalendarContrib::VERSION || $TWiki::Contrib::JSCalendarContrib::VERSION < 0.961 ) { TWiki::Func::writeWarning('JSCalendarContrib >=0.961 not found '.$@); } else { TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' ); }
>
>
# Add styles and javascript for the calendar require TWiki::Contrib::JSCalendarContrib; if( $@ || !$TWiki::Contrib::JSCalendarContrib::VERSION || $TWiki::Contrib::JSCalendarContrib::VERSION < 0.961 ) { TWiki::Func::writeWarning('JSCalendarContrib >=0.961 not found '.$@); } else { TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' ); }
 
Changed:
<
<
$html .= CGI::textfield( { name => 'datefield', id => "id_datefield" }); $html .= CGI::image_button( -name => 'datefield_calendar', -onclick => "return showCalendar('id_datefield','%e %B %Y')", -src=> TWiki::Func::getPubUrlPath() . '/' . TWiki::Func::getTwikiWebname() . '/JSCalendarContrib/img.gif', -alt => 'Calendar', -align => 'MIDDLE' ); } }
>
>
$html .= CGI::textfield( { name => 'datefield', id => "id_datefield" }); $html .= CGI::image_button( -name => 'datefield_calendar', -onclick => "return showCalendar('id_datefield','%e %B %Y')", -src=> TWiki::Func::getPubUrlPath() . '/' . TWiki::Func::getTwikiWebname() . '/JSCalendarContrib/img.gif', -alt => 'Calendar', -align => 'MIDDLE' ); } }
  The first parameter to showCalendar is the id of the textfield. See the Mishoo documentation for details of the '$e %B %Y' parameter.

Note that the header will only be added once, regardless of the number of times that addHEAD is called.

addHEAD can be called from commonTagsHandler for adding the header to all pages, or to beforeEditHandler just for edit pages etc.

Settings

  • Name of the perl package
    • Set STUB = TWiki::Contrib::JSCalendarContrib

Installation Instructions

  • Download the ZIP file from the Plugin web (see below)
  • Unzip JSCalendarContrib.zip in your twiki installation directory. Content:
Changed:
<
<
File: Description:
data/TWiki/JSCalendarContrib.txt  
lib/TWiki/Contrib/JSCalendarContrib/build.pl  
lib/TWiki/Contrib/JSCalendarContrib.pm  
pub/TWiki/JSCalendarContrib/twiki.js  
pub/TWiki/JSCalendarContrib/bugtest-hidden-selects.html  
pub/TWiki/JSCalendarContrib/calendar-blue2.css  
pub/TWiki/JSCalendarContrib/calendar-blue.css  
pub/TWiki/JSCalendarContrib/calendar-brown.css  
pub/TWiki/JSCalendarContrib/calendar-green.css  
pub/TWiki/JSCalendarContrib/calendar.js  
pub/TWiki/JSCalendarContrib/calendar.php  
pub/TWiki/JSCalendarContrib/calendar-setup.js  
pub/TWiki/JSCalendarContrib/calendar-setup_stripped.js  
pub/TWiki/JSCalendarContrib/calendar_stripped.js  
pub/TWiki/JSCalendarContrib/calendar-system.css  
pub/TWiki/JSCalendarContrib/calendar-tas.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-1.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-2.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-cold-1.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-cold-2.css  
pub/TWiki/JSCalendarContrib/ChangeLog  
pub/TWiki/JSCalendarContrib/dayinfo.html  
pub/TWiki/JSCalendarContrib/doc/html/field-button.jpg  
pub/TWiki/JSCalendarContrib/doc/html/reference.css  
pub/TWiki/JSCalendarContrib/doc/html/reference.html  
pub/TWiki/JSCalendarContrib/doc/html/reference-Z-S.css  
pub/TWiki/JSCalendarContrib/doc/reference.pdf  
pub/TWiki/JSCalendarContrib/img.gif  
pub/TWiki/JSCalendarContrib/index.html  
pub/TWiki/JSCalendarContrib/lang/calendar-af.js  
pub/TWiki/JSCalendarContrib/lang/calendar-al.js  
pub/TWiki/JSCalendarContrib/lang/calendar-bg.js  
pub/TWiki/JSCalendarContrib/lang/calendar-big5.js  
pub/TWiki/JSCalendarContrib/lang/calendar-big5-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-br.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ca.js  
pub/TWiki/JSCalendarContrib/lang/calendar-cs-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-cs-win.js  
pub/TWiki/JSCalendarContrib/lang/calendar-da.js  
pub/TWiki/JSCalendarContrib/lang/calendar-de.js  
pub/TWiki/JSCalendarContrib/lang/calendar-du.js  
pub/TWiki/JSCalendarContrib/lang/calendar-el.js  
pub/TWiki/JSCalendarContrib/lang/calendar-en.js  
pub/TWiki/JSCalendarContrib/lang/calendar-es.js  
pub/TWiki/JSCalendarContrib/lang/calendar-fi.js  
pub/TWiki/JSCalendarContrib/lang/calendar-fr.js  
pub/TWiki/JSCalendarContrib/lang/calendar-he-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-hr.js  
pub/TWiki/JSCalendarContrib/lang/calendar-hr-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-hu.js  
pub/TWiki/JSCalendarContrib/lang/calendar-it.js  
pub/TWiki/JSCalendarContrib/lang/calendar-jp.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ko.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ko-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-lt.js  
pub/TWiki/JSCalendarContrib/lang/calendar-lt-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-lv.js  
pub/TWiki/JSCalendarContrib/lang/calendar-nl.js  
pub/TWiki/JSCalendarContrib/lang/calendar-no.js  
pub/TWiki/JSCalendarContrib/lang/calendar-pl.js  
pub/TWiki/JSCalendarContrib/lang/calendar-pl-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-pt.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ro.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ru_win_.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ru.js  
pub/TWiki/JSCalendarContrib/lang/calendar-si.js  
pub/TWiki/JSCalendarContrib/lang/calendar-sk.js  
pub/TWiki/JSCalendarContrib/lang/calendar-sp.js  
pub/TWiki/JSCalendarContrib/lang/calendar-sv.js  
pub/TWiki/JSCalendarContrib/lang/calendar-tr.js  
pub/TWiki/JSCalendarContrib/lang/calendar-zh.js  
pub/TWiki/JSCalendarContrib/lang/cn_utf8.js  
pub/TWiki/JSCalendarContrib/skins/aqua/active-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/dark-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/hover-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/menuarrow.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/normal-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/rowhover-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/status-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/theme.css  
pub/TWiki/JSCalendarContrib/skins/aqua/title-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/today-bg.gif  
pub/TWiki/JSCalendarContrib/menuarrow.gif  
pub/TWiki/JSCalendarContrib/menuarrow2.gif  
pub/TWiki/JSCalendarContrib/multiple-dates.html  
pub/TWiki/JSCalendarContrib/README  
pub/TWiki/JSCalendarContrib/release-notes.html  
pub/TWiki/JSCalendarContrib/simple-1.html  
pub/TWiki/JSCalendarContrib/simple-2.html  
pub/TWiki/JSCalendarContrib/simple-3.html  
pub/TWiki/JSCalendarContrib/test.php  
pub/TWiki/JSCalendarContrib/test-position.html  
>
>
File: Description:
data/TWiki/JSCalendarContrib.txt  
lib/TWiki/Contrib/JSCalendarContrib/build.pl  
lib/TWiki/Contrib/JSCalendarContrib.pm  
pub/TWiki/JSCalendarContrib/twiki.js  
pub/TWiki/JSCalendarContrib/bugtest-hidden-selects.html  
pub/TWiki/JSCalendarContrib/calendar-blue2.css  
pub/TWiki/JSCalendarContrib/calendar-blue.css  
pub/TWiki/JSCalendarContrib/calendar-brown.css  
pub/TWiki/JSCalendarContrib/calendar-green.css  
pub/TWiki/JSCalendarContrib/calendar.js  
pub/TWiki/JSCalendarContrib/calendar.php  
pub/TWiki/JSCalendarContrib/calendar-setup.js  
pub/TWiki/JSCalendarContrib/calendar-setup_stripped.js  
pub/TWiki/JSCalendarContrib/calendar_stripped.js  
pub/TWiki/JSCalendarContrib/calendar-system.css  
pub/TWiki/JSCalendarContrib/calendar-tas.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-1.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-2.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-cold-1.css  
pub/TWiki/JSCalendarContrib/calendar-win2k-cold-2.css  
pub/TWiki/JSCalendarContrib/ChangeLog  
pub/TWiki/JSCalendarContrib/dayinfo.html  
pub/TWiki/JSCalendarContrib/doc/html/field-button.jpg  
pub/TWiki/JSCalendarContrib/doc/html/reference.css  
pub/TWiki/JSCalendarContrib/doc/html/reference.html  
pub/TWiki/JSCalendarContrib/doc/html/reference-Z-S.css  
pub/TWiki/JSCalendarContrib/doc/reference.pdf  
pub/TWiki/JSCalendarContrib/img.gif  
pub/TWiki/JSCalendarContrib/index.html  
pub/TWiki/JSCalendarContrib/lang/calendar-af.js  
pub/TWiki/JSCalendarContrib/lang/calendar-al.js  
pub/TWiki/JSCalendarContrib/lang/calendar-bg.js  
pub/TWiki/JSCalendarContrib/lang/calendar-big5.js  
pub/TWiki/JSCalendarContrib/lang/calendar-big5-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-br.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ca.js  
pub/TWiki/JSCalendarContrib/lang/calendar-cs-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-cs-win.js  
pub/TWiki/JSCalendarContrib/lang/calendar-da.js  
pub/TWiki/JSCalendarContrib/lang/calendar-de.js  
pub/TWiki/JSCalendarContrib/lang/calendar-du.js  
pub/TWiki/JSCalendarContrib/lang/calendar-el.js  
pub/TWiki/JSCalendarContrib/lang/calendar-en.js  
pub/TWiki/JSCalendarContrib/lang/calendar-es.js  
pub/TWiki/JSCalendarContrib/lang/calendar-fi.js  
pub/TWiki/JSCalendarContrib/lang/calendar-fr.js  
pub/TWiki/JSCalendarContrib/lang/calendar-he-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-hr.js  
pub/TWiki/JSCalendarContrib/lang/calendar-hr-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-hu.js  
pub/TWiki/JSCalendarContrib/lang/calendar-it.js  
pub/TWiki/JSCalendarContrib/lang/calendar-jp.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ko.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ko-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-lt.js  
pub/TWiki/JSCalendarContrib/lang/calendar-lt-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-lv.js  
pub/TWiki/JSCalendarContrib/lang/calendar-nl.js  
pub/TWiki/JSCalendarContrib/lang/calendar-no.js  
pub/TWiki/JSCalendarContrib/lang/calendar-pl.js  
pub/TWiki/JSCalendarContrib/lang/calendar-pl-utf8.js  
pub/TWiki/JSCalendarContrib/lang/calendar-pt.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ro.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ru_win_.js  
pub/TWiki/JSCalendarContrib/lang/calendar-ru.js  
pub/TWiki/JSCalendarContrib/lang/calendar-si.js  
pub/TWiki/JSCalendarContrib/lang/calendar-sk.js  
pub/TWiki/JSCalendarContrib/lang/calendar-sp.js  
pub/TWiki/JSCalendarContrib/lang/calendar-sv.js  
pub/TWiki/JSCalendarContrib/lang/calendar-tr.js  
pub/TWiki/JSCalendarContrib/lang/calendar-zh.js  
pub/TWiki/JSCalendarContrib/lang/cn_utf8.js  
pub/TWiki/JSCalendarContrib/skins/aqua/active-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/dark-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/hover-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/menuarrow.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/normal-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/rowhover-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/status-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/theme.css  
pub/TWiki/JSCalendarContrib/skins/aqua/title-bg.gif  
pub/TWiki/JSCalendarContrib/skins/aqua/today-bg.gif  
pub/TWiki/JSCalendarContrib/menuarrow.gif  
pub/TWiki/JSCalendarContrib/menuarrow2.gif  
pub/TWiki/JSCalendarContrib/multiple-dates.html  
pub/TWiki/JSCalendarContrib/README  
pub/TWiki/JSCalendarContrib/release-notes.html  
pub/TWiki/JSCalendarContrib/simple-1.html  
pub/TWiki/JSCalendarContrib/simple-2.html  
pub/TWiki/JSCalendarContrib/simple-3.html  
pub/TWiki/JSCalendarContrib/test.php  
pub/TWiki/JSCalendarContrib/test-position.html  
 
  • Make sure that all files are readable by the web server user

Contrib Info

Author: TWiki:Main/CrawfordCurrie http://www.c-dot.co.uk
Changed:
<
<
Version: 8670 of the Mishoo calendar
>
>
Version: 9105 of the Mishoo calendar
 
Copyright ©: See the Mishoo documentation
License: GNU LGPL
Dependencies: None
Changed:
<
<
27/12/05 updated to calendar version 1.0; set style for Safari to win2k-1
14/08/04 Separated out from SharedCode module
>
>
Change History:  
6634 Item453 removed EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib. Improved the documentation of the JSCalendar while I was there.
Added:
>
>
6626 Item468 updated docs for Dakar release
5048 Cairo readiness
5039 Split from SharedCode
27 Dec 2005 updated to calendar version 1.0; set style for Safari to win2k-1
14 Aug 2004 Separated out from SharedCode module
 
Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev

Related Topics: TWikiPreferences

Changed:
<
<
-- TWiki:Main/CrawfordCurrie - 23:00:11 01 February 2006
>
>
-- TWiki:Main/CrawfordCurrie - 21:44:48 31 March 2006
 

Revision 12006-02-01 - TWikiContributor

 Mishoo JSCalendar, packaged for use by plugins, skins and add-ons.

Summary of Contents

This module packages the Mishoo JSCalendar Javascript in a form suitable for use with TWiki.

Detailed Documentation

Read the Mishoo documentation or visit the demo page.

This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the function:

addHEAD( $setup )
that can automatically add the required headers to the page being rendered. $setup is the name of the calendar setup module; it can either be ommitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a helper function is added that simplifies using calendars to set a value in a text field. For example,
    # Add styles and javascript for the calendar
    require TWiki::Contrib::JSCalendarContrib;
    if( $@ || !$TWiki::Contrib::JSCalendarContrib::VERSION ||
        $TWiki::Contrib::JSCalendarContrib::VERSION < 0.961 ) {
        TWiki::Func::writeWarning('JSCalendarContrib >=0.961 not found '.$@);
    } else {
        TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );
    }

    $html .= CGI::textfield(
        { name => 'datefield',
          id => "id_datefield" });
    $html .=
          CGI::image_button(
                      -name => 'datefield_calendar',
                      -onclick =>
                          "return showCalendar('id_datefield','%e %B %Y')",
                      -src=> TWiki::Func::getPubUrlPath() . '/' .
                        TWiki::Func::getTwikiWebname() .
                            '/JSCalendarContrib/img.gif',
                      -alt => 'Calendar',
                      -align => 'MIDDLE' );
            }
        }
The first parameter to showCalendar is the id of the textfield. See the Mishoo documentation for details of the '$e %B %Y' parameter.

Note that the header will only be added once, regardless of the number of times that addHEAD is called.

addHEAD can be called from commonTagsHandler for adding the header to all pages, or to beforeEditHandler just for edit pages etc.

Settings

  • Name of the perl package
    • Set STUB = TWiki::Contrib::JSCalendarContrib

Installation Instructions

  • Download the ZIP file from the Plugin web (see below)
  • Unzip JSCalendarContrib.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/JSCalendarContrib.txt  
    lib/TWiki/Contrib/JSCalendarContrib/build.pl  
    lib/TWiki/Contrib/JSCalendarContrib.pm  
    pub/TWiki/JSCalendarContrib/twiki.js  
    pub/TWiki/JSCalendarContrib/bugtest-hidden-selects.html  
    pub/TWiki/JSCalendarContrib/calendar-blue2.css  
    pub/TWiki/JSCalendarContrib/calendar-blue.css  
    pub/TWiki/JSCalendarContrib/calendar-brown.css  
    pub/TWiki/JSCalendarContrib/calendar-green.css  
    pub/TWiki/JSCalendarContrib/calendar.js  
    pub/TWiki/JSCalendarContrib/calendar.php  
    pub/TWiki/JSCalendarContrib/calendar-setup.js  
    pub/TWiki/JSCalendarContrib/calendar-setup_stripped.js  
    pub/TWiki/JSCalendarContrib/calendar_stripped.js  
    pub/TWiki/JSCalendarContrib/calendar-system.css  
    pub/TWiki/JSCalendarContrib/calendar-tas.css  
    pub/TWiki/JSCalendarContrib/calendar-win2k-1.css  
    pub/TWiki/JSCalendarContrib/calendar-win2k-2.css  
    pub/TWiki/JSCalendarContrib/calendar-win2k-cold-1.css  
    pub/TWiki/JSCalendarContrib/calendar-win2k-cold-2.css  
    pub/TWiki/JSCalendarContrib/ChangeLog  
    pub/TWiki/JSCalendarContrib/dayinfo.html  
    pub/TWiki/JSCalendarContrib/doc/html/field-button.jpg  
    pub/TWiki/JSCalendarContrib/doc/html/reference.css  
    pub/TWiki/JSCalendarContrib/doc/html/reference.html  
    pub/TWiki/JSCalendarContrib/doc/html/reference-Z-S.css  
    pub/TWiki/JSCalendarContrib/doc/reference.pdf  
    pub/TWiki/JSCalendarContrib/img.gif  
    pub/TWiki/JSCalendarContrib/index.html  
    pub/TWiki/JSCalendarContrib/lang/calendar-af.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-al.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-bg.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-big5.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-big5-utf8.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-br.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-ca.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-cs-utf8.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-cs-win.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-da.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-de.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-du.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-el.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-en.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-es.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-fi.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-fr.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-he-utf8.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-hr.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-hr-utf8.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-hu.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-it.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-jp.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-ko.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-ko-utf8.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-lt.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-lt-utf8.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-lv.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-nl.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-no.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-pl.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-pl-utf8.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-pt.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-ro.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-ru_win_.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-ru.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-si.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-sk.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-sp.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-sv.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-tr.js  
    pub/TWiki/JSCalendarContrib/lang/calendar-zh.js  
    pub/TWiki/JSCalendarContrib/lang/cn_utf8.js  
    pub/TWiki/JSCalendarContrib/skins/aqua/active-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/dark-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/hover-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/menuarrow.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/normal-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/rowhover-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/status-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/theme.css  
    pub/TWiki/JSCalendarContrib/skins/aqua/title-bg.gif  
    pub/TWiki/JSCalendarContrib/skins/aqua/today-bg.gif  
    pub/TWiki/JSCalendarContrib/menuarrow.gif  
    pub/TWiki/JSCalendarContrib/menuarrow2.gif  
    pub/TWiki/JSCalendarContrib/multiple-dates.html  
    pub/TWiki/JSCalendarContrib/README  
    pub/TWiki/JSCalendarContrib/release-notes.html  
    pub/TWiki/JSCalendarContrib/simple-1.html  
    pub/TWiki/JSCalendarContrib/simple-2.html  
    pub/TWiki/JSCalendarContrib/simple-3.html  
    pub/TWiki/JSCalendarContrib/test.php  
    pub/TWiki/JSCalendarContrib/test-position.html  

  • Make sure that all files are readable by the web server user

Contrib Info

Author: TWiki:Main/CrawfordCurrie http://www.c-dot.co.uk
Version: 8670 of the Mishoo calendar
Copyright ©: See the Mishoo documentation
License: GNU LGPL
Dependencies: None
27/12/05 updated to calendar version 1.0; set style for Safari to win2k-1
14/08/04 Separated out from SharedCode module
Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev

Related Topics: TWikiPreferences

-- TWiki:Main/CrawfordCurrie - 23:00:11 01 February 2006

 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.JSCalendarContrib.