<{if $viewType eq 'input'}>
	<div id="<{$divName}>"><table>
	<{foreach item=userInfo from=$userInfos}>
		<tr>
			<td><{if empty($userInfo.name)}><{$userInfo.uname|xoops_escape}><{else}><{$userInfo.name|xoops_escape}>(<{$userInfo.uname|xoops_escape}>)<{/if}></td>
			<td><a href="#" onclick="<{$dirname}>Edit.deleteUser('<{$fieldName}>', '<{$userInfo.uid}>', null);"><img src="images/icon_delete.png"/></a></td>
		</tr>
	<{/foreach}>
	</table></div></br>
	<input type="hidden" id="<{$dirname}>SearchUserID" name="<{$fieldName}>" value="<{$value}>">
	<input type="button" href="userselectsub.php?callbackid=<{$fieldName}>" rel="prettyPopin" value="<{$smarty.const._MD_XOONIPS_ITEM_SEARCH_BUTTON_LABEL}>">
<{elseif $viewType eq 'confirm'}>
	<div id="<{$divName}>"><table>
	<{foreach item=userInfo from=$userInfos}>
		<tr>
			<td><{if empty($userInfo.name)}><{$userInfo.uname|xoops_escape}><{else}><{$userInfo.name|xoops_escape}>(<{$userInfo.uname|xoops_escape}>)<{/if}></td>
			<td></td>
		</tr>
	<{/foreach}>
	</table></div>
	<input type="hidden" id="<{$dirname}>SearchUserID" name="<{$fieldName}>" value="<{$value}>">
<{elseif $viewType eq 'detail'}>
	<table>
	<{foreach item=userInfo from=$userInfos name=loop}>
		<tr>
			<td><{if empty($userInfo.name)}><{$userInfo.uname|xoops_escape}><{else}><{$userInfo.name|xoops_escape}>(<{$userInfo.uname|xoops_escape}>)<{/if}></td>
			<{if $smarty.foreach.loop.first}>
				<td rowspan="<{$userInfos|@count}>" style="vertical-align: middle;">
				<span class="no_print_span">
				<span id="<{$dirname}>CreateUser" style="display: none;">
				<input class="formButton" type="button" value="<{$smarty.const._MD_XOONIPS_ITEM_EDIT_USERS_BUTTON_LABEL}>" onclick="document.<{$dirname}>_itemownersedit.submit();"/>
				</span>
				</span>
				</td>
			<{/if}>
		</tr>
	<{/foreach}>
	</table>
<{elseif $viewType eq 'itemUsersEdit'}>
	<div id="<{$divName}>"><table>
	<{foreach item=userInfo from=$userInfos}>
		<tr>
			<td><{if empty($userInfo.name)}><{$userInfo.uname|xoops_escape}><{else}><{$userInfo.name|xoops_escape}>(<{$userInfo.uname|xoops_escape}>)<{/if}></td>
			<td><a href="#" onclick="<{$dirname}>Edit.deleteUser(null, '<{$userInfo.uid}>', 'deleteOwners');"><img src="images/icon_delete.png"/></a></td>
		</tr>
	<{/foreach}>
	</table></div></br>
	<input type="hidden" id="<{$dirname}>SearchUserID" name="<{$dirname}>CreateUser" value="<{$value}>">
	<input type="button" href="userselectsub.php?callbackid=<{$dirname}>CreateUser" rel="prettyPopin" value="<{$smarty.const._MD_XOONIPS_ITEM_SEARCH_BUTTON_LABEL}>">
<{elseif $viewType eq 'search'}>
	<input type="text" name="<{$fieldName}>" size="50" value="">
<{elseif $viewType eq 'default'}>
	<input type="hidden" name="default_value" value="<{$value}>" />
<{/if}>