{* $Id$ *} {if !$ts.ajax} {title help="Forums" admpage="forums" url='tiki-admin_forums.php'} {tr}Admin Forums{/tr}{if isset($parent)}: {$parent.name}{/if} {/title}
{if $tiki_p_admin_forum eq 'y' && $forumId > 0 or (isset($dup_mode) and $dup_mode eq 'y')} {button class="btn btn-primary" href="?" _icon_name="add" _text="{tr}Create Forum{/tr}"} {/if} {if $tiki_p_admin_forum eq 'y' && (!isset($dup_mode) or $dup_mode ne 'y')} {button class="btn btn-primary" href="tiki-admin_forums.php?dup_mode=y" _icon_name="copy" _text="{tr}Duplicate{/tr}"} {/if} {if $forumId > 0} {button _type="link" class="btn btn-link" href="tiki-view_forum.php?forumId=$forumId" _icon_name="view" _text="{tr}View{/tr}"} {/if} {if $tiki_p_admin_forum eq 'y'} {button _type="link" class="btn btn-link" href="tiki-forum_import.php" _icon_name="import" _text="{tr}Import{/tr}"} {/if} {if $tiki_p_admin_forum eq 'y'} {button _type="link" class="btn btn-link" href="tiki-admin.php?page=forums&cookietab=2&highlight=forums_ordering" _icon_name="cog" _text="{tr}Forum Ordering{/tr}"} {/if} {if $tiki_p_forum_read eq 'y'} {button _type="link" class="btn btn-link" href="tiki-forums.php" _icon_name="list" _text="{tr}List{/tr}"} {/if}
{/if} {tabset} {tab name="{tr}Forums{/tr}"}

{tr}Forums{/tr}

{if ($channels or ($find ne '')) && !$ts.enabled} {include file='find.tpl'} {/if}
{$numbercol = 0} {$numbercol = $numbercol+1} {$numbercol = $numbercol+1} {$numbercol = $numbercol+1} {$numbercol = $numbercol+1} {$numbercol = $numbercol+1} {section name=user loop=$channels} {sectionelse} {norecords _colspan=$numbercol _text="No forums found"} {/section}
{select_all checkbox_names='checked[]' tablesorter="{$ts.enabled}"} {self_link _sort_arg='sort_mode' _sort_field='name'}{tr}Name{/tr}{/self_link} {$numbercol = $numbercol+1} {self_link _sort_arg='sort_mode' _sort_field='threads'}{tr}Topics{/tr}{/self_link} {$numbercol = $numbercol+1} {self_link _sort_arg='sort_mode' _sort_field='threads'}{tr}Order{/tr}{/self_link} {$numbercol = $numbercol+1} {self_link _sort_arg='sort_mode' _sort_field='comments'}{tr}Comments{/tr}{/self_link} {$numbercol = $numbercol+1} {tr}Users{/tr}{tr}Age{/tr}{tr}PPD{/tr} {self_link _sort_arg='sort_mode' _sort_field='hits'}{tr}Hits{/tr}{/self_link} {$numbercol = $numbercol+1}
{$channels[user].name|escape} {$channels[user].threads} {$channels[user].comments} {$channels[user].users} {$channels[user].age} {$channels[user].posts_per_day|string_format:"%.2f"} {$channels[user].hits} {actions} {strip} {icon name='view' _menu_text='y' _menu_icon='y' alt="{tr}View{/tr}"} {if $channels[user].is_locked eq 'y'} {ticket} {else}
{ticket}
{/if} {if ($tiki_p_admin eq 'y') or ((isset($channels[user].individual) and $channels[user].individual eq 'n') and ($tiki_p_admin_forum eq 'y')) or ($channels[user].individual_tiki_p_admin_forum eq 'y') } {self_link _icon_name='edit' _menu_text='y' _menu_icon='y' cookietab='2' _anchor='anchor2' forumId=$channels[user].forumId} {tr}Edit{/tr} {/self_link} {permission_link mode=text type=forum permType=forums id=$channels[user].forumId title=$channels[user].name} {icon name='remove' _menu_text='y' _menu_icon='y' alt="{tr}Delete{/tr}"} {/if} {/strip} {/actions}
{if !$ts.ajax} {if $channels}

{/if} {/if} {if !$ts.enabled} {pagination_links cant=$cant step=$maxRecords offset=$offset}{/pagination_links} {/if} {/tab} {if !$ts.ajax} {tab name="{tr}Create/Edit Forums{/tr}"} {if !isset($dup_mode) or $dup_mode != 'y'} {if $forumId > 0}

{tr}Edit this Forum:{/tr} {$name|escape}

{include file='object_perms_summary.tpl' objectName=$name objectType='forum' objectId=$forumId permType=$permsType} {else}

{tr}Create New Forum{/tr}

{/if}
{ticket}
{tr}Main details{/tr}
{include file='categorize.tpl' labelcol='4' inputcol='8'} {if $prefs.feature_multilingual eq 'y'}
{/if} {if $prefs.feature_file_galleries eq 'y' && $prefs.forum_image_file_gallery}
{file_selector name="image" value=$image type="image/*" galleryId=$prefs.forum_image_file_gallery}
{tr}Image symbolizing the forum.{/tr}
{/if}
{tr}{$forumOrder|escape}{/tr}
{autocomplete element='#moderator_user' type='username'}
{autocomplete element='#moderator_group' type='groupname'}
{html_options name=forum_use_password class="form-control" options=$forum_use_password_options selected=$forum_use_password}
{html_options name=floodInterval id=floodInterval class="form-control" options=$flood_options selected=$floodInterval}
{html_options name=pruneUnrepliedAge class="form-control" options=$pruneUnrepliedAge_options selected=$pruneUnrepliedAge}
{html_options name=pruneMaxAge class="form-control" options=$pruneMaxAge_options selected=$pruneMaxAge}
{tr}Forum-mailing list synchronization{/tr}
{tr}Forums list{/tr}
{html_options name=forum_last_n id=forum_last_n class="form-control" options=$forum_last_n_options selected=$forum_last_n}
{tr}Forum topics (threads) list{/tr}
{html_options name=topicOrdering id=topicOrdering class="form-control" options=$topicOrdering_options selected=$topicOrdering}
{tr}Forum threads{/tr}
{html_options name=threadOrdering id=threadOrdering class="form-control" options=$threadOrdering_options selected=$threadOrdering}
{html_options name=threadStyle id=threadStyle class="form-control" options=$threadStyle_options selected=$threadStyle}
{html_options name=commentsPerPage id=commentsPerPage class="form-control" options=$commentsPerPage_options selected=$commentsPerPage}
{tr}Posts{/tr}
{html_options name=approval_type for=approval_type id=approval_type class="form-control" options=$approval_options selected=$approval_type}
{tr}Attachments{/tr}
{html_options name=att id=att class="form-control" options=$attachment_options selected=$att}
{tr}Database{/tr}
{tr}File system{/tr}
{tr}Max:{/tr} {$maxAttachSize|escape} ({$maxAttachSize|kbsize})
{else}{*duplicate*}

{tr}Duplicate Forum{/tr}

{ticket}
{/if} {/tab} {/if} {/tabset}