From 407cca7faea41e62077185d1ddc23f652fd2fd31 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Thu, 18 Aug 2005 22:27:26 +0000 Subject: add calendar module that works quite well with the existing calendar --- templates/calendar_inc.tpl | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 templates/calendar_inc.tpl (limited to 'templates') diff --git a/templates/calendar_inc.tpl b/templates/calendar_inc.tpl new file mode 100644 index 0000000..94f1966 --- /dev/null +++ b/templates/calendar_inc.tpl @@ -0,0 +1,43 @@ + + + + + + + + + + + {section name="day_of_week" loop=$day_of_week_abbrevs} + + {/section} + + {section name="row" loop=$calendar} + + {section name="col" loop=$calendar[row]} + {assign var="date" value=$calendar[row][col]} + {if $date == $selected_date} + + {elseif $date|date_format:"%m" == $month} + + {else} + + {/if} + {/section} + + {/section} +
{$month_name} {$year}
+ + « {$prev_month_abbrev} + + + {tr}Today{/tr} + + + {$next_month_abbrev} » + +
{$day_of_week_abbrevs[day_of_week]}
{$date|date_format:"%e"} + + {$date|date_format:"%e"} + +
-- cgit v1.3