<{if $viewType eq 'input'}>
	<select name="<{$fieldName}>">
	<option id="rank_0" value="0">--------------</option>
	<{foreach item=listName from=$list}>
		<option value="<{$listName.id}>" <{if $value!=='' && $listName.id==$value}>selected<{/if}>><{$listName.title}></option>
	<{/foreach}>
	</select>
<{elseif $viewType eq 'confirm'}>
	<{if $value==0}>--------------<{elseif $value!=''}>
	<{foreach item=listName from=$list}>
		<{if $value==$listName.id}><{$listName.title}><{/if}>
	<{/foreach}>
	<{/if}>
	<input type="hidden" name="<{$fieldName}>" value="<{$value}>">
<{elseif $viewType eq 'detail'}>
	<{if $value==0}>
		<{foreach item=listName from=$list}>
			<{if $posts>=$listName.min && $posts<=$listName.max}>
				<img src="<{$listName.url}>" alt="<{$listName.title}>" title="<{$listName.title}>"><{$listName.title}>
			<{/if}>
		<{/foreach}>
	<{elseif $value!=''}>
		<{foreach item=listName from=$list}>
			<{if $value==$listName.id}>
				<img src="<{$listName.url}>" alt="<{$listName.title}>" title="<{$listName.title}>"><{$listName.title}>
			<{/if}>
		<{/foreach}>
	<{/if}>
<{elseif $viewType eq 'search'}>
	<select name="<{$fieldName}>">
	<option <{if $value===''}>selected<{/if}>></option>
	<option id="rank_0" value="0">--------------</option>
	<{foreach item=listName from=$list}>
		<option value="<{$listName.id}>" <{if $value!=='' && $listName.id==$value}>selected<{/if}>><{$listName.title}></option>
	<{/foreach}>
	</select>
<{/if}>
