summaryrefslogtreecommitdiff
path: root/templates/minical.tpl
blob: e5f6bcb3d540caf98efbf378c709caf70c3b90f3 (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
{strip}
{assign var=calendar_url value="`$baseCalendarUrl`?todate="}
{assign var=calendar_day_url value="`$baseCalendarUrl`?view_mode=day&todate="}
<table class="minical" border="0" cellpadding="1" cellspacing="1">
	<tr>
		<th class="month odd" colspan="7">
    			{$month_name}&nbsp;{$year}
		</th>
	</tr>
	<tr>
		<td colspan="3" class="last">
			<a href="{$calendar_url}{$last_month}"> &lt;&nbsp;&lt; </a>
		</td>
		<td colspan="4" class="next">
			<a href="{$calendar_url}{$next_month}"> &gt;&nbsp;&gt; </a>
		</td>
	</tr>
	<tr>
		{section name="dow" loop=$dow_abbrevs}
			<th class="dow">{$dow_abbrevs[dow]}</th>
		{/section}
	</tr>
	{section name="row" loop=$calendar}
		<tr>
			{section name="col" loop=$calendar[row]}
			        {assign var="date" value=$calendar[row][col]}
					<td class="day {cycle name=daycolor values="even,odd"}{if $date.today} selected{/if}{if $date.dim} dim{/if}">
						<a href="{$calendar_day_url}{$date.time}">
							{$date.time|date_format:"%e"}
						</a>
					</td>
			{/section}
		</tr>
	{/section}
	<tr>
		<td class="today odd" colspan="7">
			<a href="{$calendar_url}{$today}">Today</a>
		</td>
	</tr>
</table>
{/strip}