diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-08-21 11:16:26 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-08-21 11:16:26 +0000 |
| commit | 1b63a16645062a86ca6a9ca52f57d762c8e40c53 (patch) | |
| tree | 6d9917e6053d159815f6ab74cd440e7dd1eac1dd /templates | |
| parent | 2c0099f126ee49bc812160a50f9eee473eb902e5 (diff) | |
| download | calendar-1b63a16645062a86ca6a9ca52f57d762c8e40c53.tar.gz calendar-1b63a16645062a86ca6a9ca52f57d762c8e40c53.tar.bz2 calendar-1b63a16645062a86ca6a9ca52f57d762c8e40c53.zip | |
move day building section to Calendar class, move navigation to a hash, introduce time offset depending on user location
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/calendar.tpl | 16 | ||||
| -rw-r--r-- | templates/calendar_nav_inc.tpl | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/templates/calendar.tpl b/templates/calendar.tpl index eeb0e66..8fc1205 100644 --- a/templates/calendar.tpl +++ b/templates/calendar.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_calendar/templates/calendar.tpl,v 1.17 2005/08/21 09:54:50 squareing Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_calendar/templates/calendar.tpl,v 1.18 2005/08/21 11:16:26 squareing Exp $ *} {strip} {if !$gBitSystem->isFeatureActive( 'feature_helppopup' )} @@ -19,13 +19,13 @@ {include file="bitpackage:calendar/calendar_nav_inc.tpl"} <table class="data {$smarty.session.calendar.view_mode}"> - <caption>{tr}Selection: {$focus_date|bit_long_date}{/tr}</caption> + <caption>{tr}Selection: {$navigation.focus_date|bit_long_date}{/tr}</caption> {if $smarty.session.calendar.view_mode eq 'day'} <tr> <th style="width:15%;">{tr}Time{/tr}</th> <th>{tr}Events{/tr}</th> </tr> - {foreach item=t from=$dayTime} + {foreach item=t from=$calDay} <tr class="{cycle values="odd,even"}"> <td style="text-align:right; vertical-align:top; padding-right:15px;">{$t.time|date_format:"%R"}</td> <td> @@ -49,12 +49,12 @@ {/foreach} </tr> - {foreach from=$calendar key=week_num item=week} + {foreach from=$calMonth key=week_num item=week} <tr style="height:6em;"> <th>{$week_num}</th> {foreach from=$week item=day} {if $smarty.session.calendar.view_mode eq "month"} - {if $day.day|date_format:"%m" eq $focusmonth} + {if $day.day|date_format:"%m" eq $navigation.focus_month} {cycle values="odd,even" print=false advance=false} {else} {cycle values="notmonth" print=false advance=false} @@ -64,10 +64,10 @@ {/if} <td class="calday {cycle}" style="vertical-align:top;"> - {if $day.day|date_format:"%m" eq $focusmonth or $smarty.session.calendar.view_mode eq "week"} - {if $day.day eq $focus_date}<strong>{/if} + {if $day.day|date_format:"%m" eq $navigation.focus_month or $smarty.session.calendar.view_mode eq "week"} + {if $day.day eq $navigation.focus_date}<strong>{/if} <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$day.day}&{$url_string}">{$day.day|date_format:"%d"}</a> - {if $day.day eq $focus_date}</strong>{/if} + {if $day.day eq $navigation.focus_date}</strong>{/if} <hr /> {* - Calendar Content - *} diff --git a/templates/calendar_nav_inc.tpl b/templates/calendar_nav_inc.tpl index 1a73cbd..03fd4f8 100644 --- a/templates/calendar_nav_inc.tpl +++ b/templates/calendar_nav_inc.tpl @@ -36,10 +36,10 @@ <table> <tr> <td rowspan="2" style="text-align:left;"> - <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$daybefore}&{$url_string}" title="{$daybefore|bit_long_date}">« {tr}day{/tr}</a><br /> - <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$weekbefore}&{$url_string}" title="{$weekbefore|bit_long_date}">« {tr}week{/tr}</a><br /> - <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$monthbefore}&{$url_string}" title="{$monthbefore|bit_long_date}">« {tr}month{/tr}</a><br /> - <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$yearbefore}&{$url_string}" title="{$yearbefore|bit_long_date}">« {tr}year{/tr}</a> + <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$navigation.before.day}&{$url_string}" title="{$navigation.before.day|bit_long_date}">« {tr}day{/tr}</a><br /> + <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$navigation.before.week}&{$url_string}" title="{$navigation.before.week|bit_long_date}">« {tr}week{/tr}</a><br /> + <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$navigation.before.month}&{$url_string}" title="{$navigation.before.month|bit_long_date}">« {tr}month{/tr}</a><br /> + <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$navigation.before.year}&{$url_string}" title="{$navigation.before.year|bit_long_date}">« {tr}year{/tr}</a> </td> <td style="text-align:center;"> @@ -47,10 +47,10 @@ </td> <td rowspan="2" style="text-align:right;"> - <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$dayafter}&{$url_string}" title="{$dayafter|bit_long_date}">{tr}day{/tr} »</a><br /> - <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$weekafter}&{$url_string}" title="{$weekafter|bit_long_date}">{tr}week{/tr} »</a><br /> - <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$monthafter}&{$url_string}" title="{$monthafter|bit_long_date}">{tr}month{/tr} »</a><br /> - <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$yearafter}&{$url_string}" title="{$yearafter|bit_long_date}">{tr}year{/tr} »</a> + <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$navigation.after.day}&{$url_string}" title="{$navigation.after.day|bit_long_date}">{tr}day{/tr} »</a><br /> + <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$navigation.after.week}&{$url_string}" title="{$navigation.after.week|bit_long_date}">{tr}week{/tr} »</a><br /> + <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$navigation.after.month}&{$url_string}" title="{$navigation.after.month|bit_long_date}">{tr}month{/tr} »</a><br /> + <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$navigation.after.year}&{$url_string}" title="{$navigation.after.year|bit_long_date}">{tr}year{/tr} »</a> </td> </tr> |
