{* $Id$ *}
{if $showmodule}
{tikimodule error=$module_params.error title=$tpl_module_title name="change_category" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle}
{if !empty($module_params.imgUrlNotIn) and !empty($module_params.imgUrlIn)}
{foreach key=k item=i from=$modcatlist}{* Smarty hack to access $modcatlist's first key. This should only access one element. *}
{if $modcatlist[$k].incat eq 'n'}
{capture name='title'}{tr}Assign into category:{/tr} {tr}{$modcatlist[$k].name|escape}{/tr}{/capture}
{self_link modcatid=$modcatid modcatchange=$k _title=$smarty.capture.title}{/self_link}
{else}
{capture name='title'}{tr}Unassign category:{/tr} {tr}{$modcatlist[$k].name|escape}{/tr}{/capture}
{self_link remove=$k _title=$smarty.capture.title}
{/self_link}
{/if}
{/foreach}
{else}
{if $detailed eq 'y'}
| {if isset($module_params.path) and $module_params.path eq 'n'} {$i.name|escape} {else} {$i.relativePathString|escape} {/if} | {if !isset($module_params.del) or $module_params.del eq 'y'}{self_link remove=$i.categId _class='tips' _title=":{tr}Delete{/tr}"}{icon name='delete'}{/self_link} | {/if}