<{if $viewType eq 'input'}>
	<select name="<{$fieldName}>"><option> </option>
	<{foreach key=key item=listName from=$list}>
		<option value="<{$key}>" <{if $key==$value}>selected<{/if}>><{$listName|xoops_escape}></option>
	<{/foreach}>
	</select>
<{elseif $viewType eq 'confirm'}>
	<{$valueName|xoops_escape}><input type="hidden" name="<{$fieldName}>" value="<{$value}>">
<{elseif $viewType eq 'detail'}>
	<{$valueName|xoops_escape}>
<{elseif $viewType eq 'list'}>
	<select name="list" onchange="listChange()" <{$disabled}>>
	<{foreach item=selectValue from=$selectValues}>
		<option value="<{$selectValue|xoops_escape}>" <{if $selectValue==$value}>selected<{/if}>><{$selectValue|xoops_escape}></option>
	<{/foreach}>
	</select>
	<{if !empty($disabled)}>
		<input type="hidden" name="list" value="<{$value|xoops_escape}>" />
	<{/if}>
<{elseif $viewType eq 'default'}>
	<{if count($selectValues) == 0}>
		<input type="hidden" name="default_value" value="<$value}>" />
	<{else}>
		<select name="default_value" <{$disabled}>>
		<{foreach item=selectValue from=$selectValues}>
			<option value="<{$selectValue.title_id}>" <{if $selectValue.title_id==$value}>selected<{/if}>><{$selectValue.title|xoops_escape}></option>
		<{/foreach}>
		</select>
		<{if !empty($disabled)}>
			<input type="hidden" name="default_value" value="<{$value}>" />
		<{/if}>
	<{/if}>
<{/if}>
