blob: 80e2f36e9b3071c5aca0b7e82d9877f1f0f3e072 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
{strip}
<div class="navbar">
<ul>
{if $smarty.request.user_id}
<li>{smartlink ititle="Show all" sort_mode=$smarty.request.sort_mode}</li>
{else}
<li>{smartlink ititle="Only my items" user_id=$gBitUser->mUserId sort_mode=$smarty.request.sort_mode}</li>
{/if}
{if $gBitUser->hasPermission('p_calendar_view_changes')}
<li>{smartlink ititle="Creation date" isort="created"}</li>
<li>{smartlink ititle="Modification date" isort="last_modified"}</li>
<li>{smartlink ititle="Event time" idefault=1 isort="event_time"}</li>
{/if}
</ul>
</div>
<div class="clear"></div>
<br />
{if $gBitSystem->isFeatureActive( 'site_use_jscalendar' )}
<table>
<tr>
<td>
<div>
{form method="get" id="f"}
<input type="hidden" id="sort_mode" name="sort_mode" value="{$smarty.request.sort_mode}" />
<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">/* <![CDATA[ */
function gotocal() {ldelim}
document.getElementById('f').submit();
{rdelim}
/* ]]> */</script>
{jscalendar inputField=todate time=$navigation.focus_date onUpdate=gotocal displayArea=datrigger daFormat=$gBitSystem->getConfig('site_long_date_format')}
</td>
<td style="white-space:nowrap; width:140px; text-align:right;">
<a href="{$smarty.const.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="{$smarty.const.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="{$smarty.const.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="{$smarty.const.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>
</tr>
</table>
{else}
<table>
<tr>
<td rowspan="2" style="text-align:left;">
<a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$navigation.before.day}&{$url_string}" title="{$navigation.before.day|bit_long_date}">« {tr}day{/tr}</a><br />
<a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$navigation.before.week}&{$url_string}" title="{$navigation.before.week|bit_long_date}">« {tr}week{/tr}</a><br />
<a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$navigation.before.month}&{$url_string}" title="{$navigation.before.month|bit_long_date}">« {tr}month{/tr}</a><br />
<a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$navigation.before.year}&{$url_string}" title="{$navigation.before.year|bit_long_date}">« {tr}year{/tr}</a>
</td>
<td style="text-align:center;">
<a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$smarty.now}&{$url_string}" title="{$navigation.today|bit_long_date}">{tr}Today{/tr}: <strong>{$navigation.today|bit_long_date} {$navigation.tz_flag}</strong></a>
</td>
<td rowspan="2" style="text-align:right;">
<a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$navigation.after.day}&{$url_string}" title="{$navigation.after.day|bit_long_date}">{tr}day{/tr} »</a><br />
<a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$navigation.after.week}&{$url_string}" title="{$navigation.after.week|bit_long_date}">{tr}week{/tr} »</a><br />
<a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$navigation.after.month}&{$url_string}" title="{$navigation.after.month|bit_long_date}">{tr}month{/tr} »</a><br />
<a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$navigation.after.year}&{$url_string}" title="{$navigation.after.year|bit_long_date}">{tr}year{/tr} »</a>
</td>
</tr>
<tr>
<td style="text-align:center;">
<a href="{$smarty.const.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="{$smarty.const.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="{$smarty.const.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="{$smarty.const.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>
</tr>
</table>
{/if}
{/strip}
|