{* $Id: tiki-list_articles.tpl 13327 2008-06-23 17:54:20Z Jyhem $ *}

<h1><a class="pagetitle" href="tiki-list_articles.php">{tr}Articles{/tr}</a>

{if $prefs.feature_help eq 'y'}
<a href="{$prefs.helpurl}Articles" target="tikihelp" class="tikihelp" title="{tr}List Articles{/tr}">
{icon _id='help'}</a>
{/if}
{if $prefs.feature_view_tpl eq 'y'}
<a href="tiki-edit_templates.php?template=tiki-list_articles.tpl" target="tikihelp" class="tikihelp" title="{tr}View tpl{/tr}: {tr}List Articles Tpl{/tr}">
{icon _id='shape_square_edit' alt='{tr}Edit Template{/tr}'}</a>
{/if}
{if $tiki_p_admin eq 'y'}
<a href="tiki-admin.php?page=cms">{icon _id='wrench' alt="{tr}Admin Feature{/tr}"}</a>
{/if}
</h1>

<div class="navbar">
{if $tiki_p_edit_article eq 'y'}
  <a class="linkbut" href="tiki-edit_article.php">{tr}Edit New Article{/tr}</a>
{/if}
<a class="linkbut" href="tiki-view_articles.php">{tr}View Articles{/tr}</a>
{if $prefs.feature_submissions == 'y' && ($tiki_p_approve_submission == "y" || $tiki_p_remove_submission == "y" || $tiki_p_edit_submission == "y")}
<a class="linkbut" href="tiki-list_submissions.php">{tr}View submissions{/tr}</a>
{/if}
</div>
{if $listpages or ($find ne '') or ($types ne '') or ($topics ne '') or ($lang ne '') or ($categId ne '')}
  {include file="find.tpl" find_show_languages='y' find_show_categories='y' find_show_num_rows='y'}
{/if}
<br />
<table class="normal">
<tr>
{if $prefs.art_list_title eq 'y'}
	<td class="heading">{self_link _class='tableheading' _sort_arg='sort_mode' _sort_field='title'}{tr}Title{/tr}{/self_link}</td>
{/if}
{if $prefs.art_list_type eq 'y'}	
	<td class="heading">{self_link _class='tableheading' _sort_arg='sort_mode' _sort_field='type'}{tr}Type{/tr}{/self_link}</td>
{/if}
{if $prefs.art_list_topic eq 'y'}	
	<td class="heading">{self_link _class='tableheading' _sort_arg='sort_mode' _sort_field='topicName'}{tr}Topic{/tr}{/self_link}</td>
{/if}
{if $prefs.art_list_date eq 'y'}
	<td class="heading">{self_link _class='tableheading' _sort_arg='sort_mode' _sort_field='publishDate'}{tr}PublishDate{/tr}{/self_link}</td>
{/if}
{if $prefs.art_list_expire eq 'y'}
	<td class="heading">{self_link _class='tableheading' _sort_arg='sort_mode' _sort_field='expireDate'}{tr}ExpireDate{/tr}{/self_link}</td>
{/if}
{if $prefs.art_list_visible eq 'y'}
	<td class="heading"><span class="tableheading">{tr}Visible{/tr}</span></td>
{/if}
{if $prefs.art_list_lang eq 'y'}
	<td class="heading">{self_link _class='tableheading' _sort_arg='sort_mode' _sort_field='lang'}{tr}Lang{/tr}{/self_link}</td>
{/if}
{if $prefs.art_list_author eq 'y'}
	<td class="heading">{self_link _class='tableheading' _sort_arg='sort_mode' _sort_field='authorName'}{tr}AuthorName{/tr}{/self_link}</td>
{/if}
{if $prefs.art_list_reads eq 'y'}
	<td style="text-align:right;" class="heading">{self_link _class='tableheading' _sort_arg='sort_mode' _sort_field='nbreads'}{tr}Reads{/tr}{/self_link}</td>
{/if}
{if $prefs.art_list_size eq 'y'}
	<td style="text-align:right;" class="heading">{self_link _class='tableheading' _sort_arg='sort_mode' _sort_field='size'}{tr}Size{/tr}{/self_link}</td>
{/if}
{if $prefs.art_list_img eq 'y'}
	<td class="heading">{tr}Img{/tr}</td>
{/if}
{if $tiki_p_edit_article eq 'y' or $tiki_p_remove_article eq 'y' or isset($oneEditPage) or $tiki_p_read_article}<td  class="heading">{tr}Action{/tr}</td>{/if}
</tr>
{cycle values="odd,even" print=false}
{section name=changes loop=$listpages}
<tr>
{if $prefs.art_list_title eq 'y'}
	<td class="{cycle advance=false}">
	{if $tiki_p_read_article eq 'y'}
		<a class="artname" href="tiki-read_article.php?articleId={$listpages[changes].articleId}" title="{$listpages[changes].title|escape}">
	{/if}
	{$listpages[changes].title|truncate:$prefs.art_list_title_len:"...":true}
	{if $listpages[changes].type eq 'Review'}(r){/if}
	{if $tiki_p_read_article eq 'y'}
		</a>
	{/if}
	</td>
{/if}
{if $prefs.art_list_type eq 'y'}	
	<td class="{cycle advance=false}">{tr}{$listpages[changes].type}{/tr}</td>
{/if}
{if $prefs.art_list_topic eq 'y'}	
	<td class="{cycle advance=false}">{$listpages[changes].topicName}</td>
{/if}
{if $prefs.art_list_date eq 'y'}
	<td class="{cycle advance=false}">{$listpages[changes].publishDate|tiki_short_datetime}</td>
{/if}
{if $prefs.art_list_expire eq 'y'}
	<td class="{cycle advance=false}">{$listpages[changes].expireDate|tiki_short_datetime}</td>
{/if}
{if $prefs.art_list_visible eq 'y'}
	<td class="{cycle advance=false}">{tr}{$listpages[changes].disp_article}{/tr}</td>
{/if}
{if $prefs.art_list_lang eq 'y'}
	<td class="{cycle advance=false}">{tr}{$listpages[changes].lang}{/tr}</td>
{/if}
{if $prefs.art_list_author eq 'y'}	
	<td class="{cycle advance=false}">{$listpages[changes].authorName}</td>
{/if}
{if $prefs.art_list_reads eq 'y'}
	<td style="text-align:right;" class="{cycle advance=false}">{$listpages[changes].nbreads}</td>
{/if}
{if $prefs.art_list_size eq 'y'}
	<td style="text-align:right;" class="{cycle advance=false}">{$listpages[changes].size|kbsize}</td>
{/if}
{if $prefs.art_list_img eq 'y'}
	<td class="{cycle advance=false}">{tr}{$listpages[changes].hasImage}{/tr}/{tr}{$listpages[changes].useImage}{/tr}</td>
{/if}
<td class="{cycle}">
{if $tiki_p_read_article eq 'y'}
<a href="tiki-read_article.php?articleId={$listpages[changes].articleId}" title="{$listpages[changes].title|escape}">{icon _id='magnifier' alt='{tr}View{/tr}'}</a>
{/if}
{if $tiki_p_edit_article eq 'y' or ($listpages[changes].author eq $user and $listpages[changes].creator_edit eq 'y')}
<a class="link" href="tiki-edit_article.php?articleId={$listpages[changes].articleId}">{icon _id='page_edit'}</a>{/if}
{if $tiki_p_admin_cms eq 'y' or $tiki_p_assign_perm_cms eq 'y'}
<a class="link" href="tiki-objectpermissions.php?objectName={$listpages[changes].title|escape:'url'}&amp;objectType=article&amp;permType=cms&amp;objectId={$listpages[changes].articleId}">{icon _id='key' alt='{tr}Perms{/tr}'}</a>
{/if}
{if $tiki_p_remove_article eq 'y'}
&nbsp;<a class="link" href="tiki-list_articles.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$listpages[changes].articleId}">{icon _id='cross' alt='{tr}Remove{/tr}'}</a>{/if}
</td>
</tr>
{sectionelse}
<tr><td class="odd" colspan="11">
<b>{tr}No records found{/tr}</b>
</td></tr>
{/section}
</table>
<br />


{pagination_links cant=$cant step=$maxRecords offset=$offset}{/pagination_links}

