summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/calendar.tpl65
-rw-r--r--templates/calendar_box.tpl2
-rw-r--r--templates/calendar_inc.tpl4
-rw-r--r--templates/calendar_options_inc.tpl37
4 files changed, 52 insertions, 56 deletions
diff --git a/templates/calendar.tpl b/templates/calendar.tpl
index cdeabc0..54166e3 100644
--- a/templates/calendar.tpl
+++ b/templates/calendar.tpl
@@ -1,4 +1,4 @@
-{* $Header: /cvsroot/bitweaver/_bit_calendar/templates/calendar.tpl,v 1.9 2005/08/18 20:42:56 squareing Exp $ *}
+{* $Header: /cvsroot/bitweaver/_bit_calendar/templates/calendar.tpl,v 1.10 2005/08/19 11:44:54 squareing Exp $ *}
{strip}
{if !$gBitSystem->isFeatureActive( 'feature_helppopup' )}
@@ -11,50 +11,7 @@
</div>
<div class="body">
-
-{/strip}
- <div class="navbar">
- <ul>
- <script type="text/javascript">//<![CDATA[
- document.write("<li><a href=\"javascript:toggle('tabcal');\">{tr}Show / Hide Options{/tr}</a></li>");
- //]]></script>
- {if $smarty.request.user_id}
- <li>{smartlink ititle="Show all"}</li>
- {else}
- <li>{smartlink ititle="Show only my items" user_id=$gBitUser->mUserId}</li>
- {/if}
- </ul>
- </div>
-
- <div class="clear"></div>
-
- <script type="text/javascript">//<![CDATA[
- document.write("<div id=\"tabcal\" style=\"display:{if $smarty.cookies.tabcal eq 'o'}block{else}none{/if};\">");
- //]]></script>
-
- {form legend="Display Options" id="display_options"}
- <div class="row">
- {formlabel label="" for=""}
- {forminput}
- {foreach from=$bitItems key=ki item=vi}
- <label><input type="checkbox" name="bitcals[]" value="{$ki}" id="bitcal_{$ki}" {if $bitcal.$ki}checked="checked"{/if} /> {$vi.content_description}</label><br />
- {/foreach}
-
- <script type="text/javascript">//<![CDATA[
- document.write("<label><input name=\"switcher\" id=\"switcher\" type=\"checkbox\" onclick=\"switchCheckboxes(this.form.id,'bitcals[]','switcher')\" /> {tr}Select all{/tr}</label><br />");
- //]]></script>
- {/forminput}
- </div>
-
- <div class="row submit">
- <input type="submit" name="refresh" value="{tr}Update Calendar{/tr}" />
- </div>
- {/form}
-
- <script type="text/javascript">//<![CDATA[
- document.write("</div>");
- //]]></script>
-{strip}
+ {include file="bitpackage:calendar/calendar_options_inc.tpl"}
{if $gBitSystemPrefs.feature_jscalendar eq 'y'}
<table>
@@ -84,9 +41,9 @@
</td>
<td nowrap="nowrap" width="120" align="right">
- <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?viewmode=day" class="{if $viewmode eq 'day'}highlight{/if}">{biticon ipackage=calendar iname=day iexplain=Day}</a>
- <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?viewmode=week" class="{if $viewmode eq 'week'}highlight{/if}">{biticon ipackage=calendar iname=week iexplain=Week}</a>
- <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?viewmode=month" class="{if $viewmode eq 'month'}highlight{/if}">{biticon ipackage=calendar iname=month iexplain=Month}</a>
+ <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?view_mode=day" 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" 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=month" class="{if $smarty.session.calendar.view_mode eq 'month'}highlight{/if}">{biticon ipackage=calendar iname=month iexplain=Month}</a>
</td>
</tr>
</table>
@@ -112,9 +69,9 @@
<tr>
<td style="text-align:center;">
- <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?viewmode=day" class="{if $viewmode eq 'day'}highlight{/if}">{biticon ipackage=calendar iname=day iexplain=Day}</a>
- <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?viewmode=week" class="{if $viewmode eq 'day'}highlight{/if}">{biticon ipackage=calendar iname=week iexplain=Week}</a>
- <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?viewmode=month" class="{if $viewmode eq 'day'}highlight{/if}">{biticon ipackage=calendar iname=month iexplain=Month}</a>
+ <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?view_mode=day" 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" class="{if $smarty.session.calendar.view_mode eq 'day'}highlight{/if}">{biticon ipackage=calendar iname=week iexplain=Week}</a>
+ <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?view_mode=month" class="{if $smarty.session.calendar.view_mode eq 'day'}highlight{/if}">{biticon ipackage=calendar iname=month iexplain=Month}</a>
</td>
</tr>
</table>
@@ -122,7 +79,7 @@
<table class="data">
<caption>{tr}Selection: {$focusdate|bit_long_date}{/tr}</caption>
- {if $viewmode eq 'day'}
+ {if $smarty.session.calendar.view_mode eq 'day'}
<tr>
<th style="width:15%;">{tr}Hours{/tr}</th>
<th>{tr}Events{/tr}</th>
@@ -163,7 +120,7 @@
<th>{$weeks[w]}</th>
{section name=d loop=$weekdays}
- {if $viewmode eq "month"}
+ {if $smarty.session.calendar.view_mode eq "month"}
{if $cell[w][d].day|date_format:"%m" eq $focusmonth}
{cycle values="odd,even" print=false advance=false}
{else}
@@ -174,7 +131,7 @@
{/if}
<td class="calday {cycle}" style="vertical-align:top;">
- {if $cell[w][d].day|date_format:"%m" eq $focusmonth or $viewmode eq "week"}
+ {if $cell[w][d].day|date_format:"%m" eq $focusmonth or $smarty.session.calendar.view_mode eq "week"}
{if $cell[w][d].day eq $focusdate}<strong>{/if}
<a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$cell[w][d].day}">{$cell[w][d].day|date_format:"%d/%m"}</a>
{if $cell[w][d].day eq $focusdate}</strong>{/if}
diff --git a/templates/calendar_box.tpl b/templates/calendar_box.tpl
index 2e76b4d..0afd505 100644
--- a/templates/calendar_box.tpl
+++ b/templates/calendar_box.tpl
@@ -3,6 +3,8 @@
<div class="boxcontent">
{tr}Content Type{/tr}: {$cellHash.content_description}
<br />
+ {tr}First created by {displayname login=$cellHash.creator_user real_name=$cellHash.creator_real_name} at {$cellHash.created|bit_short_time}{/tr}
+ <br />
{tr}Last modified by {displayname login=$cellHash.modifier_user real_name=$cellHash.modifier_real_name} at {$cellHash.last_modified|bit_short_time}{/tr}
</div>
</div>
diff --git a/templates/calendar_inc.tpl b/templates/calendar_inc.tpl
index 94f1966..afca464 100644
--- a/templates/calendar_inc.tpl
+++ b/templates/calendar_inc.tpl
@@ -1,4 +1,4 @@
-<table class="calendar" border="0" cellpadding="1" cellspacing="1">
+<table class="calendar">
<caption>{$month_name}&nbsp;{$year}</caption>
<tr>
<td style="text-align:left;" colspan="2">
@@ -35,7 +35,7 @@
</a>
</td>
{else}
- <td class="day"></td>
+ <td></td>
{/if}
{/section}
</tr>
diff --git a/templates/calendar_options_inc.tpl b/templates/calendar_options_inc.tpl
new file mode 100644
index 0000000..77eae16
--- /dev/null
+++ b/templates/calendar_options_inc.tpl
@@ -0,0 +1,37 @@
+<div class="navbar">
+ <ul>
+ <script type="text/javascript">//<![CDATA[
+ document.write("<li><a href=\"javascript:toggle('tabcal');\">{tr}Show / Hide Options{/tr}</a></li>");
+ //]]></script>
+ {if $smarty.request.user_id}
+ <li>{smartlink ititle="Show all"}</li>
+ {else}
+ <li>{smartlink ititle="Show only my items" user_id=$gBitUser->mUserId}</li>
+ {/if}
+ </ul>
+</div>
+
+<div class="clear"></div>
+
+<script type="text/javascript">//<![CDATA[
+ document.write("<div id=\"tabcal\" style=\"display:{if $smarty.cookies.tabcal eq 'o'}block{else}none{/if};\">");
+//]]></script>
+
+{form legend="Display Options" id="display_options"}
+ <div class="row">
+ {forminput}
+ {html_checkboxes values=$contentTypes options=$contentTypes name=content_type_guid selected=$smarty.session.calendar.content_type_guid separator="<br />"}
+ <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 />");
+ //]]></script>
+ {/forminput}
+ </div>
+
+ <div class="row submit">
+ <input type="submit" name="refresh" value="{tr}Update Calendar{/tr}" />
+ </div>
+{/form}
+
+<script type="text/javascript">//<![CDATA[
+ document.write("</div>");
+//]]></script>