<script language="javascript" type="text/javascript">  
function editLink(){
 	var uid = document.userInfoForm.uid.value;		
 	window.location.href = '<{$smarty.const.XOOPS_URL}>/edituser.php?uid='+uid;
}

function deleteLink(){
	var uid = document.userInfoForm.uid.value;		
	window.location.href = '<{$smarty.const.XOOPS_URL}>/user.php?op=delete&uid='+uid;   
}

function eventLink(){
	var url = document.userInfoForm.url.value;
	window.location.href = url+'/modules/<{$dirname}>/notifications.php';
}

function msgMailLink(){
	var url = document.userInfoForm.url.value;
	window.location.href = url+'/modules/message/index.php?action=new&to_userid=<{$uid}>';
}
</script>  

<{include file="db:user_header.html"}>
<h3><{$smarty.const._MD_USER_LANG_USERINFO}></h3>

<form name="userInfoForm">
<table class="outer">
<{if $isEditButton}>
	<input type="button" value="<{$smarty.const._MD_USER_LANG_EDIT}>" onclick="editLink();">
<{/if}>
<{if $isEventNoticeButton}>
	<input type="button" value="<{$smarty.const._MD_USER_LANG_EVENTNOTICE}>" onclick="eventLink();">
<{/if}>
<{if $isDeleteButton}>
	<input type="button" value="<{$smarty.const._MD_USER_LANG_DELETE}>" onclick="deleteLink();">
<{/if}>
<{if $isMsgMailButton}>
	<input type="button" value="<{$smarty.const._MD_USER_LANG_MSGMAIL}>" onclick="msgMailLink();">
<{/if}>
<{$userInfoView}>
<input type="hidden" name="uid" value=<{$uid}>>
<input type="hidden" name="url" value="<{$url}>">
</table>
<br></br>
</form>
<{include file="db:user_footer.html"}>
<!-- end module search results loop -->
