{*************************************************************************** * You can find the license in the docs directory * * Unicode Reminder メモ ***************************************************************************} {* OCSTYLE *} {* params attriblist := list of attributes from class attribute::getAttrbutesListArray* onmousedown := javascript funtion name to call on mouse down (to change attribute icons) inputprefix := name/id-prefix of hidden inputbox with state stateDisable := array with disabled attribute ids stateNot := array with not-attribute ids *} {foreach from=$attriblist item=attribGroupItem}
{$attribGroupItem.name|escape} |
{foreach from=$attribGroupItem.attr item=attribItem} {array_search var=thisDisabled needle=$attribItem.id haystack=$stateDisable} {if $thisDisabled!==false} {assign var=attrState value=3} {* ATTRIB_UNDEF *} {else} {assign var=attrState value=1} {* ATTRIB_SELECTED *} {/if} {* TODO: assign var=attrState value=2 *} {* ATTRIB_UNSELECTED *} {include file="res_attribute.tpl" id=$attribItem.id state=$attrState name=$attribItem.name icon=$attribItem.icon html_desc=$attribItem.html_desc color=$attribGroupItem.color onmousedown=$onmousedown inputprefix=$inputprefix} {/foreach} |