source: extensions/floOS/month_calendar.tpl @ 5045

Last change on this file since 5045 was 3334, checked in by flop25, 15 years ago

first commit

File size: 2.1 KB
Line 
1{* $Id: month_calendar.tpl 2334 2008-05-08 01:13:13Z rvelices $ *}
2
3{if !empty($chronology_navigation_bars) }
4{foreach from=$chronology_navigation_bars item=bar}
5<div class="calendarBar">
6  {if isset($bar.previous)}
7    <div style="float:left">&laquo; <a href="{$bar.previous.URL}">{$bar.previous.LABEL}</a></div>
8  {/if}
9  {if isset($bar.next)}
10    <div style="float:right"><a href="{$bar.next.URL}">{$bar.next.LABEL}</a> &raquo;</div>
11  {/if}
12  {if isset($bar.CONTENT)}
13  {$bar.CONTENT}
14  {else}
15  &nbsp;
16  {/if}
17</div>
18{/foreach}
19{/if}
20
21{if !empty($chronology_calendar.calendar_bars) }
22{foreach from=$chronology_calendar.calendar_bars item=bar}
23<div class="calendarCalBar">
24  <span class="calCalHead"><a href="{$bar.U_HEAD}">{$bar.HEAD_LABEL}</a>  ({$bar.NB_IMAGES})</span><br/>
25  {$bar.NAV_BAR}
26</div>
27{/foreach}
28{/if}
29
30{if isset($chronology_calendar.month_view) }
31<table class="calMonth">
32 <thead>
33 <tr>
34 {foreach from=$chronology_calendar.month_view.wday_labels item=wday}
35        <td class="calDayHead">{$wday}</td>
36 {/foreach}
37 </tr>
38 </thead>
39{html_head} {*add the style to html head for strict standard compliance*}
40<style type="text/css">
41TABLE.calMonth TBODY TD, TABLE.calMonth TBODY TD DIV.calImg {ldelim}
42  width:{$chronology_calendar.month_view.CELL_WIDTH}px;height:{$chronology_calendar.month_view.CELL_HEIGHT}px;
43}
44</style>
45{/html_head}
46 {foreach from=$chronology_calendar.month_view.weeks item=week}
47 <tr>
48        {foreach from=$week item=day}
49        {if !empty($day)}
50                {if isset($day.IMAGE)}
51                        <td class="calDayCellFull">
52                                <div class="calBackDate">{$day.DAY}</div><div class="calForeDate">{$day.DAY}</div>
53                                <div class="calImg">
54                                        <a href="{$day.U_IMG_LINK}">
55                                                <img style="{$day.IMAGE_STYLE}" src="{$day.IMAGE}" alt="{$day.IMAGE_ALT}" title="{$pwg->l10n_dec('%d element','%d elements', $day.NB_ELEMENTS)}" />
56                                        </a>
57                                </div>
58                {else}
59                        <td class="calDayCellEmpty">{$day.DAY}
60                {/if}
61        {else}
62                <td class="calDayCellBlank">
63        {/if}
64        </td>
65        {/foreach} {*day in week*}
66 </tr>
67 {/foreach}  {*week in month*}
68</table>
69{/if}
70
Note: See TracBrowser for help on using the repository browser.