<{if $viewType eq 'input'}>
	<select id="user_avatarSelect" name="<{$fieldName}>">
	<option value="blank.gif" <{if $value=='' || $value=='blank.gif'}>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 $value=='' || $value=='blank.gif'}>
		<div id="user_avatarImg"></div>
	<{else}>
		<div id="user_avatarImg"><img src="<{$url}>"></div>
	<{/if}>
	<input id="user_avatarHidden" type="hidden" value="<{$smarty.const.XOOPS_UPLOAD_URL}>/">
<{elseif $viewType eq 'confirm'}>
	<img src="<{$smarty.const.XOOPS_UPLOAD_URL}>/<{$value}>" alt="Avatar">
	<input type="hidden" name=<{$fieldName}> value=<{$value}>>
<{elseif $viewType eq 'detail'}>
	<{if $value!=''}>
		<img src="<{$smarty.const.XOOPS_UPLOAD_URL}>/<{$value}>" alt="Avatar">
	<{/if}>
<{elseif $viewType eq 'search'}>
	<select id="user_avatarSelect" name="<{$fieldName}>">
	<option> </option>
	<option value="blank.gif" <{if $value=='blank.gif'}>selected<{/if}>>blank</option>
	<{foreach key=key item=listName from=$list}>
		<option value="<{$key}>" <{if $value!=='' && $key==$value}>selected<{/if}>><{$listName|xoops_escape}></option>
	<{/foreach}>
	</select>
<{/if}>
