data/TWiki/JSCalendarContrib.txt,v
author Colas Nahaboo <colas@nahaboo.net>
Sat, 26 Jan 2008 15:50:53 +0100
changeset 0 414e01d06fd5
child 1 e2915a7cbdfa
permissions -rw-r--r--
RELEASE 4.2.0 freetown
     1 head	1.5;
     2 access;
     3 symbols;
     4 locks; strict;
     5 comment	@# @;
     6 
     7 
     8 1.5
     9 date	2008.01.22.03.21.25;	author TWikiContributor;	state Exp;
    10 branches;
    11 next	1.4;
    12 
    13 1.4
    14 date	2007.01.16.04.12.04;	author TWikiContributor;	state Exp;
    15 branches;
    16 next	1.3;
    17 
    18 1.3
    19 date	2006.06.25.16.26.31;	author TWikiContributor;	state Exp;
    20 branches;
    21 next	1.2;
    22 
    23 1.2
    24 date	2006.04.01.05.55.29;	author TWikiContributor;	state Exp;
    25 branches;
    26 next	1.1;
    27 
    28 1.1
    29 date	2006.02.01.12.01.22;	author TWikiContributor;	state Exp;
    30 branches;
    31 next	;
    32 
    33 
    34 desc
    35 @new-topic
    36 @
    37 
    38 
    39 1.5
    40 log
    41 @buildrelease
    42 @
    43 text
    44 @---+!! %TOPIC%
    45 <img src="%ATTACHURL%/screenshot.gif" style="float:right"/>
    46 
    47 %SHORTDESCRIPTION%
    48 
    49 <!--
    50 
    51    PLEASE DO NOT EDIT THIS TOPIC
    52 
    53    It is automatically generated from the subversion repository, and any changes
    54    you make will simply be overwritten the next time a release is generated.
    55 
    56    Instead, you could check your fix in, raise a bug in the Bugs web, or mail thge author.
    57 -->
    58 
    59 %TOC%
    60 
    61 ---++ Summary of Contents
    62 This module packages the [[http://dynarch.com/mishoo/calendar.epl][Mishoo JSCalendar]] Javascript in a form suitable for use with TWiki.
    63 
    64 ---++ Detailed Documentation
    65 
    66 Read [[%ATTACHURL%/doc/html/reference.html][the Mishoo documentation]] or
    67 [[%ATTACHURL%][visit the demo page]] for detailed information on using the
    68 calendar widget.
    69 
    70 This package also includes a small Perl module to make using the calendar
    71 easier from TWiki plugins. This module includes the functions:
    72 
    73 
    74 ---+++ TWiki::Contrib::JSCalendarContrib::renderDateForEdit($name, $value, $format [, \%cssClass]) -> $html
    75 
    76 This is the simplest way to use calendars from a plugin.
    77    * =$name= is the name of the CGI parameter for the calendar
    78      (it should be unique),
    79    * =$value= is the current value of the parameter (may be undef)
    80    * =$format= is the format to use (optional; the default is set
    81      in =configure=). The HTML returned will display a date field
    82      and a drop-down calendar.
    83    * =\%options= is an optional hash containing base options for
    84      the textfield.
    85 Example:
    86 <verbatim>
    87 use TWiki::Contrib::JSCalendarContrib;
    88 ...
    89 my $fromDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
    90    'from', '1 April 1999');
    91 my $toDate = TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
    92    'to', undef, '%Y');
    93 </verbatim>
    94 
    95 
    96 ---+++ TWiki::Contrib::JSCalendarContrib::addHEAD($setup)
    97 
    98 This function will automatically add the headers for the calendar to the page
    99 being rendered. It's intended for use when you want more control over the
   100 formatting of your calendars than =renderDateForEdit= affords. =$setup= is
   101 the name of
   102 the calendar setup module; it can either be omitted, in which case the method
   103 described in the Mishoo documentation can be used to create calendars, or it
   104 can be ='twiki'=, in which case a Javascript helper function called
   105 'showCalendar' is added that simplifies using calendars to set a value in a
   106 text field. For example, say we wanted to display the date with the calendar
   107 icon _before_ the text field, using the format =%Y %b %e=
   108 <verbatim>
   109 # Add styles and javascript for the calendar
   110 use TWiki::Contrib::JSCalendarContrib;
   111 ...
   112 
   113 sub commonTagsHandler {
   114   ....
   115   # Enable 'showCalendar'
   116   TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );
   117 
   118   my $cal = CGI::image_button(
   119       -name => 'img_datefield',
   120       -onclick =>
   121        "return showCalendar('id_datefield','%Y %b %e')",
   122       -src=> TWiki::Func::getPubUrlPath() . '/' .
   123              TWiki::Func::getTwikiWebname() .
   124              '/JSCalendarContrib/img.gif',
   125       -alt => 'Calendar',
   126       -align => 'middle' )
   127     . CGI::textfield(
   128       { name => 'date', id => "id_datefield" });
   129   ....
   130 }
   131 </verbatim>
   132 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.
   133 
   134 =addHEAD= can be called from =commonTagsHandler= for adding the header to all pages, or from =beforeEditHandler= just for edit pages etc.
   135 
   136 
   137 
   138 ---+++ Using the Calendar in user forms
   139 You can also use the calendar directly in your own hand-built forms, without
   140 having to write any code. Just add this inline in the topic text:
   141 <verbatim>
   142 %INCLUDE{"%SYSTEMWEB%/JSCalendarContribInline"}%
   143 </verbatim>
   144 Then, to display a calendar icon next to a text input field:
   145 <verbatim>
   146 <input type="text" id="cal_val_here" />
   147 <input type="image" src="%PUBURL%/%SYSTEMWEB%/JSCalendarContrib/img.gif" onclick="javascript: return showCalendar('cal_val_here','%e %B %Y')" />
   148 </verbatim>
   149 If the contrib is installed, you will see such a field here:
   150 %INCLUDE{"%SYSTEMWEB%/JSCalendarContribInline"}%
   151 <input type="text" id="cal_val_here" />
   152 <input type="image" src="%PUBURL%/%SYSTEMWEB%/JSCalendarContrib/img.gif" onclick="javascript: return showCalendar('cal_val_here','%e %B %Y')" />
   153 
   154 <!--
   155    * Set SHORTDESCRIPTION = [[http://dynarch.com/mishoo/calendar.epl][Mishoo JSCalendar]], packaged for use by plugins, skins and add-ons.
   156 -->
   157 
   158 ---+++ Installation Instructions
   159 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.
   160 
   161 Like many other TWiki extensions, this module is shipped with a fully
   162 automatic installer script written using the Build<nop>Contrib.
   163    * If you have TWiki 4.2 or later, you can install from the =configure= interface (Go to Plugins->Find More Extensions)
   164       * See the [[http://twiki.org/cgi-bin/view/Plugins/BuildContribInstallationSupplement][installation supplement]] on TWiki.org for more information.
   165    * If you have any problems, then you can still install manually from the command-line:
   166       1 Download one of the =.zip= or =.tgz= archives
   167       1 Unpack the archive in the root directory of your TWiki installation.
   168       1 Run the installer script ( =perl &lt;module&gt;_installer= )
   169       1 Run =configure= and enable the module, if it is a plugin.
   170       1 Repeat for any missing dependencies.
   171    * If you are *still* having problems, then instead of running the installer script:
   172       1 Make sure that the file permissions allow the webserver user to access all files.
   173       1 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)
   174       1 Manually edit !LocalSite.cfg to set any configuration variables.
   175 
   176 %IF{"defined 'SYSTEMWEB'" else="<div class='twikiAlert'>%X% WARNING: SYSTEMWEB is not defined in this TWiki. Please add these definitions to your %MAINWEB%.TWikiPreferences, if they are not already there:<br><pre>   * <nop>Set SYSTEMWEB = %<nop>TWIKIWEB%<br>   * <nop>Set USERSWEB = %<nop>MAINWEB%</pre></div>"}%
   177 
   178 	* An administrator can customize the appearance of the calendar by setting the following in =<nop>LocalSite.cfg=
   179      | *Setting* | *Default* |
   180      | =$TWiki::cfg{JSCalendarContrib}{style}= | ='blue'= |
   181      | =$TWiki::cfg{JSCalendarContrib}{lang}= | ='en'= |
   182      | =$TWiki::cfg{JSCalendarContrib}{format}= | ='%e %b %Y'= |
   183 
   184 ---+++ Contrib Info
   185 
   186 Another great TWiki extension from the <a style="text-decoration:none" href="http://wikiring.com"><img src="%ATTACHURLPATH%/wikiringlogo20x20.png" alt="" /> *WikiRing* </a> - working together to improve your wiki experience!
   187 
   188 |  Author: | TWiki:Main/CrawfordCurrie http://c-dot.co.uk |
   189 |  Version: | 16236 (22 Jan 2008) of the Mishoo calendar |
   190 |  Copyright &copy;: | See [[%ATTACHURL%/doc/html/reference.html][the Mishoo documentation]] |
   191 |  License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
   192 |  Dependencies: | None |
   193 | Change History: | |
   194 |  6 Sep 2007 | Bugs:Item4030 Added doc for using the calendar in user forms |
   195 |  13603 | Bugs:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface |
   196 |  11594 | Allow format to be configured. |
   197 |  11415 | Add a =renderFormFieldForEditHandler= so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert) |
   198 |  10247 | Bugs:Item2054 put the calendar at z-index 2000, way above pattern skin divs. |
   199 |  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. |
   200 |  6626 | Bugs:Item468  updated docs for Dakar release |
   201 |  5048 | Cairo readiness |
   202 |  5039 | Split from SharedCode |
   203 |  27 Dec 2005 | updated to calendar version 1.0; set style for Safari to win2k-1|
   204 |  14 Aug 2004 | Separated out from SharedCode module |
   205 |  Home: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC% |
   206 |  Feedback: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Dev |
   207 |  Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Appraisal |
   208 
   209 __Related Topics:__ %SYSTEMWEB%.TWikiPreferences
   210 
   211 %META:FILEATTACHMENT{name="screenshot.gif" attr="h" comment="" version="1"}%
   212 %META:FILEATTACHMENT{name="wikiringlogo20x20.png" attr="h" comment="" version="1"}%
   213 @
   214 
   215 
   216 1.4
   217 log
   218 @buildrelease
   219 @
   220 text
   221 @d2 1
   222 d4 1
   223 a4 1
   224 [[http://dynarch.com/mishoo/calendar.epl][Mishoo JSCalendar]], packaged for use by plugins, skins and add-ons.
   225 a21 1
   226 Read [[%ATTACHURL%/doc/html/reference.html][the Mishoo documentation]] or [[%ATTACHURL%][visit the demo page]].
   227 d23 20
   228 a42 3
   229 This package provides a =renderFormFieldForEditHandler= that could be invoked by a plugin to ensure that forms use the [[http://dynarch.com/mishoo/calendar.epl][Mishoo JSCalendar]] for editing.
   230 
   231 This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the function:
   232 d44 6
   233 a49 1
   234 addHEAD( $setup )
   235 d51 14
   236 a64 1
   237 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,
   238 d66 22
   239 a87 24
   240     # Add styles and javascript for the calendar
   241     require TWiki::Contrib::JSCalendarContrib;
   242     if( $@@ || !$TWiki::Contrib::JSCalendarContrib::VERSION ||
   243         $TWiki::Contrib::JSCalendarContrib::VERSION < 0.961 ) {
   244         TWiki::Func::writeWarning('JSCalendarContrib >=0.961 not found '.$@@);
   245     } else {
   246         TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );
   247     }
   248 
   249     $html .= CGI::textfield(
   250         { name => 'datefield',
   251           id => "id_datefield" });
   252     $html .=
   253           CGI::image_button(
   254                       -name => 'datefield_calendar',
   255                       -onclick =>
   256                           "return showCalendar('id_datefield','%e %B %Y')",
   257                       -src=> TWiki::Func::getPubUrlPath() . '/' .
   258                         TWiki::Func::getTwikiWebname() .
   259                             '/JSCalendarContrib/img.gif',
   260                       -alt => 'Calendar',
   261                       -align => 'MIDDLE' );
   262             }
   263         }
   264 d89 1
   265 a89 1
   266 The first parameter to showCalendar is the id of the textfield. See the Mishoo documentation for details of the '$e %B %Y' parameter.
   267 d91 1
   268 a91 1
   269 Note that the header will only be added once, regardless of the number of times that addHEAD is called.
   270 a92 1
   271 =addHEAD= can be called from =commonTagsHandler= for adding the header to all pages, or to =beforeEditHandler= just for edit pages etc.
   272 d94 20
   273 a113 5
   274 ---+++ Settings
   275 	* Name of the perl package
   276 		* Set STUB = TWiki::Contrib::JSCalendarContrib
   277 	* What do I do
   278 		* Set SHORTDESCRIPTION = [[http://dynarch.com/mishoo/calendar.epl][Mishoo JSCalendar]], packaged for use by plugins, skins and add-ons.
   279 d116 16
   280 d133 1
   281 a133 95
   282 	* Download the archive from the Plugins web (see below)
   283 	* Unpack it in your twiki installation directory. Content:
   284      | *File:* | *Description:* |
   285    | ==data/TWiki/JSCalendarContrib.txt== |  |
   286    | ==lib/TWiki/Contrib/JSCalendarContrib.pm== |  |
   287    | ==pub/TWiki/JSCalendarContrib/twiki.js== |  |
   288    | ==pub/TWiki/JSCalendarContrib/bugtest-hidden-selects.html== |  |
   289    | ==pub/TWiki/JSCalendarContrib/calendar-blue2.css== |  |
   290    | ==pub/TWiki/JSCalendarContrib/calendar-blue.css== |  |
   291    | ==pub/TWiki/JSCalendarContrib/calendar-brown.css== |  |
   292    | ==pub/TWiki/JSCalendarContrib/calendar-green.css== |  |
   293    | ==pub/TWiki/JSCalendarContrib/calendar.js== |  |
   294    | ==pub/TWiki/JSCalendarContrib/calendar.php== |  |
   295    | ==pub/TWiki/JSCalendarContrib/calendar-setup.js== |  |
   296    | ==pub/TWiki/JSCalendarContrib/calendar-setup_stripped.js== |  |
   297    | ==pub/TWiki/JSCalendarContrib/calendar_stripped.js== |  |
   298    | ==pub/TWiki/JSCalendarContrib/calendar-system.css== |  |
   299    | ==pub/TWiki/JSCalendarContrib/calendar-tas.css== |  |
   300    | ==pub/TWiki/JSCalendarContrib/calendar-win2k-1.css== |  |
   301    | ==pub/TWiki/JSCalendarContrib/calendar-win2k-2.css== |  |
   302    | ==pub/TWiki/JSCalendarContrib/calendar-win2k-cold-1.css== |  |
   303    | ==pub/TWiki/JSCalendarContrib/calendar-win2k-cold-2.css== |  |
   304    | ==pub/TWiki/JSCalendarContrib/ChangeLog== |  |
   305    | ==pub/TWiki/JSCalendarContrib/dayinfo.html== |  |
   306    | ==pub/TWiki/JSCalendarContrib/doc/html/field-button.jpg== |  |
   307    | ==pub/TWiki/JSCalendarContrib/doc/html/reference.css== |  |
   308    | ==pub/TWiki/JSCalendarContrib/doc/html/reference.html== |  |
   309    | ==pub/TWiki/JSCalendarContrib/doc/html/reference-Z-S.css== |  |
   310    | ==pub/TWiki/JSCalendarContrib/doc/reference.pdf== |  |
   311    | ==pub/TWiki/JSCalendarContrib/img.gif== |  |
   312    | ==pub/TWiki/JSCalendarContrib/index.html== |  |
   313    | ==pub/TWiki/JSCalendarContrib/lang/calendar-af.js== |  |
   314    | ==pub/TWiki/JSCalendarContrib/lang/calendar-al.js== |  |
   315    | ==pub/TWiki/JSCalendarContrib/lang/calendar-bg.js== |  |
   316    | ==pub/TWiki/JSCalendarContrib/lang/calendar-big5.js== |  |
   317    | ==pub/TWiki/JSCalendarContrib/lang/calendar-big5-utf8.js== |  |
   318    | ==pub/TWiki/JSCalendarContrib/lang/calendar-br.js== |  |
   319    | ==pub/TWiki/JSCalendarContrib/lang/calendar-ca.js== |  |
   320    | ==pub/TWiki/JSCalendarContrib/lang/calendar-cs-utf8.js== |  |
   321    | ==pub/TWiki/JSCalendarContrib/lang/calendar-cs-win.js== |  |
   322    | ==pub/TWiki/JSCalendarContrib/lang/calendar-da.js== |  |
   323    | ==pub/TWiki/JSCalendarContrib/lang/calendar-de.js== |  |
   324    | ==pub/TWiki/JSCalendarContrib/lang/calendar-du.js== |  |
   325    | ==pub/TWiki/JSCalendarContrib/lang/calendar-el.js== |  |
   326    | ==pub/TWiki/JSCalendarContrib/lang/calendar-en.js== |  |
   327    | ==pub/TWiki/JSCalendarContrib/lang/calendar-es.js== |  |
   328    | ==pub/TWiki/JSCalendarContrib/lang/calendar-fi.js== |  |
   329    | ==pub/TWiki/JSCalendarContrib/lang/calendar-fr.js== |  |
   330    | ==pub/TWiki/JSCalendarContrib/lang/calendar-he-utf8.js== |  |
   331    | ==pub/TWiki/JSCalendarContrib/lang/calendar-hr.js== |  |
   332    | ==pub/TWiki/JSCalendarContrib/lang/calendar-hr-utf8.js== |  |
   333    | ==pub/TWiki/JSCalendarContrib/lang/calendar-hu.js== |  |
   334    | ==pub/TWiki/JSCalendarContrib/lang/calendar-it.js== |  |
   335    | ==pub/TWiki/JSCalendarContrib/lang/calendar-jp.js== |  |
   336    | ==pub/TWiki/JSCalendarContrib/lang/calendar-ko.js== |  |
   337    | ==pub/TWiki/JSCalendarContrib/lang/calendar-ko-utf8.js== |  |
   338    | ==pub/TWiki/JSCalendarContrib/lang/calendar-lt.js== |  |
   339    | ==pub/TWiki/JSCalendarContrib/lang/calendar-lt-utf8.js== |  |
   340    | ==pub/TWiki/JSCalendarContrib/lang/calendar-lv.js== |  |
   341    | ==pub/TWiki/JSCalendarContrib/lang/calendar-nl.js== |  |
   342    | ==pub/TWiki/JSCalendarContrib/lang/calendar-no.js== |  |
   343    | ==pub/TWiki/JSCalendarContrib/lang/calendar-pl.js== |  |
   344    | ==pub/TWiki/JSCalendarContrib/lang/calendar-pl-utf8.js== |  |
   345    | ==pub/TWiki/JSCalendarContrib/lang/calendar-pt.js== |  |
   346    | ==pub/TWiki/JSCalendarContrib/lang/calendar-ro.js== |  |
   347    | ==pub/TWiki/JSCalendarContrib/lang/calendar-ru_win_.js== |  |
   348    | ==pub/TWiki/JSCalendarContrib/lang/calendar-ru.js== |  |
   349    | ==pub/TWiki/JSCalendarContrib/lang/calendar-si.js== |  |
   350    | ==pub/TWiki/JSCalendarContrib/lang/calendar-sk.js== |  |
   351    | ==pub/TWiki/JSCalendarContrib/lang/calendar-sp.js== |  |
   352    | ==pub/TWiki/JSCalendarContrib/lang/calendar-sv.js== |  |
   353    | ==pub/TWiki/JSCalendarContrib/lang/calendar-tr.js== |  |
   354    | ==pub/TWiki/JSCalendarContrib/lang/calendar-zh.js== |  |
   355    | ==pub/TWiki/JSCalendarContrib/lang/cn_utf8.js== |  |
   356    | ==pub/TWiki/JSCalendarContrib/skins/aqua/active-bg.gif== |  |
   357    | ==pub/TWiki/JSCalendarContrib/skins/aqua/dark-bg.gif== |  |
   358    | ==pub/TWiki/JSCalendarContrib/skins/aqua/hover-bg.gif== |  |
   359    | ==pub/TWiki/JSCalendarContrib/skins/aqua/menuarrow.gif== |  |
   360    | ==pub/TWiki/JSCalendarContrib/skins/aqua/normal-bg.gif== |  |
   361    | ==pub/TWiki/JSCalendarContrib/skins/aqua/rowhover-bg.gif== |  |
   362    | ==pub/TWiki/JSCalendarContrib/skins/aqua/status-bg.gif== |  |
   363    | ==pub/TWiki/JSCalendarContrib/skins/aqua/theme.css== |  |
   364    | ==pub/TWiki/JSCalendarContrib/skins/aqua/title-bg.gif== |  |
   365    | ==pub/TWiki/JSCalendarContrib/skins/aqua/today-bg.gif== |  |
   366    | ==pub/TWiki/JSCalendarContrib/skins/aqua/transparent-bg.png== |  |
   367    | ==pub/TWiki/JSCalendarContrib/menuarrow.gif== |  |
   368    | ==pub/TWiki/JSCalendarContrib/menuarrow2.gif== |  |
   369    | ==pub/TWiki/JSCalendarContrib/multiple-dates.html== |  |
   370    | ==pub/TWiki/JSCalendarContrib/README== |  |
   371    | ==pub/TWiki/JSCalendarContrib/release-notes.html== |  |
   372    | ==pub/TWiki/JSCalendarContrib/simple-1.html== |  |
   373    | ==pub/TWiki/JSCalendarContrib/simple-2.html== |  |
   374    | ==pub/TWiki/JSCalendarContrib/simple-3.html== |  |
   375    | ==pub/TWiki/JSCalendarContrib/test.php== |  |
   376    | ==pub/TWiki/JSCalendarContrib/test-position.html== |  |
   377 a134 1
   378 	* Make sure that all files are readable by the web server user
   379 d143 4
   380 a146 2
   381 |  Author: | TWiki:Main/CrawfordCurrie http://www.c-dot.co.uk |
   382 |  Version: | 11704 of the Mishoo calendar |
   383 d151 9
   384 a159 7
   385 | 11594 | Allow format to be configured. |
   386 | 11415 | Add a =renderFormFieldForEditHandler= so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert) |
   387 | 10247 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item2054'>Item2054</a>  put the calendar at z-index 2000, way above pattern skin divs. |
   388 | 6634 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item453'>Item453</a>  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. |
   389 | 6626 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item468'>Item468</a>  updated docs for Dakar release |
   390 | 5048 | Cairo readiness |
   391 | 5039 | Split from SharedCode |
   392 d166 1
   393 a166 1
   394 __Related Topics:__ %TWIKIWEB%.TWikiPreferences
   395 d168 2
   396 @
   397 
   398 
   399 1.3
   400 log
   401 @buildrelease
   402 @
   403 text
   404 @d23 2
   405 d167 5
   406 d176 1
   407 a176 1
   408 |  Version: | 10613 of the Mishoo calendar |
   409 a178 1
   410 |
   411 d181 2
   412 @
   413 
   414 
   415 1.2
   416 log
   417 @buildrelease
   418 @
   419 text
   420 @d1 4
   421 a13 1
   422 [[http://dynarch.com/mishoo/calendar.epl][Mishoo JSCalendar]], packaged for use by plugins, skins and add-ons.
   423 d15 3
   424 a17 1
   425 ---+ Summary of Contents
   426 d20 1
   427 a20 1
   428 ---+ Detailed Documentation
   429 d60 1
   430 a60 1
   431 ---++ Settings
   432 d63 2
   433 d66 1
   434 a66 1
   435 ---++ Installation Instructions
   436 d68 2
   437 a69 2
   438 	* Download the ZIP file from the Plugin web (see below)
   439 	* Unzip ==%TOPIC%.zip== in your twiki installation directory. Content:
   440 a71 1
   441    | ==lib/TWiki/Contrib/JSCalendarContrib/build.pl== |  |
   442 d152 1
   443 d166 1
   444 a166 1
   445 ---++ Contrib Info
   446 d169 1
   447 a169 1
   448 |  Version: | 9105 of the Mishoo calendar |
   449 d171 2
   450 a172 1
   451 |  License: | GNU LGPL |
   452 d175 1
   453 d184 1
   454 a187 1
   455 -- TWiki:Main/CrawfordCurrie - 21:44:48 31 March 2006
   456 @
   457 
   458 
   459 1.1
   460 log
   461 @buildrelease
   462 @
   463 text
   464 @d1 9
   465 d24 24
   466 a47 24
   467 	 # Add styles and javascript for the calendar
   468 	 require TWiki::Contrib::JSCalendarContrib;
   469 	 if( $@@ || !$TWiki::Contrib::JSCalendarContrib::VERSION ||
   470 		  $TWiki::Contrib::JSCalendarContrib::VERSION < 0.961 ) {
   471 		  TWiki::Func::writeWarning('JSCalendarContrib >=0.961 not found '.$@@);
   472 	 } else {
   473 		  TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );
   474 	 }
   475 
   476 	 $html .= CGI::textfield(
   477 		  { name => 'datefield',
   478 			 id => "id_datefield" });
   479 	 $html .=
   480 			 CGI::image_button(
   481 							 -name => 'datefield_calendar',
   482 							 -onclick =>
   483 								  "return showCalendar('id_datefield','%e %B %Y')",
   484 							 -src=> TWiki::Func::getPubUrlPath() . '/' .
   485 								TWiki::Func::getTwikiWebname() .
   486 									 '/JSCalendarContrib/img.gif',
   487 							 -alt => 'Calendar',
   488 							 -align => 'MIDDLE' );
   489 				}
   490 		  }
   491 d63 93
   492 a155 93
   493 	  | *File:* | *Description:* |
   494 	| ==data/TWiki/JSCalendarContrib.txt== |  |
   495 	| ==lib/TWiki/Contrib/JSCalendarContrib/build.pl== |  |
   496 	| ==lib/TWiki/Contrib/JSCalendarContrib.pm== |  |
   497 	| ==pub/TWiki/JSCalendarContrib/twiki.js== |  |
   498 	| ==pub/TWiki/JSCalendarContrib/bugtest-hidden-selects.html== |  |
   499 	| ==pub/TWiki/JSCalendarContrib/calendar-blue2.css== |  |
   500 	| ==pub/TWiki/JSCalendarContrib/calendar-blue.css== |  |
   501 	| ==pub/TWiki/JSCalendarContrib/calendar-brown.css== |  |
   502 	| ==pub/TWiki/JSCalendarContrib/calendar-green.css== |  |
   503 	| ==pub/TWiki/JSCalendarContrib/calendar.js== |  |
   504 	| ==pub/TWiki/JSCalendarContrib/calendar.php== |  |
   505 	| ==pub/TWiki/JSCalendarContrib/calendar-setup.js== |  |
   506 	| ==pub/TWiki/JSCalendarContrib/calendar-setup_stripped.js== |  |
   507 	| ==pub/TWiki/JSCalendarContrib/calendar_stripped.js== |  |
   508 	| ==pub/TWiki/JSCalendarContrib/calendar-system.css== |  |
   509 	| ==pub/TWiki/JSCalendarContrib/calendar-tas.css== |  |
   510 	| ==pub/TWiki/JSCalendarContrib/calendar-win2k-1.css== |  |
   511 	| ==pub/TWiki/JSCalendarContrib/calendar-win2k-2.css== |  |
   512 	| ==pub/TWiki/JSCalendarContrib/calendar-win2k-cold-1.css== |  |
   513 	| ==pub/TWiki/JSCalendarContrib/calendar-win2k-cold-2.css== |  |
   514 	| ==pub/TWiki/JSCalendarContrib/ChangeLog== |  |
   515 	| ==pub/TWiki/JSCalendarContrib/dayinfo.html== |  |
   516 	| ==pub/TWiki/JSCalendarContrib/doc/html/field-button.jpg== |  |
   517 	| ==pub/TWiki/JSCalendarContrib/doc/html/reference.css== |  |
   518 	| ==pub/TWiki/JSCalendarContrib/doc/html/reference.html== |  |
   519 	| ==pub/TWiki/JSCalendarContrib/doc/html/reference-Z-S.css== |  |
   520 	| ==pub/TWiki/JSCalendarContrib/doc/reference.pdf== |  |
   521 	| ==pub/TWiki/JSCalendarContrib/img.gif== |  |
   522 	| ==pub/TWiki/JSCalendarContrib/index.html== |  |
   523 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-af.js== |  |
   524 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-al.js== |  |
   525 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-bg.js== |  |
   526 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-big5.js== |  |
   527 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-big5-utf8.js== |  |
   528 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-br.js== |  |
   529 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-ca.js== |  |
   530 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-cs-utf8.js== |  |
   531 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-cs-win.js== |  |
   532 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-da.js== |  |
   533 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-de.js== |  |
   534 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-du.js== |  |
   535 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-el.js== |  |
   536 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-en.js== |  |
   537 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-es.js== |  |
   538 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-fi.js== |  |
   539 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-fr.js== |  |
   540 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-he-utf8.js== |  |
   541 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-hr.js== |  |
   542 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-hr-utf8.js== |  |
   543 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-hu.js== |  |
   544 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-it.js== |  |
   545 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-jp.js== |  |
   546 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-ko.js== |  |
   547 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-ko-utf8.js== |  |
   548 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-lt.js== |  |
   549 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-lt-utf8.js== |  |
   550 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-lv.js== |  |
   551 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-nl.js== |  |
   552 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-no.js== |  |
   553 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-pl.js== |  |
   554 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-pl-utf8.js== |  |
   555 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-pt.js== |  |
   556 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-ro.js== |  |
   557 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-ru_win_.js== |  |
   558 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-ru.js== |  |
   559 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-si.js== |  |
   560 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-sk.js== |  |
   561 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-sp.js== |  |
   562 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-sv.js== |  |
   563 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-tr.js== |  |
   564 	| ==pub/TWiki/JSCalendarContrib/lang/calendar-zh.js== |  |
   565 	| ==pub/TWiki/JSCalendarContrib/lang/cn_utf8.js== |  |
   566 	| ==pub/TWiki/JSCalendarContrib/skins/aqua/active-bg.gif== |  |
   567 	| ==pub/TWiki/JSCalendarContrib/skins/aqua/dark-bg.gif== |  |
   568 	| ==pub/TWiki/JSCalendarContrib/skins/aqua/hover-bg.gif== |  |
   569 	| ==pub/TWiki/JSCalendarContrib/skins/aqua/menuarrow.gif== |  |
   570 	| ==pub/TWiki/JSCalendarContrib/skins/aqua/normal-bg.gif== |  |
   571 	| ==pub/TWiki/JSCalendarContrib/skins/aqua/rowhover-bg.gif== |  |
   572 	| ==pub/TWiki/JSCalendarContrib/skins/aqua/status-bg.gif== |  |
   573 	| ==pub/TWiki/JSCalendarContrib/skins/aqua/theme.css== |  |
   574 	| ==pub/TWiki/JSCalendarContrib/skins/aqua/title-bg.gif== |  |
   575 	| ==pub/TWiki/JSCalendarContrib/skins/aqua/today-bg.gif== |  |
   576 	| ==pub/TWiki/JSCalendarContrib/menuarrow.gif== |  |
   577 	| ==pub/TWiki/JSCalendarContrib/menuarrow2.gif== |  |
   578 	| ==pub/TWiki/JSCalendarContrib/multiple-dates.html== |  |
   579 	| ==pub/TWiki/JSCalendarContrib/README== |  |
   580 	| ==pub/TWiki/JSCalendarContrib/release-notes.html== |  |
   581 	| ==pub/TWiki/JSCalendarContrib/simple-1.html== |  |
   582 	| ==pub/TWiki/JSCalendarContrib/simple-2.html== |  |
   583 	| ==pub/TWiki/JSCalendarContrib/simple-3.html== |  |
   584 	| ==pub/TWiki/JSCalendarContrib/test.php== |  |
   585 	| ==pub/TWiki/JSCalendarContrib/test-position.html== |  |
   586 d162 1
   587 a162 1
   588 |  Version: | 8670 of the Mishoo calendar |
   589 d166 7
   590 a172 2
   591 |  27/12/05 | updated to calendar version 1.0; set style for Safari to win2k-1|
   592 |  14/08/04 | Separated out from SharedCode module |
   593 d178 1
   594 a178 1
   595 -- TWiki:Main/CrawfordCurrie - 23:00:11 01 February 2006
   596 @