diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-12-06 00:10:10 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-12-06 00:10:10 +0000 |
| commit | 5d2d8f414a1bf3c3be02fc70cd1af6d9d2fdc3f8 (patch) | |
| tree | 1d54869228acb19152a4c98edc5caad516784bc8 /templates | |
| parent | 4d35dabfa161ae449b777c3bb2827baa036ba0a0 (diff) | |
| download | calendar-5d2d8f414a1bf3c3be02fc70cd1af6d9d2fdc3f8.tar.gz calendar-5d2d8f414a1bf3c3be02fc70cd1af6d9d2fdc3f8.tar.bz2 calendar-5d2d8f414a1bf3c3be02fc70cd1af6d9d2fdc3f8.zip | |
merge recent changes into HEAD
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/calendar.tpl | 8 | ||||
| -rw-r--r-- | templates/calendar_nav_inc.tpl | 35 | ||||
| -rw-r--r-- | templates/calendar_options_inc.tpl | 9 |
3 files changed, 28 insertions, 24 deletions
diff --git a/templates/calendar.tpl b/templates/calendar.tpl index 46dddea..f28093b 100644 --- a/templates/calendar.tpl +++ b/templates/calendar.tpl @@ -1,6 +1,5 @@ -{* $Header: /cvsroot/bitweaver/_bit_calendar/templates/calendar.tpl,v 1.35 2005/10/07 07:09:32 squareing Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_calendar/templates/calendar.tpl,v 1.36 2005/12/06 00:10:10 squareing Exp $ *} {strip} - {if !$gBitSystem->isFeatureActive( 'feature_helppopup' )} {popup_init src="`$smarty.const.THEMES_PKG_URL`js/overlib.js"} {/if} @@ -52,8 +51,7 @@ </th> </tr> <tr> - {cycle values="odd,even" print=false advance=false} - <td class="calitems {if $day.day eq $navigation.display_focus_date}current{/if} {cycle}"> + <td class="calitems {if $day.day eq $navigation.display_focus_date} current{/if}{if $day.day eq $navigation.today} highlight{/if} {cycle}"> {if $day.day|cal_date_format:"%m" eq $navigation.focus_month or $smarty.session.calendar.view_mode eq "week"} {foreach from=$day.items item=item} {assign var=over value=$item.over} @@ -92,7 +90,7 @@ {cycle values="odd,even" print=false advance=false} {/if} - <td class="calitems {if $day.day eq $navigation.display_focus_date}current{/if} {cycle}"> + <td class="calitems {if $day.day eq $navigation.display_focus_date} current{/if}{if $day.day eq $navigation.today} highlight{/if} {cycle}"> {if $day.day|cal_date_format:"%m" eq $navigation.focus_month or $smarty.session.calendar.view_mode eq "week"} <div class="calnumber"> <a href="{$smarty.const.CALENDAR_PKG_URL}index.php?view_mode=day&todate={$day.day}&{$url_string}">{$day.day|cal_date_format:"%d"}</a> diff --git a/templates/calendar_nav_inc.tpl b/templates/calendar_nav_inc.tpl index 7fa3406..92e0390 100644 --- a/templates/calendar_nav_inc.tpl +++ b/templates/calendar_nav_inc.tpl @@ -13,42 +13,46 @@ <div class="clear"></div> <br /> -{if $gBitSystemPrefs.feature_jscalendar eq 'y'} +{if $gBitSystem->isFeatureActive( 'feature_jscalendar' )} <table> <tr> <td> - <form action="{$gBitLoc.CALENDAR_PKG_URL}index.php" method="get" id="f"> - <input type="hidden" id="todate" name="todate" value="{$focus_date|cal_date_format:"%B %e, %Y %H:%M %Z"}" /> - <span title="{tr}Date Selector{/tr}" id="datrigger">{$focus_date|bit_long_date}</span> - <- {tr}click to navigate{/tr} - </form> + <div> + {form method="get" id="f"} + <input type="hidden" id="todate" name="todate" value="{$navigation.focus_date|cal_date_format:"%B %e, %Y %H:%M %Z"}" /> + <span class="highlight" style="cursor:pointer;" title="{tr}Date Selector{/tr}" id="datrigger">{$navigation.focus_date|bit_long_date}</span> + <small>« {tr}click to navigate{/tr}</small> + {/form} + </div> - <script type="text/javascript"> + <script type="text/javascript">//<![CDATA[ function gotocal() {ldelim} window.location = '{$gBitLoc.CALENDAR_PKG_URL}index.php?todate='+document.getElementById('todate').value; {rdelim} Calendar.setup( {ldelim} - date : "{$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 + 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> + //]]></script> </td> - - <td nowrap="nowrap" width="120" align="right"> +{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;"> @@ -79,4 +83,5 @@ </td> </tr> </table> +{/strip} {/if} diff --git a/templates/calendar_options_inc.tpl b/templates/calendar_options_inc.tpl index f8be6e7..9e04469 100644 --- a/templates/calendar_options_inc.tpl +++ b/templates/calendar_options_inc.tpl @@ -2,16 +2,17 @@ <div class="row caloptions"> {forminput} {foreach from=$contentTypes key=value item=type} - <label> - <div class="cal{$value}"> + <div class="cal{$value}"> + <label> <input type="checkbox" value="{$value}" name="content_type_guid[]" {foreach from=$smarty.session.calendar.content_type_guid item=selected} {if $selected eq $value} checked="checked" {/if} {/foreach} - /> {$type}</label><br /> - </div> + /> {$type} + </label> + </div> {/foreach} <script type="text/javascript">//<![CDATA[ document.write("<label><input name=\"switcher\" id=\"switcher\" type=\"checkbox\" onclick=\"switchCheckboxes(this.form.id,'content_type_guid[]','switcher')\" /> {tr}Select all{/tr}</label><br />"); |
