{foreach $list->types as $type}
    {if $no_inactive === FALSE || $type->is_valid == TRUE}
    <option value="{$type->id}" title="{$type->fullname|escape:'html'}" {if $sublevel>=0}style="padding-left:12px;"{/if}
            {if $default eq $type->id}selected="selected"{/if} 
            class="{if $type->is_valid != TRUE}inactive_state{/if} {if isset($type->corrtypeclass)}{$type->corrtypeclass}{/if} special_type_{$type->special_type}">{$type->fullname|truncate:100|escape:'html'}&nbsp;</option>
    {/if}
{/foreach}
