tiki-list_trackers.tpl 1.9 KB
Newer Older
1 2
{* $Id$ *}

3
{title help="Trackers" admpage="trackers"}{tr}Trackers{/tr}{/title}
4 5

<div class="navbar">
6
	{include file="tracker_actions.tpl"}
7
</div>
8

9
{if ($channels) or ($find)}
changi67's avatar
changi67 committed
10 11
	{include file='find.tpl'}
	{if ($find) and ($channels)}
changi67's avatar
changi67 committed
12
		<p>{tr}Found{/tr} {$channels|@count} {tr}trackers:{/tr}</p>
changi67's avatar
changi67 committed
13
	{/if}
14 15 16
{/if}
<!-- beginning of table -->
<table class="normal">
changi67's avatar
changi67 committed
17 18 19 20 21 22 23 24 25 26 27
	<tr>
		<th>{self_link _sort_arg='sort_mode' _sort_field='name'}{tr}Name{/tr}{/self_link}</th>
		<th>{self_link _sort_arg='sort_mode' _sort_field='description'}{tr}Description{/tr}{/self_link}</th>
		<th>{self_link _sort_arg='sort_mode' _sort_field='created'}{tr}Created{/tr}{/self_link}</th>
		<th>{self_link _sort_arg='sort_mode' _sort_field='lastModif'}{tr}Last Modif{/tr}{/self_link}</th>
		<th style="text-align:right;">{self_link _sort_arg='sort_mode' _sort_field='items'}{tr}Items{/tr}{/self_link}</th>
	</tr>
	{cycle values="odd,even" print=false}
	{section name=user loop=$channels}
		{if $channels[user].individual eq 'n' or $channels[user].individual_tiki_p_view_trackers eq 'y'}
			<tr class="{cycle}">
28
				<td class="text"><a class="tablename trackerLink" trackerId="{$channels[user].trackerId}" href="tiki-view_tracker.php?trackerId={$channels[user].trackerId}">{$channels[user].name|escape}</a></td>
29
				{if $channels[user].descriptionIsParsed eq 'y'}
30
					<td class="text">{wiki}{$channels[user].description}{/wiki}</td>
changi67's avatar
changi67 committed
31
				{else}
32
					<td class="text">{$channels[user].description|escape|nl2br}</td>
changi67's avatar
changi67 committed
33
				{/if}
34 35 36
				<td class="date">{$channels[user].created|tiki_short_datetime}</td>
				<td class="date">{$channels[user].lastModif|tiki_short_datetime}</td>
				<td class="integer">{$channels[user].items}</td>
changi67's avatar
changi67 committed
37 38 39
			</tr>
		{/if}
	{sectionelse}
sylvieg's avatar
sylvieg committed
40
		{if $find}{norecords _colspan=5 _text="No records found with: $find"}{else}{norecords _colspan=5}{/if}
changi67's avatar
changi67 committed
41
	{/section}
42
</table>
43

44
{pagination_links cant=$channels_cant step=$prefs.maxRecords offset=$offset}{/pagination_links}