{*<?php exit();?>*}
<div class="block">
	<div class="head"><span>用户管理</span></div>
	<div class="main">
		<table class="table sheet">
			<tr class="h">
				<td>用户名</td>
				<td>真实姓名</td>
				<td>E-mail</td>
				<td>QQ</td>
				<td>电话</td>
				<td width="120px">操作</td>
			</tr>
			{foreach from=$users name=users item=item}
			<tr>
				<td>{$item.use_username}</td>
				<td>{$item.use_real_name}</td>
				<td>{$item.use_email}</td>
				<td>{$item.use_qq}</td>
				<td>{$item.use_tel}</td>
				<td>
					<a href="{url channel='service' mod='user_edit' id=$item.use_id}">[修改]</a>
					<a onClick="del_user('{$item.use_id}')">[删除]</a>
				</td>
			</tr>
			{/foreach}
			<tr>
				<td colspan="7">
					{$prefix = 'service/mod-user_sheet'}
					{include file="module/page_link.php" page=$global.page}
				</td>
			</tr>
		</table>
	</div>
</div>
{literal}
<script language="javascript">
	function del_user(val)
	{
		if(confirm("您确定要删除该帐号吗？"))
		{
			ajax("post","?/deal/dir-service/","cmd=del_user&id=" + val,
			function(data)
			{
				if(data == 1) document.location.replace(document.location.href);
			});
		}
	}
</script>
{/literal}