blob: 185d2915ea7fb133e5be9f3ef9c15045a131ce37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{strip}
{bitmodule title="$moduleTitle" name="calendar"}
<table class="caltable">
<caption>{$modCalNavigation.focus_date|date_format:"%B %Y"}</caption>
<tr>
<td style="text-align:left;">
<a href="{$smarty.server.SCRIPT_NAME}?todate={$modCalNavigation.before.year}&{$url_string}" title="{$modCalNavigation.before.year|bit_long_date}">«{tr}y{/tr}</a>
</td>
<td style="text-align:left;">
<a href="{$smarty.server.SCRIPT_NAME}?todate={$modCalNavigation.before.month}&{$url_string}" title="{$modCalNavigation.before.month|bit_long_date}">«{tr}m{/tr}</a><br />
</td>
<td colspan="3" style="text-align:center;">
<a href="{$smarty.server.SCRIPT_NAME}?todate={$smarty.now}&{$url_string}" title="{$smarty.now|bit_long_date}">{tr}Today{/tr}</a>
</td>
<td style="text-align:right;">
<a href="{$smarty.server.SCRIPT_NAME}?todate={$modCalNavigation.after.month}&{$url_string}" title="{$modCalNavigation.after.month|bit_long_date}">{tr}m{/tr}»</a><br />
</td>
<td style="text-align:right;">
<a href="{$smarty.server.SCRIPT_NAME}?todate={$modCalNavigation.after.year}&{$url_string}" title="{$modCalNavigation.after.year|bit_long_date}">{tr}y{/tr}»</a>
</td>
</tr>
<tr>
{foreach from=$dayNames item=name}
<th style="width:14%">{$name|truncate:"1":""}</th>
{/foreach}
</tr>
{foreach from=$modCalMonth item=week}
<tr>
{foreach from=$week item=day}
{if $day.day|date_format:"%m" eq $modCalNavigation.focus_month}
{cycle values="odd,even" print=false advance=false}
{else}
{cycle values="notmonth" print=false advance=false}
{/if}
<td class="calday{if $day.day eq $navigation.today} highlight{/if} {cycle}">
{if $day.day|date_format:"%m" eq $modCalNavigation.focus_month}
{if $day.day eq $modCalNavigation.focus_date}<strong>{/if}
<a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$day.day}&{$url_string}">{$day.day|cal_date_format:"%d"}</a>
{if $day.day eq $modCalNavigation.focus_date}</strong>{/if}
{else}
{/if}
</td>
{/foreach}
</tr>
{/foreach}
</table>
{/bitmodule}
{/strip}
|