summaryrefslogtreecommitdiffstats
path: root/templates/calendar.tpl
blob: 1f527321987f320d4c96b7191dc3a4826df6a212 (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
<table class="calendar">
 <tr>
  <td><a href="{$prev_month}" class="prevMonth">&lt;&lt;</a></td>
  <td colspan="5">
   {$current_month}
  </td>
  <td><a href="{$next_month}" class="nextMonth">&gt;&gt;</a></td>
 </tr>
 <tr>
  <td>M</td>
  <td>T</td>
  <td>W</td>
  <td>T</td>
  <td>F</td>
  <td>S</td>
  <td>S</td>
 </tr>
 <!-- matrix -->
 {section name="row" loop=$rows step=1}
  {section name="col" loop=8 step=1}
   {if $matrix[row][col] }
    {$matrix[row][col]}
   {/if}
  {/section}
 {/section}
 <!-- /matrix -->
</table>