NobuNobu
nobun****@users*****
2006年 9月 22日 (金) 22:57:37 JST
Index: xoops2jp/html/modules/base/templates/legacy_xoopsform_select.html diff -u xoops2jp/html/modules/base/templates/legacy_xoopsform_select.html:1.1.2.1 xoops2jp/html/modules/base/templates/legacy_xoopsform_select.html:1.1.2.2 --- xoops2jp/html/modules/base/templates/legacy_xoopsform_select.html:1.1.2.1 Fri Sep 22 18:18:56 2006 +++ xoops2jp/html/modules/base/templates/legacy_xoopsform_select.html Fri Sep 22 22:57:37 2006 @@ -1,9 +1,9 @@ -<{if $element->isMuiltiple() != false}> +<{if $element->isMultiple() != false}> <select size='<{$element->getSize()}>' name='<{$element->getName()}>[]' id='<{$element->getName()}>[]' multiple='multiple' <{$element->getExtra()}>> <{else}> <select size='<{$element->getSize()}>' name='<{$element->getName()}>' id='<{$element->getName()}>' <{$element->getExtra()}>> <{/if}> -<{foreach from=$this->getOptions() key=value item=name}> - <option value='<{$value|escape}>' <{if count($this->getValue()) > 0 && in_array($value, $this->getValue())}> selected='selected'<{/if}>><{$name}></option> +<{foreach from=$element->getOptions() key=value item=name}> + <option value='<{$value|escape}>' <{if count($element->getValue()) > 0 && in_array($value, $element->getValue())}> selected='selected'<{/if}>><{$name}></option> <{/foreach}> </select>