diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-02-21 12:55:52 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-02-21 12:55:52 +0000 |
| commit | fb5cc257c7618f01a5f9b32047bf5239c1e6a07d (patch) | |
| tree | 9cdc5753834030801be3f7b34ce5d739479b963b /templates | |
| parent | 6152b0aac5ec2e3086f6bbfc3646a607cfd782b3 (diff) | |
| download | calendar-fb5cc257c7618f01a5f9b32047bf5239c1e6a07d.tar.gz calendar-fb5cc257c7618f01a5f9b32047bf5239c1e6a07d.tar.bz2 calendar-fb5cc257c7618f01a5f9b32047bf5239c1e6a07d.zip | |
use jscalendar function
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/calendar_nav_inc.tpl | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/templates/calendar_nav_inc.tpl b/templates/calendar_nav_inc.tpl index 915a335..9064a5d 100644 --- a/templates/calendar_nav_inc.tpl +++ b/templates/calendar_nav_inc.tpl @@ -1,3 +1,4 @@ +{strip} <div class="navbar"> <ul> {if $smarty.request.user_id} @@ -27,34 +28,23 @@ {/form} </div> - <script type="text/javascript">//<![CDATA[ + <script type="text/javascript">/* <![CDATA[ */ function gotocal() {ldelim} document.getElementById('f').submit(); {rdelim} + /* ]]> */</script> - Calendar.setup( {ldelim} - date : "{$navigation.focus_date|bit_date_format:"%m/%d/%Y %H:%M"}", // initial date - inputField : "todate", // ID of the input field - ifFormat : "%s", // the date format - displayArea : "datrigger", // ID of the span where the date is to be shown - daFormat : "{"%d/%m/%Y %H:%M"}", // format of the displayed date - electric : false, - onUpdate : gotocal - {rdelim} ); - //]]></script> + {jscalendar inputField=todate time=$navigation.focus_date onUpdate=gotocal displayArea=datrigger} </td> -{strip} <td style="white-space:nowrap; width:140px; text-align:right;"> <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?view_mode=day&{$url_string}" class="{if $smarty.session.calendar.view_mode eq 'day'}highlight{/if}">{biticon ipackage=calendar iname=day iexplain=Day}</a> <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?view_mode=week&{$url_string}" class="{if $smarty.session.calendar.view_mode eq 'week'}highlight{/if}">{biticon ipackage=calendar iname=week iexplain=Week}</a> <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?view_mode=weeklist&{$url_string}" class="{if $smarty.session.calendar.view_mode eq 'weeklist'}highlight{/if}">{biticon ipackage=calendar iname=weeklist iexplain=Weeklist}</a> <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?view_mode=month&{$url_string}" class="{if $smarty.session.calendar.view_mode eq 'month'}highlight{/if}">{biticon ipackage=calendar iname=month iexplain=Month}</a> </td> -{/strip} </tr> </table> {else} -{strip} <table> <tr> <td rowspan="2" style="text-align:left;"> @@ -85,5 +75,5 @@ </td> </tr> </table> -{/strip} {/if} +{/strip} |
