diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-08-18 22:27:26 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-08-18 22:27:26 +0000 |
| commit | 407cca7faea41e62077185d1ddc23f652fd2fd31 (patch) | |
| tree | 91d09f37e3d07f45f1821d44162ff25c14d57f7d /templates | |
| parent | cbf14e6928764960adf0d486173dbdd57ccfa6a0 (diff) | |
| download | calendar-407cca7faea41e62077185d1ddc23f652fd2fd31.tar.gz calendar-407cca7faea41e62077185d1ddc23f652fd2fd31.tar.bz2 calendar-407cca7faea41e62077185d1ddc23f652fd2fd31.zip | |
add calendar module that works quite well with the existing calendar
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/calendar_inc.tpl | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/templates/calendar_inc.tpl b/templates/calendar_inc.tpl new file mode 100644 index 0000000..94f1966 --- /dev/null +++ b/templates/calendar_inc.tpl @@ -0,0 +1,43 @@ +<table class="calendar" border="0" cellpadding="1" cellspacing="1"> + <caption>{$month_name} {$year}</caption> + <tr> + <td style="text-align:left;" colspan="2"> + <a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$prev_month_end}"> + « {$prev_month_abbrev} + </a> + </td> + + <td style="text-align:center;" colspan="3"> + <a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$smarty.now}">{tr}Today{/tr}</a> + </td> + + <td style="text-align:right;" colspan="2"> + <a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$next_month_begin}"> + {$next_month_abbrev} » + </a> + </td> + </tr> + <tr> + {section name="day_of_week" loop=$day_of_week_abbrevs} + <th>{$day_of_week_abbrevs[day_of_week]}</th> + {/section} + </tr> + {section name="row" loop=$calendar} + <tr> + {section name="col" loop=$calendar[row]} + {assign var="date" value=$calendar[row][col]} + {if $date == $selected_date} + <td style="text-align:right;"><strong>{$date|date_format:"%e"}</strong></td> + {elseif $date|date_format:"%m" == $month} + <td style="text-align:right;"> + <a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$date}"> + {$date|date_format:"%e"} + </a> + </td> + {else} + <td class="day"></td> + {/if} + {/section} + </tr> + {/section} +</table> |
