Personal Calendar for TWikiGuest

<!-- This HTML draws the calendar.  Remove the two verbatim tags and save your work!!!   -->
<div style="width: 90%">
<!--
%CALC{"$SET(curtime, $IF($LENGTH(%URLPARAM{"year"}%) == 0, $TIME(), $TIME(%URLPARAM{"year"}%-%URLPARAM{"month"}%-01)))"}% %CALC{"$SET(curyear, $VALUE($FORMATTIME($GET(curtime), $year)))"}% %CALC{"$SET(prevyear, $EVAL($GET(curyear) - 1))"}% %CALC{"$SET(nextyear, $EVAL($GET(curyear) + 1))"}% %CALC{"$SET(curmonth, $VALUE($FORMATTIME($GET(curtime), $month)))"}% %CALC{"$SET(curmonthminusone, $EVAL($GET(curmonth) - 1))"}% %CALC{"$SET(curmonthplusone, $EVAL($GET(curmonth) + 1))"}% %CALC{"$SET(prevmonthtime, $IF($GET(curmonthminusone) == 0, $TIME($GET(prevyear)-12-01), $TIME($GET(curyear)-$GET(curmonthminusone)-01)))"}% %CALC{"$SET(nextmonthtime, $IF($GET(curmonthplusone) == 13, $TIME($GET(nextyear)-01-01), $TIME($GET(curyear)-$GET(curmonthplusone)-01)))"}%
   * Set CURYEAR = %CALC{"$GET(curyear)"}%
   * Set PREVYEAR = %CALC{"$GET(prevyear)"}%
   * Set NEXTYEAR = %CALC{"$GET(nextyear)"}%
   * Set CURMONTH = %CALC{"$GET(curmonth)"}%
   * Set PREVMONTH = %CALC{"$VALUE($FORMATTIME($GET(prevmonthtime), $month))"}%
   * Set PREVMONTHYEAR = %CALC{"$VALUE($FORMATTIME($GET(prevmonthtime), $year))"}%
   * Set PREVMONTHNAME = %CALC{"$FORMATTIME($GET(prevmonthtime), $mon)"}%
   * Set NEXTMONTH = %CALC{"$VALUE($FORMATTIME($GET(nextmonthtime), $month))"}%
   * Set NEXTMONTHYEAR = %CALC{"$VALUE($FORMATTIME($GET(nextmonthtime), $year))"}%
   * Set NEXTMONTHNAME = %CALC{"$FORMATTIME($GET(nextmonthtime), $mon)"}%
-->
  <div style="float: left;">
    <div style="float: left; padding: 1em 1.5em;">
      [[%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%?year=%PREVYEAR%&month=%CURMONTH%][%ICON{"go_fb"}% %PREVYEAR%]]
    </div>
    <div style="float: left; padding: 1em 1.5em;">
      [[%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%?year=%PREVMONTHYEAR%&month=%PREVMONTH%][%ICON{"go_back"}% %PREVMONTHNAME%]]
    </div>
  </div>
  <div style="float: right;">
    <div style="float: left; padding: 1em 1.5em;">
      [[%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%?year=%NEXTMONTHYEAR%&month=%NEXTMONTH%][%NEXTMONTHNAME% %ICON{"go_forward"}%]]</span>
    </div>
    <div style="float: left; padding: 1em 1.5em;">
      [[%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%?year=%NEXTYEAR%&month=%CURMONTH%][%NEXTYEAR% %ICON{"go_ff"}%]]</span>
    </div>
  </div>
  <div style="text-align: center; padding: 1em 1.5em;">
    [[%TOPIC%][Today]]
  </div>
  <div style="clear: both; width: 100%;">
%CALENDAR{topic="%TOPIC%, CalendarHolidays" width="100%" cellheight="100" vcellalignment="top" showweekdayheaders="1" year="%CURYEAR%" month="%CURMONTH%" daynames="Mon|Tue|Wed|Thu|Fri|Sat|Sun"}%
  </div>
</div>

30 Day Calendar as a List for TWikiGuest

  • 23 May 2012 - Start List Here
  • 28 May 2012 - Memorial Day (USA)

Event List

  • 23 May 2012 - Start List Here
 

Action Items

Links

Topic revision: r2 - 28 May 2008 - 04:07:56 - JimCrum
 
This site is powered by the TWiki collaboration platformCopyright © 2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Permission to copy, distribute and/or modify is granted for this document under the GNU Free Documentation License.
Ideas, requests, problems regarding WikiOraApps? Send feedback