{title admpage="articles" help="Articles"}{tr}Submissions{/tr}{/title}
{button href="tiki-edit_submission.php" class="btn btn-primary" _icon_name="create" _text="{tr}New Submission{/tr}"} {button href="tiki-list_submissions.php?deleteexpired=y" _class="btn btn-danger" _icon_name="delete" _text="{tr}Delete Expired Submissions{/tr}" _title="{tr}Deletes expired submissions 1000 at a time to avoid timeouts{/tr}"} {if $tiki_p_read_article eq 'y'} {button href="tiki-list_articles.php" class="btn btn-info" _icon_name="list" _text="{tr}List Articles{/tr}"} {/if}
{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_num_rows='y'}
{/if}
{*the table-responsive class cuts off dropdown menus when chosen is selected*} {assign var=numbercol value=0} {if $tiki_p_remove_submission eq 'y' or $tiki_p_approve_submission eq 'y'} {/if} {if $prefs.art_list_title eq 'y'} {assign var=numbercol value=$numbercol+1} {/if} {if $prefs.art_list_topic eq 'y'} {assign var=numbercol value=$numbercol+1} {/if} {if $prefs.art_list_date eq 'y'} {assign var=numbercol value=$numbercol+1} {/if} {if $prefs.art_list_expire eq 'y'} {assign var=numbercol value=$numbercol+1} {/if} {if $prefs.art_list_size eq 'y'} {assign var=numbercol value=$numbercol+1} {/if} {if $prefs.art_list_img eq 'y'} {assign var=numbercol value=$numbercol+1} {/if} {if $prefs.art_list_author eq 'y'} {assign var=numbercol value=$numbercol+1} {/if} {if $prefs.art_list_authorName eq 'y'} {assign var=numbercol value=$numbercol+1} {/if} {assign var=numbercol value=$numbercol+1} {section name=changes loop=$listpages} {if $tiki_p_remove_submission eq 'y' or $tiki_p_approve_submission eq 'y'} {/if} {if $prefs.art_list_title eq 'y'} {/if} {if $prefs.art_list_topic eq 'y'} {/if} {if $prefs.art_list_date eq 'y'} {/if} {if $prefs.art_list_expire eq 'y'} {/if} {if $prefs.art_list_size eq 'y'} {/if} {if $prefs.art_list_img eq 'y'} {/if} {if $prefs.art_list_author eq 'y'} {/if} {if $prefs.art_list_authorName eq 'y'} {/if} {sectionelse} {assign var=numbercol value=$numbercol+1} {norecords _colspan=$numbercol} {/section} {if $tiki_p_remove_submission eq 'y' or $tiki_p_approve_submission eq 'y'} {/if}
{if $listpages} {select_all checkbox_names='checked[]'} {/if} {tr}Title{/tr} {tr}Topic{/tr} {tr}Publish Date{/tr} {tr}Expiry Date{/tr} {tr}Size{/tr} {tr}Image{/tr} {tr}User{/tr} {tr}Author{/tr}
{$listpages[changes].title|truncate:$prefs.art_list_title_len:"...":true|escape} {$listpages[changes].topicName|escape}{$listpages[changes].publishDate|tiki_short_date}{$listpages[changes].expireDate|tiki_short_date}{$listpages[changes].size|kbsize}{$listpages[changes].hasImage}/{$listpages[changes].useImage}{$listpages[changes].author|escape}{$listpages[changes].authorName|escape} {actions} {strip} {if $tiki_p_edit_submission eq 'y' or ($listpages[changes].author eq $user and $user)} {icon name='edit' _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"} {/if} {if $tiki_p_approve_submission eq 'y'} {self_link approve=$listpages[changes].subId _icon_name="ok" _menu_text='y' _menu_icon='y'} {tr}Approve{/tr} {/self_link} {/if} {if $tiki_p_remove_submission eq 'y'} {self_link remove=$listpages[changes].subId _icon_name="remove" _menu_text='y' _menu_icon='y'} {tr}Remove{/tr} {/self_link} {/if} {/strip} {/actions}
{if $listpages}

{*on the left to have it close to the checkboxes*} {if $tiki_p_remove_submission eq 'y'} {button _text="{tr}Select Duplicates{/tr}" _onclick="checkDuplicateRows(this,'td:not(:eq(2))'); return false;"} {/if}

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