data/TWiki/JSCalendarContrib.txt
changeset 1 e2915a7cbdfa
parent 0 414e01d06fd5
equal deleted inserted replaced
0:414e01d06fd5 1:e2915a7cbdfa
    84     . CGI::textfield(
    84     . CGI::textfield(
    85       { name => 'date', id => "id_datefield" });
    85       { name => 'date', id => "id_datefield" });
    86   ....
    86   ....
    87 }
    87 }
    88 </verbatim>
    88 </verbatim>
    89 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.
    89 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'.
       
    90 
       
    91 All available date specifiers:
       
    92 <verbatim>
       
    93 %a - abbreviated weekday name 
       
    94 %A - full weekday name 
       
    95 %b - abbreviated month name 
       
    96 %B - full month name 
       
    97 %C - century number 
       
    98 %d - the day of the month ( 00 .. 31 ) 
       
    99 %e - the day of the month ( 0 .. 31 ) 
       
   100 %H - hour ( 00 .. 23 ) 
       
   101 %I - hour ( 01 .. 12 ) 
       
   102 %j - day of the year ( 000 .. 366 ) 
       
   103 %k - hour ( 0 .. 23 ) 
       
   104 %l - hour ( 1 .. 12 ) 
       
   105 %m - month ( 01 .. 12 ) 
       
   106 %M - minute ( 00 .. 59 ) 
       
   107 %n - a newline character 
       
   108 %p - "PM" or "AM"
       
   109 %P - "pm" or "am"
       
   110 %S - second ( 00 .. 59 ) 
       
   111 %s - number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC) 
       
   112 %t - a tab character 
       
   113 %U, %W, %V - the week number
       
   114    The week 01 is the week that has the Thursday in the current year,
       
   115    which is equivalent to the week that contains the fourth day of January. 
       
   116    Weeks start on Monday.
       
   117 %u - the day of the week ( 1 .. 7, 1 = MON ) 
       
   118 %w - the day of the week ( 0 .. 6, 0 = SUN ) 
       
   119 %y - year without the century ( 00 .. 99 ) 
       
   120 %Y - year including the century ( ex. 1979 ) 
       
   121 %% - a literal % character 
       
   122 </verbatim>
    90 
   123 
    91 =addHEAD= can be called from =commonTagsHandler= for adding the header to all pages, or from =beforeEditHandler= just for edit pages etc.
   124 =addHEAD= can be called from =commonTagsHandler= for adding the header to all pages, or from =beforeEditHandler= just for edit pages etc.
    92 
   125 
    93 
   126 
    94 
   127 
   141 ---+++ Contrib Info
   174 ---+++ Contrib Info
   142 
   175 
   143 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!
   176 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!
   144 
   177 
   145 |  Author: | TWiki:Main/CrawfordCurrie http://c-dot.co.uk |
   178 |  Author: | TWiki:Main/CrawfordCurrie http://c-dot.co.uk |
   146 |  Version: | 16236 (22 Jan 2008) of the Mishoo calendar |
   179 |  Version: | 03 Aug 2008 |
   147 |  Copyright &copy;: | See [[%ATTACHURL%/doc/html/reference.html][the Mishoo documentation]] |
   180 |  Copyright &copy;: | See [[%ATTACHURL%/doc/html/reference.html][the Mishoo documentation]] |
   148 |  License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
   181 |  License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
   149 |  Dependencies: | None |
   182 |  Dependencies: | None |
   150 | Change History: | |
   183 |  Change History: | |
       
   184 |  03 Aug 2008 | TWiki 4.2.1 release version incl new calendar icon |
   151 |  6 Sep 2007 | Bugs:Item4030 Added doc for using the calendar in user forms |
   185 |  6 Sep 2007 | Bugs:Item4030 Added doc for using the calendar in user forms |
   152 |  13603 | Bugs:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface |
   186 |  13603 | Bugs:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface |
   153 |  11594 | Allow format to be configured. |
   187 |  11594 | Allow format to be configured. |
   154 |  11415 | Add a =renderFormFieldForEditHandler= so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert) |
   188 |  11415 | Add a =renderFormFieldForEditHandler= so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert) |
   155 |  10247 | Bugs:Item2054 put the calendar at z-index 2000, way above pattern skin divs. |
   189 |  10247 | Bugs:Item2054 put the calendar at z-index 2000, way above pattern skin divs. |