{strip}
<div class="display collection">
<div class="header">
<h1>{tr}Collections{/tr}</h1>
</div>
<div class="body">
<p>Image Collections allow you to organize your photos like a table of contents.</p>
<table class="panel" cellspacing="0" cellpadding="3">
<tr>
<th>{tr}Collection{/tr}</th>
<th>{tr}Action{/tr}</th>
</tr>
{section loop=$collections name=ix}
<tr class="{cycle values="even,odd"}">
<td>
<h3>
<a href="{$gTikiLoc.FISHEYE_PKG_URL}collection.php?structure_id={$collections[ix].structure_id}">
{$collections[ix].page_alias}
{if $collections[ix].page_alias}
({$collections[ix].title})
{else}
{$collections[ix].title}
{/if}
</a>
</h3>
{tr}by{/tr} {displayname hash=$collections[ix]}
</td>
<td class="actionicon">
{if ($collections[ix].creator_user_id == $gTikiUser->mUserId) || $gTikiUser->hasPermission( 'tiki_p_admin_books' )}
<a href="{$gTikiLoc.FISHEYE_PKG_URL}edit_collection.php?structure_id={$collections[ix].structure_id}">{tikicon ipackage=liberty iname="settings" iexplain="edit book"}</a>
{/if}
{if ($collections[ix].creator_user_id == $gTikiUser->mUserId) || $gTikiUser->hasPermission( 'tiki_p_admin_books' )}
<a href="{$gTikiLoc.FISHEYE_PKG_URL}edit_collection.php?action=remove&structure_id={$collections[ix].structure_id}">{tikicon ipackage=liberty iname="delete" iexplain="remove"}</a>
{/if}
</td>
</tr>
{sectionelse}
<tr class="norecords">
<td colspan="2">{tr}No records found{/tr}</td>
</tr>
{/section}
</table>
</div><!-- end .body -->
{include file="tikipackage:kernel/pagination.tpl"}
</div><!-- end .structure -->
{/strip}