<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
<title>Management platform</title>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/Public/Admin/images/favicon.ico" >
<LINK rel="Shortcut Icon" href="/Public/Admin/images/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/Public/h-ui_v2.3/lib/html5.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/lib/respond.min.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/lib/PIE_IE678.js"></script>
<![endif]-->
<link href="/Public/h-ui_v2.3/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/Public/h-ui_v2.3/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="/Public/h-ui_v2.3/skin/default/skin.css" rel="stylesheet" type="text/css" id="skin" />
<link href="/Public/h-ui_v2.3/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<link href="/Public/Admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/Public/static/jquery-2.0.3.min.js"></script>

<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->


<!-- 页面header钩子，一般用于加载插件CSS文件和代码 -->
<?php echo hook('pageHeader');?>

</head>
<body>

	<!-- 主体 -->
	

<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> Home <span class="c-gray en">&gt;</span> <?php echo ($meta_title); ?> <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="refresh" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20">
	<div class="text-c">
		<form action="<?php echo U();?>" method="post">
		keyword：
		<input type="text" class="input-text" style="width:250px" placeholder="username、mobile、email" id="keywords" name="keywords" value="<?php echo ($keywords); ?>">
		<button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> Search</button>
		</form>
	</div>
	<div class="cl pd-5 bg-1 bk-gray mt-20">
		<span class="l">
			<a href="<?php echo U('changeStatus?method=forbidUser');?>" class="btn btn-danger radius ajax-doSelect" target-form="ids"><i class="Hui-iconfont">&#xe631;</i> Disable</a>
			<a href="<?php echo U('changeStatus?method=resumeUser');?>" class="btn btn-success radius ajax-doSelect" target-form="ids"><i class="Hui-iconfont">&#xe6e1;</i> Enable</a>
			<a href="<?php echo U('Manager/add');?>" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> Add new records</a>
			</span>
	</div>
	<div class="mt-20">
	<table class="table table-border table-bordered table-hover table-bg table-sort">
		<thead>
			<tr class="text-c">
				<th width="25"><input type="checkbox" name="" value=""></th>
				<th width="80">ID</th>
				<th width="100">username</th>
				<th width="90">mobile</th>
				<th width="150">email</th>
				<th width="">login times</th>
				<th width="130">join date</th>
				<th width="">last login time</th>
				<th width="">last login IP</th>
				<th width="70">state</th>
				<th width="100">operation</th>
			</tr>
		</thead>
		<tbody>
			<?php if(is_array($_list)): $i = 0; $__LIST__ = $_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="text-c">
				<td><input class="ids" type="checkbox" name="ids[]" value="<?php echo ($vo["uid"]); ?>"></td>
				<td><?php echo ($vo["uid"]); ?></td>
				<td><?php echo ($vo["username"]); ?></td>
				<td><?php echo ($vo["mobile"]); ?></td>
				<td><?php echo ($vo["email"]); ?></td>
				<td><?php echo ($vo["login"]); ?></td>
				<td><?php echo (time_format($vo["reg_time"])); ?></td>
				<td><?php echo (time_format($vo["last_login_time"])); ?></td>
				<td><?php echo long2ip($vo['last_login_ip']);?></td>
				<td class="td-status">
					<?php if(($vo["status"]) == "1"): ?><span class="label label-success radius">enabled</span>
					<?php else: ?>
						<span class="label label-defaunt radius">disabled</span><?php endif; ?>
				</td>
				<td class="td-manage">
					<?php if(($vo["id"]) != "1"): if(($vo["status"]) == "1"): ?><a href="<?php echo U('changeStatus?method=forbidUser&ids='.$vo['uid']);?>" style="text-decoration:none" class="ml-5 ajax-get" title="disabled"><i class="Hui-iconfont">&#xe631;</i></a>
					<?php else: ?>
						<a href="<?php echo U('changeStatus?method=resumeUser&ids='.$vo['uid']);?>" style="text-decoration:none" class="ml-5 ajax-get" title="enabled"><i class="Hui-iconfont">&#xe615;</i></a><?php endif; ?>
				  	<a href="<?php echo U('edit',array('id'=>$vo['uid']));?>"  class="ml-5" style="text-decoration:none" title="edit"><i class="Hui-iconfont">&#xe6df;</i></a>
				 	<a href="<?php echo U('changeStatus?method=deleteuser&ids='.$vo['uid']);?>" class="ml-5 ajax-get-confirm" style="text-decoration:none" title="remove"><i class="Hui-iconfont">&#xe6e2;</i></a><?php endif; ?>
				</td>
			</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		</tbody>
	</table>
	</div>
	<div class="page">
        <?php echo ($_page); ?>
    </div>
</div>

	<!-- /主体 -->
	
	<!-- 底部 -->
	<script type="text/javascript" src="/Public/h-ui_v2.3/lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/js/H-ui.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/js/H-ui.admin.js"></script>
<script type="text/javascript" src="/Public/Common/js/common.js"></script>
<script type="text/javascript">

</script>


	<script type="text/javascript">
	</script>
 <!-- 用于加载js代码 -->
<!-- 页面footer钩子，一般用于加载插件JS文件和JS代码 -->
<?php echo hook('pageFooter', 'widget');?>
<div class="hidden"><!-- 用于加载统计代码等隐藏元素 -->
	
</div>

	<!-- /底部 -->

</body>
</html>