<!doctype html>
<html dir="{-:*_LD_-}">
<head>
<meta charset="utf-8" />
<title>{-:@MANAGE-}</title>
{-include:../meta-}
<script>
var GV = {
	_LD_ : '{-:*_LD_-}',
	LANG_NAME : '{-:*LANG_NAME-}'
};
</script>
</head>

<body>
<div class="container margin">

<form id="formList" action="" method="post">
<ul class="subnav subnav-tab">
	<li class="active"><a href="#">{-:@BAN_IP-}</a></li>
</ul>
<div id="tabContent">
	<div class="alert margin">
		{-:@BAN_IP_TIP-}
	</div>
	{-if:empty($_BIL)-}
		<div class="placeholder ">{-:@LIST_EMPTY-}</div>
	{-else:-}
		<table class="table table-hover">
			<tr>
				<th scope="col" width="18"><input type="checkbox" class="select_all" to="ban_ip_id"></th>
				<th scope="col">{-:@IP-}</th>
				<th scope="col">{-:@EXPIRE_TIME-}</th>
				<th scope="col">{-:@STATUS-}</th>
				<th scope="col">{-:@ADD_TIME-}</th>
				<th scope="col">{-:@NOTE-}</th>
				<th scope="col">{-:@MANAGE-}</th>
			</tr>
			{-foreach:$_BIL,$bi-}
			<tr>
				<td>
					<input name="ban_ip_id[{-:$bi['ban_ip_id']-}]" type="checkbox" value="{-:$bi['ban_ip_id']-}">
				</td>
				<td>{-:$bi['bi_ip']-}</td>
				<td>
					{-if:0 == $bi['bi_expire_time']-}
						{-:@NOT_LIMIT-}
					{-else:-}
						{-:$bi['bi_expire_time']|date~C('APP.TIME_FORMAT'),@me-}
					{-:/if-}
				</td>
				<td>
					{-if:0 == $bi['bi_expire_time'] or NOW_TIME < $bi['bi_expire_time']-}
						<span class="text-success">{-:@AVAILABLE-}</span>
					{-else:-}
						<span class="text-muted">{-:@EXPIRED-}</span>
					{-:/if-}
				</td>
				<td>{-:$bi['bi_add_time']|date~C('APP.TIME_FORMAT'),@me-}</td>
				<td>{-:$bi['bi_note']-}</td>
				<td><a href="{-url:admin@ban_ip/edit_ip?ban_ip_id={$bi['ban_ip_id']}-}">{-:@EDIT-}</a> | <a href="{-url:admin@ban_ip/delete_ip_do?ban_ip_id={$bi['ban_ip_id']}&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}" class="delete_confirm">{-:@DELETE-}</a></td>
			</tr>
			{-:/foreach-}
		</table>
	{-:/if-}
</div>
<div id="operation" class="margin">
	<input name="timeKey" type="hidden" value="{-:$_TK['timeKey']-}">
	<input name="token" type="hidden" value="{-:$_TK['token']-}">
	<a class="btn" href="{-url:admin@ban_ip/add_ip-}">{-:@ADD_BAN_IP-}</a>
	<span class="btn submit" action="{-url:admin@ban_ip/delete_ip_do-}" to="#formList">{-:@DELETE_SELECTED-}</span>
	<span class="btn submit" action="{-url:admin@ban_ip/clear_expired_ip_do&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}" to="#formList">{-:@CLEAR_EXPIRED_IP-}</span>
</div><!--/#operation-->
</form>

</div>
<script src="{-:*__RES__-}js/loga.js"></script>
<script src="{-:*__RES__-}js/jquery.js"></script>
<script src="{-:*__RES__-}fea/js/fea.min.js"></script>
<script src="{-:*__STYLE__-}js/common.js"></script>
<script src="{-:*__STYLE__-}js/admin.js"></script>
</body>
</html>