<script>
	$(function(){
		$('#edituser').on('click',function(){
				location.href="edituser.php";
		})
		$('#editprofile').on('click',function(){
				location.href="<{$xoops_url}>/modules/system/admin.php?fct=users&uid=<{$user_uid}>&op=modifyUser";
		})

		$('#deluser').on('click',function(){
				location.href="user.php?op=delete";
		})
		$('#delaccount').on('click',function(){
				location.href="<{$xoops_url}>/modules/system/admin.php?fct=users&op=delUser&uid=<{$user_uid}>";
		})


		$('#logout').on('click',function(){
				location.href="user.php?op=logout";
		})


	});
</script>

<{if $user_ownpage == true}> <{*ログインユーザの時*}>
	<form id="usernav" action="user.php" method="post">
		<div class="padded">
		  <input type="button" class="info" id="edituser" value="<{$lang_editprofile}>" /> &nbsp;
		  <{if $user_candelete == true}>
		  	<input type="button" class="red" id="deluser" value="<{$lang_deleteaccount}>" /> &nbsp;
		  <{/if}>
		  <input type="button" class="green" id="logout" value="<{$lang_logout}>" /></td>
		</div>
	</form>

<{elseif $xoops_isadmin != false}> <{*管理者の時*}>
	<div class="padded">
	    <input type="button" id="editprofile" class="info" value="<{$lang_editprofile}>" />&nbsp;
	    <input type="button" value="<{$lang_deleteaccount}>"/>
	</div>
<{/if}>

<div class="padded">
 	<h4 class="padded"><{$lang_allaboutuser}></h4>
	<div class="row">
		<div class="one sixth mobile half-padded bordered blue"><{$lang_realname}></div>
		<div class="five sixth mobile half-padded bordered"><{$user_uname}></div>
	</div>
	<div class="row">
		<div class="one sixth mobile half-padded bordered blue"><{$lang_membersince}></div>
		<div class="five sixth mobile half-padded bordered"><{$udata.joindate}></div>
	</div>
	<div class="row">
		<div class="one sixth mobile half-padded bordered blue"><{$lang_email}></div>
		<div class="five sixth mobile half-padded bordered"><{$udata.email}></div>
	</div>
	<div class="row">
		<div class="one sixth mobile half-padded bordered blue"><{$lang_zip}></div>
		<div class="five sixth mobile half-padded bordered"><{$udata.zip}></div>
	</div>
	<div class="row">
		<div class="one sixth mobile half-padded bordered blue"><{$lang_address}></div>
		<div class="five sixth mobile half-padded bordered"><{$udata.address}></div>
	</div>
	<div class="row">
		<div class="one sixth mobile half-padded bordered blue"><{$lang_tel}></div>
		<div class="five sixth mobile half-padded bordered"><{$udata.tel}></div>
	</div>
	<div class="row">
		<div class="one sixth mobile half-padded bordered blue"><{$lang_sex}></div>
		<div class="five sixth mobile half-padded bordered"><{$udata.sexmsg}></div>
	</div>
	<div class="row">
		<div class="one sixth mobile half-padded bordered blue"><{$lang_birthday}></div>
		<div class="five sixth mobile half-padded bordered"><{$udata.birthday}></div>
	</div>
	<div class="row">
		<div class="one sixth mobile half-padded bordered blue"><{$lang_lastlogin}></div>
		<div class="five sixth mobile half-padded bordered"><{$user_lastlogin}></div>
	</div>
</div>


<!-- start module search results loop -->
<{foreach item=module from=$modules}>

<h4><{$module.name}></h4>
<p>
  <!-- start results item loop -->
  <{foreach item=result from=$module.results}>

  <img src="<{$result.image}>" alt="<{$module.name}>" /><b><a href="<{$result.link}>" title="<{$result.title}>"><{$result.title}></a></b><br /><small>(<{$result.time}>)</small><br />

  <{/foreach}>
  <!-- end results item loop -->

<{$module.showall_link}>
</p>

<{/foreach}>
<!-- end module search results loop -->
