From: <sy...@us...> - 2007-12-05 19:01:40
|
Update of /cvsroot/tikiwiki/tiki/templates/modules In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv4002/templates/modules Modified Files: Tag: BRANCH-1-10 mod-change_category.tpl Log Message: [MOD]module change_category: 2 new param add and del to be able to add/del categories Index: mod-change_category.tpl =================================================================== RCS file: /cvsroot/tikiwiki/tiki/templates/modules/mod-change_category.tpl,v retrieving revision 1.9.2.7 retrieving revision 1.9.2.8 diff -u -d -r1.9.2.7 -r1.9.2.8 --- mod-change_category.tpl 5 Dec 2007 16:06:28 -0000 1.9.2.7 +++ mod-change_category.tpl 5 Dec 2007 19:01:42 -0000 1.9.2.8 @@ -15,34 +15,43 @@ {if $i.incat eq 'y'} <tr> <td class="{cycle advance=false}">{if $module_params.path eq 'n'}{$i.name}{else}{$i.categpath}{/if}</td> + {if $module_params.del ne 'n'} <td class="{cycle}"><a href="{$smarty.server.REQUEST_URI}{if strstr($smarty.server.REQUEST_URI, '?')}&{else}?{/if}remove={$i.categId}"><img src="pics/icons/cross.png" width="16" height="16" border="0" alt="{tr}Delete{/tr}" /></a></td> + {/if} </tr> {/if} {/foreach} </table> {/if} +{if $module_params.detail ne 'y' or $module_params.add ne 'n'} <div align="center"> <form method="post" action="{$smarty.server.PHP_SELF}" target="_self"> -<input type="hidden" name="page" value="{$smarty.request.page|escape}" /> +<input type="hidden" name="page" value="{$page|escape}" /> <input type="hidden" name="modcatid" value="{$modcatid}" /> {if $module_params.multiple eq 'y'} <select name="modcatchange[]" multiple="multiple"> {else} <select name="modcatchange" size="1" onchange="this.form.submit();"> {/if} -{if $module_params.detail eq 'y'} <option value="0" style="font-style: italic;">{if $module_params.categorize}{tr}{$module_params.categorize}{/tr}{else}{tr}Categorize{/tr}{/if}</option> -{elseif !isset($module_params.notop)} <option value="0" style="font-style: italic;">{tr}None{/tr}</option>{/if} +{if $module_params.add ne 'n'} + {if $module_params.detail eq 'y'} <option value="0" style="font-style: italic;">{if $module_params.categorize}{tr}{$module_params.categorize}{/tr}{else}{tr}Categorize{/tr}{/if}</option> + {elseif !isset($module_params.notop)} <option value="0" style="font-style: italic;">{tr}None{/tr}</option>{/if} +{/if} {foreach key=k item=i from=$modcatlist} {if $module_params.detail ne 'y' or $i.incat ne 'y'} + {if !($module_params.add eq 'n' and $i.incat ne 'y')} <option value="{$k}"{if $i.incat eq 'y'} selected="selected"{/if}>{if $module_params.path eq 'n'}{$i.name}{else}{$i.categpath}{/if}</option> {/if} + {/if} {/foreach} -{if $module_params.multiple eq 'y'} +{if $module_params.multiple eq 'y' and $modules_params.add ne 'n'} <div align="center"><input type="submit" name="categorize" value="{if $module_params.categorize}{tr}{$module_params.categorize}{/tr}{else}{tr}Categorize{/tr}{/if}" /></div> {/if} </select> </form> </div> +{/if} + {/tikimodule} {/if} |