<!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="formSearch" action="" method="post">
<div class="alert">
	<label><select name="s_status" class="control-input input-inline">
		<option value=""{-if:'' == ARequest::get('s_status')-} selected="selected"{-:/if-}>{-:@STATUS-}</option>
		<option value="c"{-if:'c' == ARequest::get('s_status')-} selected="selected"{-:/if-}>{-:@CANCEL-}</option>
		<option value="n"{-if:'n' == ARequest::get('s_status')-} selected="selected"{-:/if-}>{-:@NORMAL-}</option>
	</select></label>
	<label><select name="order_by" class="control-input input-inline">
		<option value="">{-:@DISPLAY_ORDER-}</option>
		<option value="subscribe_id"{-if:'subscribe_id'==ARequest::get('order_by')-} selected="selected"{-:/if-}>{-:@ID-}</option>
		<option value="s_add_time"{-if:'s_add_time'==ARequest::get('order_by')-} selected="selected"{-:/if-}>{-:@ADD_TIME-}</option>
	</select></label>
	<label><select name="order_turn" class="control-input input-inline">
		<option value="desc"{-if:'desc'==ARequest::get('order_turn')-} selected="selected"{-:/if-}>{-:@DESC-}</option>
		<option value="asc"{-if:'asc'==ARequest::get('order_turn')-} selected="selected"{-:/if-}>{-:@ASC-}</option>
	</select></label>
	<label><select name="page_size" class="control-input input-inline">
		<option value=""{-if:''==ARequest::get('page_size')-} selected="selected"{-:/if-}>{-:@PAGE_SIZE-}</option>
		<option value="10"{-if:'10'==ARequest::get('page_size')-} selected="selected"{-:/if-}>10 {-:@ITEMS-}</option>
		<option value="20"{-if:'20'==ARequest::get('page_size')-} selected="selected"{-:/if-}>20 {-:@ITEMS-}</option>
		<option value="50"{-if:'50'==ARequest::get('page_size')-} selected="selected"{-:/if-}>50 {-:@ITEMS-}</option>
		<option value="100"{-if:'100'==ARequest::get('page_size')-} selected="selected"{-:/if-}>100 {-:@ITEMS-}</option>
	</select></label>
	<label><span class="btn submit" action="{-url:admin@subscribe/list_subscribe-}" to="#formSearch">{-:@SEARCH-}</span></label>
</div>
</form>

<form id="formList" action="" method="post">
<ul class="subnav subnav-tab">
	<li class="active"><a href="#">{-:@SUBSCRIBE_LIST-}</a></li>
	<li><a href="{-url:admin@subscribe/edit_option-}">{-:@SUBSCRIBE_OPTION-}</a></li>
</ul>
<div id="tabContent">
	{-if:empty($_SL)-}
		<div class="placeholder text-center margin">{-:@LIST_EMPTY-}</div>
	{-else:-}
		<table class="table table-hover">
			<tr>
				<th scope="col" width="18"><input type="checkbox" class="select_all" to="subscribe_id"></th>
				<th scope="col">{-:@ID-}</th>
				<th scope="col">{-:@EMAIL-}</th>
				<th scope="col">{-:@ADD_TIME-}</th>
				<th scope="col">{-:@ADD_IP-}</th>
				<th scope="col">{-:@STATUS-}</th>
				<th scope="col">{-:@MANAGE-}</th>
			</tr>
			{-foreach:$_SL,$s-}
			<tr>
				<td><input type="checkbox" name="subscribe_id[{-:$s['subscribe_id']-}]" value="{-:$s['subscribe_id']-}"></td>
				<td>{-:$s['subscribe_id']-}</span></td>
				<td>{-:$s['s_email']-}</td>
				<td>{-:$s['s_add_time']|date~C('APP.TIME_FORMAT'),@me-}</td>
				<td>{-:$s['s_add_ip']-}</td>
				<td>
				{-if:1 == $s['s_status']-}
					<span class="badge badge-success">{-:@NORMAL-}</span>
				{-else:-}
					<span class="badge">{-:@CANCEL-}</span>
				{-:/if-}
				</td>
				<td><a href="{-url:admin@subscribe/delete_subscribe_do?subscribe_id={$s['subscribe_id']}&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}" class="delete_confirm">{-:@DELETE-}</a></td>
			</tr>
			{-:/foreach-}
		</table>
		{-include:../paging-}
	{-:/if-}
</div>
<div id="operation" class="margin">
	<input name="timeKey" type="hidden" value="{-:$_TK['timeKey']-}">
	<input name="token" type="hidden" value="{-:$_TK['token']-}">
	<span class="btn submit" action="{-url:admin@subscribe/delete_subscribe_do-}" to="#formList">{-:@DELETE_SELECTED-}</span>
	<span class="btn submit" action="{-url:admin@subscribe/download_subscribe?timeKey={$_TK['timeKey']}&token={$_TK['token']}-}" to="#formSearch">{-:@DOWNLOAD_SUBSCRIBE-}</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>