<{if $viewType eq 'input'}>
	<{foreach key=key item=listName from=$list}>
		<label><input name="<{$radioName}>" type="radio" value="<{$key}>" <{if $key==$value}>checked<{/if}> onclick="<{$dirname}>Edit.changeRadioBox(this, '<{$fieldName}>');" /><{$listName|xoops_escape}></label>
	<{/foreach}>
	<input id="<{$fieldName}>" name="<{$fieldName}>" type="hidden" value="<{$value}>">
<{elseif $viewType eq 'confirm'}>
	<{$valueName|xoops_escape}><input type="hidden" name="<{$fieldName}>" value="<{$value}>">
<{elseif $viewType eq 'detail'}>
	<{$valueName|xoops_escape}>
<{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>
<{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}>
		<{foreach item=selectValue from=$selectValues}>
			<input type="radio" name="default_value" value="<{$selectValue.title_id}>" <{if $selectValue.title_id==$value}>checked<{/if}> <{$disabled}> /><{$selectValue.title|xoops_escape}>&nbsp;&nbsp;
		<{/foreach}>
		<{if !empty($disabled)}>
			<input type="hidden" name="default_value" value="<{$value}>" />
		<{/if}>
	<{/if}>
<{/if}>
