<{if $viewType eq 'input'}>
	<select name="<{$fieldName}>">
	<{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'}>
	<{if $value!=''}>
		<{foreach key=key item=listName from=$list}>
			<{if $key==$value}><{$listName}><{/if}>
		<{/foreach}>
	<{/if}>
	<input type="hidden" name="<{$fieldName}>" value="<{$value}>">
<{elseif $viewType eq 'detail'}>
	<{if $value!=''}>
		<{foreach key=key item=listName from=$list}>
			<{if $key==$value}><{$listName}><{/if}>
		<{/foreach}>
	<{/if}>
<{elseif $viewType eq 'search'}>
	<select name="<{$fieldName}>">
	<option <{if $value===''}>selected<{/if}>></option>
	<{foreach key=key item=listName from=$list}>
		<option value="<{$key}>" <{if $value!=='' && $key==$value}>selected<{/if}>><{$listName|xoops_escape}></option>
	<{/foreach}>
	</select>
<{/if}>
