{* $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'}
{foreach key=k item=i from=$modcatlist} {if $i.incat eq 'y'} {if !isset($module_params.del) or $module_params.del eq 'y'} {/if} {/if} {/foreach}
{if isset($module_params.path) and $module_params.path eq 'n'} {$i.name|escape} {else} {$i.relativePathString|escape} {/if} {self_link remove=$i.categId _class='tips' _title=":{tr}Delete{/tr}"}{icon name='delete'}{/self_link}
{/if} {if $detailed eq 'n' or ($add eq 'y' and not $isInAllManagedCategories)}
{if $multiple eq 'y'} {/if} {if $add eq 'y'} {if !isset($module_params.notop)} {/if} {/if} {foreach key=k item=i from=$modcatlist} {if $detailed eq 'n' or $i.incat ne 'y'} {if ($add eq 'y' or $i.incat eq 'y')} {/if} {/if} {/foreach}
{if $multiple eq 'y' and $add eq 'y'}
{/if}
{/if} {/if} {/tikimodule} {/if}