Minahito
minah****@users*****
2006年 5月 29日 (月) 16:06:48 JST
Index: xoops2jp/html/modules/base/admin/templates/image_edit.html diff -u xoops2jp/html/modules/base/admin/templates/image_edit.html:1.1.2.4 xoops2jp/html/modules/base/admin/templates/image_edit.html:1.1.2.5 --- xoops2jp/html/modules/base/admin/templates/image_edit.html:1.1.2.4 Wed May 17 00:27:17 2006 +++ xoops2jp/html/modules/base/admin/templates/image_edit.html Mon May 29 16:06:47 2006 @@ -59,14 +59,18 @@ <{xoops_input type=text name=image_weight value=$actionForm->get('image_weight') size=5}> </td> </tr> - <tr> - <td class="head"><{$smarty.const._AD_BASE_LANG_IMGCAT_ID}></td> - <td class="<{cycle values="odd,even"}>"> - <select name="imgcat_id"> - <{xoops_optionsArray from=$categoryArr value=imgcat_id label=imgcat_name default=$actionForm->get('imgcat_id')}> - </select> - </td> - </tr> + <{if $object->isNew()}> + <tr> + <td class="head"><{$smarty.const._AD_BASE_LANG_IMGCAT_ID}></td> + <td class="<{cycle values="odd,even"}>"> + <select name="imgcat_id"> + <{xoops_optionsArray from=$categoryArr value=imgcat_id label=imgcat_name default=$actionForm->get('imgcat_id')}> + </select> + </td> + </tr> + <{else}> + <{xoops_input type=hidden name=imgcat_id value=$actionForm->get('imgcat_id')}> + <{/if}> <tr class="foot"> <td colspan="2"> <input class="formButton" type="submit" value="<{$smarty.const._SUBMIT}>" />